You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/lessons/11-agent-skills.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,37 @@ After that, `/docs` is all you need.
50
50
- A teammate asks "how do I get Copilot to do X?" and you have a saved prompt for it
51
51
- You're about to write a long prompt and think "I've done this before"
52
52
53
+
### Walk the process first, then capture it as a skill
54
+
55
+
One of the best patterns for building a skill is to **walk the agent through the process interactively first** — and only create the skill once you're happy with the result.
56
+
57
+
Here's why this works so well: the first time you do something with Copilot, you're exploring. You iterate, correct course, and refine the approach. Once you reach a result you're satisfied with, you have a proven process — and that's exactly what belongs in a skill.
58
+
59
+
**The workflow:**
60
+
61
+
1.**Walk through the process step by step** — guide the agent through each stage of the task in a normal conversation. Correct it when it goes wrong, refine the steps, build up to the result you want.
62
+
2.**Confirm it worked** — once you're happy with the outcome, pause and take stock of what you actually did.
63
+
3.**Ask the agent to document the approach as a skill** — say something like:
64
+
65
+
> "That worked well. Now document the steps we just followed as a skill called `<name>` so I can reuse this process in future."
66
+
67
+
Copilot will look back at the conversation, distil the successful steps, and write a `SKILL.md` that captures them.
68
+
69
+
**Example:**
70
+
71
+
Suppose you've just walked the agent through auditing a React component for accessibility issues — checking ARIA labels, contrast ratios, keyboard navigation, and focus order. It found and fixed several issues. Now say:
72
+
73
+
> "That process worked great. Create a skill called `a11y-audit` that documents how to audit a React component for accessibility so I can run it on any component in future."
74
+
75
+
Copilot will turn the conversation into a reusable skill that captures exactly the checks it performed.
76
+
77
+
**Why this matters:**
78
+
79
+
- You don't have to write skill instructions speculatively — you capture what already worked
80
+
- The skill reflects your actual codebase and conventions, not a generic template
81
+
- The agent is better at describing a process it just performed than one you describe from memory
82
+
- You end up with a skill that's been validated in practice before it's ever written down
83
+
53
84
### SKILL.md format
54
85
55
86
A skill lives in a named folder with a `SKILL.md` file:
0 commit comments