Skip to content

Commit fe210dd

Browse files
Merge pull request #61 from instil/copilot/update-skill-lesson-documentation
docs: add walk-then-document pattern to skill lesson
2 parents 7c492c4 + 599da60 commit fe210dd

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

tutorial/lessons/11-agent-skills.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,37 @@ After that, `/docs` is all you need.
5050
- A teammate asks "how do I get Copilot to do X?" and you have a saved prompt for it
5151
- You're about to write a long prompt and think "I've done this before"
5252

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+
5384
### SKILL.md format
5485

5586
A skill lives in a named folder with a `SKILL.md` file:

0 commit comments

Comments
 (0)