@iaforged/context-code 1.0.77 → 1.0.79

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.
Files changed (121) hide show
  1. package/README.md +68 -68
  2. package/cli.js +8515 -8515
  3. package/context-bootstrap.js +27 -27
  4. package/dist/src/bootstrap/state.js +3 -0
  5. package/dist/src/bridge/bridgeMain.js +40 -40
  6. package/dist/src/cli/print.js +12 -12
  7. package/dist/src/commands/agent/agent.js +8 -0
  8. package/dist/src/commands/commit-push-pr.js +55 -55
  9. package/dist/src/commands/createMovedToPluginCommand.js +9 -9
  10. package/dist/src/commands/init-verifiers.js +238 -238
  11. package/dist/src/commands/init.js +216 -216
  12. package/dist/src/commands/install.js +2 -2
  13. package/dist/src/commands/login/login.js +24 -10
  14. package/dist/src/commands/orchestrate/index.js +1 -1
  15. package/dist/src/commands/orchestrate/orchestrate.js +110 -24
  16. package/dist/src/commands/profile/profile.js +15 -1
  17. package/dist/src/commands/provider/index.js +1 -1
  18. package/dist/src/commands/provider/provider.js +34 -1
  19. package/dist/src/commands/review.js +22 -22
  20. package/dist/src/commands/run/index.js +2 -2
  21. package/dist/src/commands/run/run.js +63 -61
  22. package/dist/src/commands/team/index.js +1 -1
  23. package/dist/src/commands/team/team.js +84 -76
  24. package/dist/src/commands/team-auto/teamAuto.js +89 -29
  25. package/dist/src/commands/terminalSetup/terminalSetup.js +24 -24
  26. package/dist/src/commands/usage/index.js +7 -0
  27. package/dist/src/commands/usage/usage.js +5 -0
  28. package/dist/src/commands/workspace/workspace.js +39 -31
  29. package/dist/src/commands.js +0 -2
  30. package/dist/src/components/ConsoleOAuthFlow.js +92 -14
  31. package/dist/src/components/ModelPicker.js +2 -0
  32. package/dist/src/components/agents/generateAgent.js +92 -92
  33. package/dist/src/components/grove/Grove.js +10 -10
  34. package/dist/src/components/permissions/AskUserQuestionPermissionRequest/AskUserQuestionPermissionRequest.js +8 -8
  35. package/dist/src/constants/geminiOAuth.js +13 -0
  36. package/dist/src/constants/github-app.js +134 -134
  37. package/dist/src/constants/prompts.js +123 -123
  38. package/dist/src/coordinator/coordinatorMode.js +252 -252
  39. package/dist/src/hooks/useTypeahead.js +7 -7
  40. package/dist/src/ink/reconciler.js +7 -7
  41. package/dist/src/main.js +5 -5
  42. package/dist/src/memdir/findRelevantMemories.js +6 -6
  43. package/dist/src/services/MagicDocs/prompts.js +56 -56
  44. package/dist/src/services/PromptSuggestion/promptSuggestion.js +29 -29
  45. package/dist/src/services/SessionMemory/prompts.js +66 -66
  46. package/dist/src/services/api/openai.js +584 -21
  47. package/dist/src/services/limits/adapters/ollama.js +3 -3
  48. package/dist/src/services/oauth/geminiCli.js +107 -0
  49. package/dist/src/services/orchestration/execution/AgentTaskExecutor.js +5 -3
  50. package/dist/src/services/orchestration/execution/OrchestrationExecutionRuntime.js +18 -18
  51. package/dist/src/services/orchestration/global/reporting.js +2 -2
  52. package/dist/src/services/toolUseSummary/toolUseSummaryGenerator.js +9 -9
  53. package/dist/src/skills/bundled/batch.js +78 -78
  54. package/dist/src/skills/bundled/claudeApi.js +34 -34
  55. package/dist/src/skills/bundled/claudeInChrome.js +4 -4
  56. package/dist/src/skills/bundled/debug.js +36 -36
  57. package/dist/src/skills/bundled/scheduleRemoteAgents.js +151 -151
  58. package/dist/src/skills/bundled/skillify.js +132 -132
  59. package/dist/src/skills/bundled/stuck.js +53 -53
  60. package/dist/src/skills/bundled/updateConfig.js +418 -418
  61. package/dist/src/tasks/RemoteAgentTask/RemoteAgentTask.js +26 -26
  62. package/dist/src/tools/AgentTool/AgentTool.js +7 -7
  63. package/dist/src/tools/AgentTool/built-in/claudeCodeGuideAgent.js +67 -67
  64. package/dist/src/tools/AgentTool/built-in/exploreAgent.js +32 -32
  65. package/dist/src/tools/AgentTool/built-in/generalPurposeAgent.js +13 -13
  66. package/dist/src/tools/AgentTool/built-in/planAgent.js +49 -49
  67. package/dist/src/tools/AgentTool/built-in/statuslineSetup.js +129 -129
  68. package/dist/src/tools/AgentTool/built-in/verificationAgent.js +119 -119
  69. package/dist/src/tools/AgentTool/prompt.js +131 -131
  70. package/dist/src/tools/AgentTool/runAgent.js +9 -9
  71. package/dist/src/tools/BashTool/BashTool.js +10 -10
  72. package/dist/src/tools/BashTool/prompt.js +94 -94
  73. package/dist/src/tools/ConfigTool/prompt.js +29 -29
  74. package/dist/src/tools/EnterWorktreeTool/prompt.js +27 -27
  75. package/dist/src/tools/FileReadTool/prompt.js +12 -12
  76. package/dist/src/tools/PowerShellTool/prompt.js +82 -82
  77. package/dist/src/tools/RemoteTriggerTool/prompt.js +9 -9
  78. package/dist/src/tools/ScheduleCronTool/prompt.js +37 -37
  79. package/dist/src/tools/TeamCreateTool/prompt.js +110 -110
  80. package/dist/src/tools/TeamDeleteTool/prompt.js +13 -13
  81. package/dist/src/utils/advisor.js +15 -15
  82. package/dist/src/utils/api.js +2 -2
  83. package/dist/src/utils/auth.js +207 -2
  84. package/dist/src/utils/autoUpdater.js +18 -18
  85. package/dist/src/utils/bash/ShellSnapshot.js +86 -86
  86. package/dist/src/utils/bash/commands.js +61 -61
  87. package/dist/src/utils/claudeInChrome/prompt.js +53 -53
  88. package/dist/src/utils/claudeInChrome/setup.js +8 -8
  89. package/dist/src/utils/databaseMcp/server/queries.js +632 -632
  90. package/dist/src/utils/deepLink/registerProtocol.js +35 -35
  91. package/dist/src/utils/deepLink/terminalLauncher.js +12 -12
  92. package/dist/src/utils/hooks/execAgentHook.js +7 -7
  93. package/dist/src/utils/hooks/execPromptHook.js +4 -4
  94. package/dist/src/utils/hooks/skillImprovement.js +36 -36
  95. package/dist/src/utils/logoV2Utils.js +1 -1
  96. package/dist/src/utils/mcp/dateTimeParser.js +9 -9
  97. package/dist/src/utils/messages.js +191 -191
  98. package/dist/src/utils/model/model.js +18 -0
  99. package/dist/src/utils/model/modelOptions.js +51 -1
  100. package/dist/src/utils/model/modelStrings.js +5 -1
  101. package/dist/src/utils/model/modelSupportOverrides.js +3 -0
  102. package/dist/src/utils/model/providerBaseUrls.js +6 -1
  103. package/dist/src/utils/model/providerCatalog.js +64 -28
  104. package/dist/src/utils/model/providerModels.js +88 -17
  105. package/dist/src/utils/model/providerProfiles.js +8 -0
  106. package/dist/src/utils/model/providerProfilesDb.js +578 -393
  107. package/dist/src/utils/model/providerSwitch.js +12 -0
  108. package/dist/src/utils/model/providerWorkspaces.js +2 -0
  109. package/dist/src/utils/model/providers.js +65 -2
  110. package/dist/src/utils/orchestration/store/providerWorkspaceStore.js +3 -1
  111. package/dist/src/utils/orchestration/store/runStore.js +47 -47
  112. package/dist/src/utils/orchestration/store/teamStore.js +61 -61
  113. package/dist/src/utils/powershell/parser.js +253 -253
  114. package/dist/src/utils/sessionTitle.js +12 -12
  115. package/dist/src/utils/sideQuestion.js +17 -17
  116. package/dist/src/utils/status.js +1 -1
  117. package/dist/src/utils/swarm/backends/registry.js +9 -9
  118. package/dist/src/utils/telemetry/instrumentation.js +9 -9
  119. package/dist/src/utils/teleport.js +15 -15
  120. package/dist/src/utils/undercover.js +28 -28
  121. package/package.json +1 -1
@@ -9,247 +9,247 @@ const command = {
9
9
  return [
10
10
  {
11
11
  type: 'text',
12
- text: `Use the TodoWrite tool to track your progress through this multi-step task.
13
-
14
- ## Goal
15
-
16
- Create one or more verifier skills that can be used by the Verify agent to automatically verify code changes in this project or folder. You may create multiple verifiers if the project has different verification needs (e.g., both web UI and API endpoints).
17
-
18
- **Do NOT create verifiers for unit tests or typechecking.** Those are already handled by the standard build/test workflow and don't need dedicated verifier skills. Focus on functional verification: web UI (Playwright), CLI (Tmux), and API (HTTP) verifiers.
19
-
20
- ## Phase 1: Auto-Detection
21
-
22
- Analyze the project to detect what's in different subdirectories. The project may contain multiple sub-projects or areas that need different verification approaches (e.g., a web frontend, an API backend, and shared libraries all in one repo).
23
-
24
- 1. **Scan top-level directories** to identify distinct project areas:
25
- - Look for separate package.json, Cargo.toml, pyproject.toml, go.mod in subdirectories
26
- - Identify distinct application types in different folders
27
-
28
- 2. **For each area, detect:**
29
-
30
- a. **Project type and stack**
31
- - Primary language(s) and frameworks
32
- - Package managers (npm, yarn, pnpm, pip, cargo, etc.)
33
-
34
- b. **Application type**
35
- - Web app (React, Next.js, Vue, etc.) → suggest Playwright-based verifier
36
- - CLI tool → suggest Tmux-based verifier
37
- - API service (Express, FastAPI, etc.) → suggest HTTP-based verifier
38
-
39
- c. **Existing verification tools**
40
- - Test frameworks (Jest, Vitest, pytest, etc.)
41
- - E2E tools (Playwright, Cypress, etc.)
42
- - Dev server scripts in package.json
43
-
44
- d. **Dev server configuration**
45
- - How to start the dev server
46
- - What URL it runs on
47
- - What text indicates it's ready
48
-
49
- 3. **Installed verification packages** (for web apps)
50
- - Check if Playwright is installed (look in package.json dependencies/devDependencies)
51
- - Check MCP configuration (.mcp.json) for browser automation tools:
52
- - Playwright MCP server
53
- - Chrome DevTools MCP server
54
- - Claude Chrome Extension MCP (browser-use via Claude's Chrome extension)
55
- - For Python projects, check for playwright, pytest-playwright
56
-
57
- ## Phase 2: Verification Tool Setup
58
-
59
- Based on what was detected in Phase 1, help the user set up appropriate verification tools.
60
-
61
- ### For Web Applications
62
-
63
- 1. **If browser automation tools are already installed/configured**, ask the user which one they want to use:
64
- - Use AskUserQuestion to present the detected options
65
- - Example: "I found Playwright and Chrome DevTools MCP configured. Which would you like to use for verification?"
66
-
67
- 2. **If NO browser automation tools are detected**, ask if they want to install/configure one:
68
- - Use AskUserQuestion: "No browser automation tools detected. Would you like to set one up for UI verification?"
69
- - Options to offer:
70
- - **Playwright** (Recommended) - Full browser automation library, works headless, great for CI
71
- - **Chrome DevTools MCP** - Uses Chrome DevTools Protocol via MCP
72
- - **Claude Chrome Extension** - Uses the Claude Chrome extension for browser interaction (requires the extension installed in Chrome)
73
- - **None** - Skip browser automation (will use basic HTTP checks only)
74
-
75
- 3. **If user chooses to install Playwright**, run the appropriate command based on package manager:
76
- - For npm: \`npm install -D @playwright/test && npx playwright install\`
77
- - For yarn: \`yarn add -D @playwright/test && yarn playwright install\`
78
- - For pnpm: \`pnpm add -D @playwright/test && pnpm exec playwright install\`
79
- - For bun: \`bun add -D @playwright/test && bun playwright install\`
80
-
81
- 4. **If user chooses Chrome DevTools MCP or Claude Chrome Extension**:
82
- - These require MCP server configuration rather than package installation
83
- - Ask if they want you to add the MCP server configuration to .mcp.json
84
- - For Claude Chrome Extension, inform them they need the extension installed from the Chrome Web Store
85
-
86
- 5. **MCP Server Setup** (if applicable):
87
- - If user selected an MCP-based option, configure the appropriate entry in .mcp.json
88
- - Update the verifier skill's allowed-tools to use the appropriate mcp__* tools
89
-
90
- ### For CLI Tools
91
-
92
- 1. Check if asciinema is available (run \`which asciinema\`)
93
- 2. If not available, inform the user that asciinema can help record verification sessions but is optional
94
- 3. Tmux is typically system-installed, just verify it's available
95
-
96
- ### For API Services
97
-
98
- 1. Check if HTTP testing tools are available:
99
- - curl (usually system-installed)
100
- - httpie (\`http\` command)
101
- 2. No installation typically needed
102
-
103
- ## Phase 3: Interactive Q&A
104
-
105
- Based on the areas detected in Phase 1, you may need to create multiple verifiers. For each distinct area, use the AskUserQuestion tool to confirm:
106
-
107
- 1. **Verifier name** - Based on detection, suggest a name but let user choose:
108
-
109
- If there is only ONE project area, use the simple format:
110
- - "verifier-playwright" for web UI testing
111
- - "verifier-cli" for CLI/terminal testing
112
- - "verifier-api" for HTTP API testing
113
-
114
- If there are MULTIPLE project areas, use the format \`verifier-<project>-<type>\`:
115
- - "verifier-frontend-playwright" for the frontend web UI
116
- - "verifier-backend-api" for the backend API
117
- - "verifier-admin-playwright" for an admin dashboard
118
-
119
- The \`<project>\` portion should be a short identifier for the subdirectory or project area (e.g., the folder name or package name).
120
-
121
- Custom names are allowed but MUST include "verifier" in the name — the Verify agent discovers skills by looking for "verifier" in the folder name.
122
-
123
- 2. **Project-specific questions** based on type:
124
-
125
- For web apps (playwright):
126
- - Dev server command (e.g., "npm run dev")
127
- - Dev server URL (e.g., "http://localhost:3000")
128
- - Ready signal (text that appears when server is ready)
129
-
130
- For CLI tools:
131
- - Entry point command (e.g., "node ./cli.js" or "./target/debug/myapp")
132
- - Whether to record with asciinema
133
-
134
- For APIs:
135
- - API server command
136
- - Base URL
137
-
138
- 3. **Authentication & Login** (for web apps and APIs):
139
-
140
- Use AskUserQuestion to ask: "Does your app require authentication/login to access the pages or endpoints being verified?"
141
- - **No authentication needed** - App is publicly accessible, no login required
142
- - **Yes, login required** - App requires authentication before verification can proceed
143
- - **Some pages require auth** - Mix of public and authenticated routes
144
-
145
- If the user selects login required (or partial), ask follow-up questions:
146
- - **Login method**: How does a user log in?
147
- - Form-based login (username/password on a login page)
148
- - API token/key (passed as header or query param)
149
- - OAuth/SSO (redirect-based flow)
150
- - Other (let user describe)
151
- - **Test credentials**: What credentials should the verifier use?
152
- - Ask for the login URL (e.g., "/login", "http://localhost:3000/auth")
153
- - Ask for test username/email and password, or API key
154
- - Note: Suggest the user use environment variables for secrets (e.g., \`TEST_USER\`, \`TEST_PASSWORD\`) rather than hardcoding
155
- - **Post-login indicator**: How to confirm login succeeded?
156
- - URL redirect (e.g., redirects to "/dashboard")
157
- - Element appears (e.g., "Welcome" text, user avatar)
158
- - Cookie/token is set
159
-
160
- ## Phase 4: Generate Verifier Skill
161
-
12
+ text: `Use the TodoWrite tool to track your progress through this multi-step task.
13
+
14
+ ## Goal
15
+
16
+ Create one or more verifier skills that can be used by the Verify agent to automatically verify code changes in this project or folder. You may create multiple verifiers if the project has different verification needs (e.g., both web UI and API endpoints).
17
+
18
+ **Do NOT create verifiers for unit tests or typechecking.** Those are already handled by the standard build/test workflow and don't need dedicated verifier skills. Focus on functional verification: web UI (Playwright), CLI (Tmux), and API (HTTP) verifiers.
19
+
20
+ ## Phase 1: Auto-Detection
21
+
22
+ Analyze the project to detect what's in different subdirectories. The project may contain multiple sub-projects or areas that need different verification approaches (e.g., a web frontend, an API backend, and shared libraries all in one repo).
23
+
24
+ 1. **Scan top-level directories** to identify distinct project areas:
25
+ - Look for separate package.json, Cargo.toml, pyproject.toml, go.mod in subdirectories
26
+ - Identify distinct application types in different folders
27
+
28
+ 2. **For each area, detect:**
29
+
30
+ a. **Project type and stack**
31
+ - Primary language(s) and frameworks
32
+ - Package managers (npm, yarn, pnpm, pip, cargo, etc.)
33
+
34
+ b. **Application type**
35
+ - Web app (React, Next.js, Vue, etc.) → suggest Playwright-based verifier
36
+ - CLI tool → suggest Tmux-based verifier
37
+ - API service (Express, FastAPI, etc.) → suggest HTTP-based verifier
38
+
39
+ c. **Existing verification tools**
40
+ - Test frameworks (Jest, Vitest, pytest, etc.)
41
+ - E2E tools (Playwright, Cypress, etc.)
42
+ - Dev server scripts in package.json
43
+
44
+ d. **Dev server configuration**
45
+ - How to start the dev server
46
+ - What URL it runs on
47
+ - What text indicates it's ready
48
+
49
+ 3. **Installed verification packages** (for web apps)
50
+ - Check if Playwright is installed (look in package.json dependencies/devDependencies)
51
+ - Check MCP configuration (.mcp.json) for browser automation tools:
52
+ - Playwright MCP server
53
+ - Chrome DevTools MCP server
54
+ - Claude Chrome Extension MCP (browser-use via Claude's Chrome extension)
55
+ - For Python projects, check for playwright, pytest-playwright
56
+
57
+ ## Phase 2: Verification Tool Setup
58
+
59
+ Based on what was detected in Phase 1, help the user set up appropriate verification tools.
60
+
61
+ ### For Web Applications
62
+
63
+ 1. **If browser automation tools are already installed/configured**, ask the user which one they want to use:
64
+ - Use AskUserQuestion to present the detected options
65
+ - Example: "I found Playwright and Chrome DevTools MCP configured. Which would you like to use for verification?"
66
+
67
+ 2. **If NO browser automation tools are detected**, ask if they want to install/configure one:
68
+ - Use AskUserQuestion: "No browser automation tools detected. Would you like to set one up for UI verification?"
69
+ - Options to offer:
70
+ - **Playwright** (Recommended) - Full browser automation library, works headless, great for CI
71
+ - **Chrome DevTools MCP** - Uses Chrome DevTools Protocol via MCP
72
+ - **Claude Chrome Extension** - Uses the Claude Chrome extension for browser interaction (requires the extension installed in Chrome)
73
+ - **None** - Skip browser automation (will use basic HTTP checks only)
74
+
75
+ 3. **If user chooses to install Playwright**, run the appropriate command based on package manager:
76
+ - For npm: \`npm install -D @playwright/test && npx playwright install\`
77
+ - For yarn: \`yarn add -D @playwright/test && yarn playwright install\`
78
+ - For pnpm: \`pnpm add -D @playwright/test && pnpm exec playwright install\`
79
+ - For bun: \`bun add -D @playwright/test && bun playwright install\`
80
+
81
+ 4. **If user chooses Chrome DevTools MCP or Claude Chrome Extension**:
82
+ - These require MCP server configuration rather than package installation
83
+ - Ask if they want you to add the MCP server configuration to .mcp.json
84
+ - For Claude Chrome Extension, inform them they need the extension installed from the Chrome Web Store
85
+
86
+ 5. **MCP Server Setup** (if applicable):
87
+ - If user selected an MCP-based option, configure the appropriate entry in .mcp.json
88
+ - Update the verifier skill's allowed-tools to use the appropriate mcp__* tools
89
+
90
+ ### For CLI Tools
91
+
92
+ 1. Check if asciinema is available (run \`which asciinema\`)
93
+ 2. If not available, inform the user that asciinema can help record verification sessions but is optional
94
+ 3. Tmux is typically system-installed, just verify it's available
95
+
96
+ ### For API Services
97
+
98
+ 1. Check if HTTP testing tools are available:
99
+ - curl (usually system-installed)
100
+ - httpie (\`http\` command)
101
+ 2. No installation typically needed
102
+
103
+ ## Phase 3: Interactive Q&A
104
+
105
+ Based on the areas detected in Phase 1, you may need to create multiple verifiers. For each distinct area, use the AskUserQuestion tool to confirm:
106
+
107
+ 1. **Verifier name** - Based on detection, suggest a name but let user choose:
108
+
109
+ If there is only ONE project area, use the simple format:
110
+ - "verifier-playwright" for web UI testing
111
+ - "verifier-cli" for CLI/terminal testing
112
+ - "verifier-api" for HTTP API testing
113
+
114
+ If there are MULTIPLE project areas, use the format \`verifier-<project>-<type>\`:
115
+ - "verifier-frontend-playwright" for the frontend web UI
116
+ - "verifier-backend-api" for the backend API
117
+ - "verifier-admin-playwright" for an admin dashboard
118
+
119
+ The \`<project>\` portion should be a short identifier for the subdirectory or project area (e.g., the folder name or package name).
120
+
121
+ Custom names are allowed but MUST include "verifier" in the name — the Verify agent discovers skills by looking for "verifier" in the folder name.
122
+
123
+ 2. **Project-specific questions** based on type:
124
+
125
+ For web apps (playwright):
126
+ - Dev server command (e.g., "npm run dev")
127
+ - Dev server URL (e.g., "http://localhost:3000")
128
+ - Ready signal (text that appears when server is ready)
129
+
130
+ For CLI tools:
131
+ - Entry point command (e.g., "node ./cli.js" or "./target/debug/myapp")
132
+ - Whether to record with asciinema
133
+
134
+ For APIs:
135
+ - API server command
136
+ - Base URL
137
+
138
+ 3. **Authentication & Login** (for web apps and APIs):
139
+
140
+ Use AskUserQuestion to ask: "Does your app require authentication/login to access the pages or endpoints being verified?"
141
+ - **No authentication needed** - App is publicly accessible, no login required
142
+ - **Yes, login required** - App requires authentication before verification can proceed
143
+ - **Some pages require auth** - Mix of public and authenticated routes
144
+
145
+ If the user selects login required (or partial), ask follow-up questions:
146
+ - **Login method**: How does a user log in?
147
+ - Form-based login (username/password on a login page)
148
+ - API token/key (passed as header or query param)
149
+ - OAuth/SSO (redirect-based flow)
150
+ - Other (let user describe)
151
+ - **Test credentials**: What credentials should the verifier use?
152
+ - Ask for the login URL (e.g., "/login", "http://localhost:3000/auth")
153
+ - Ask for test username/email and password, or API key
154
+ - Note: Suggest the user use environment variables for secrets (e.g., \`TEST_USER\`, \`TEST_PASSWORD\`) rather than hardcoding
155
+ - **Post-login indicator**: How to confirm login succeeded?
156
+ - URL redirect (e.g., redirects to "/dashboard")
157
+ - Element appears (e.g., "Welcome" text, user avatar)
158
+ - Cookie/token is set
159
+
160
+ ## Phase 4: Generate Verifier Skill
161
+
162
162
  **All verifier skills are created in the project root's \`.context/skills/\` directory.** This ensures they are automatically loaded when Context runs in the project.
163
-
163
+
164
164
  Write the skill file to \`.context/skills/<verifier-name>/SKILL.md\`.
165
-
166
- ### Skill Template Structure
167
-
168
- \`\`\`markdown
169
- ---
170
- name: <verifier-name>
171
- description: <description based on type>
172
- allowed-tools:
173
- # Tools appropriate for the verifier type
174
- ---
175
-
176
- # <Verifier Title>
177
-
178
- You are a verification executor. You receive a verification plan and execute it EXACTLY as written.
179
-
180
- ## Project Context
181
- <Project-specific details from detection>
182
-
183
- ## Setup Instructions
184
- <How to start any required services>
185
-
186
- ## Authentication
187
- <If auth is required, include step-by-step login instructions here>
188
- <Include login URL, credential env vars, and post-login verification>
189
- <If no auth needed, omit this section>
190
-
191
- ## Reporting
192
-
193
- Report PASS or FAIL for each step using the format specified in the verification plan.
194
-
195
- ## Cleanup
196
-
197
- After verification:
198
- 1. Stop any dev servers started
199
- 2. Close any browser sessions
200
- 3. Report final summary
201
-
202
- ## Self-Update
203
-
204
- If verification fails because this skill's instructions are outdated (dev server command/port/ready-signal changed, etc.) — not because the feature under test is broken — or if the user corrects you mid-run, use AskUserQuestion to confirm and then Edit this SKILL.md with a minimal targeted fix.
205
- \`\`\`
206
-
207
- ### Allowed Tools by Type
208
-
209
- **verifier-playwright**:
210
- \`\`\`yaml
211
- allowed-tools:
212
- - Bash(npm:*)
213
- - Bash(yarn:*)
214
- - Bash(pnpm:*)
215
- - Bash(bun:*)
216
- - mcp__playwright__*
217
- - Read
218
- - Glob
219
- - Grep
220
- \`\`\`
221
-
222
- **verifier-cli**:
223
- \`\`\`yaml
224
- allowed-tools:
225
- - Tmux
226
- - Bash(asciinema:*)
227
- - Read
228
- - Glob
229
- - Grep
230
- \`\`\`
231
-
232
- **verifier-api**:
233
- \`\`\`yaml
234
- allowed-tools:
235
- - Bash(curl:*)
236
- - Bash(http:*)
237
- - Bash(npm:*)
238
- - Bash(yarn:*)
239
- - Read
240
- - Glob
241
- - Grep
242
- \`\`\`
243
-
244
-
245
- ## Phase 5: Confirm Creation
246
-
247
- After writing the skill file(s), inform the user:
165
+
166
+ ### Skill Template Structure
167
+
168
+ \`\`\`markdown
169
+ ---
170
+ name: <verifier-name>
171
+ description: <description based on type>
172
+ allowed-tools:
173
+ # Tools appropriate for the verifier type
174
+ ---
175
+
176
+ # <Verifier Title>
177
+
178
+ You are a verification executor. You receive a verification plan and execute it EXACTLY as written.
179
+
180
+ ## Project Context
181
+ <Project-specific details from detection>
182
+
183
+ ## Setup Instructions
184
+ <How to start any required services>
185
+
186
+ ## Authentication
187
+ <If auth is required, include step-by-step login instructions here>
188
+ <Include login URL, credential env vars, and post-login verification>
189
+ <If no auth needed, omit this section>
190
+
191
+ ## Reporting
192
+
193
+ Report PASS or FAIL for each step using the format specified in the verification plan.
194
+
195
+ ## Cleanup
196
+
197
+ After verification:
198
+ 1. Stop any dev servers started
199
+ 2. Close any browser sessions
200
+ 3. Report final summary
201
+
202
+ ## Self-Update
203
+
204
+ If verification fails because this skill's instructions are outdated (dev server command/port/ready-signal changed, etc.) — not because the feature under test is broken — or if the user corrects you mid-run, use AskUserQuestion to confirm and then Edit this SKILL.md with a minimal targeted fix.
205
+ \`\`\`
206
+
207
+ ### Allowed Tools by Type
208
+
209
+ **verifier-playwright**:
210
+ \`\`\`yaml
211
+ allowed-tools:
212
+ - Bash(npm:*)
213
+ - Bash(yarn:*)
214
+ - Bash(pnpm:*)
215
+ - Bash(bun:*)
216
+ - mcp__playwright__*
217
+ - Read
218
+ - Glob
219
+ - Grep
220
+ \`\`\`
221
+
222
+ **verifier-cli**:
223
+ \`\`\`yaml
224
+ allowed-tools:
225
+ - Tmux
226
+ - Bash(asciinema:*)
227
+ - Read
228
+ - Glob
229
+ - Grep
230
+ \`\`\`
231
+
232
+ **verifier-api**:
233
+ \`\`\`yaml
234
+ allowed-tools:
235
+ - Bash(curl:*)
236
+ - Bash(http:*)
237
+ - Bash(npm:*)
238
+ - Bash(yarn:*)
239
+ - Read
240
+ - Glob
241
+ - Grep
242
+ \`\`\`
243
+
244
+
245
+ ## Phase 5: Confirm Creation
246
+
247
+ After writing the skill file(s), inform the user:
248
248
  1. Where each skill was created (always in \`.context/skills/\`)
249
- 2. How the Verify agent will discover them — the folder name must contain "verifier" (case-insensitive) for automatic discovery
250
- 3. That they can edit the skills to customize them
251
- 4. That they can run /init-verifiers again to add more verifiers for other areas
252
- 5. That the verifier will offer to self-update if it detects its own instructions are outdated (wrong dev server command, changed ready signal, etc.)
249
+ 2. How the Verify agent will discover them — the folder name must contain "verifier" (case-insensitive) for automatic discovery
250
+ 3. That they can edit the skills to customize them
251
+ 4. That they can run /init-verifiers again to add more verifiers for other areas
252
+ 5. That the verifier will offer to self-update if it detects its own instructions are outdated (wrong dev server command, changed ready signal, etc.)
253
253
  `,
254
254
  },
255
255
  ];