cc-dev-template 0.1.80 → 0.1.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/skills/agent-browser/SKILL.md +7 -133
- package/src/skills/agent-browser/references/common-patterns.md +64 -0
- package/src/skills/agent-browser/references/ios-simulator.md +25 -0
- package/src/skills/agent-browser/references/reflect.md +9 -0
- package/src/skills/agent-browser/references/semantic-locators.md +11 -0
- package/src/skills/claude-md/SKILL.md +1 -3
- package/src/skills/claude-md/references/audit-reflect.md +0 -4
- package/src/skills/claude-md/references/audit.md +1 -3
- package/src/skills/claude-md/references/create-reflect.md +0 -4
- package/src/skills/claude-md/references/create.md +1 -3
- package/src/skills/claude-md/references/modify-reflect.md +0 -4
- package/src/skills/claude-md/references/modify.md +1 -3
- package/src/skills/creating-agent-skills/SKILL.md +2 -2
- package/src/skills/creating-agent-skills/references/create-step-1-understand.md +1 -1
- package/src/skills/creating-agent-skills/references/create-step-2-design.md +3 -3
- package/src/skills/creating-agent-skills/references/create-step-3-write.md +42 -10
- package/src/skills/creating-agent-skills/references/create-step-4-review.md +2 -2
- package/src/skills/creating-agent-skills/references/create-step-5-install.md +1 -3
- package/src/skills/creating-agent-skills/references/create-step-6-reflect.md +1 -3
- package/src/skills/creating-agent-skills/references/fix-step-1-diagnose.md +5 -4
- package/src/skills/creating-agent-skills/references/fix-step-2-apply.md +2 -2
- package/src/skills/creating-agent-skills/references/fix-step-3-validate.md +1 -3
- package/src/skills/creating-agent-skills/references/fix-step-4-reflect.md +1 -3
- package/src/skills/creating-agent-skills/templates/router-skill.md +3 -3
- package/src/skills/creating-sub-agents/references/create-step-1-understand.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-2-design.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-3-write.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-4-review.md +1 -1
- package/src/skills/creating-sub-agents/references/create-step-5-install.md +1 -3
- package/src/skills/creating-sub-agents/references/create-step-6-reflect.md +0 -4
- package/src/skills/creating-sub-agents/references/fix-step-3-validate.md +1 -3
- package/src/skills/creating-sub-agents/references/fix-step-4-reflect.md +0 -4
- package/src/skills/execute-spec/SKILL.md +9 -17
- package/src/skills/execute-spec/references/phase-1-hydrate.md +4 -1
- package/src/skills/execute-spec/references/phase-2-build.md +5 -3
- package/src/skills/execute-spec/references/phase-3-validate.md +5 -4
- package/src/skills/execute-spec/references/phase-4-triage.md +4 -0
- package/src/skills/execute-spec/references/phase-5-reflect.md +1 -3
- package/src/skills/initialize-project/SKILL.md +2 -4
- package/src/skills/initialize-project/references/reflect.md +0 -4
- package/src/skills/project-setup/references/step-5-verify.md +1 -3
- package/src/skills/project-setup/references/step-6-reflect.md +0 -4
- package/src/skills/prompting/SKILL.md +1 -1
- package/src/skills/prompting/references/create-reflect.md +0 -4
- package/src/skills/prompting/references/create.md +1 -3
- package/src/skills/prompting/references/review-reflect.md +0 -4
- package/src/skills/prompting/references/review.md +1 -3
- package/src/skills/research/SKILL.md +1 -1
- package/src/skills/research/references/step-2-conduct-research.md +1 -3
- package/src/skills/research/references/step-3-reflect.md +0 -4
- package/src/skills/setup-lsp/SKILL.md +1 -1
- package/src/skills/setup-lsp/references/step-1-scan.md +1 -1
- package/src/skills/setup-lsp/references/step-2-install-configure.md +1 -3
- package/src/skills/setup-lsp/references/step-3-verify.md +1 -3
- package/src/skills/setup-lsp/references/step-4-reflect.md +0 -2
- package/src/skills/spec-interview/SKILL.md +1 -32
- package/src/skills/spec-interview/references/step-1-opening.md +32 -1
- package/src/skills/spec-interview/references/step-2-ideation.md +2 -2
- package/src/skills/spec-interview/references/step-4-deep-dive.md +18 -0
- package/src/skills/spec-interview/references/step-7-finalize.md +1 -3
- package/src/skills/spec-interview/references/step-8-reflect.md +1 -3
- package/src/skills/spec-review/SKILL.md +8 -9
- package/src/skills/spec-sanity-check/SKILL.md +2 -2
- package/src/skills/spec-to-tasks/SKILL.md +3 -3
- package/src/skills/spec-to-tasks/references/step-3-generate.md +5 -7
- package/src/skills/spec-to-tasks/references/step-4-review.md +9 -14
- package/src/skills/task-review/SKILL.md +2 -2
- package/src/skills/task-review/references/checklist.md +14 -16
- package/src/skills/execute-spec/references/workflow.md +0 -82
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-browser
|
|
3
|
-
description: Browser automation CLI for AI agents. Use when
|
|
3
|
+
description: Browser automation CLI for AI agents. Use when interacting with websites — navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, or testing web apps.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# Browser Automation with agent-browser
|
|
@@ -63,97 +63,6 @@ agent-browser screenshot --full # Full page screenshot
|
|
|
63
63
|
agent-browser pdf output.pdf # Save as PDF
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
## Common Patterns
|
|
67
|
-
|
|
68
|
-
### Form Submission
|
|
69
|
-
|
|
70
|
-
```bash
|
|
71
|
-
agent-browser open https://example.com/signup
|
|
72
|
-
agent-browser snapshot -i
|
|
73
|
-
agent-browser fill @e1 "Jane Doe"
|
|
74
|
-
agent-browser fill @e2 "jane@example.com"
|
|
75
|
-
agent-browser select @e3 "California"
|
|
76
|
-
agent-browser check @e4
|
|
77
|
-
agent-browser click @e5
|
|
78
|
-
agent-browser wait --load networkidle
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Authentication with State Persistence
|
|
82
|
-
|
|
83
|
-
```bash
|
|
84
|
-
# Login once and save state
|
|
85
|
-
agent-browser open https://app.example.com/login
|
|
86
|
-
agent-browser snapshot -i
|
|
87
|
-
agent-browser fill @e1 "$USERNAME"
|
|
88
|
-
agent-browser fill @e2 "$PASSWORD"
|
|
89
|
-
agent-browser click @e3
|
|
90
|
-
agent-browser wait --url "**/dashboard"
|
|
91
|
-
agent-browser state save auth.json
|
|
92
|
-
|
|
93
|
-
# Reuse in future sessions
|
|
94
|
-
agent-browser state load auth.json
|
|
95
|
-
agent-browser open https://app.example.com/dashboard
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
### Data Extraction
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
agent-browser open https://example.com/products
|
|
102
|
-
agent-browser snapshot -i
|
|
103
|
-
agent-browser get text @e5 # Get specific element text
|
|
104
|
-
agent-browser get text body > page.txt # Get all page text
|
|
105
|
-
|
|
106
|
-
# JSON output for parsing
|
|
107
|
-
agent-browser snapshot -i --json
|
|
108
|
-
agent-browser get text @e1 --json
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
### Parallel Sessions
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
agent-browser --session site1 open https://site-a.com
|
|
115
|
-
agent-browser --session site2 open https://site-b.com
|
|
116
|
-
|
|
117
|
-
agent-browser --session site1 snapshot -i
|
|
118
|
-
agent-browser --session site2 snapshot -i
|
|
119
|
-
|
|
120
|
-
agent-browser session list
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
### Visual Browser (Debugging)
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
agent-browser --headed open https://example.com
|
|
127
|
-
agent-browser highlight @e1 # Highlight element
|
|
128
|
-
agent-browser record start demo.webm # Record session
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
### iOS Simulator (Mobile Safari)
|
|
132
|
-
|
|
133
|
-
```bash
|
|
134
|
-
# List available iOS simulators
|
|
135
|
-
agent-browser device list
|
|
136
|
-
|
|
137
|
-
# Launch Safari on a specific device
|
|
138
|
-
agent-browser -p ios --device "iPhone 16 Pro" open https://example.com
|
|
139
|
-
|
|
140
|
-
# Same workflow as desktop - snapshot, interact, re-snapshot
|
|
141
|
-
agent-browser -p ios snapshot -i
|
|
142
|
-
agent-browser -p ios tap @e1 # Tap (alias for click)
|
|
143
|
-
agent-browser -p ios fill @e2 "text"
|
|
144
|
-
agent-browser -p ios swipe up # Mobile-specific gesture
|
|
145
|
-
|
|
146
|
-
# Take screenshot
|
|
147
|
-
agent-browser -p ios screenshot mobile.png
|
|
148
|
-
|
|
149
|
-
# Close session (shuts down simulator)
|
|
150
|
-
agent-browser -p ios close
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Requirements:** macOS with Xcode, Appium (`npm install -g appium && appium driver install xcuitest`)
|
|
154
|
-
|
|
155
|
-
**Real devices:** Works with physical iOS devices if pre-configured. Use `--device "<UDID>"` where UDID is from `xcrun xctrace list devices`.
|
|
156
|
-
|
|
157
66
|
## Ref Lifecycle (Important)
|
|
158
67
|
|
|
159
68
|
Refs (`@e1`, `@e2`, etc.) are invalidated when the page changes. Always re-snapshot after:
|
|
@@ -168,49 +77,14 @@ agent-browser snapshot -i # MUST re-snapshot
|
|
|
168
77
|
agent-browser click @e1 # Use new refs
|
|
169
78
|
```
|
|
170
79
|
|
|
171
|
-
##
|
|
172
|
-
|
|
173
|
-
When refs are unavailable or unreliable, use semantic locators:
|
|
174
|
-
|
|
175
|
-
```bash
|
|
176
|
-
agent-browser find text "Sign In" click
|
|
177
|
-
agent-browser find label "Email" fill "user@test.com"
|
|
178
|
-
agent-browser find role button click --name "Submit"
|
|
179
|
-
agent-browser find placeholder "Search" type "query"
|
|
180
|
-
agent-browser find testid "submit-btn" click
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
## Deep-Dive Documentation
|
|
184
|
-
|
|
185
|
-
| Reference | When to Use |
|
|
186
|
-
|-----------|-------------|
|
|
187
|
-
| [references/commands.md](references/commands.md) | Full command reference with all options |
|
|
188
|
-
| [references/snapshot-refs.md](references/snapshot-refs.md) | Ref lifecycle, invalidation rules, troubleshooting |
|
|
189
|
-
| [references/session-management.md](references/session-management.md) | Parallel sessions, state persistence, concurrent scraping |
|
|
190
|
-
| [references/authentication.md](references/authentication.md) | Login flows, OAuth, 2FA handling, state reuse |
|
|
191
|
-
| [references/video-recording.md](references/video-recording.md) | Recording workflows for debugging and documentation |
|
|
192
|
-
| [references/proxy-support.md](references/proxy-support.md) | Proxy configuration, geo-testing, rotating proxies |
|
|
193
|
-
|
|
194
|
-
## Ready-to-Use Templates
|
|
195
|
-
|
|
196
|
-
| Template | Description |
|
|
197
|
-
|----------|-------------|
|
|
198
|
-
| [templates/form-automation.sh](templates/form-automation.sh) | Form filling with validation |
|
|
199
|
-
| [templates/authenticated-session.sh](templates/authenticated-session.sh) | Login once, reuse state |
|
|
200
|
-
| [templates/capture-workflow.sh](templates/capture-workflow.sh) | Content extraction with screenshots |
|
|
201
|
-
|
|
202
|
-
```bash
|
|
203
|
-
./templates/form-automation.sh https://example.com/form
|
|
204
|
-
./templates/authenticated-session.sh https://app.example.com/login
|
|
205
|
-
./templates/capture-workflow.sh https://example.com ./output
|
|
206
|
-
```
|
|
80
|
+
## Reference Files
|
|
207
81
|
|
|
208
|
-
|
|
82
|
+
For common patterns (forms, auth, data extraction, parallel sessions, debugging), read `references/common-patterns.md`.
|
|
209
83
|
|
|
210
|
-
|
|
84
|
+
For semantic locators as an alternative to refs, read `references/semantic-locators.md`.
|
|
211
85
|
|
|
212
|
-
|
|
86
|
+
For iOS Simulator and mobile Safari automation, read `references/ios-simulator.md`.
|
|
213
87
|
|
|
214
|
-
|
|
88
|
+
## Reflect
|
|
215
89
|
|
|
216
|
-
|
|
90
|
+
Use the Read tool on `references/reflect.md` to reflect on the browser automation and note any skill issues.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Common Patterns
|
|
2
|
+
|
|
3
|
+
## Form Submission
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
agent-browser open https://example.com/signup
|
|
7
|
+
agent-browser snapshot -i
|
|
8
|
+
agent-browser fill @e1 "Jane Doe"
|
|
9
|
+
agent-browser fill @e2 "jane@example.com"
|
|
10
|
+
agent-browser select @e3 "California"
|
|
11
|
+
agent-browser check @e4
|
|
12
|
+
agent-browser click @e5
|
|
13
|
+
agent-browser wait --load networkidle
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Authentication with State Persistence
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
# Login once and save state
|
|
20
|
+
agent-browser open https://app.example.com/login
|
|
21
|
+
agent-browser snapshot -i
|
|
22
|
+
agent-browser fill @e1 "$USERNAME"
|
|
23
|
+
agent-browser fill @e2 "$PASSWORD"
|
|
24
|
+
agent-browser click @e3
|
|
25
|
+
agent-browser wait --url "**/dashboard"
|
|
26
|
+
agent-browser state save auth.json
|
|
27
|
+
|
|
28
|
+
# Reuse in future sessions
|
|
29
|
+
agent-browser state load auth.json
|
|
30
|
+
agent-browser open https://app.example.com/dashboard
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Data Extraction
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
agent-browser open https://example.com/products
|
|
37
|
+
agent-browser snapshot -i
|
|
38
|
+
agent-browser get text @e5 # Get specific element text
|
|
39
|
+
agent-browser get text body > page.txt # Get all page text
|
|
40
|
+
|
|
41
|
+
# JSON output for parsing
|
|
42
|
+
agent-browser snapshot -i --json
|
|
43
|
+
agent-browser get text @e1 --json
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Parallel Sessions
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
agent-browser --session site1 open https://site-a.com
|
|
50
|
+
agent-browser --session site2 open https://site-b.com
|
|
51
|
+
|
|
52
|
+
agent-browser --session site1 snapshot -i
|
|
53
|
+
agent-browser --session site2 snapshot -i
|
|
54
|
+
|
|
55
|
+
agent-browser session list
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Visual Browser (Debugging)
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
agent-browser --headed open https://example.com
|
|
62
|
+
agent-browser highlight @e1 # Highlight element
|
|
63
|
+
agent-browser record start demo.webm # Record session
|
|
64
|
+
```
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# iOS Simulator (Mobile Safari)
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
# List available iOS simulators
|
|
5
|
+
agent-browser device list
|
|
6
|
+
|
|
7
|
+
# Launch Safari on a specific device
|
|
8
|
+
agent-browser -p ios --device "iPhone 16 Pro" open https://example.com
|
|
9
|
+
|
|
10
|
+
# Same workflow as desktop - snapshot, interact, re-snapshot
|
|
11
|
+
agent-browser -p ios snapshot -i
|
|
12
|
+
agent-browser -p ios tap @e1 # Tap (alias for click)
|
|
13
|
+
agent-browser -p ios fill @e2 "text"
|
|
14
|
+
agent-browser -p ios swipe up # Mobile-specific gesture
|
|
15
|
+
|
|
16
|
+
# Take screenshot
|
|
17
|
+
agent-browser -p ios screenshot mobile.png
|
|
18
|
+
|
|
19
|
+
# Close session (shuts down simulator)
|
|
20
|
+
agent-browser -p ios close
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Requirements:** macOS with Xcode, Appium (`npm install -g appium && appium driver install xcuitest`)
|
|
24
|
+
|
|
25
|
+
**Real devices:** Works with physical iOS devices if pre-configured. Use `--device "<UDID>"` where UDID is from `xcrun xctrace list devices`.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Reflect After Use
|
|
2
|
+
|
|
3
|
+
After completing the browser automation task, reflect on your experience.
|
|
4
|
+
|
|
5
|
+
Were any commands, flags, patterns, or workarounds in this reference incorrect or missing? Did you discover a command syntax, a workaround for a specific site, or a pattern that should be documented here?
|
|
6
|
+
|
|
7
|
+
If yes, update the relevant section of this skill file. Only add tribal knowledge -- commands and patterns a fresh Claude instance would not know about agent-browser specifically. Keep within size targets.
|
|
8
|
+
|
|
9
|
+
Tell the user what you updated, or confirm no updates were needed.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Semantic Locators (Alternative to Refs)
|
|
2
|
+
|
|
3
|
+
When refs are unavailable or unreliable, use semantic locators:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
agent-browser find text "Sign In" click
|
|
7
|
+
agent-browser find label "Email" fill "user@test.com"
|
|
8
|
+
agent-browser find role button click --name "Submit"
|
|
9
|
+
agent-browser find placeholder "Search" type "query"
|
|
10
|
+
agent-browser find testid "submit-btn" click
|
|
11
|
+
```
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: claude-md
|
|
3
|
-
description:
|
|
3
|
+
description: Manage CLAUDE.md files in a project. With no arguments, audits all CLAUDE.md files for accuracy and completeness. With arguments, intelligently updates the appropriate file.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# CLAUDE.md Management
|
|
7
7
|
|
|
8
|
-
Base directory for this skill: ~/.claude/skills/claude-md
|
|
9
|
-
|
|
10
8
|
## What To Do
|
|
11
9
|
|
|
12
10
|
Check if arguments were provided:
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Audit Reflection
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The audit workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience auditing the project's CLAUDE.md files. The purpose is to improve the claude-md skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -62,6 +62,4 @@ Remaining concerns:
|
|
|
62
62
|
- [any issues needing human decision]
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Read references/audit-reflect.md now.
|
|
65
|
+
Use the Read tool on `references/audit-reflect.md` to reflect on the audit and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Create Reflection
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The create workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience creating a new CLAUDE.md file. The purpose is to improve the claude-md skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -71,6 +71,4 @@ Verify:
|
|
|
71
71
|
|
|
72
72
|
If all yes, proceed to the reflection step.
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
Read references/create-reflect.md now.
|
|
74
|
+
Use the Read tool on `references/create-reflect.md` to reflect on the creation process and note any skill issues.
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
# Modify Reflection
|
|
2
2
|
|
|
3
|
-
**IMPORTANT: This step is mandatory. The modify workflow is not complete until this step is finished. Do not skip this.**
|
|
4
|
-
|
|
5
|
-
Reflect on your experience modifying the project's CLAUDE.md files. The purpose is to improve the claude-md skill itself based on what you just learned.
|
|
6
|
-
|
|
7
3
|
## Assess
|
|
8
4
|
|
|
9
5
|
Answer these questions honestly:
|
|
@@ -51,6 +51,4 @@ If the content would make the file exceed ~100 lines, consider:
|
|
|
51
51
|
|
|
52
52
|
Tell the user what was added and where. If creating a new CLAUDE.md file, explain why that location was chosen.
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
Read references/modify-reflect.md now.
|
|
54
|
+
Use the Read tool on `references/modify-reflect.md` to reflect on the modification and note any skill issues.
|
|
@@ -11,8 +11,8 @@ Ask the user what they need.
|
|
|
11
11
|
|
|
12
12
|
| Intent | Action |
|
|
13
13
|
|--------|--------|
|
|
14
|
-
| Create a new skill | Read `references/create-step-1-understand.md` |
|
|
15
|
-
| Fix, improve, audit, or modify an existing skill | Read `references/fix-step-1-diagnose.md` |
|
|
14
|
+
| Create a new skill | Use the Read tool on `references/create-step-1-understand.md` to start the creation workflow |
|
|
15
|
+
| Fix, improve, audit, or modify an existing skill | Use the Read tool on `references/fix-step-1-diagnose.md` to diagnose the issue |
|
|
16
16
|
|
|
17
17
|
If the user says "audit my skills", that is the fix path.
|
|
18
18
|
If they mention a specific skill that needs changes, that is also the fix path.
|
|
@@ -48,4 +48,4 @@ Move on when all of these are true:
|
|
|
48
48
|
- You understand WHY the approaches work, not just WHAT they are
|
|
49
49
|
- The user confirms you understand their needs
|
|
50
50
|
|
|
51
|
-
Read `references/create-step-2-design.md
|
|
51
|
+
Use the Read tool on `references/create-step-2-design.md` to design the skill's structure.
|
|
@@ -164,7 +164,7 @@ Every procedural skill must end with a dedicated reflection step file. This is a
|
|
|
164
164
|
|
|
165
165
|
The reflection step is where the agent looks back on its experience using the skill and, if the instructions were wrong, incomplete, or suboptimal, updates the skill files. This creates a self-learning loop — skills improve through use.
|
|
166
166
|
|
|
167
|
-
The chain link to the reflection step must use
|
|
167
|
+
The chain link to the reflection step must use the redirect pattern — frame reading the reflection step as how the agent presents results to the user. Example: "Use the Read tool on `references/step-N-reflect.md` to review your work and report results to the user."
|
|
168
168
|
|
|
169
169
|
For informational skills, append a reflection section to the end of SKILL.md (since there is no step chain).
|
|
170
170
|
|
|
@@ -201,5 +201,5 @@ Ask: "Does this design look right?"
|
|
|
201
201
|
|
|
202
202
|
| Context | Action |
|
|
203
203
|
|---------|--------|
|
|
204
|
-
| Creating a new skill | Read `references/create-step-3-write.md` |
|
|
205
|
-
| Fixing an existing skill (came from fix-step-1-diagnose) | Read `references/fix-step-2-apply.md` to apply the structural changes |
|
|
204
|
+
| Creating a new skill | Use the Read tool on `references/create-step-3-write.md` to write the skill files |
|
|
205
|
+
| Fixing an existing skill (came from fix-step-1-diagnose) | Use the Read tool on `references/fix-step-2-apply.md` to apply the structural changes |
|
|
@@ -113,7 +113,7 @@ Each step file covers ONE phase of the workflow. Structure each file:
|
|
|
113
113
|
|
|
114
114
|
1. A clear header naming the step
|
|
115
115
|
2. Immediate actionable instructions — what to do NOW
|
|
116
|
-
3. A chain link
|
|
116
|
+
3. A chain link: "Use the Read tool on `references/[next-step].md` to [what the next step accomplishes]"
|
|
117
117
|
|
|
118
118
|
**Critical rules:**
|
|
119
119
|
- No table of contents across steps
|
|
@@ -144,8 +144,8 @@ description: [third person, trigger phrases, WHEN not HOW]
|
|
|
144
144
|
|
|
145
145
|
| Choice | Action |
|
|
146
146
|
|--------|--------|
|
|
147
|
-
| Option A | Read `references/step-1-a.md` |
|
|
148
|
-
| Option B | Read `references/step-1-b.md` |
|
|
147
|
+
| Option A | Use the Read tool on `references/step-1-a.md` to [what it accomplishes] |
|
|
148
|
+
| Option B | Use the Read tool on `references/step-1-b.md` to [what it accomplishes] |
|
|
149
149
|
```
|
|
150
150
|
|
|
151
151
|
Keep it minimal. Only include context that is needed at EVERY activation.
|
|
@@ -165,19 +165,51 @@ Every procedural skill must have a dedicated reflection step as the final file i
|
|
|
165
165
|
|
|
166
166
|
**The reflection step file** should contain:
|
|
167
167
|
|
|
168
|
-
1. **
|
|
169
|
-
2. **
|
|
170
|
-
3. **
|
|
171
|
-
4. **Report**: "Tell the user what you changed and why, or confirm that no updates were needed."
|
|
168
|
+
1. **Assessment**: Domain-specific questions — "Were any instructions wrong, incomplete, or misleading? Did you have to figure something out that the skill should have told you? Did any commands, paths, or patterns fail and require correction?"
|
|
169
|
+
2. **Action**: "If yes, identify the specific file where the issue lives, read it, and apply the fix. Apply the tribal knowledge test: only add what a fresh Claude instance would not already know."
|
|
170
|
+
3. **Report**: "Tell the user what you changed and why, or confirm that no updates were needed."
|
|
172
171
|
|
|
173
172
|
Tailor the assessment questions to the skill's domain — what "went wrong" means for a prompting skill is different from what it means for a browser automation skill.
|
|
174
173
|
|
|
175
|
-
|
|
174
|
+
### Chain Links Between Steps
|
|
176
175
|
|
|
176
|
+
Chain links connect one step to the next. The key challenge: after a heavy generation step, the model's completion impulse is strong — it wants to present results and stop. Chain links must redirect that impulse rather than fight it.
|
|
177
|
+
|
|
178
|
+
**The redirect pattern:**
|
|
179
|
+
|
|
180
|
+
```
|
|
181
|
+
Use the Read tool on `references/step-N-[name].md` to [what the next step accomplishes for the user].
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
This works because it frames reading the next step as HOW the model accomplishes what it already wants to do (present results, finish the task).
|
|
185
|
+
|
|
186
|
+
**Why the old "IMPORTANT: You are not done" pattern fails:** Negative framing ("you are NOT done") fights the completion impulse head-on. After heavy generation, the model has strong momentum toward completion and ignores imperative warnings. The redirect pattern harnesses that momentum instead.
|
|
187
|
+
|
|
188
|
+
**Pre-work priming:** At the TOP of generation-heavy steps (before the work begins), add a framing line:
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
These are drafts — review and present final results in the next step.
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
This primes the model to expect a follow-up step, reducing the completion impulse before it builds.
|
|
195
|
+
|
|
196
|
+
**Integration rules:**
|
|
197
|
+
- Place chain links INSIDE the action section, not as a separate afterthought section
|
|
198
|
+
- For the final work step before reflection/presentation: frame the next step as where results get presented to the user
|
|
199
|
+
- Keep chain links to one line — no multi-line bold warnings
|
|
200
|
+
|
|
201
|
+
**Before/after example:**
|
|
202
|
+
|
|
203
|
+
Before (old pattern — fails after heavy generation):
|
|
177
204
|
```
|
|
178
205
|
**IMPORTANT: You are not done. You MUST read and complete the next step. The workflow is incomplete without it.**
|
|
179
206
|
|
|
180
|
-
Read `references/step-
|
|
207
|
+
Read `references/step-4-reflect.md` now.
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
After (redirect pattern — works with the completion impulse):
|
|
211
|
+
```
|
|
212
|
+
Use the Read tool on `references/step-4-reflect.md` to review your work and report results to the user.
|
|
181
213
|
```
|
|
182
214
|
|
|
183
215
|
For informational skills (no step chain), append a reflection section to the end of SKILL.md instead.
|
|
@@ -208,4 +240,4 @@ With these principles applied, write all the skill files now:
|
|
|
208
240
|
2. For procedural: each step file in `references/`
|
|
209
241
|
3. Any `scripts/` or `templates/` files if the design calls for them
|
|
210
242
|
|
|
211
|
-
Read `references/create-step-4-review.md`
|
|
243
|
+
Use the Read tool on `references/create-step-4-review.md` to review all files before proceeding.
|
|
@@ -45,7 +45,7 @@ Go through each file and verify:
|
|
|
45
45
|
- Description uses third person with quoted trigger phrases?
|
|
46
46
|
- All referenced files exist? (no broken links)
|
|
47
47
|
- For procedural skills: dedicated reflection step file as the final step in the chain?
|
|
48
|
-
- Chain link to reflection step uses
|
|
48
|
+
- Chain link to reflection step uses redirect pattern? ("Use the Read tool on `references/...` to review your work and report results to the user.")
|
|
49
49
|
- For informational skills: reflection section at the end of SKILL.md?
|
|
50
50
|
- For forked-context skills: "Skill Observations" section in the output format?
|
|
51
51
|
|
|
@@ -64,4 +64,4 @@ Only proceed when validation passes and self-review is clean.
|
|
|
64
64
|
|
|
65
65
|
If you found and fixed issues, re-run both the self-review and validation to confirm.
|
|
66
66
|
|
|
67
|
-
Read `references/create-step-5-install.md`
|
|
67
|
+
Use the Read tool on `references/create-step-5-install.md` to install and test the skill.
|
|
@@ -62,6 +62,4 @@ Summarize what was created:
|
|
|
62
62
|
- Trigger phrases
|
|
63
63
|
- File structure (list all files)
|
|
64
64
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
Read `references/create-step-6-reflect.md` now.
|
|
65
|
+
Use the Read tool on `references/create-step-6-reflect.md` to review your work and report results to the user.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Step 6: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Reflect on your experience creating this skill. The purpose is to improve the creating-agent-skills skill itself based on what you just learned.
|
|
3
|
+
Reflect on your experience creating this skill and report results to the user. This step improves the creating-agent-skills skill itself based on what you just learned.
|
|
6
4
|
|
|
7
5
|
## Assess
|
|
8
6
|
|
|
@@ -74,10 +74,11 @@ Evaluate each file against these criteria:
|
|
|
74
74
|
|
|
75
75
|
### Self-Learning
|
|
76
76
|
- For procedural skills: does the skill have a dedicated reflection step file as the final step in its chain?
|
|
77
|
-
- Does the chain link to the reflection step use
|
|
77
|
+
- Does the chain link to the reflection step use the redirect pattern? (e.g., "Use the Read tool on `references/step-N-reflect.md` to review your work and report results to the user.")
|
|
78
|
+
- Do chain links use positive redirect framing, not negative warnings like "IMPORTANT: You are not done"?
|
|
78
79
|
- For informational skills: is there a reflection section at the end of SKILL.md?
|
|
79
80
|
- For forked-context skills (`context: fork`): does the output format include a "Skill Observations" section?
|
|
80
|
-
- If missing or embedded as a section in another step file, flag it — every procedural skill needs a separate
|
|
81
|
+
- If missing or embedded as a section in another step file, flag it — every procedural skill needs a separate reflection step.
|
|
81
82
|
|
|
82
83
|
## Summarize Findings
|
|
83
84
|
|
|
@@ -114,5 +115,5 @@ Tell the user which type of fix is needed.
|
|
|
114
115
|
|
|
115
116
|
| Fix Type | Action |
|
|
116
117
|
|----------|--------|
|
|
117
|
-
| Surface fixes only | Read `references/fix-step-2-apply.md` |
|
|
118
|
-
| Structural changes needed | Read `references/create-step-2-design.md`
|
|
118
|
+
| Surface fixes only | Use the Read tool on `references/fix-step-2-apply.md` to apply the fixes |
|
|
119
|
+
| Structural changes needed | Use the Read tool on `references/create-step-2-design.md` to design the new structure, then read `references/fix-step-2-apply.md` to apply |
|
|
@@ -94,7 +94,7 @@ Does this justify its token cost? If Claude already knows it — remove it. If i
|
|
|
94
94
|
|
|
95
95
|
**Fix description:** Rewrite to third person, add quoted trigger phrases, focus on WHEN not HOW.
|
|
96
96
|
|
|
97
|
-
**Add reflection step:** Create a dedicated reflection step file as the final step in the chain. Add a
|
|
97
|
+
**Add reflection step:** Create a dedicated reflection step file as the final step in the chain. Add a redirect chain link from the previous final step: "Use the Read tool on `references/step-N-reflect.md` to review your work and report results to the user." See `references/create-step-3-write.md` "Chain Links Between Steps" section for the full pattern. For informational skills, append a reflection section to the end of SKILL.md instead. For forked-context skills, add a "Skill Observations" section to the output format instead.
|
|
98
98
|
|
|
99
99
|
## Apply the Changes
|
|
100
100
|
|
|
@@ -102,4 +102,4 @@ Make all planned modifications now.
|
|
|
102
102
|
|
|
103
103
|
For structural changes that involve writing new files (new step files, new SKILL.md sections, new scripts), reference `references/create-step-3-write.md` for the complete writing guidance — it covers size targets, step file structure, MCP tool references, and anti-patterns in more depth than the principles above.
|
|
104
104
|
|
|
105
|
-
Read `references/fix-step-3-validate.md`
|
|
105
|
+
Use the Read tool on `references/fix-step-3-validate.md` to validate and test the fixes.
|
|
@@ -53,6 +53,4 @@ Summarize what was fixed:
|
|
|
53
53
|
- What was wrong and how it was resolved
|
|
54
54
|
- Confirm with the user that the skill now behaves as expected
|
|
55
55
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
Read `references/fix-step-4-reflect.md` now.
|
|
56
|
+
Use the Read tool on `references/fix-step-4-reflect.md` to review your work and report results to the user.
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Step 4: Reflect and Improve
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Reflect on your experience fixing this skill. The purpose is to improve the creating-agent-skills skill itself based on what you just learned.
|
|
3
|
+
Reflect on your experience fixing this skill and report results to the user. This step improves the creating-agent-skills skill itself based on what you just learned.
|
|
6
4
|
|
|
7
5
|
## Assess
|
|
8
6
|
|
|
@@ -11,6 +11,6 @@ Ask the user what they need.
|
|
|
11
11
|
|
|
12
12
|
| Intent | Action |
|
|
13
13
|
|--------|--------|
|
|
14
|
-
| {{First option}} | Read `references/{{first-workflow}}.md` |
|
|
15
|
-
| {{Second option}} | Read `references/{{second-workflow}}.md` |
|
|
16
|
-
| {{Third option}} | Read `references/{{third-workflow}}.md` |
|
|
14
|
+
| {{First option}} | Use the Read tool on `references/{{first-workflow}}.md` to {{what it accomplishes}} |
|
|
15
|
+
| {{Second option}} | Use the Read tool on `references/{{second-workflow}}.md` to {{what it accomplishes}} |
|
|
16
|
+
| {{Third option}} | Use the Read tool on `references/{{third-workflow}}.md` to {{what it accomplishes}} |
|
|
@@ -43,4 +43,4 @@ Move on when all of these are true:
|
|
|
43
43
|
- Tool requirements are known
|
|
44
44
|
- The user confirms you understand their needs
|
|
45
45
|
|
|
46
|
-
Read `references/create-step-2-design.md
|
|
46
|
+
Use the Read tool on `references/create-step-2-design.md` to design the sub-agent's configuration.
|
|
@@ -151,4 +151,4 @@ With these principles applied, write the complete `.md` file now:
|
|
|
151
151
|
1. YAML frontmatter with all designed configuration
|
|
152
152
|
2. System prompt body following the structure above
|
|
153
153
|
|
|
154
|
-
Read `references/create-step-4-review.md`
|
|
154
|
+
Use the Read tool on `references/create-step-4-review.md` to review the sub-agent before installation.
|
|
@@ -75,6 +75,4 @@ Summarize what was created:
|
|
|
75
75
|
- Memory scope (if any)
|
|
76
76
|
- Skills preloaded (if any)
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
Read `references/create-step-6-reflect.md` now.
|
|
78
|
+
Use the Read tool on `references/create-step-6-reflect.md` to reflect on the creation process and note any skill issues.
|