clikit-plugin 0.2.45 → 0.2.47

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 +154 -64
  135. package/src/agents/plan.md +275 -110
  136. package/src/agents/research.md +72 -54
  137. package/src/agents/review.md +183 -62
  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
package/command/verify.md CHANGED
@@ -1,35 +1,65 @@
1
1
  ---
2
- description: Deep verification gate before ship. Run required checks + structured review verdict.
2
+ description: Run full verification deep codebase comprehension, typecheck, tests, lint, build, then reasoning-grade code review. Use standalone anytime or as pre-ship gate before /ship.
3
3
  agent: build
4
- subtask: true
5
4
  ---
6
5
 
7
6
  You are the **Build Agent**. Execute the `/verify` command.
8
7
 
9
- ## Your Task
8
+ ## Philosophy
10
9
 
11
- Run a strict pre-ship verification gate and produce a ship recommendation.
10
+ `/verify` is a **deep audit**, not a mechanical checklist. Before running any command, you must deeply understand the codebase — read files, trace call chains, understand intent. Only then can you produce a meaningful review.
12
11
 
13
- ## Process
12
+ Inspired by Amp's `deep` mode: **silently read and traverse the codebase first**, understand the full impact chain, then evaluate. Don't rush to output — correctness over speed.
14
13
 
15
- ### 1) Load Constraints First (Mandatory)
14
+ `/start` performs a **per-packet** narrow-scope verify.
15
+ `/verify` runs **deep comprehension + 4-gate check + reasoning-grade review** — full SHIP_READY verdict.
16
16
 
17
- Before running checks:
18
- 1. Read `AGENTS.md` and any directory-specific AGENTS guidance for changed files.
19
- 2. Read `package.json` scripts.
20
- 3. Inspect changed files (`git diff --name-only`) so the review can focus on actual impact.
17
+ ---
18
+
19
+ ## Phase 1: Deep Comprehension (Before Any Commands)
20
+
21
+ **Do not skip this phase.** This is what makes the review meaningful.
22
+
23
+ ### 1.1 Load Constraints
24
+ - Read `AGENTS.md` and any directory-specific AGENTS guidance for changed files.
25
+ - Read `package.json` scripts, dependencies, and devDependencies.
26
+
27
+ ### 1.2 Understand What Changed
28
+ ```bash
29
+ git diff --name-only HEAD~1 # or HEAD if uncommitted
30
+ git diff HEAD~1 # full diff for context
31
+ git log --oneline -5 # recent commit history
32
+ ```
33
+
34
+ ### 1.3 Trace the Impact Chain
35
+ For each changed file:
36
+ 1. **Read the file** — understand its purpose, exports, contracts
37
+ 2. **Find callers** — what depends on this? (`grep`, `lsp_find_references`)
38
+ 3. **Read tests** — what behavior is expected?
39
+ 4. **Identify blast radius** — what could break downstream?
40
+
41
+ Ask yourself:
42
+ - What problem does this change solve?
43
+ - What assumptions does it make?
44
+ - What could go wrong that tests wouldn't catch?
45
+ - Are there edge cases the author likely didn't consider?
21
46
 
22
- ### 2) Detect Runtime + Command Strategy
47
+ ### 1.4 Understand System Context
48
+ - Read related files that interact with changed code
49
+ - Check schema/type definitions
50
+ - Understand data flow through the system
23
51
 
24
- - Detect package manager from lockfiles (`bun.lock`, `bun.lockb`, `pnpm-lock.yaml`, `yarn.lock`, else npm).
25
- - Prefer project scripts from `package.json`.
26
- - If script is missing, use safe fallback command.
27
- - Do **not** skip a required gate.
52
+ ---
28
53
 
29
- ### 3) Run Required Verification Gates (All 4)
54
+ ## Phase 2: Run Verification Gates (All 4)
30
55
 
31
56
  Run all gates even if earlier gates fail. Record status and key output for each.
32
57
 
58
+ ### Detect Package Manager
59
+ Detect from lockfiles: `bun.lock` / `bun.lockb` → bun, `pnpm-lock.yaml` → pnpm, `yarn.lock` → yarn, else npm. Prefer project scripts from `package.json`.
60
+
61
+ ### Gate Table
62
+
33
63
  | Gate | Preferred | Fallbacks | Required |
34
64
  |------|-----------|-----------|----------|
35
65
  | Typecheck | `<pm> run typecheck` | `tsc --noEmit` | Yes |
@@ -37,67 +67,121 @@ Run all gates even if earlier gates fail. Record status and key output for each.
37
67
  | Lint | `<pm> run lint` | `eslint .` | Yes |
38
68
  | Build | `<pm> run build` | `bun run build` | Yes |
39
69
 
40
- ### 4) Deep Review Pass (After Commands)
70
+ Do **not** skip a required gate. Always show command used + key output.
71
+
72
+ ---
73
+
74
+ ## Phase 3: Reasoning-Grade Code Review
75
+
76
+ This is not a checklist scan. This is **judgment** applied to real intent.
77
+
78
+ After understanding the system (Phase 1) and running commands (Phase 2), reason through:
41
79
 
42
- Review changed files and report findings by severity:
43
- - **Critical**: security/data-loss/corruption risk
44
- - **High**: correctness bug, broken acceptance criteria, major regression risk
45
- - **Medium**: edge-case gap, weak test coverage, maintainability risk
46
- - **Low**: clarity/style/doc polish
80
+ ### 3.1 Correctness
81
+ - Does the logic actually implement what it intends?
82
+ - Are there off-by-one errors, wrong conditions, inverted logic?
83
+ - Does it handle the failure path, not just the happy path?
84
+ - Trace through a concrete example — does it produce the right result?
47
85
 
48
- Review checklist:
49
- - Requirements and acceptance criteria alignment
50
- - Risky logic paths and edge cases
51
- - Security/privacy concerns
52
- - Missing or weak tests for changed behavior
53
- - Debug leftovers / temporary code
86
+ ### 3.2 Contracts and Invariants
87
+ - Are function signatures consistent with how callers use them?
88
+ - Are there silent contract violations (null where non-null expected, etc.)?
89
+ - Do types accurately represent the actual runtime values?
54
90
 
55
- ### 5) Output Format (Strict)
91
+ ### 3.3 Edge Cases and Boundaries
92
+ - Empty input, null, undefined, zero, large values?
93
+ - Concurrent access, race conditions, ordering dependencies?
94
+ - First run vs. subsequent runs — is state correctly initialized?
95
+
96
+ ### 3.4 Security and Privacy
97
+ - User-controlled input ever used without validation?
98
+ - Credentials, tokens, PII ever logged or exposed?
99
+ - File system, shell, or network operations with untrusted data?
100
+
101
+ ### 3.5 Test Quality
102
+ - Do tests test the actual behavior or just mock it?
103
+ - Are failure scenarios tested, or only happy paths?
104
+ - Would these tests catch a real regression?
105
+
106
+ ### 3.6 Accidental Complexity
107
+ - Debug code, console.logs, TODO comments left in?
108
+ - Temporary workarounds that became permanent?
109
+ - Logic that could be dramatically simpler?
110
+
111
+ ### Severity Classification
112
+
113
+ | Severity | Meaning |
114
+ |---|---|
115
+ | **Critical** | Security/data-loss/corruption risk, or broken contract with callers |
116
+ | **High** | Correctness bug, broken acceptance criteria, regression risk |
117
+ | **Medium** | Edge-case gap, weak tests, silent failure mode |
118
+ | **Low** | Clarity, naming, docs, minor style |
119
+
120
+ ---
121
+
122
+ ## Phase 4: Output Format (Strict)
56
123
 
57
124
  ```
58
125
  ## Verification Report
59
126
 
60
127
  ### Context
61
- - Changed files: [...]
128
+ - Changed files: [list with brief description of each change]
62
129
  - Constraints loaded: [AGENTS.md, ...]
63
130
  - Package manager: <pm>
131
+ - Impact chain: [what could be affected by these changes]
64
132
 
65
- | Gate | Status | Command Used | Details |
66
- |------------|--------|--------------------|---------|
67
- | Typecheck | ✅/❌ | ... | ... |
68
- | Tests | ✅/❌ | ... | ... |
69
- | Lint | ✅/❌ | ... | ... |
70
- | Build | ✅/❌ | ... | ... |
133
+ | Gate | Status | Command Used | Key Output |
134
+ |------------|--------|--------------------|------------|
135
+ | Typecheck | ✅/❌ | ... | ... |
136
+ | Tests | ✅/❌ | ... | ... |
137
+ | Lint | ✅/❌ | ... | ... |
138
+ | Build | ✅/❌ | ... | ... |
71
139
 
72
140
  ### Review Findings
141
+
73
142
  #### Critical
74
- - ...
143
+ - [file:line] Finding — **why this matters**, concrete impact
144
+
75
145
  #### High
76
- - ...
146
+ - [file:line] Finding — **why this matters**, concrete impact
147
+
77
148
  #### Medium
78
- - ...
149
+ - [file:line] Finding — edge case or gap
150
+
79
151
  #### Low
80
- - ...
152
+ - [file:line] Minor note
153
+
154
+ #### No Findings
155
+ - (explicitly state if clean at each severity level)
156
+
157
+ ### Reasoning Summary
158
+ [2–4 sentences: what is the overall quality of these changes? Does the intent match the implementation? What's the biggest risk?]
81
159
 
82
160
  ### Overall Verdict
83
161
  - PASS | FAIL
84
162
 
85
- ### Ship Recommendation
163
+ ### Audit Recommendation
86
164
  - SHIP_READY | CHANGES_REQUIRED | BLOCKED
87
165
 
88
166
  ### Required Fixes (if not SHIP_READY)
89
- 1. ...
167
+ 1. [Specific, actionable fix with file:line reference]
90
168
  2. ...
91
169
  ```
92
170
 
93
- ## Gate Rules
171
+ ---
172
+
173
+ ## Hard Rules
94
174
 
95
- - ✅ ALWAYS run all 4 required gates
96
- - ✅ ALWAYS read constraints before checks
175
+ - ✅ ALWAYS do Phase 1 (deep comprehension) before running commands
176
+ - ✅ ALWAYS run all 4 gates even if earlier ones fail
97
177
  - ✅ ALWAYS include command used + key output per gate
98
- - ✅ ALWAYS include severity-ranked review findings
178
+ - ✅ ALWAYS show concrete reasoning, not just "this might fail"
179
+ - ✅ ALWAYS cite file:line for every finding
180
+ - ✅ ALWAYS write a Reasoning Summary with real judgment
99
181
  - ❌ NEVER auto-fix unless user explicitly asks
100
182
  - ❌ NEVER mark PASS if any required gate fails
101
- - ❌ NEVER mark SHIP_READY when Critical/High findings exist
183
+ - ❌ NEVER mark SHIP_READY when Critical or High findings exist
184
+ - ❌ NEVER produce findings without evidence — trace the code first
185
+ - ❌ NEVER skip Phase 1 to save time — understanding is the whole point
102
186
 
103
- Now, running deep verification...
187
+ Now, begin Phase 1: deep comprehension...