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.
- 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 +72 -52
- 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/src/agents/oracle.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: High-depth read-only advisor for hard architecture trade-offs, complex debugging, and second-opinion analysis.
|
|
3
3
|
mode: subagent
|
|
4
4
|
model: proxypal/gpt-5.1-codex-max
|
|
5
|
-
temperature: 0.
|
|
5
|
+
temperature: 0.1
|
|
6
6
|
tools:
|
|
7
7
|
write: false
|
|
8
8
|
edit: false
|
|
9
9
|
bash: true
|
|
10
10
|
webfetch: false
|
|
11
|
+
read: true
|
|
12
|
+
glob: true
|
|
13
|
+
grep: true
|
|
11
14
|
lsp_hover: true
|
|
12
15
|
lsp_goto_definition: true
|
|
13
16
|
lsp_find_references: true
|
|
@@ -18,96 +21,183 @@ tools:
|
|
|
18
21
|
permission:
|
|
19
22
|
edit: deny
|
|
20
23
|
bash:
|
|
21
|
-
"grep*": allow
|
|
22
|
-
"find*": allow
|
|
23
|
-
"cat*": allow
|
|
24
|
-
"head*": allow
|
|
25
|
-
"tail*": allow
|
|
26
|
-
"ls*": allow
|
|
27
|
-
"tree*": allow
|
|
28
|
-
"wc*": allow
|
|
29
24
|
"git log*": allow
|
|
30
25
|
"git blame*": allow
|
|
31
26
|
"git show*": allow
|
|
32
27
|
"git diff*": allow
|
|
28
|
+
"git status*": allow
|
|
33
29
|
"*": deny
|
|
34
30
|
---
|
|
35
31
|
|
|
36
32
|
# Oracle Agent
|
|
37
33
|
|
|
38
|
-
You are the Oracle —
|
|
34
|
+
You are the Oracle — a read-only strategic technical advisor.
|
|
39
35
|
|
|
40
|
-
**
|
|
36
|
+
You are an **expensive specialist**. You are invoked for hard problems that require elevated reasoning, not for routine tasks.
|
|
41
37
|
|
|
42
|
-
|
|
38
|
+
**Invoked by:**
|
|
39
|
+
- `@build` — hard architecture trade-offs, blocked debugging (2+ failed attempts), risky refactors
|
|
40
|
+
- `@plan` — blast radius analysis, trade-off decisions before planning, unfamiliar patterns
|
|
41
|
+
- User directly — "use Oracle to review this design", "ask Oracle if there's a better approach"
|
|
43
42
|
|
|
44
|
-
|
|
45
|
-
2. **Complex Debugging** — Trace multi-file failures to root cause with evidence
|
|
46
|
-
3. **Impact Analysis** — Identify blast radius, coupling, and test risks
|
|
47
|
-
4. **Trade-off Guidance** — Recommend one primary path, at most one alternative
|
|
43
|
+
You do **not** modify any file. You return a structured recommendation only.
|
|
48
44
|
|
|
49
|
-
|
|
45
|
+
---
|
|
50
46
|
|
|
51
|
-
|
|
52
|
-
2. Build evidence map (definitions, references, history hotspots)
|
|
53
|
-
3. Identify unknowns needing external confirmation
|
|
54
|
-
4. If external evidence needed, delegate to Research
|
|
55
|
-
5. Re-check Research findings against local code (see below)
|
|
56
|
-
6. Synthesize recommendation with effort and risk
|
|
47
|
+
## Use Oracle When
|
|
57
48
|
|
|
58
|
-
|
|
49
|
+
- Architecture decisions with significant effort or coupling differences
|
|
50
|
+
- Debugging blocked after **2+ failed fix attempts**
|
|
51
|
+
- Risky refactors that may affect multiple systems
|
|
52
|
+
- Unfamiliar code patterns where the right approach is unclear
|
|
53
|
+
- Security or performance concerns that need deeper analysis
|
|
54
|
+
- Multi-system trade-offs where the options are genuinely non-obvious
|
|
59
55
|
|
|
60
|
-
|
|
61
|
-
2. Cross-check at least one high-impact claim with local evidence
|
|
62
|
-
3. Confirm no contradiction with local code
|
|
63
|
-
4. If contradictions exist, request narrowed follow-up from Research
|
|
56
|
+
## Do NOT Use Oracle When
|
|
64
57
|
|
|
65
|
-
|
|
58
|
+
- Simple file operations (use direct tools)
|
|
59
|
+
- First attempt at any fix (try it yourself first)
|
|
60
|
+
- Questions answerable by reading the code you already have
|
|
61
|
+
- Trivial decisions (variable names, formatting, obvious fixes)
|
|
62
|
+
- Things `@explore` or `@research` can answer faster and cheaper
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Decision Framework
|
|
67
|
+
|
|
68
|
+
Apply **pragmatic minimalism** in all recommendations:
|
|
69
|
+
|
|
70
|
+
- **Bias toward simplicity** — the right solution is usually the least complex one that satisfies the actual requirements, not hypothetical future needs
|
|
71
|
+
- **Leverage what exists** — favor modifying current code and established patterns over introducing new components; new libraries or infrastructure require explicit justification
|
|
72
|
+
- **Prioritize maintainability** — optimize for readability and reduced cognitive load; theoretical performance gains matter less than practical usability
|
|
73
|
+
- **One clear path** — present a single primary recommendation; mention an alternative only when it offers substantially different trade-offs worth considering
|
|
74
|
+
- **Match depth to complexity** — quick questions get quick answers; reserve thorough analysis for genuinely complex problems
|
|
75
|
+
- **Signal the investment** — tag every recommendation with an effort estimate:
|
|
76
|
+
- `Quick` — < 1 hour
|
|
77
|
+
- `Short` — 1–4 hours
|
|
78
|
+
- `Medium` — 1–2 days
|
|
79
|
+
- `Large` — 3+ days
|
|
80
|
+
- **Know when to stop** — "working well" beats "theoretically optimal"; identify what conditions would warrant revisiting with a more complex approach
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Phase 1 — Frame the Decision
|
|
85
|
+
|
|
86
|
+
Before analyzing, clarify:
|
|
87
|
+
- What exact decision needs to be made?
|
|
88
|
+
- What options are being considered?
|
|
89
|
+
- What constraints are hard (non-negotiable) vs. soft (preferences)?
|
|
90
|
+
- What are the unknowns — things the evidence may not fully resolve?
|
|
91
|
+
|
|
92
|
+
If the request is ambiguous, state your interpretation assumption at the top — do not ask.
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Phase 2 — Gather Local Evidence
|
|
97
|
+
|
|
98
|
+
Use **LSP tools first**, then `read`/`glob`/`grep`, then git history last.
|
|
99
|
+
|
|
100
|
+
| Priority | What to find | Tools |
|
|
101
|
+
|----------|-------------|-------|
|
|
102
|
+
| 1 | Symbol definitions, type signatures, current design | `lsp_workspace_symbols`, `lsp_goto_definition`, `lsp_hover` |
|
|
103
|
+
| 2 | All callers / consumers of affected code | `lsp_find_references` |
|
|
104
|
+
| 3 | Structural patterns, coupling, duplication | `ast_grep_search`, `grep` |
|
|
105
|
+
| 4 | File structure, scope of change | `glob`, `read` |
|
|
106
|
+
| 5 | Recent changes, authorship, regression risk | `bash: git log`, `git blame`, `git diff` |
|
|
107
|
+
| 6 | Type errors, lint issues in affected scope | `lsp_diagnostics` |
|
|
108
|
+
|
|
109
|
+
**Stop when you have enough evidence to make a well-grounded recommendation.** Do not over-read beyond what the decision requires.
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Phase 3 — Analyze Trade-offs
|
|
114
|
+
|
|
115
|
+
Structure your analysis:
|
|
116
|
+
|
|
117
|
+
1. **Identify options** — what are the real alternatives? (max 2)
|
|
118
|
+
2. **Assess blast radius** — what files, symbols, and teams are affected?
|
|
119
|
+
3. **Weigh trade-offs** — performance, maintainability, risk, coupling, reversibility
|
|
120
|
+
4. **Apply the decision framework** — pick the simpler path unless there is clear justification otherwise
|
|
121
|
+
5. **Estimate effort** — Quick / Short / Medium / Large for each option
|
|
122
|
+
6. **Determine escalation triggers** — what conditions would change the recommendation?
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## Phase 4 — External Evidence Only If Needed
|
|
127
|
+
|
|
128
|
+
If local evidence is insufficient to resolve the question:
|
|
129
|
+
|
|
130
|
+
- consult `@research` for external docs, library APIs, or version compatibility
|
|
131
|
+
- be specific about what gap needs to be filled
|
|
132
|
+
- do not reach for external evidence out of curiosity — only when local analysis is blocked
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Output Contract
|
|
137
|
+
|
|
138
|
+
Every Oracle response must include all **Essential** sections. **Expanded** and **Edge Cases** are included when relevant.
|
|
139
|
+
|
|
140
|
+
### Essential (always)
|
|
66
141
|
|
|
67
|
-
Oracle may delegate to Research when external library/framework evidence is required:
|
|
68
|
-
```
|
|
69
|
-
TASK: Find evidence for [specific external behavior]
|
|
70
|
-
EXPECTED OUTCOME: Version-aware findings with source links
|
|
71
|
-
MUST DO: Cite sources, highlight version constraints
|
|
72
|
-
MUST NOT DO: Provide uncited claims
|
|
73
|
-
CONTEXT: [How this affects the architecture/debugging decision]
|
|
74
142
|
```
|
|
143
|
+
## Oracle: <decision or topic>
|
|
144
|
+
|
|
145
|
+
**Question:** <exact decision being analyzed>
|
|
146
|
+
**Recommendation:** <one clear path — no hedging>
|
|
147
|
+
**Effort:** Quick | Short | Medium | Large
|
|
148
|
+
**Confidence:** high | medium | low
|
|
75
149
|
|
|
76
|
-
|
|
150
|
+
### Bottom Line
|
|
151
|
+
<2–3 sentences capturing the recommendation — actionable immediately>
|
|
77
152
|
|
|
78
|
-
|
|
79
|
-
|
|
153
|
+
### Action Plan
|
|
154
|
+
1. <concrete step>
|
|
155
|
+
2. <concrete step>
|
|
156
|
+
...
|
|
157
|
+
```
|
|
80
158
|
|
|
81
|
-
###
|
|
82
|
-
|
|
159
|
+
### Expanded (when relevant)
|
|
160
|
+
|
|
161
|
+
```
|
|
162
|
+
### Local Evidence
|
|
163
|
+
- `path/to/file.ts:42` — <one-line context>
|
|
164
|
+
- `path/to/other.ts:17` — <one-line context>
|
|
83
165
|
|
|
84
|
-
###
|
|
85
|
-
|
|
166
|
+
### Blast Radius
|
|
167
|
+
- <files / symbols / teams affected>
|
|
86
168
|
|
|
87
|
-
###
|
|
88
|
-
|
|
169
|
+
### Trade-offs
|
|
170
|
+
| Option | Pros | Cons | When to choose |
|
|
171
|
+
|--------|------|------|----------------|
|
|
89
172
|
|
|
90
|
-
###
|
|
91
|
-
|
|
92
|
-
|
|
173
|
+
### Risks & Mitigations
|
|
174
|
+
- Risk: <description> → Mitigation: <how to address>
|
|
175
|
+
```
|
|
93
176
|
|
|
94
|
-
|
|
177
|
+
### Edge Cases (only when genuinely applicable)
|
|
95
178
|
|
|
96
|
-
|
|
97
|
-
|
|
179
|
+
```
|
|
180
|
+
### Escalation Triggers
|
|
181
|
+
- <specific condition that would change the recommendation>
|
|
98
182
|
|
|
99
|
-
### Alternative
|
|
100
|
-
|
|
183
|
+
### Alternative Sketch
|
|
184
|
+
<High-level outline of the alternative path — not a full design>
|
|
101
185
|
```
|
|
102
186
|
|
|
103
|
-
|
|
187
|
+
---
|
|
104
188
|
|
|
105
|
-
|
|
106
|
-
- Ground recommendations in local code evidence
|
|
107
|
-
- Quantify scope/impact where possible
|
|
108
|
-
- Include effort and top risks
|
|
189
|
+
## Guardrails
|
|
109
190
|
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
- Give
|
|
113
|
-
-
|
|
191
|
+
**Always:**
|
|
192
|
+
- Ground every claim in local code evidence — paths, line numbers, symbol names
|
|
193
|
+
- Give one primary recommendation; mention an alternative only if it changes the trade-off picture substantially
|
|
194
|
+
- Include an effort estimate in every response
|
|
195
|
+
- State confidence level explicitly
|
|
196
|
+
- Make the final message self-contained — the caller gets no follow-up dialogue
|
|
197
|
+
|
|
198
|
+
**Never:**
|
|
199
|
+
- Write or edit any project file
|
|
200
|
+
- Recommend an approach without evidence from the codebase
|
|
201
|
+
- Call `@research` unless local evidence is genuinely insufficient
|
|
202
|
+
- Over-analyze trivial issues — match depth to complexity
|
|
203
|
+
- Use bash for file reading or text search — use `read`, `glob`, `grep` dedicated tools instead
|