opencodekit 0.15.21 → 0.16.0

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 (116) hide show
  1. package/dist/index.js +5 -7
  2. package/dist/template/.opencode/AGENTS.md +21 -20
  3. package/dist/template/.opencode/agent/build.md +88 -7
  4. package/dist/template/.opencode/agent/explore.md +1 -1
  5. package/dist/template/.opencode/agent/general.md +54 -4
  6. package/dist/template/.opencode/agent/looker.md +1 -1
  7. package/dist/template/.opencode/agent/painter.md +1 -1
  8. package/dist/template/.opencode/agent/plan.md +52 -0
  9. package/dist/template/.opencode/agent/review.md +1 -1
  10. package/dist/template/.opencode/agent/scout.md +3 -3
  11. package/dist/template/.opencode/agent/vision.md +1 -1
  12. package/dist/template/.opencode/command/create.md +201 -95
  13. package/dist/template/.opencode/command/design.md +5 -7
  14. package/dist/template/.opencode/command/handoff.md +7 -0
  15. package/dist/template/.opencode/command/init.md +25 -47
  16. package/dist/template/.opencode/command/plan.md +35 -16
  17. package/dist/template/.opencode/command/resume.md +7 -18
  18. package/dist/template/.opencode/command/ship.md +156 -0
  19. package/dist/template/.opencode/command/start.md +315 -28
  20. package/dist/template/.opencode/command/ui-review.md +5 -7
  21. package/dist/template/.opencode/command/verify.md +279 -0
  22. package/dist/template/.opencode/memory/_templates/README.md +57 -19
  23. package/dist/template/.opencode/memory/_templates/prd.md +29 -0
  24. package/dist/template/.opencode/memory/_templates/project/tech-stack.md +50 -0
  25. package/dist/template/.opencode/memory/_templates/proposal.md +38 -0
  26. package/dist/template/.opencode/memory/_templates/spec.md +66 -0
  27. package/dist/template/.opencode/memory/_templates/tasks.md +198 -0
  28. package/dist/template/.opencode/memory/observations/2026-02-01-decision-add-skills-vs-commands-to-global-agents-.md +15 -0
  29. package/dist/template/.opencode/memory/observations/2026-02-01-decision-build-agent-auto-loads-skills-contextual.md +31 -0
  30. package/dist/template/.opencode/memory/observations/2026-02-01-decision-fixed-agent-configuration-for-opencodeki.md +25 -0
  31. package/dist/template/.opencode/memory/observations/2026-02-01-decision-focused-agents-md-upgrade-for-opencode-k.md +14 -0
  32. package/dist/template/.opencode/memory/observations/2026-02-01-decision-implement-tier-1-permission-upgrades.md +15 -0
  33. package/dist/template/.opencode/memory/observations/2026-02-01-decision-instructions-config-explicit-paths-not-w.md +40 -0
  34. package/dist/template/.opencode/memory/observations/2026-02-01-decision-merged-context-into-memory-project-singl.md +42 -0
  35. package/dist/template/.opencode/memory/observations/2026-02-01-decision-oracle-tool-should-use-review-agent-not-.md +14 -0
  36. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-agent-auto-loads-skills-contextuall.md +31 -0
  37. package/dist/template/.opencode/memory/observations/2026-02-01-decision-plan-phased-oracle-command-merge-into-ne.md +14 -0
  38. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prd-workflow-uses-prd-and-prd-task-skill.md +23 -0
  39. package/dist/template/.opencode/memory/observations/2026-02-01-decision-prefer-review-agent-via-opencode-cli-ove.md +14 -0
  40. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-add-ship-command-with.md +14 -0
  41. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command-.md +14 -0
  42. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-oracle-tool-and-add-ship-command.md +14 -0
  43. package/dist/template/.opencode/memory/observations/2026-02-01-decision-remove-skills-vs-commands-section-from-a.md +14 -0
  44. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-tool-with-ship-command-fl.md +14 -0
  45. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-oracle-with-ship-command-workflo.md +14 -0
  46. package/dist/template/.opencode/memory/observations/2026-02-01-decision-replace-proxypal-oracle-with-cli-review-.md +14 -0
  47. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-dist-template-only-tech-stack.md +50 -0
  48. package/dist/template/.opencode/memory/observations/2026-02-01-decision-simplified-templates-only-tech-stack-md.md +26 -0
  49. package/dist/template/.opencode/memory/observations/2026-02-01-decision-subagents-load-minimal-skills-stay-lean.md +29 -0
  50. package/dist/template/.opencode/memory/observations/2026-02-01-decision-user-approved-permission-upgrades-in-ope.md +15 -0
  51. package/dist/template/.opencode/memory/observations/2026-02-01-discovery-verify-command-already-implemented.md +28 -0
  52. package/dist/template/.opencode/memory/observations/2026-02-01-feature-openspec-phase-b-complete-template-upgra.md +43 -0
  53. package/dist/template/.opencode/memory/observations/2026-02-01-learning-build-agent-should-use-dynamic-lsp-not-f.md +14 -0
  54. package/dist/template/.opencode/memory/observations/2026-02-01-learning-kimi-k2-5-model-requires-temperature-1-0.md +22 -0
  55. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-already-imple.md +27 -0
  56. package/dist/template/.opencode/memory/observations/2026-02-01-learning-opencode-context-injection-uses-instruct.md +35 -0
  57. package/dist/template/.opencode/memory/observations/2026-02-01-learning-update-build-agent-prompt-to-use-context.md +14 -0
  58. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-using-opencode-expert-.md +14 -0
  59. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-g.md +14 -0
  60. package/dist/template/.opencode/memory/observations/2026-02-01-learning-upgrade-agents-md-with-opencode-expert-r.md +14 -0
  61. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-prefers-copilot-gpt-5-2-codex-mediu.md +14 -0
  62. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-contextu.md +15 -0
  63. package/dist/template/.opencode/memory/observations/2026-02-01-learning-user-wants-general-agent-prompt-reviewed.md +15 -0
  64. package/dist/template/.opencode/memory/project/command-rules.md +122 -0
  65. package/dist/template/.opencode/memory/project/tech-stack.md +50 -0
  66. package/dist/template/.opencode/memory/research/ccpm-analysis.md +334 -0
  67. package/dist/template/.opencode/memory/research/openspec-analysis.md +226 -0
  68. package/dist/template/.opencode/opencode.json +916 -803
  69. package/dist/template/.opencode/skill/tool-priority/SKILL.md +2 -2
  70. package/package.json +1 -1
  71. package/dist/template/.opencode/command/accessibility-check.md +0 -331
  72. package/dist/template/.opencode/command/agent-browser.md +0 -21
  73. package/dist/template/.opencode/command/analyze-mockup.md +0 -423
  74. package/dist/template/.opencode/command/analyze-project.md +0 -295
  75. package/dist/template/.opencode/command/brainstorm.md +0 -373
  76. package/dist/template/.opencode/command/cloudflare.md +0 -70
  77. package/dist/template/.opencode/command/commit.md +0 -245
  78. package/dist/template/.opencode/command/complete-next-task.md +0 -77
  79. package/dist/template/.opencode/command/design-audit.md +0 -480
  80. package/dist/template/.opencode/command/edit-image.md +0 -242
  81. package/dist/template/.opencode/command/finish.md +0 -255
  82. package/dist/template/.opencode/command/fix-ci.md +0 -109
  83. package/dist/template/.opencode/command/fix-types.md +0 -104
  84. package/dist/template/.opencode/command/fix-ui.md +0 -117
  85. package/dist/template/.opencode/command/fix.md +0 -168
  86. package/dist/template/.opencode/command/frontend-design.md +0 -21
  87. package/dist/template/.opencode/command/generate-diagram.md +0 -349
  88. package/dist/template/.opencode/command/generate-icon.md +0 -283
  89. package/dist/template/.opencode/command/generate-image.md +0 -246
  90. package/dist/template/.opencode/command/generate-pattern.md +0 -247
  91. package/dist/template/.opencode/command/generate-storyboard.md +0 -250
  92. package/dist/template/.opencode/command/implement.md +0 -609
  93. package/dist/template/.opencode/command/import-plan.md +0 -406
  94. package/dist/template/.opencode/command/index-knowledge.md +0 -25
  95. package/dist/template/.opencode/command/integration-test.md +0 -424
  96. package/dist/template/.opencode/command/issue.md +0 -102
  97. package/dist/template/.opencode/command/new-feature.md +0 -651
  98. package/dist/template/.opencode/command/opensrc.md +0 -58
  99. package/dist/template/.opencode/command/quick-build.md +0 -238
  100. package/dist/template/.opencode/command/ralph.md +0 -41
  101. package/dist/template/.opencode/command/research-and-implement.md +0 -148
  102. package/dist/template/.opencode/command/research-ui.md +0 -466
  103. package/dist/template/.opencode/command/restore-image.md +0 -424
  104. package/dist/template/.opencode/command/revert-feature.md +0 -386
  105. package/dist/template/.opencode/command/skill-create.md +0 -517
  106. package/dist/template/.opencode/command/skill-optimize.md +0 -556
  107. package/dist/template/.opencode/command/summarize.md +0 -412
  108. package/dist/template/.opencode/command/triage.md +0 -398
  109. package/dist/template/.opencode/memory/_templates/project/architecture.md +0 -60
  110. package/dist/template/.opencode/memory/_templates/project/commands.md +0 -72
  111. package/dist/template/.opencode/memory/_templates/project/conventions.md +0 -68
  112. package/dist/template/.opencode/memory/_templates/project/gotchas.md +0 -41
  113. package/dist/template/.opencode/skill/notebooklm/SKILL.md +0 -272
  114. package/dist/template/.opencode/skill/notebooklm/references/setup.md +0 -353
  115. package/dist/template/.opencode/tool/notebooklm.ts +0 -488
  116. package/dist/template/.opencode/tool/oracle.ts +0 -240
package/dist/index.js CHANGED
@@ -750,7 +750,7 @@ var cac = (name = "") => new CAC(name);
750
750
  // package.json
751
751
  var package_default = {
752
752
  name: "opencodekit",
753
- version: "0.15.21",
753
+ version: "0.16.0",
754
754
  description: "CLI tool for bootstrapping and managing OpenCodeKit projects",
755
755
  keywords: ["agents", "cli", "mcp", "opencode", "opencodekit", "template"],
756
756
  license: "MIT",
@@ -3869,23 +3869,21 @@ var MODEL_PRESETS = {
3869
3869
  looker: "opencode/kimi-k2.5-free",
3870
3870
  vision: "opencode/kimi-k2.5-free",
3871
3871
  scout: "opencode/minimax-m2.1-free",
3872
- painter: "opencode/kimi-k2.5-free",
3873
- compaction: "opencode/kimi-k2.5-free"
3872
+ painter: "opencode/kimi-k2.5-free"
3874
3873
  }
3875
3874
  },
3876
3875
  recommend: {
3877
3876
  model: "github-copilot/claude-opus-4.5",
3878
3877
  agents: {
3879
3878
  build: "github-copilot/claude-opus-4.5",
3880
- plan: "openai/gpt-5.2",
3881
- review: "openai/gpt-5.2-codex",
3879
+ plan: "github-copilot/gpt-5.2-codex",
3880
+ review: "github-copilot/gpt-5.2-codex",
3882
3881
  explore: "proxypal/gemini-3-flash-preview",
3883
3882
  general: "opencode/kimi-k2.5-free",
3884
3883
  looker: "proxypal/gemini-3-flash-preview",
3885
3884
  vision: "proxypal/gemini-3-pro-preview",
3886
3885
  scout: "opencode/kimi-k2.5-free",
3887
- painter: "proxypal/gemini-3-pro-image-preview",
3888
- compaction: "opencode/kimi-k2.5-free"
3886
+ painter: "proxypal/gemini-3-pro-image-preview"
3889
3887
  }
3890
3888
  }
3891
3889
  };
@@ -16,6 +16,12 @@ Everything else is guidelines, not laws.
16
16
 
17
17
  ---
18
18
 
19
+ ## Skills vs Commands
20
+
21
+ - Use **commands** for user-facing entrypoints (workflows and intent).
22
+ - Use **skills** for reusable procedures and checklists.
23
+ - If a command mostly repeats steps used elsewhere, move those steps into a skill.
24
+
19
25
  ## Core Constraints
20
26
 
21
27
  These are hard limits that must never be violated:
@@ -303,7 +309,7 @@ When tools fail or return unexpected results:
303
309
 
304
310
  1. **DO NOT** retry the same call more than twice
305
311
  2. Check fallback chains in agent documentation
306
- 3. **Use Oracle for second opinion** on complex debugging
312
+ 3. **Use review agent for second opinion** on complex debugging
307
313
  4. If still stuck, ask user for guidance
308
314
  5. Log failures using `observation` tool for future reference
309
315
 
@@ -311,13 +317,13 @@ When tools fail or return unexpected results:
311
317
 
312
318
  ```
313
319
  Primary tool fails → Try alternative tool
314
- Alternative fails → Oracle for second opinion
320
+ Alternative fails → Spawn review agent for second opinion
315
321
  Still stuck → Ask user
316
322
  ```
317
323
 
318
- ### Oracle Tool
324
+ ### Review Agent (Second Opinion)
319
325
 
320
- Use `oracle` to get a second opinion from a different AI model (gpt-5.2-codex by default) for complex reasoning tasks.
326
+ Use `review` (via Task) to get a second opinion on complex reasoning tasks.
321
327
 
322
328
  **When to use:**
323
329
 
@@ -326,17 +332,12 @@ Use `oracle` to get a second opinion from a different AI model (gpt-5.2-codex by
326
332
  - Getting alternative perspectives on tricky problems
327
333
  - Breaking out of reasoning ruts or confirmation bias
328
334
 
329
- **Modes:**
330
-
331
- - `validate`: Check if reasoning is sound (default)
332
- - `alternative`: Get completely different approaches
333
- - `critique`: Stress-test ideas for weaknesses
334
- - `brainstorm`: Expand and generate new possibilities
335
-
336
335
  ```typescript
337
- oracle({ question: "Is this the right approach?", context: "..." });
338
- oracle({ question: "Why is this failing?", mode: "critique" });
339
- oracle({ question: "What alternatives exist?", mode: "alternative" });
336
+ Task({
337
+ subagent_type: "review",
338
+ description: "Second opinion",
339
+ prompt: "Review the approach and identify risks or alternatives.",
340
+ });
340
341
  ```
341
342
 
342
343
  ---
@@ -361,17 +362,17 @@ Before you start implementing, verify the requirements are clear. If interpretat
361
362
 
362
363
  Before you claim completion, verify these things:
363
364
 
364
- 1. **Run Oracle critique** on any significant code changes:
365
+ 1. **Run review agent** on any significant code changes:
365
366
 
366
367
  ```typescript
367
- oracle({
368
- question: "Is this solution overcomplicated? Could it be 10x simpler?",
369
- mode: "critique",
370
- context: "<summary of changes>",
368
+ Task({
369
+ subagent_type: "review",
370
+ description: "Critical review",
371
+ prompt: "Is this solution overcomplicated? Could it be 10x simpler?",
371
372
  });
372
373
  ```
373
374
 
374
- If Oracle suggests simplification, implement it before proceeding.
375
+ If review suggests simplification, implement it before proceeding.
375
376
 
376
377
  2. You ran `bd close <id>` with a meaningful reason
377
378
  3. You ran `bd sync` to push changes
@@ -2,12 +2,13 @@
2
2
  description: Leader agent for plan execution and parallel task coordination via Task tool.
3
3
  mode: primary
4
4
  temperature: 0.2
5
+ steps: 50
5
6
  permission:
6
7
  bash:
7
8
  "*": allow
8
9
  "git push*": ask
9
- "rm -rf*": deny
10
- "sudo*": deny
10
+ "rm -rf*": ask
11
+ "sudo*": ask
11
12
  write:
12
13
  "*": allow
13
14
  edit:
@@ -22,13 +23,93 @@ permission:
22
23
 
23
24
  You are the primary build agent for plan execution and task coordination.
24
25
 
26
+ ## Auto-Load Skills (Contextual)
27
+
28
+ Load skills based on task context. DO NOT load all skills - only what's needed.
29
+
30
+ ### Always Load (Core)
31
+
32
+ ```typescript
33
+ skill({ name: "beads" }); // Task tracking (always)
34
+ skill({ name: "verification-before-completion" }); // Never skip verification
35
+ ```
36
+
37
+ ### Load Based on Artifacts
38
+
39
+ ```typescript
40
+ // Check what exists in .beads/artifacts/<bead-id>/
41
+ const artifacts = ls(".beads/artifacts/<bead-id>/");
42
+
43
+ if (artifacts.includes("prd.md")) {
44
+ skill({ name: "prd-task" }); // PRD execution
45
+ }
46
+
47
+ if (!artifacts.includes("prd.md") && taskType === "feature") {
48
+ skill({ name: "prd" }); // PRD creation for features
49
+ }
50
+
51
+ if (artifacts.includes("plan.md")) {
52
+ skill({ name: "executing-plans" }); // Plan execution
53
+ }
54
+ ```
55
+
56
+ ### Load Based on Task Type
57
+
58
+ ```typescript
59
+ // Parallel work (3+ independent tasks)
60
+ if (recommendedAgents > 1) {
61
+ skill({ name: "swarm-coordination" }); // Full swarm workflow
62
+ skill({ name: "beads-bridge" }); // Cross-session todos
63
+ }
64
+
65
+ // Debugging/bug fixes
66
+ if (taskType === "bug") {
67
+ skill({ name: "systematic-debugging" }); // Debug workflow
68
+ skill({ name: "root-cause-tracing" }); // Trace to source
69
+ }
70
+
71
+ // Testing work
72
+ if (taskTitle.includes("test") || taskType === "test") {
73
+ skill({ name: "test-driven-development" }); // TDD workflow
74
+ skill({ name: "testing-anti-patterns" }); // Avoid bad tests
75
+ }
76
+
77
+ // Frontend/UI work
78
+ if (files.some((f) => f.includes("component") || f.endsWith(".tsx"))) {
79
+ skill({ name: "frontend-design" }); // UI patterns
80
+ skill({ name: "react-best-practices" }); // React optimization
81
+ }
82
+
83
+ // Git worktree needed
84
+ if (flags.includes("--worktree") || taskType === "epic") {
85
+ skill({ name: "using-git-worktrees" }); // Isolated workspaces
86
+ }
87
+ ```
88
+
89
+ ### Skill Loading Decision Table
90
+
91
+ | Context | Skills to Load |
92
+ | ------------------------ | -------------------------------------------------- |
93
+ | **Always** | `beads`, `verification-before-completion` |
94
+ | **Has prd.md** | `prd-task` |
95
+ | **Feature without PRD** | `prd` |
96
+ | **Has plan.md** | `executing-plans` |
97
+ | **3+ parallel tasks** | `swarm-coordination`, `beads-bridge` |
98
+ | **Bug fix** | `systematic-debugging`, `root-cause-tracing` |
99
+ | **Test work** | `test-driven-development`, `testing-anti-patterns` |
100
+ | **Frontend/UI** | `frontend-design`, `react-best-practices` |
101
+ | **Epic or --worktree** | `using-git-worktrees` |
102
+ | **Before claiming done** | `requesting-code-review` |
103
+ | **Finishing branch** | `finishing-a-development-branch` |
104
+
25
105
  ## Critical Constraints
26
106
 
27
107
  1. Read before edit; never edit unseen code.
28
- 2. Two-strike rule: after 2 failed attempts, stop and escalate.
29
- 3. Run verification after each change (lint, typecheck, test).
30
- 4. No hallucinated URLs; only use provided or verified links.
31
- 5. Ask before commits/pushes.
108
+ 2. Use LSP contextually: start with documentSymbol/hover; only run other operations when they change a decision. Never run all 9 by default.
109
+ 3. Two-strike rule: after 2 failed attempts, stop and escalate.
110
+ 4. Run verification after each change (lint, typecheck, test).
111
+ 5. No hallucinated URLs; only use provided or verified links.
112
+ 6. Ask before commits/pushes.
32
113
 
33
114
  ## Swarm Decision: Task Tool vs Single Agent
34
115
 
@@ -98,7 +179,7 @@ swarm_delegate({
98
179
  title: "<task-title>",
99
180
  expected_outcome: "<measurable end state>",
100
181
  required_tools: "read, grep, lsp, edit, bash",
101
- must_do: "LSP before edits, run tests",
182
+ must_do: "Contextual LSP before edits (only required ops), run tests",
102
183
  must_not_do: "No new deps, don't edit shared files",
103
184
  acceptance_checks: "typecheck: npm run typecheck, lint: npm run lint",
104
185
  context: "Files: <file-list>",
@@ -2,7 +2,7 @@
2
2
  description: Fast codebase search specialist. Use this agent to find files by patterns, search code for keywords, or understand how the codebase works. Specify thoroughness level - "quick" for simple lookups, "medium" for moderate exploration, "very thorough" for comprehensive analysis.
3
3
  mode: subagent
4
4
  temperature: 0.1
5
- maxSteps: 25
5
+ steps: 25
6
6
  tools:
7
7
  edit: false
8
8
  write: false
@@ -17,13 +17,63 @@ permission:
17
17
 
18
18
  You are the general subagent for fast, well-defined tasks on 1-3 files.
19
19
 
20
+ ## Minimal Skill Loading (Subagent Philosophy)
21
+
22
+ **Subagents stay lean.** Unlike the build leader, you don't load full workflows.
23
+ Only load skills that directly help execution:
24
+
25
+ ```typescript
26
+ // ALWAYS: Verification is non-negotiable
27
+ skill({ name: "verification-before-completion" });
28
+
29
+ // CONDITIONAL: Only if delegation packet exists
30
+ if (read(".beads/artifacts/<task-id>/delegation.md")) {
31
+ // Delegation packet has all context - follow it strictly
32
+ // No additional skills needed
33
+ }
34
+
35
+ // CONDITIONAL: Only if bug fix task
36
+ if (taskType === "bug" || description.includes("fix")) {
37
+ skill({ name: "systematic-debugging" });
38
+ }
39
+
40
+ // CONDITIONAL: Only if test task
41
+ if (taskType === "test" || description.includes("test")) {
42
+ skill({ name: "test-driven-development" });
43
+ }
44
+ ```
45
+
46
+ ### Subagent Skill Rules
47
+
48
+ | Rule | Why |
49
+ | --------------------------------- | ---------------------------------------- |
50
+ | **NO** `beads` skill | Subagents don't modify beads - read-only |
51
+ | **NO** `swarm-coordination` | Leader handles swarm, not workers |
52
+ | **NO** `prd` or `prd-task` | PRD workflow is leader responsibility |
53
+ | **NO** `brainstorming` | Subagents execute, don't design |
54
+ | **YES** `verification-*` | Always verify before reporting done |
55
+ | **YES** `systematic-debugging` | Only for bug fix tasks |
56
+ | **YES** `test-driven-development` | Only for test tasks |
57
+
58
+ ### Trust the Delegation Packet
59
+
60
+ If you received a delegation packet, it contains:
61
+
62
+ - Expected outcome
63
+ - Required tools
64
+ - MUST DO / MUST NOT DO rules
65
+ - Acceptance checks
66
+
67
+ **Follow the packet strictly.** Don't load extra skills that override packet instructions.
68
+
20
69
  ## Critical Constraints
21
70
 
22
71
  1. Read before edit; never edit unseen code.
23
- 2. Two-strike rule: after 2 failed attempts, stop and escalate.
24
- 3. Bail on complexity: 4+ files, architecture decisions, unclear specs → delegate.
25
- 4. No hallucinated URLs; only use provided or verified links.
26
- 5. Ask before commits/pushes.
72
+ 2. Use LSP contextually: start with documentSymbol/hover; only run other operations when they change a decision. Never run all 9 by default.
73
+ 3. Two-strike rule: after 2 failed attempts, stop and escalate.
74
+ 4. Bail on complexity: 4+ files, architecture decisions, unclear specs → delegate.
75
+ 5. No hallucinated URLs; only use provided or verified links.
76
+ 6. Ask before commits/pushes.
27
77
 
28
78
  ## Intent Gate
29
79
 
@@ -2,7 +2,7 @@
2
2
  description: Media extraction specialist for images, PDFs, diagrams, and documents. Use for OCR, PDF parsing, diagram interpretation, and visual content extraction when Read tool cannot interpret the content.
3
3
  mode: subagent
4
4
  temperature: 0.1
5
- maxSteps: 15
5
+ steps: 15
6
6
  tools:
7
7
  edit: false
8
8
  write: false
@@ -3,7 +3,7 @@ description: Image generation and editing specialist using Gemini 3 Pro Image. U
3
3
  mode: subagent
4
4
  model: proxypal/gemini-3-pro-image-preview
5
5
  temperature: 0.7
6
- maxSteps: 20
6
+ steps: 20
7
7
  tools:
8
8
  edit: false
9
9
  bash: false
@@ -2,6 +2,7 @@
2
2
  description: Primary planning agent for architecture and multi-phase execution; produces actionable plans with gated steps.
3
3
  mode: primary
4
4
  temperature: 0.2
5
+ steps: 50
5
6
  permission:
6
7
  write:
7
8
  "*": ask
@@ -32,6 +33,57 @@ permission:
32
33
 
33
34
  You are the primary planning agent for architecture and multi-phase execution.
34
35
 
36
+ ## Auto-Load Skills (Contextual)
37
+
38
+ Load skills based on task context. DO NOT load all skills - only what's needed.
39
+
40
+ ### Always Load (Core)
41
+
42
+ ```typescript
43
+ skill({ name: "beads" }); // Task tracking (always)
44
+ skill({ name: "brainstorming" }); // Refine ideas before implementation
45
+ ```
46
+
47
+ ### Load Based on Task Type
48
+
49
+ ```typescript
50
+ // Check task context
51
+ const bead = bd_show("<bead-id>");
52
+
53
+ // PRD-driven development
54
+ if (taskType === "feature" || taskType === "epic") {
55
+ skill({ name: "prd" }); // PRD creation workflow
56
+ skill({ name: "writing-plans" }); // Detailed implementation plans
57
+ }
58
+
59
+ // Large multi-phase work
60
+ if (estimatedPhases > 2 || recommendedAgents > 1) {
61
+ skill({ name: "swarm-coordination" }); // Parallel agent orchestration
62
+ }
63
+
64
+ // Research-heavy tasks
65
+ if (flags.includes("--research") || taskType === "research") {
66
+ skill({ name: "deep-research" }); // LSP + memory-first protocol
67
+ }
68
+
69
+ // Architecture decisions
70
+ if (taskTitle.includes("refactor") || taskTitle.includes("migrate")) {
71
+ skill({ name: "writing-plans" }); // Comprehensive implementation plans
72
+ }
73
+ ```
74
+
75
+ ### Skill Loading Decision Table
76
+
77
+ | Context | Skills to Load |
78
+ | ---------------------------- | ----------------------------------- |
79
+ | **Always** | `beads`, `brainstorming` |
80
+ | **Feature/Epic** | `prd`, `writing-plans` |
81
+ | **Multi-phase (3+)** | `swarm-coordination` |
82
+ | **Research task** | `deep-research` |
83
+ | **Refactor/Migration** | `writing-plans` |
84
+ | **UI/UX planning** | `frontend-design` (for guidelines) |
85
+ | **Before handoff to @build** | `writing-plans` (if plan.md needed) |
86
+
35
87
  ## Critical Constraints
36
88
 
37
89
  1. No code edits outside planning docs. Read-first, no destructive commands.
@@ -2,7 +2,7 @@
2
2
  description: Code review, debugging, and security audit specialist. Use this agent for critical analysis, complex debugging, architecture decisions, or when you need evidence-based recommendations.
3
3
  mode: subagent
4
4
  temperature: 0.1
5
- maxSteps: 50
5
+ steps: 50
6
6
  tools:
7
7
  edit: false
8
8
  write: false
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  description: External research specialist for library docs, GitHub patterns, and framework analysis. Use this agent when you need API references, real-world code examples, or best practices from external sources.
3
3
  mode: subagent
4
- temperature: 0.3
5
- maxSteps: 30
4
+ temperature: 1.0
5
+ steps: 30
6
6
  permission:
7
7
  write:
8
8
  "*": deny
@@ -132,7 +132,7 @@ To construct a permalink: use `grepsearch` to find code, then build the URL from
132
132
  | 1 | memory-search | Past research findings | Instant |
133
133
  | 2 | context7 | Official library docs | Fast |
134
134
  | 3 | codesearch | Exa Code API for SDK/library patterns | Fast |
135
- | 4 | grepsearch | Cross-repo GitHub code search (1M+ repos) | Medium |
135
+ | 4 | grepsearch | Cross-repo GitHub code search (1M+ repos) | Medium |
136
136
  | 5 | webfetch | Specific doc URLs, READMEs, changelogs | Medium |
137
137
  | 6 | opensrc + LSP | Clone & analyze source code | Slow |
138
138
  | 7 | websearch | Tutorials, blog posts, recent news | Slow |
@@ -2,7 +2,7 @@
2
2
  description: Visual content specialist for multimodal analysis, mockups, PDFs, diagrams, and UI/UX guidance. Use this agent for image analysis, accessibility audits, and anti-AI-slop design recommendations.
3
3
  mode: subagent
4
4
  temperature: 0.3
5
- maxSteps: 40
5
+ steps: 40
6
6
  tools:
7
7
  edit: false
8
8
  write: false