opencodekit 0.23.3 → 0.23.4

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 (41) hide show
  1. package/README.md +7 -14
  2. package/dist/index.js +1 -1
  3. package/dist/template/.opencode/AGENTS.md +89 -17
  4. package/dist/template/.opencode/README.md +43 -6
  5. package/dist/template/.opencode/artifacts/harness-workflows/plan.md +317 -0
  6. package/dist/template/.opencode/command/audit.md +65 -0
  7. package/dist/template/.opencode/command/init.md +19 -2
  8. package/dist/template/.opencode/command/research.md +67 -16
  9. package/dist/template/.opencode/command/ship.md +55 -5
  10. package/dist/template/.opencode/command/verify.md +5 -5
  11. package/dist/template/.opencode/opencode.json +12 -0
  12. package/dist/template/.opencode/plugin/README.md +0 -6
  13. package/dist/template/.opencode/skill/defense-in-depth/SKILL.md +0 -2
  14. package/dist/template/.opencode/skill/development-lifecycle/SKILL.md +11 -9
  15. package/dist/template/.opencode/skill/manifest.json +77 -0
  16. package/dist/template/.opencode/workflows/audit-pattern.md +51 -0
  17. package/dist/template/.opencode/workflows/batch-implement.md +82 -0
  18. package/dist/template/.opencode/workflows/deep-research.md +58 -0
  19. package/dist/template/.opencode/workflows/development-lifecycle-workflow.md +129 -0
  20. package/package.json +1 -1
  21. package/dist/template/.opencode/command/clarify.md +0 -46
  22. package/dist/template/.opencode/command/commit.md +0 -53
  23. package/dist/template/.opencode/command/design.md +0 -129
  24. package/dist/template/.opencode/command/explore.md +0 -169
  25. package/dist/template/.opencode/command/improve-architecture.md +0 -55
  26. package/dist/template/.opencode/command/pr.md +0 -148
  27. package/dist/template/.opencode/command/refactor.md +0 -65
  28. package/dist/template/.opencode/command/review-codebase.md +0 -128
  29. package/dist/template/.opencode/command/test.md +0 -66
  30. package/dist/template/.opencode/command/ui-review.md +0 -109
  31. package/dist/template/.opencode/opencodex-fast.jsonc +0 -3
  32. package/dist/template/.opencode/plugin/rtk.ts +0 -43
  33. package/dist/template/.opencode/skill/agent-teams/SKILL.md +0 -268
  34. package/dist/template/.opencode/skill/code-navigation/SKILL.md +0 -142
  35. package/dist/template/.opencode/skill/condition-based-waiting/SKILL.md +0 -135
  36. package/dist/template/.opencode/skill/condition-based-waiting/example.ts +0 -171
  37. package/dist/template/.opencode/skill/context-engineering/SKILL.md +0 -176
  38. package/dist/template/.opencode/skill/memory-system/SKILL.md +0 -147
  39. package/dist/template/.opencode/skill/structured-edit/SKILL.md +0 -191
  40. package/dist/template/.opencode/skill/ubiquitous-language/SKILL.md +0 -184
  41. package/dist/template/.opencode/skill/v0/SKILL.md +0 -158
@@ -0,0 +1,65 @@
1
+ ---
2
+ description: Audit codebase for a specific pattern
3
+ argument-hint: "<pattern>"
4
+ agent: build
5
+ ---
6
+
7
+ # Audit: $ARGUMENTS
8
+
9
+ Find all occurrences of a code pattern in the codebase, review each for issues, and produce prioritized remediation recommendations.
10
+
11
+ > Use for cross-cutting concerns like auth checks, error handling, API patterns, or security vulnerabilities.
12
+
13
+ ## Parse Arguments
14
+
15
+ | Argument | Default | Description |
16
+ | -------- | -------- | ------------------------------------ |
17
+ | Pattern | required | Code pattern to search for |
18
+
19
+ **Examples:**
20
+ - `/audit console.log` — Find all console.log statements
21
+ - `/audit app.use(` — Find all middleware registrations
22
+ - `/audit fetch(` — Find all fetch calls
23
+ - `/audit try {` — Find all try-catch blocks
24
+
25
+ ## Execution
26
+
27
+ This command invokes the `audit-pattern` workflow for multi-agent parallel execution.
28
+
29
+ ### Workflow Execution
30
+
31
+ 1. **Read the workflow:** `.opencode/workflows/audit-pattern.md`
32
+ 2. **Execute all phases:**
33
+ - Phase 1: Spawn 1 @explore agent to discover all occurrences
34
+ - Phase 2: Spawn multiple @review agents (dynamic count based on occurrences)
35
+ - Phase 3: Spawn 1 @general agent to synthesize findings
36
+ 3. **Replace placeholders:**
37
+ - `{pattern}` → the pattern from $ARGUMENTS
38
+ - `{phase_N_output}` → actual output from completed phases
39
+ 4. **Aggregate results** between phases
40
+ 5. **Write final report** to `.opencode/artifacts/$(cat .opencode/artifacts/.active)/audit.md`
41
+
42
+ **Announce:** "Auditing codebase for pattern: [pattern]. Invoking audit-pattern workflow."
43
+
44
+ ## Output
45
+
46
+ Report:
47
+
48
+ 1. **Pattern:** [pattern searched]
49
+ 2. **Occurrences found:** [count]
50
+ 3. **Files affected:** [count]
51
+ 4. **Issues by severity:**
52
+ - Critical: [N]
53
+ - Important: [N]
54
+ - Minor: [N]
55
+ 5. **Recommended fixes:** [list with file:line refs]
56
+ 6. **Correct patterns:** [list of occurrences that are already correct]
57
+
58
+ ## Related Commands
59
+
60
+ | Need | Command |
61
+ | ----------------- | ------------- |
62
+ | Research a topic | `/research` |
63
+ | Create feature | `/create` |
64
+ | Ship feature | `/ship` |
65
+ | Verify gates | `/verify` |
@@ -9,7 +9,7 @@ agent: build
9
9
  Initialize project setup. Run once per project.
10
10
 
11
11
  > **Next step for fresh projects:** `/plan` to create first implementation plan.
12
- > **Next step for existing codebases:** `/review-codebase` for deep codebase analysis.
12
+ > **Next step for existing codebases:** `/research` for deep codebase analysis, or just start describing what you want to build.
13
13
 
14
14
  ## Idempotency Rules
15
15
 
@@ -293,4 +293,21 @@ Report what was created:
293
293
  2. tech-stack.md (if core setup ran)
294
294
  3. roadmap.md + state.md (if `--context`)
295
295
  4. user.md (if `--user`)
296
- 5. Recommended next command: `/plan`, `/review-codebase`, or `/resume`
296
+ 5. Recommended next command: `/plan` to start planning, `/research` to explore the codebase, or just describe what you want to build.
297
+
298
+ ---
299
+
300
+ ### Skill Installation
301
+
302
+ If you use a platform-specific technology, install the matching skill:
303
+
304
+ ```
305
+ .opencode/scripts/install-skill.sh cloudflare
306
+ .opencode/scripts/install-skill.sh react-best-practices
307
+ .opencode/scripts/install-skill.sh supabase-postgres-best-practices
308
+ .opencode/scripts/install-skill.sh swiftui-expert-skill
309
+ .opencode/scripts/install-skill.sh swift-concurrency
310
+ .opencode/scripts/install-skill.sh core-data-expert
311
+ ```
312
+
313
+ Run `.opencode/scripts/install-skill.sh --list` to see all available. Skills are on-demand — only install what your project actually needs.
@@ -10,7 +10,56 @@ Gather information before implementation. Find answers, document findings, stop
10
10
 
11
11
  > Research can happen at any phase when you need external information or codebase understanding.
12
12
 
13
- ## Parse Arguments
13
+ ## Complexity Detection
14
+
15
+ Before starting, analyze the research topic complexity:
16
+
17
+ **Simple research** (execute directly):
18
+ - Single factual question
19
+ - One specific API or library
20
+ - Narrow scope with clear boundaries
21
+ - Example: "How does React useEffect work?"
22
+
23
+ **Complex research** (invoke workflow):
24
+ - Multi-angle topic requiring cross-checking
25
+ - Broad scope with multiple perspectives
26
+ - Requires verification from multiple sources
27
+ - Example: "What are the best practices for authentication in 2026?"
28
+
29
+ ### Decision Logic
30
+
31
+ 1. **Parse the topic** from $ARGUMENTS
32
+ 2. **Assess complexity:**
33
+ - Contains "best practices", "compare", "approaches", "strategies" → Complex
34
+ - Contains "how does", "what is", "explain" → Simple
35
+ - Topic spans multiple domains or technologies → Complex
36
+ - Topic is narrow and specific → Simple
37
+ 3. **Route accordingly:**
38
+ - Simple → Execute directly (see "Direct Execution" below)
39
+ - Complex → Invoke `deep-research` workflow (see "Workflow Execution" below)
40
+
41
+ ## Workflow Execution (Complex Research)
42
+
43
+ If complexity is detected as complex:
44
+
45
+ 1. **Read the workflow:** `.opencode/workflows/deep-research.md`
46
+ 2. **Execute all phases:**
47
+ - Phase 1: Spawn multiple @scout agents (dynamic count based on angles)
48
+ - Phase 2: Spawn @review agents to cross-check findings
49
+ - Phase 3: Spawn 1 @general agent to synthesize report
50
+ 3. **Replace placeholders:**
51
+ - `{question}` → the research topic from $ARGUMENTS
52
+ - `{phase_N_output}` → actual output from completed phases
53
+ 4. **Aggregate results** between phases
54
+ 5. **Write final report** to `.opencode/artifacts/$(cat .opencode/artifacts/.active)/research.md`
55
+
56
+ **Announce:** "This is complex research requiring multi-angle analysis. Invoking deep-research workflow."
57
+
58
+ ## Direct Execution (Simple Research)
59
+
60
+ If complexity is simple, execute directly:
61
+
62
+ ### Parse Arguments
14
63
 
15
64
  | Argument | Default | Description |
16
65
  | ---------------- | -------- | ----------------------------------- |
@@ -20,7 +69,7 @@ Gather information before implementation. Find answers, document findings, stop
20
69
 
21
70
  Default depth: ~30 tool calls for moderate exploration.
22
71
 
23
- ## Before You Research
72
+ ### Before You Research
24
73
 
25
74
  - **Be certain**: Only research what you need for implementation
26
75
  - **Don't over-research**: Stop when you have enough to proceed
@@ -28,7 +77,7 @@ Default depth: ~30 tool calls for moderate exploration.
28
77
  - **Verify confidence**: Medium+ confidence required before stopping
29
78
  - **Document findings**: Write to `.opencode/artifacts/$(cat .opencode/artifacts/.active)/research.md` or report directly
30
79
 
31
- ## Available Tools
80
+ ### Available Tools
32
81
 
33
82
  | Tool | Use When |
34
83
  | ------------ | ------------------------------- |
@@ -39,17 +88,17 @@ Default depth: ~30 tool calls for moderate exploration.
39
88
  | `codesearch` | Real-world usage examples |
40
89
  | `grepsearch` | GitHub code search |
41
90
 
42
- ## Phase 1: Load Context
91
+ ### Phase 1: Load Context
43
92
 
44
93
  Read `.opencode/artifacts/$(cat .opencode/artifacts/.active)/spec.md` if it exists and extract questions that need answering.
45
94
 
46
- ### Memory Search (Required)
95
+ #### Memory Search (Required)
47
96
 
48
97
  Search memory for existing findings. Use them to: skip already-answered questions, narrow scope to gaps only, avoid contradicting prior decisions without justification.
49
98
 
50
- ## Phase 2: Research
99
+ ### Phase 2: Research
51
100
 
52
- ### Source Priority
101
+ #### Source Priority
53
102
 
54
103
  1. **Codebase patterns** — delegate to `explore` agent for LSP analysis
55
104
  2. **Official docs** — `context7` for API references
@@ -57,7 +106,7 @@ Search memory for existing findings. Use them to: skip already-answered question
57
106
  4. **GitHub examples** — `codesearch` / `grepsearch` for real-world patterns
58
107
  5. **Web search** — only if tiers 1-4 don't answer
59
108
 
60
- ### Delegation
109
+ #### Delegation
61
110
 
62
111
  | What | Agent | When |
63
112
  | ----------------- | ---------------------------- | -------------------------------------- |
@@ -65,20 +114,20 @@ Search memory for existing findings. Use them to: skip already-answered question
65
114
  | External docs | `scout` (this agent) | Library APIs, best practices |
66
115
  | Multiple domains | Parallel `explore` + `scout` | 3+ independent questions |
67
116
 
68
- ### Confidence Levels
117
+ #### Confidence Levels
69
118
 
70
119
  - **High**: Multiple authoritative sources agree, verified in codebase
71
120
  - **Medium**: Single good source, plausible but unverified
72
121
  - **Low**: Conflicting info, speculation — discard without corroboration
73
122
 
74
- ## Phase 3: Stop When
123
+ ### Phase 3: Stop When
75
124
 
76
125
  - All questions answered with medium+ confidence
77
126
  - Tool budget exhausted for depth level
78
127
  - Last 5 tool calls yielded no new insights
79
128
  - Blocked and need human input
80
129
 
81
- ## Phase 4: Document
130
+ ### Phase 4: Document
82
131
 
83
132
  Write findings to `.opencode/artifacts/$(cat .opencode/artifacts/.active)/research.md` (if plan exists) or report directly (if topic):
84
133
 
@@ -91,11 +140,12 @@ Write findings to `.opencode/artifacts/$(cat .opencode/artifacts/.active)/resear
91
140
 
92
141
  Report:
93
142
 
94
- 1. Depth level and tool call count
95
- 2. Questions with answer status and confidence
96
- 3. Key insights (bullet points)
97
- 4. Open items remaining
98
- 5. Next step suggestion
143
+ 1. **Execution mode:** Direct or Workflow
144
+ 2. Depth level and tool call count (if direct)
145
+ 3. Questions with answer status and confidence
146
+ 4. Key insights (bullet points)
147
+ 5. Open items remaining
148
+ 6. Next step suggestion
99
149
 
100
150
  ## Related Commands
101
151
 
@@ -104,3 +154,4 @@ Report:
104
154
  | Create + start | `/create` |
105
155
  | Plan details | `/plan <id>` |
106
156
  | Pick up work | `/ship <id>` |
157
+ | Audit codebase | `/audit` |
@@ -56,6 +56,53 @@ Set up the workspace: create branch, install deps if needed.
56
56
 
57
57
  ## Phase 2: Route to Execution
58
58
 
59
+ ### Complexity Detection
60
+
61
+ Before routing, analyze the plan complexity:
62
+
63
+ **Direct execution** (use existing logic):
64
+ - Plan has <5 tasks
65
+ - Tasks have dependencies (not fully independent)
66
+ - Tasks require sequential execution
67
+ - User explicitly requests sequential execution
68
+
69
+ **Workflow execution** (invoke `batch-implement`):
70
+ - Plan has ≥5 independent tasks
71
+ - Tasks have no file conflicts
72
+ - Tasks can run in parallel
73
+ - User wants maximum parallelism
74
+
75
+ ### Decision Logic
76
+
77
+ 1. **Parse the plan** from `.opencode/artifacts/$(cat .opencode/artifacts/.active)/plan.md` or `tasks.json`
78
+ 2. **Count independent tasks** (tasks with no dependencies)
79
+ 3. **Check for file conflicts** (do any tasks edit the same files?)
80
+ 4. **Route accordingly:**
81
+ - <5 tasks OR has dependencies OR has file conflicts → Direct execution (see "Direct Execution" below)
82
+ - ≥5 independent tasks AND no file conflicts → Invoke `batch-implement` workflow (see "Workflow Execution" below)
83
+
84
+ ### Workflow Execution (Parallel Implementation)
85
+
86
+ If complexity is detected as parallel:
87
+
88
+ 1. **Read the workflow:** `.opencode/workflows/batch-implement.md`
89
+ 2. **Execute all phases:**
90
+ - Phase 1: Spawn 1 @review agent to review plan for task independence
91
+ - Phase 2: Spawn multiple @general agents (1 per task, dynamic count)
92
+ - Phase 3: Spawn multiple @review agents to verify implementations
93
+ - Phase 4: Spawn 1 @general agent to merge results
94
+ 3. **Replace placeholders:**
95
+ - `{plan}` → the implementation plan
96
+ - `{phase_N_output}` → actual output from completed phases
97
+ 4. **Aggregate results** between phases
98
+ 5. **Continue to Phase 4: Verification** (skip Phase 3 below)
99
+
100
+ **Announce:** "This plan has [N] independent tasks. Invoking batch-implement workflow for parallel execution."
101
+
102
+ ### Direct Execution
103
+
104
+ If complexity is simple or tasks have dependencies, use the existing execution logic below.
105
+
59
106
  | Artifact exists in `.opencode/artifacts/$(cat .opencode/artifacts/.active)/` | Action |
60
107
  | --------------- | -------------------------------------------------------- |
61
108
  | `plan.md` | Parse plan header + dependency graph, execute wave-by-wave |
@@ -436,13 +483,16 @@ Report:
436
483
  - Overall assessment: [pass/needs work]
437
484
 
438
485
  6. **Next Steps:**
439
- - `/pr` to create pull request
486
+ - **Ask user** if they want a PR created from the current branch — always ask, never push without confirmation
440
487
  - Manual commits if not already done
441
488
  - Note deferred work in `.opencode/artifacts/todo.md`
442
489
 
443
490
  ## Related Commands
444
491
 
445
- | Need | Command |
446
- | ----------- | --------- |
447
- | Create spec | `/create` |
448
- | Create PR | `/pr` |
492
+ | Need | Command |
493
+ | ----------------- | ------------- |
494
+ | Create feature | `/create` |
495
+ | Plan execution | `/plan` |
496
+ | Research a topic | `/research` |
497
+ | Fix a bug | `/fix` |
498
+ | Verify gate | `/verify` |
@@ -158,8 +158,8 @@ observation({
158
158
 
159
159
  ## Related Commands
160
160
 
161
- | Need | Command |
162
- | ----------------- | ------------------ |
163
- | Ship after verify | `/ship <id>` |
164
- | Review code | `/review-codebase` |
165
- | Check status | `/status` |
161
+ | Need | Command |
162
+ | ----------------- | ------------- |
163
+ | Ship after verify | `/ship <id>` |
164
+ | Plan a feature | `/plan` |
165
+ | Fix a bug | `/fix` |
@@ -413,6 +413,18 @@
413
413
  },
414
414
  "reasoning": true,
415
415
  "tool_call": true
416
+ },
417
+ "qwen3.7-plus": {
418
+ "limit": {
419
+ "context": 300000,
420
+ "output": 64000
421
+ },
422
+ "modalities": {
423
+ "input": ["text", "image", "video"],
424
+ "output": ["text"]
425
+ },
426
+ "reasoning": true,
427
+ "tool_call": true
416
428
  }
417
429
  }
418
430
  },
@@ -10,7 +10,6 @@ plugin/
10
10
  ├── sessions.ts # Session search tools (find/read)
11
11
  ├── copilot-auth.ts # GitHub Copilot provider/auth integration
12
12
  ├── prompt-leverage.ts # Prompt pre-processing with structured execution framing
13
- ├── rtk.ts # Optional RTK command-output compression hook
14
13
  ├── session-summary.ts # Structured persistent session summary (artifact trail, decisions, anchored merge)
15
14
  ├── skill-mcp.ts # Skill-scoped MCP bridge (skill_mcp tools)
16
15
  └── lib/
@@ -65,11 +64,6 @@ plugin/
65
64
  - Upgrades user prompts with objective, context, tool rules, verification, and done criteria
66
65
  - Runs through `experimental.chat.messages.transform`
67
66
 
68
- - `rtk.ts`
69
- - Optional OpenCode hook for RTK command-output compression
70
- - Rewrites low-risk `bash`/`shell` commands through `rtk rewrite`
71
- - Keeps an idempotency guard for symlinked global/project config double-loading
72
-
73
67
  - `session-summary.ts`
74
68
  - Maintains a structured, incrementally-updated session summary that survives DCP compression cycles
75
69
  - **File-artifact tracking**: intercepts `read`, `edit`, `write`, `srcwalk_read` via `tool.execute.before` to track which files were read, modified, or created
@@ -172,5 +172,3 @@ All four layers were necessary. During testing, each layer caught bugs the other
172
172
  - Remove one validation layer — the next layer should still catch the error.
173
173
 
174
174
  ## See Also
175
-
176
- - **structured-edit** - Reliable read/verify/edit workflow when changing validation code across layers
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: development-lifecycle
3
- description: Orchestrates the full feature development lifecycle from ideation through verification. Guides through phases (brainstorm → design → specify → plan → implement → verify) and loads appropriate sub-skills at each stage.
4
- version: 1.0.0
5
- tags: [workflow, planning]
3
+ description: Single-agent guide through the full feature development lifecycle (brainstorm → design → specify → plan → implement → verify). For parallel multi-agent execution, use the development-lifecycle-workflow instead.
4
+ version: 1.1.0
5
+ tags: [planning, single-agent]
6
6
  dependencies:
7
7
  [
8
8
  brainstorming,
@@ -17,25 +17,27 @@ dependencies:
17
17
 
18
18
  ---
19
19
 
20
- # Development Lifecycle Orchestration
20
+ # Development Lifecycle Guide (Single-Agent)
21
21
 
22
22
  ## When to Use
23
23
 
24
- - Starting a new feature, migration, or refactor and need the full end-to-end workflow
25
- - You want phase-by-phase guidance with the correct sub-skill at each stage
24
+ - Starting a new feature, migration, or refactor and need phase-by-phase guidance
25
+ - Working alone or with a single agent through the full lifecycle
26
+ - You want to load appropriate sub-skills at each stage
26
27
 
27
28
  ## When NOT to Use
28
29
 
30
+ - You need parallel multi-agent execution (use `development-lifecycle-workflow` instead)
29
31
  - You are already mid-phase and only need a specific sub-skill
30
32
  - The change is trivial and can skip the full lifecycle
31
33
 
32
34
  ## Overview
33
35
 
34
- This skill orchestrates the complete feature development workflow, guiding you through each phase and loading the appropriate sub-skills automatically.
36
+ This skill guides a single agent through the complete feature development workflow, loading the appropriate sub-skills at each phase.
35
37
 
36
- **Note:** For quick skill routing by intent, see the Intent Skill Mapping table in `AGENTS.md`. This skill is for full end-to-end orchestration when you need phase-by-phase guidance.
38
+ **Note:** For parallel multi-agent execution with specialized agents (scouts, reviewers, planners), use the `development-lifecycle-workflow` in `.opencode/workflows/`.
37
39
 
38
- **Use when:** Starting any new feature, migration, refactor, or significant change.
40
+ **Use when:** Starting any new feature, migration, refactor, or significant change with a single agent.
39
41
 
40
42
  **Announce at start:** "I'm using development-lifecycle to guide this work through all phases."
41
43
 
@@ -0,0 +1,77 @@
1
+ {
2
+ "version": 1,
3
+ "description": "OpenCodeKit skill tier classification. Tiers determine visibility and loading strategy.",
4
+ "tiers": {
5
+ "1": {
6
+ "label": "Essential",
7
+ "description": "Always available — referenced in AGENTS.md, agents should consider these first for every task. Small, general-purpose skills that shape execution discipline.",
8
+ "skills": [
9
+ "behavioral-kernel",
10
+ "defense-in-depth",
11
+ "incremental-implementation",
12
+ "verification-before-completion"
13
+ ]
14
+ },
15
+ "2": {
16
+ "label": "On-Demand",
17
+ "description": "Shipped with the template, loaded via `skill()` when relevant. Covers most domains — UI, testing, debugging, design, workflow, platform integration.",
18
+ "skills": [
19
+ "accessibility-audit",
20
+ "agent-code-quality-gate",
21
+ "api-and-interface-design",
22
+ "brainstorming",
23
+ "browser-testing-with-devtools",
24
+ "chrome-devtools",
25
+ "ci-cd-and-automation",
26
+ "cloudflare",
27
+ "code-cleanup",
28
+ "code-review-and-quality",
29
+ "core-data-expert",
30
+ "debugging-and-error-recovery",
31
+ "deep-module-design",
32
+ "deprecation-and-migration",
33
+ "design-system-audit",
34
+ "design-taste-frontend",
35
+ "development-lifecycle",
36
+ "documentation-and-adrs",
37
+ "fallow",
38
+ "figma",
39
+ "frontend-design",
40
+ "gemini-large-context",
41
+ "git-workflow-and-versioning",
42
+ "grill-me",
43
+ "high-end-visual-design",
44
+ "industrial-brutalist-ui",
45
+ "jira",
46
+ "minimalist-ui",
47
+ "mockup-to-code",
48
+ "opensrc",
49
+ "pdf-extract",
50
+ "performance-optimization",
51
+ "planning-and-task-breakdown",
52
+ "playwright",
53
+ "polar",
54
+ "react-best-practices",
55
+ "redesign-existing-projects",
56
+ "resend",
57
+ "root-cause-tracing",
58
+ "security-and-hardening",
59
+ "shipping-and-launch",
60
+ "source-driven-development",
61
+ "spec-driven-development",
62
+ "srcwalk",
63
+ "subagent-driven-development",
64
+ "supabase",
65
+ "supabase-postgres-best-practices",
66
+ "swift-concurrency",
67
+ "swiftui-expert-skill",
68
+ "test-driven-development",
69
+ "testing-anti-patterns",
70
+ "using-git-worktrees",
71
+ "vercel-deploy-claimable",
72
+ "webclaw",
73
+ "writing-skills"
74
+ ]
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,51 @@
1
+ # audit-pattern
2
+
3
+ Find all occurrences of a code pattern in the codebase, review each match for correctness/security/edge-cases, and produce prioritized remediation recommendations. Use for cross-cutting concerns like auth checks, error handling, or API patterns.
4
+
5
+ ## Args
6
+
7
+ - `pattern` (required) — The code pattern to search for
8
+
9
+ ## Phases
10
+
11
+ ### Phase 1: discover
12
+
13
+ - **Agent:** @explore
14
+ - **Concurrency:** 1
15
+ - **Prompt:**
16
+
17
+ Search the codebase for the pattern: {pattern}. Use grep or csearch to find every occurrence. List each file with line numbers, grouped by subdirectory. If the pattern has common variations, include those too. Return results in this format:
18
+
19
+ ## Directory: [path]
20
+ - `file.ts:42` — [brief context]
21
+ - `file.ts:87` — [brief context]
22
+
23
+ Keep each entry under 50 words.
24
+
25
+ ### Phase 2: audit
26
+
27
+ - **Depends on:** Phase 1
28
+ - **Agent:** @review
29
+ - **Concurrency:** Dynamic (estimate ~10 occurrences per agent, min 2, max 15)
30
+ - **Prompt:**
31
+
32
+ Review the following files for the pattern '{pattern}': {phase_1_output}. For each occurrence check: correctness, edge cases, security implications, error handling, and adherence to project conventions. Return findings in this format:
33
+
34
+ ## File: [path:line]
35
+ - **Severity:** [critical/important/minor]
36
+ - **Issue:** [description]
37
+ - **Recommendation:** [fix suggestion]
38
+
39
+ Keep each finding under 100 words.
40
+
41
+ ## Final Synthesis (Main Agent)
42
+
43
+ After Phase 2 completes, synthesize the audit findings directly from {phase_2_output}.
44
+
45
+ Produce:
46
+ 1. **Issues ranked by severity** — Critical, important, minor with file:line references
47
+ 2. **Affected scope** — Count of files and occurrences
48
+ 3. **Recommended fixes** — Specific fix suggestions per issue
49
+ 4. **Correct patterns** — Patterns that are already correct and should be preserved
50
+
51
+ Group findings by subdirectory. Keep the report under 1500 words.
@@ -0,0 +1,82 @@
1
+ # batch-implement
2
+
3
+ Take a plan with independent tasks and dispatch one subagent per task in parallel. Each task result is reviewed, then merged. Use for multi-file feature implementation where tasks don't share file dependencies.
4
+
5
+ ## Args
6
+
7
+ - `plan` (required) — The implementation plan or PRD
8
+
9
+ ## Phases
10
+
11
+ ### Phase 1: plan-review
12
+
13
+ - **Agent:** @review
14
+ - **Concurrency:** 1
15
+ - **Prompt:**
16
+
17
+ Review this implementation plan for task independence: {plan}. Verify that the tasks don't edit the same files. If any tasks have overlapping file dependencies, flag them as conflicts. Return the list of tasks grouped by dependency in this format:
18
+
19
+ ## Independent Tasks (can run in parallel)
20
+ - **Task 1:** [description]
21
+ - Files: [list]
22
+ - **Task 2:** [description]
23
+ - Files: [list]
24
+
25
+ ## Dependent Tasks (must run sequentially)
26
+ - **Task 3:** [description]
27
+ - Depends on: [task names]
28
+ - Files: [list]
29
+
30
+ Keep each task description under 100 words.
31
+
32
+ ### Phase 2: implement
33
+
34
+ - **Depends on:** Phase 1
35
+ - **Agent:** @general
36
+ - **Concurrency:** Dynamic (1 agent per task, min 2, max 10)
37
+ - **Prompt:**
38
+
39
+ Implement the following task from the plan: {phase_1_output}. Write production-quality code following project conventions. Include type definitions, error handling, and unit tests. Keep changes scoped to the task — do not refactor unrelated code. Return a summary in this format:
40
+
41
+ ## Task: [name]
42
+ - **Files modified:** [list]
43
+ - **Tests added:** [list]
44
+ - **Key changes:** [brief summary]
45
+
46
+ Keep the summary under 200 words.
47
+
48
+ ### Phase 3: verify
49
+
50
+ - **Depends on:** Phase 2
51
+ - **Agent:** @review
52
+ - **Concurrency:** Dynamic (~3 implementations per agent, min 2, max 8)
53
+ - **Prompt:**
54
+
55
+ Review this implementation: {phase_2_output}. Check: correctness against the task requirements, test coverage, edge case handling, type safety, and lint compliance. Return findings in this format:
56
+
57
+ ## Task: [name]
58
+ - **Status:** [pass/fail]
59
+ - **Issues:** [list with file:line refs]
60
+ - **Recommendations:** [list]
61
+
62
+ Keep each finding under 100 words.
63
+
64
+ ## Final Merge (Main Agent)
65
+
66
+ After Phase 3 completes, merge the verified implementations directly from {phase_3_output}.
67
+
68
+ Ensure:
69
+ - No duplicate imports
70
+ - Consistent naming conventions
71
+ - Proper module boundaries
72
+ - No broken imports between modules
73
+
74
+ Report any merge conflicts or integration issues. Return a summary:
75
+
76
+ ## Merge Summary
77
+ - **Tasks merged:** [count]
78
+ - **Files modified:** [list]
79
+ - **Integration issues:** [list or 'none']
80
+ - **Next steps:** [list]
81
+
82
+ Keep the summary under 500 words.