clikit-plugin 0.2.44 → 0.2.46

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 (177) hide show
  1. package/AGENTS.md +69 -3
  2. package/README.md +128 -92
  3. package/command/commit.md +1 -1
  4. package/command/create.md +65 -8
  5. package/command/debug.md +1 -1
  6. package/command/design.md +183 -43
  7. package/command/handoff.md +1 -1
  8. package/command/import-plan.md +2 -2
  9. package/command/init.md +1 -1
  10. package/command/issue.md +3 -4
  11. package/command/pr.md +1 -1
  12. package/command/research.md +5 -7
  13. package/command/resume.md +1 -1
  14. package/command/ship.md +29 -32
  15. package/command/start.md +38 -27
  16. package/command/{status-beads.md → status.md} +2 -3
  17. package/command/verify.md +132 -48
  18. package/dist/.tsbuildinfo +1 -1
  19. package/dist/agents/index.d.ts +0 -0
  20. package/dist/agents/index.d.ts.map +0 -0
  21. package/dist/beads-context.test.d.ts +2 -0
  22. package/dist/beads-context.test.d.ts.map +1 -0
  23. package/dist/cli.d.ts +0 -0
  24. package/dist/cli.d.ts.map +0 -0
  25. package/dist/cli.js +5 -0
  26. package/dist/cli.test.d.ts +0 -0
  27. package/dist/cli.test.d.ts.map +0 -0
  28. package/dist/clikit.schema.json +32 -11
  29. package/dist/clilog.test.d.ts +0 -0
  30. package/dist/clilog.test.d.ts.map +0 -0
  31. package/dist/commands/index.d.ts +0 -0
  32. package/dist/commands/index.d.ts.map +0 -0
  33. package/dist/config.d.ts +15 -7
  34. package/dist/config.d.ts.map +1 -1
  35. package/dist/config.test.d.ts +0 -0
  36. package/dist/config.test.d.ts.map +0 -0
  37. package/dist/hooks/beads-context.d.ts +2 -0
  38. package/dist/hooks/beads-context.d.ts.map +1 -1
  39. package/dist/hooks/empty-message-sanitizer.d.ts +0 -0
  40. package/dist/hooks/empty-message-sanitizer.d.ts.map +0 -0
  41. package/dist/hooks/error-logger.d.ts +0 -0
  42. package/dist/hooks/error-logger.d.ts.map +0 -0
  43. package/dist/hooks/git-guard.d.ts +0 -0
  44. package/dist/hooks/git-guard.d.ts.map +0 -0
  45. package/dist/hooks/index.d.ts +0 -2
  46. package/dist/hooks/index.d.ts.map +1 -1
  47. package/dist/hooks/memory-digest.d.ts +1 -0
  48. package/dist/hooks/memory-digest.d.ts.map +1 -1
  49. package/dist/hooks/security-check.d.ts +0 -0
  50. package/dist/hooks/security-check.d.ts.map +0 -0
  51. package/dist/hooks/subagent-question-blocker.d.ts +0 -0
  52. package/dist/hooks/subagent-question-blocker.d.ts.map +0 -0
  53. package/dist/hooks/todo-beads-sync.d.ts +1 -0
  54. package/dist/hooks/todo-beads-sync.d.ts.map +1 -1
  55. package/dist/hooks/todo-enforcer.d.ts +1 -1
  56. package/dist/hooks/todo-enforcer.d.ts.map +1 -1
  57. package/dist/hooks/truncator.d.ts +0 -0
  58. package/dist/hooks/truncator.d.ts.map +0 -0
  59. package/dist/index.d.ts +0 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +250 -576
  62. package/dist/skills/index.d.ts +0 -0
  63. package/dist/skills/index.d.ts.map +0 -0
  64. package/dist/tools/cass-memory.d.ts +0 -0
  65. package/dist/tools/cass-memory.d.ts.map +0 -0
  66. package/dist/tools/context-summary.d.ts +0 -0
  67. package/dist/tools/context-summary.d.ts.map +0 -0
  68. package/dist/tools/index.d.ts +0 -3
  69. package/dist/tools/index.d.ts.map +1 -1
  70. package/dist/tools/memory-db.d.ts +0 -0
  71. package/dist/tools/memory-db.d.ts.map +0 -0
  72. package/dist/tools/memory.d.ts +0 -0
  73. package/dist/tools/memory.d.ts.map +0 -0
  74. package/dist/tools/observation.d.ts +0 -0
  75. package/dist/tools/observation.d.ts.map +0 -0
  76. package/dist/types.d.ts +0 -0
  77. package/dist/types.d.ts.map +0 -0
  78. package/memory/_digest.md +1 -1
  79. package/memory/_templates/handoff.md +0 -0
  80. package/memory/_templates/plan.md +35 -0
  81. package/memory/_templates/prd.md +0 -0
  82. package/memory/_templates/research.md +0 -0
  83. package/memory/_templates/review.md +0 -0
  84. package/memory/_templates/spec.md +12 -0
  85. package/memory/beads/.gitkeep +0 -0
  86. package/memory/handoffs/.gitkeep +0 -0
  87. package/memory/memory.db +0 -0
  88. package/memory/plans/.gitkeep +0 -0
  89. package/memory/prds/.gitkeep +0 -0
  90. package/memory/research/.gitkeep +0 -0
  91. package/memory/reviews/.gitkeep +0 -0
  92. package/memory/specs/.gitkeep +0 -0
  93. package/package.json +4 -4
  94. package/skill/beads/SKILL.md +42 -43
  95. package/skill/beads/mcp.json +26 -0
  96. package/skill/beads/references/api-reference.md +64 -0
  97. package/skill/chrome-devtools/SKILL.md +22 -23
  98. package/skill/chrome-devtools/mcp.json +17 -0
  99. package/skill/chrome-devtools/references/tool-reference.md +63 -0
  100. package/skill/condition-based-waiting/SKILL.md +28 -66
  101. package/skill/deep-research/SKILL.md +34 -103
  102. package/skill/deep-research/mcp.json +21 -0
  103. package/skill/deep-research/references/lsp-ops.md +44 -0
  104. package/skill/defense-in-depth/SKILL.md +29 -69
  105. package/skill/executing-plans/SKILL.md +25 -34
  106. package/skill/finishing-a-development-branch/SKILL.md +28 -89
  107. package/skill/playwright/SKILL.md +27 -22
  108. package/skill/playwright/mcp.json +20 -0
  109. package/skill/playwright/references/tool-reference.md +64 -0
  110. package/skill/receiving-code-review/SKILL.md +16 -27
  111. package/skill/requesting-code-review/SKILL.md +22 -26
  112. package/skill/ritual-workflow/SKILL.md +22 -82
  113. package/skill/root-cause-tracing/SKILL.md +30 -54
  114. package/skill/session-management/SKILL.md +21 -40
  115. package/skill/source-code-research/SKILL.md +33 -102
  116. package/skill/source-code-research/mcp.json +13 -0
  117. package/skill/source-code-research/references/quick-ref.md +65 -0
  118. package/skill/systematic-debugging/SKILL.md +28 -41
  119. package/skill/systematic-debugging/references/patterns.md +71 -0
  120. package/skill/test-driven-development/SKILL.md +16 -40
  121. package/skill/testing-anti-patterns/SKILL.md +36 -64
  122. package/skill/testing-anti-patterns/references/decision-matrix.md +55 -0
  123. package/skill/using-git-worktrees/SKILL.md +27 -103
  124. package/skill/vercel-react-best-practices/SKILL.md +50 -139
  125. package/skill/vercel-react-best-practices/references/patterns.md +70 -0
  126. package/skill/verification-before-completion/SKILL.md +19 -37
  127. package/skill/writing-plans/SKILL.md +20 -32
  128. package/skill/writing-skills/SKILL.md +52 -41
  129. package/skill/writing-skills/references/skill-anatomy.md +210 -0
  130. package/src/agents/AGENTS.md +48 -18
  131. package/src/agents/build.md +342 -93
  132. package/src/agents/explore.md +77 -60
  133. package/src/agents/index.ts +0 -0
  134. package/src/agents/oracle.md +153 -63
  135. package/src/agents/plan.md +275 -110
  136. package/src/agents/research.md +72 -52
  137. package/src/agents/review.md +182 -61
  138. package/src/agents/vision.md +7 -5
  139. package/command/plan.md +0 -152
  140. package/command/review-codebase.md +0 -228
  141. package/command/review.md +0 -135
  142. package/command/vision.md +0 -210
  143. package/dist/hooks/swarm-enforcer.d.ts +0 -31
  144. package/dist/hooks/swarm-enforcer.d.ts.map +0 -1
  145. package/dist/tools/beads-memory-sync.d.ts +0 -17
  146. package/dist/tools/beads-memory-sync.d.ts.map +0 -1
  147. package/dist/tools/quick-research.d.ts +0 -16
  148. package/dist/tools/quick-research.d.ts.map +0 -1
  149. package/dist/tools/swarm.d.ts +0 -57
  150. package/dist/tools/swarm.d.ts.map +0 -1
  151. package/skill/accessibility-audit/SKILL.md +0 -115
  152. package/skill/beads-bridge/SKILL.md +0 -45
  153. package/skill/brainstorming/SKILL.md +0 -41
  154. package/skill/cass-village/SKILL.md +0 -217
  155. package/skill/cloudflare/SKILL.md +0 -96
  156. package/skill/design-system-audit/SKILL.md +0 -136
  157. package/skill/development-lifecycle/SKILL.md +0 -58
  158. package/skill/dispatching-parallel-agents/SKILL.md +0 -94
  159. package/skill/figma/SKILL.md +0 -34
  160. package/skill/frontend-aesthetics/SKILL.md +0 -63
  161. package/skill/gemini-large-context/SKILL.md +0 -80
  162. package/skill/mockup-to-code/SKILL.md +0 -98
  163. package/skill/mqdh/SKILL.md +0 -54
  164. package/skill/notebooklm/SKILL.md +0 -71
  165. package/skill/playwriter/SKILL.md +0 -56
  166. package/skill/polar/SKILL.md +0 -39
  167. package/skill/resend/SKILL.md +0 -85
  168. package/skill/sharing-skills/SKILL.md +0 -50
  169. package/skill/subagent-driven-development/SKILL.md +0 -69
  170. package/skill/supabase/SKILL.md +0 -80
  171. package/skill/supabase-postgres-best-practices/SKILL.md +0 -168
  172. package/skill/swarm-coordination/SKILL.md +0 -54
  173. package/skill/testing-skills-with-subagents/SKILL.md +0 -102
  174. package/skill/ui-ux-research/SKILL.md +0 -93
  175. package/skill/v0/SKILL.md +0 -67
  176. package/skill/v1-run/SKILL.md +0 -85
  177. package/skill/visual-analysis/SKILL.md +0 -113
@@ -0,0 +1,210 @@
1
+ # Skill Anatomy Reference
2
+
3
+ ## SKILL.md — Full Specification
4
+
5
+ ### Frontmatter Fields
6
+
7
+ | Field | Required | Rules |
8
+ |-------|----------|-------|
9
+ | `name` | ✅ | Lowercase letters, numbers, hyphens. No leading/trailing hyphens. Max 64 chars. Must match directory name. |
10
+ | `description` | ✅ | Max 200 chars. Starts with "Use when…" or trigger condition. Ends with what the skill does. |
11
+
12
+ **Good description:**
13
+ ```yaml
14
+ description: Use when creating a new skill. Produces SKILL.md, references/, and mcp.json following Agent Skills standard.
15
+ ```
16
+
17
+ **Bad description:**
18
+ ```yaml
19
+ description: Helps with skills. # too vague — agent won't trigger
20
+ description: A skill for writing skills for AI agents in OpenCode environments that... # too long
21
+ ```
22
+
23
+ ### Body Structure
24
+
25
+ ```markdown
26
+ # Title (no "Skill" suffix needed)
27
+
28
+ ## Workflow ← what to do, in order
29
+ ## Rules ← decision tables, hard constraints
30
+ ## Red Flags ← patterns to avoid
31
+ ## References ← links to references/ and mcp.json (if any)
32
+ ```
33
+
34
+ ### What NOT to Include in Body
35
+
36
+ - `"You are running the X skill."` — always omitted
37
+ - Long tool parameter tables → move to `references/`
38
+ - Code examples > 15 lines → move to `references/`
39
+ - Content that is only sometimes relevant → move to `references/`
40
+
41
+ ---
42
+
43
+ ## references/ — Specification
44
+
45
+ ### When to Split
46
+
47
+ | Candidate | Split if... |
48
+ |-----------|-------------|
49
+ | Tool signatures | > 3 tools with params |
50
+ | Code examples | Block > 15 lines |
51
+ | Decision tables | > 10 rows |
52
+ | Step-by-step details | Only needed for specific sub-tasks |
53
+
54
+ ### File Naming
55
+
56
+ ```
57
+ references/
58
+ api-reference.md # tool params and examples
59
+ tool-reference.md # MCP tool signatures
60
+ patterns.md # extended code patterns
61
+ quick-ref.md # command cheatsheet
62
+ decision-matrix.md # expanded decision tables
63
+ lsp-ops.md # LSP tool reference
64
+ ```
65
+
66
+ ### Linking from SKILL.md
67
+
68
+ Every reference file MUST be linked in SKILL.md:
69
+
70
+ ```markdown
71
+ ## References
72
+
73
+ - [API reference](references/api-reference.md) — full tool params and example session
74
+ - [Patterns](references/patterns.md) — extended code examples
75
+ ```
76
+
77
+ The description after `—` tells the agent *what's in the file* so it knows whether to load it.
78
+
79
+ ---
80
+
81
+ ## mcp.json — Specification
82
+
83
+ ### Structure
84
+
85
+ ```json
86
+ {
87
+ "mcpServers": {
88
+ "server-name": {
89
+ "type": "local" | "remote",
90
+ "command": ["npx", "-y", "package-name"], // local only
91
+ "url": "https://...", // remote only
92
+ "description": "one-line purpose",
93
+ "tools": ["tool_name_1", "tool_name_2"]
94
+ }
95
+ }
96
+ }
97
+ ```
98
+
99
+ ### Local Server (stdio)
100
+
101
+ ```json
102
+ {
103
+ "mcpServers": {
104
+ "my-tool": {
105
+ "type": "local",
106
+ "command": ["npx", "-y", "@scope/mcp-server"],
107
+ "description": "What this server does",
108
+ "tools": ["tool_a", "tool_b"]
109
+ }
110
+ }
111
+ }
112
+ ```
113
+
114
+ ### Remote Server (HTTP/SSE)
115
+
116
+ ```json
117
+ {
118
+ "mcpServers": {
119
+ "my-remote": {
120
+ "type": "remote",
121
+ "url": "https://mcp.example.com/mcp",
122
+ "description": "What this server does",
123
+ "tools": ["query", "search"]
124
+ }
125
+ }
126
+ }
127
+ ```
128
+
129
+ ### With Auth / Env Vars
130
+
131
+ ```json
132
+ {
133
+ "mcpServers": {
134
+ "my-api": {
135
+ "type": "remote",
136
+ "url": "https://api.example.com/mcp",
137
+ "headers": {
138
+ "Authorization": "Bearer {env:MY_API_KEY}"
139
+ },
140
+ "tools": ["fetch_data"]
141
+ }
142
+ }
143
+ }
144
+ ```
145
+
146
+ ### Rules
147
+
148
+ - Only list tools the skill **actually uses** — not all tools the server exposes
149
+ - `tools` array is documentation + scope boundary, not a runtime filter
150
+ - Prefer `npx -y` for local servers (no pre-install needed)
151
+ - Use `{env:VAR_NAME}` for secrets — never hardcode API keys
152
+
153
+ ---
154
+
155
+ ## Complete Example: a minimal skill
156
+
157
+ ```
158
+ my-skill/
159
+ ├── SKILL.md
160
+ ├── mcp.json
161
+ └── references/
162
+ └── patterns.md
163
+ ```
164
+
165
+ **SKILL.md**
166
+ ```markdown
167
+ ---
168
+ name: my-skill
169
+ description: Use when doing X. Automates Y and Z via MCP tool.
170
+ ---
171
+
172
+ # My Skill
173
+
174
+ ## Workflow
175
+
176
+ 1. Step one
177
+ 2. Call `tool_name(param)` via MCP
178
+ 3. Verify result
179
+
180
+ ## Rules
181
+
182
+ | Situation | Action |
183
+ |-----------|--------|
184
+ | Tool returns error | Log and retry once |
185
+ | Result is empty | Ask user for clarification |
186
+
187
+ ## Red Flags
188
+
189
+ - Skipping verification step
190
+ - Calling tool without valid input
191
+
192
+ ## References
193
+
194
+ - [Patterns](references/patterns.md) — extended examples
195
+ - MCP: `my-tool` — see [mcp.json](mcp.json)
196
+ ```
197
+
198
+ **mcp.json**
199
+ ```json
200
+ {
201
+ "mcpServers": {
202
+ "my-tool": {
203
+ "type": "local",
204
+ "command": ["npx", "-y", "my-mcp-package"],
205
+ "description": "Does Y and Z",
206
+ "tools": ["tool_name"]
207
+ }
208
+ }
209
+ }
210
+ ```
@@ -8,22 +8,52 @@ Each `.md` file in this directory defines an agent. The frontmatter sets model,
8
8
  |---|---|---|---|
9
9
  | **@build** | Primary orchestrator and code executor. Delegates, implements, verifies. | primary | ✅ Yes |
10
10
  | **@plan** | Primary strategic planner. Produces specs and plans. Architecture-aware. | primary | ❌ Plans only |
11
- | **@oracle** | Architecture advisor and complex analysis. Deep local inspection. | subagent | ❌ Read-only |
12
- | **@explore** | Fast codebase navigator. File search, definitions, git history. | subagent | ❌ Read-only |
13
- | **@research** | External research. Docs, APIs, GitHub evidence, web sources. | subagent | ❌ Read-only |
11
+ | **@oracle** | High-depth read-only advisor for hard architecture trade-offs, complex debugging, and second-opinion analysis. Expensive specialist — invoke only when `@explore` or `@research` cannot resolve the question. | subagent | ❌ Read-only |
12
+ | **@explore** | Fast local codebase navigator. Symbol definitions, usages, file structure, git history. Read-only. | subagent | ❌ Read-only |
13
+ | **@research** | External evidence specialist. Docs, APIs, GitHub patterns, web sources. Read-only. | subagent | ❌ Read-only |
14
14
  | **@review** | Code reviewer and security auditor. Quality gate before merge. | subagent | ❌ Read-only |
15
15
  | **@vision** | Design architect and visual implementer. Frontend UI only. | subagent | ✅ Frontend only |
16
16
 
17
+ ## Specialist Boundaries
18
+
19
+ The three read-only specialists have distinct scopes — choose the right one:
20
+
21
+ | Need | Use | Why |
22
+ |------|-----|-----|
23
+ | Find a symbol, file, usage, or recent git change | `@explore` | Fast, local, cheap |
24
+ | Find external docs, library API, GitHub pattern, version info | `@research` | External evidence only |
25
+ | Decide between approaches, assess blast radius, unblock hard debugging | `@oracle` | Deep reasoning, expensive — last resort |
26
+
27
+ **Never call `@oracle` for something `@explore` or `@research` can answer.**
28
+
29
+ ## Active Roles in Compressed Workflow
30
+
31
+ Default active roles:
32
+ - `@build`
33
+ - `@plan`
34
+ - `@review`
35
+ - coordinator logic in command/runtime flow
36
+
37
+ On-demand specialists (invoke only when needed):
38
+ - `@explore` — codebase navigation
39
+ - `@research` — external evidence
40
+ - `@oracle` — hard decisions, expensive
41
+ - `@vision` — frontend/UI work
42
+
17
43
  ## Beads Task Management
18
44
 
19
- All agents use **Beads** (`beads-village_*` MCP tools) as the persistent task source of truth.
45
+ Agents use **Beads** (`beads-village_*` MCP tools) for persistent task tracking.
46
+
47
+ **Policy:** Beads is used for non-trivial work. Trivial fixes (typo, single-line) skip Beads and execute immediately.
20
48
 
21
49
  **Core cycle:**
22
50
  ```
23
51
  beads-village_init → beads-village_add → beads-village_claim → work → beads-village_done
24
52
  ```
25
53
 
26
- - **@build**: Creates issues on task start, claims and closes on completion
54
+ Execution happens one **Task Packet** at a time.
55
+
56
+ - **@build**: Creates issues for non-trivial tasks, claims and closes on completion
27
57
  - **@plan**: Creates issues for every plan task after plan approval
28
58
  - **Subagents**: Read-only — do not create/modify Beads issues
29
59
 
@@ -31,25 +61,25 @@ beads-village_init → beads-village_add → beads-village_claim → work → be
31
61
 
32
62
  ## Delegation Rules
33
63
 
34
- - Primary agents (@build, @plan) can delegate to subagents
35
- - Subagents should NOT delegate to other subagents (exception: Oracle Research for external evidence)
36
- - Build delegates architecture decisions to Oracle or Plan — does not decide itself
37
- - Plan consults Oracle for hard trade-offs — Oracle provides analysis, Plan makes the plan
64
+ - Primary agents (`@build`, `@plan`) can delegate to subagents
65
+ - Subagents must NOT delegate to other subagents — **exception:** `@oracle` may consult `@research` for external evidence when local analysis is insufficient
66
+ - `@build` delegates architecture decisions to `@oracle` — does not decide itself
67
+ - `@plan` consults `@oracle` for hard trade-offs — Oracle provides analysis, Plan makes the plan
38
68
  - Read the specific agent's `.md` file before modifying its behavior
39
69
 
40
70
  ## Delegation Flow
41
71
 
42
72
  ```
43
73
  User → @build (orchestrator)
44
- ├── @explore (find code)
45
- ├── @research (find docs)
46
- ├── @oracle (hard decisions)
47
- ├── @plan (multi-step planning)
48
- ├── @vision (UI work)
49
- └── @review (quality gate)
74
+ ├── @explore (find code, symbols, usages, git history)
75
+ ├── @research (find external docs, APIs, GitHub patterns)
76
+ ├── @oracle (hard decisions, blast radius, blocked debugging)
77
+ ├── @plan (multi-step planning)
78
+ ├── @vision (UI work)
79
+ └── @review (quality gate before merge)
50
80
 
51
81
  User → @plan (planning)
52
- ├── @explore (codebase context)
53
- ├── @research (external info)
54
- └── @oracle (architecture trade-offs)
82
+ ├── @explore (codebase context, integration points)
83
+ ├── @research (external info, version compatibility)
84
+ └── @oracle (architecture trade-offs, risky design decisions)
55
85
  ```