clikit-plugin 0.2.45 → 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.
- package/AGENTS.md +69 -3
- package/README.md +128 -92
- package/command/commit.md +1 -1
- package/command/create.md +65 -8
- package/command/debug.md +1 -1
- package/command/design.md +183 -43
- package/command/handoff.md +1 -1
- package/command/import-plan.md +2 -2
- package/command/init.md +1 -1
- package/command/issue.md +3 -4
- package/command/pr.md +1 -1
- package/command/research.md +5 -7
- package/command/resume.md +1 -1
- package/command/ship.md +29 -32
- package/command/start.md +38 -27
- package/command/{status-beads.md → status.md} +2 -3
- package/command/verify.md +132 -48
- package/dist/.tsbuildinfo +1 -1
- package/dist/agents/index.d.ts +0 -0
- package/dist/agents/index.d.ts.map +0 -0
- package/dist/beads-context.test.d.ts +2 -0
- package/dist/beads-context.test.d.ts.map +1 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.d.ts.map +0 -0
- package/dist/cli.js +5 -0
- package/dist/cli.test.d.ts +0 -0
- package/dist/cli.test.d.ts.map +0 -0
- package/dist/clikit.schema.json +32 -11
- package/dist/clilog.test.d.ts +0 -0
- package/dist/clilog.test.d.ts.map +0 -0
- package/dist/commands/index.d.ts +0 -0
- package/dist/commands/index.d.ts.map +0 -0
- package/dist/config.d.ts +15 -7
- package/dist/config.d.ts.map +1 -1
- package/dist/config.test.d.ts +0 -0
- package/dist/config.test.d.ts.map +0 -0
- package/dist/hooks/beads-context.d.ts +2 -0
- package/dist/hooks/beads-context.d.ts.map +1 -1
- package/dist/hooks/empty-message-sanitizer.d.ts +0 -0
- package/dist/hooks/empty-message-sanitizer.d.ts.map +0 -0
- package/dist/hooks/error-logger.d.ts +0 -0
- package/dist/hooks/error-logger.d.ts.map +0 -0
- package/dist/hooks/git-guard.d.ts +0 -0
- package/dist/hooks/git-guard.d.ts.map +0 -0
- package/dist/hooks/index.d.ts +0 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/memory-digest.d.ts +1 -0
- package/dist/hooks/memory-digest.d.ts.map +1 -1
- package/dist/hooks/security-check.d.ts +0 -0
- package/dist/hooks/security-check.d.ts.map +0 -0
- package/dist/hooks/subagent-question-blocker.d.ts +0 -0
- package/dist/hooks/subagent-question-blocker.d.ts.map +0 -0
- package/dist/hooks/todo-beads-sync.d.ts +1 -0
- package/dist/hooks/todo-beads-sync.d.ts.map +1 -1
- package/dist/hooks/todo-enforcer.d.ts +1 -1
- package/dist/hooks/todo-enforcer.d.ts.map +1 -1
- package/dist/hooks/truncator.d.ts +0 -0
- package/dist/hooks/truncator.d.ts.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +250 -576
- package/dist/skills/index.d.ts +0 -0
- package/dist/skills/index.d.ts.map +0 -0
- package/dist/tools/cass-memory.d.ts +0 -0
- package/dist/tools/cass-memory.d.ts.map +0 -0
- package/dist/tools/context-summary.d.ts +0 -0
- package/dist/tools/context-summary.d.ts.map +0 -0
- package/dist/tools/index.d.ts +0 -3
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/memory-db.d.ts +0 -0
- package/dist/tools/memory-db.d.ts.map +0 -0
- package/dist/tools/memory.d.ts +0 -0
- package/dist/tools/memory.d.ts.map +0 -0
- package/dist/tools/observation.d.ts +0 -0
- package/dist/tools/observation.d.ts.map +0 -0
- package/dist/types.d.ts +0 -0
- package/dist/types.d.ts.map +0 -0
- package/memory/_digest.md +1 -1
- package/memory/_templates/handoff.md +0 -0
- package/memory/_templates/plan.md +35 -0
- package/memory/_templates/prd.md +0 -0
- package/memory/_templates/research.md +0 -0
- package/memory/_templates/review.md +0 -0
- package/memory/_templates/spec.md +12 -0
- package/memory/beads/.gitkeep +0 -0
- package/memory/handoffs/.gitkeep +0 -0
- package/memory/memory.db +0 -0
- package/memory/plans/.gitkeep +0 -0
- package/memory/prds/.gitkeep +0 -0
- package/memory/research/.gitkeep +0 -0
- package/memory/reviews/.gitkeep +0 -0
- package/memory/specs/.gitkeep +0 -0
- package/package.json +4 -4
- package/skill/beads/SKILL.md +42 -43
- package/skill/beads/mcp.json +26 -0
- package/skill/beads/references/api-reference.md +64 -0
- package/skill/chrome-devtools/SKILL.md +22 -23
- package/skill/chrome-devtools/mcp.json +17 -0
- package/skill/chrome-devtools/references/tool-reference.md +63 -0
- package/skill/condition-based-waiting/SKILL.md +28 -66
- package/skill/deep-research/SKILL.md +34 -103
- package/skill/deep-research/mcp.json +21 -0
- package/skill/deep-research/references/lsp-ops.md +44 -0
- package/skill/defense-in-depth/SKILL.md +29 -69
- package/skill/executing-plans/SKILL.md +25 -34
- package/skill/finishing-a-development-branch/SKILL.md +28 -89
- package/skill/playwright/SKILL.md +27 -22
- package/skill/playwright/mcp.json +20 -0
- package/skill/playwright/references/tool-reference.md +64 -0
- package/skill/receiving-code-review/SKILL.md +16 -27
- package/skill/requesting-code-review/SKILL.md +22 -26
- package/skill/ritual-workflow/SKILL.md +22 -82
- package/skill/root-cause-tracing/SKILL.md +30 -54
- package/skill/session-management/SKILL.md +21 -40
- package/skill/source-code-research/SKILL.md +33 -102
- package/skill/source-code-research/mcp.json +13 -0
- package/skill/source-code-research/references/quick-ref.md +65 -0
- package/skill/systematic-debugging/SKILL.md +28 -41
- package/skill/systematic-debugging/references/patterns.md +71 -0
- package/skill/test-driven-development/SKILL.md +16 -40
- package/skill/testing-anti-patterns/SKILL.md +36 -64
- package/skill/testing-anti-patterns/references/decision-matrix.md +55 -0
- package/skill/using-git-worktrees/SKILL.md +27 -103
- package/skill/vercel-react-best-practices/SKILL.md +50 -139
- package/skill/vercel-react-best-practices/references/patterns.md +70 -0
- package/skill/verification-before-completion/SKILL.md +19 -37
- package/skill/writing-plans/SKILL.md +20 -32
- package/skill/writing-skills/SKILL.md +52 -41
- package/skill/writing-skills/references/skill-anatomy.md +210 -0
- package/src/agents/AGENTS.md +48 -18
- package/src/agents/build.md +342 -93
- package/src/agents/explore.md +77 -60
- package/src/agents/index.ts +0 -0
- package/src/agents/oracle.md +153 -63
- package/src/agents/plan.md +275 -110
- package/src/agents/research.md +71 -53
- package/src/agents/review.md +182 -61
- package/src/agents/vision.md +7 -5
- package/command/plan.md +0 -152
- package/command/review-codebase.md +0 -228
- package/command/review.md +0 -135
- package/command/vision.md +0 -210
- package/dist/hooks/swarm-enforcer.d.ts +0 -31
- package/dist/hooks/swarm-enforcer.d.ts.map +0 -1
- package/dist/tools/beads-memory-sync.d.ts +0 -17
- package/dist/tools/beads-memory-sync.d.ts.map +0 -1
- package/dist/tools/quick-research.d.ts +0 -16
- package/dist/tools/quick-research.d.ts.map +0 -1
- package/dist/tools/swarm.d.ts +0 -57
- package/dist/tools/swarm.d.ts.map +0 -1
- package/skill/accessibility-audit/SKILL.md +0 -115
- package/skill/beads-bridge/SKILL.md +0 -45
- package/skill/brainstorming/SKILL.md +0 -41
- package/skill/cass-village/SKILL.md +0 -217
- package/skill/cloudflare/SKILL.md +0 -96
- package/skill/design-system-audit/SKILL.md +0 -136
- package/skill/development-lifecycle/SKILL.md +0 -58
- package/skill/dispatching-parallel-agents/SKILL.md +0 -94
- package/skill/figma/SKILL.md +0 -34
- package/skill/frontend-aesthetics/SKILL.md +0 -63
- package/skill/gemini-large-context/SKILL.md +0 -80
- package/skill/mockup-to-code/SKILL.md +0 -98
- package/skill/mqdh/SKILL.md +0 -54
- package/skill/notebooklm/SKILL.md +0 -71
- package/skill/playwriter/SKILL.md +0 -56
- package/skill/polar/SKILL.md +0 -39
- package/skill/resend/SKILL.md +0 -85
- package/skill/sharing-skills/SKILL.md +0 -50
- package/skill/subagent-driven-development/SKILL.md +0 -69
- package/skill/supabase/SKILL.md +0 -80
- package/skill/supabase-postgres-best-practices/SKILL.md +0 -168
- package/skill/swarm-coordination/SKILL.md +0 -54
- package/skill/testing-skills-with-subagents/SKILL.md +0 -102
- package/skill/ui-ux-research/SKILL.md +0 -93
- package/skill/v0/SKILL.md +0 -67
- package/skill/v1-run/SKILL.md +0 -85
- package/skill/visual-analysis/SKILL.md +0 -113
package/command/verify.md
CHANGED
|
@@ -1,35 +1,65 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
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
|
-
##
|
|
8
|
+
## Philosophy
|
|
10
9
|
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
###
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
-
|
|
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
|
-
|
|
49
|
-
-
|
|
50
|
-
-
|
|
51
|
-
-
|
|
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
|
-
###
|
|
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 |
|
|
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
|
-
###
|
|
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
|
-
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## Hard Rules
|
|
94
174
|
|
|
95
|
-
- ✅ ALWAYS
|
|
96
|
-
- ✅ ALWAYS
|
|
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
|
|
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
|
|
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,
|
|
187
|
+
Now, begin Phase 1: deep comprehension...
|