@fro.bot/systematic 1.22.8 → 1.23.1

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 (60) hide show
  1. package/agents/research/best-practices-researcher.md +9 -3
  2. package/agents/research/framework-docs-researcher.md +2 -0
  3. package/agents/research/git-history-analyzer.md +9 -6
  4. package/agents/research/issue-intelligence-analyst.md +232 -0
  5. package/agents/research/repo-research-analyst.md +6 -10
  6. package/commands/.gitkeep +0 -0
  7. package/package.json +1 -1
  8. package/skills/agent-browser/SKILL.md +511 -169
  9. package/skills/agent-browser/references/authentication.md +303 -0
  10. package/skills/agent-browser/references/commands.md +266 -0
  11. package/skills/agent-browser/references/profiling.md +120 -0
  12. package/skills/agent-browser/references/proxy-support.md +194 -0
  13. package/skills/agent-browser/references/session-management.md +193 -0
  14. package/skills/agent-browser/references/snapshot-refs.md +194 -0
  15. package/skills/agent-browser/references/video-recording.md +173 -0
  16. package/skills/agent-browser/templates/authenticated-session.sh +105 -0
  17. package/skills/agent-browser/templates/capture-workflow.sh +69 -0
  18. package/skills/agent-browser/templates/form-automation.sh +62 -0
  19. package/skills/ce-brainstorm/SKILL.md +336 -0
  20. package/{commands/ce/compound.md → skills/ce-compound/SKILL.md} +106 -9
  21. package/skills/ce-compound-refresh/SKILL.md +528 -0
  22. package/skills/ce-ideate/SKILL.md +371 -0
  23. package/{commands/ce/plan.md → skills/ce-plan/SKILL.md} +73 -66
  24. package/skills/ce-plan-beta/SKILL.md +572 -0
  25. package/{commands/ce/review.md → skills/ce-review/SKILL.md} +53 -18
  26. package/{commands/ce/work.md → skills/ce-work/SKILL.md} +88 -63
  27. package/{commands/create-agent-skill.md → skills/create-agent-skill/SKILL.md} +1 -0
  28. package/skills/create-agent-skills/SKILL.md +9 -19
  29. package/{commands/deepen-plan.md → skills/deepen-plan/SKILL.md} +35 -36
  30. package/skills/deepen-plan-beta/SKILL.md +323 -0
  31. package/{commands/deploy-docs.md → skills/deploy-docs/SKILL.md} +26 -33
  32. package/skills/document-review/SKILL.md +14 -8
  33. package/{commands/generate_command.md → skills/generate_command/SKILL.md} +5 -5
  34. package/{commands/heal-skill.md → skills/heal-skill/SKILL.md} +1 -0
  35. package/skills/lfg/SKILL.md +37 -0
  36. package/{commands/report-bug.md → skills/report-bug/SKILL.md} +16 -15
  37. package/{commands/reproduce-bug.md → skills/reproduce-bug/SKILL.md} +10 -9
  38. package/{commands/resolve_todo_parallel.md → skills/resolve_todo_parallel/SKILL.md} +2 -1
  39. package/{commands/slfg.md → skills/slfg/SKILL.md} +8 -4
  40. package/{commands/test-browser.md → skills/test-browser/SKILL.md} +67 -13
  41. package/{commands/test-xcode.md → skills/test-xcode/SKILL.md} +4 -3
  42. package/{commands/triage.md → skills/triage/SKILL.md} +2 -1
  43. package/skills/workflows-brainstorm/SKILL.md +11 -0
  44. package/{commands/workflows/compound.md → skills/workflows-compound/SKILL.md} +2 -2
  45. package/{commands/workflows/plan.md → skills/workflows-plan/SKILL.md} +2 -2
  46. package/{commands/workflows/review.md → skills/workflows-review/SKILL.md} +2 -2
  47. package/{commands/workflows/work.md → skills/workflows-work/SKILL.md} +2 -2
  48. package/agents/workflow/every-style-editor.md +0 -66
  49. package/commands/ce/brainstorm.md +0 -145
  50. package/commands/lfg.md +0 -20
  51. package/commands/workflows/brainstorm.md +0 -145
  52. package/skills/brainstorming/SKILL.md +0 -190
  53. package/skills/skill-creator/SKILL.md +0 -210
  54. package/skills/skill-creator/scripts/init_skill.py +0 -303
  55. package/skills/skill-creator/scripts/package_skill.py +0 -110
  56. package/skills/skill-creator/scripts/quick_validate.py +0 -65
  57. /package/{commands/agent-native-audit.md → skills/agent-native-audit/SKILL.md} +0 -0
  58. /package/{commands/changelog.md → skills/changelog/SKILL.md} +0 -0
  59. /package/{commands/feature-video.md → skills/feature-video/SKILL.md} +0 -0
  60. /package/{commands/resolve_parallel.md → skills/resolve_parallel/SKILL.md} +0 -0
@@ -10,7 +10,7 @@ argument-hint: '[path to plan file]'
10
10
 
11
11
  **Note: The current year is 2026.** Use this when searching for recent documentation and best practices.
12
12
 
13
- This command takes an existing plan (from `/ce:plan`) and enhances each section with parallel research agents. Each major element gets its own dedicated research sub-agent to find:
13
+ This command takes an existing plan (from `/systematic:ce-plan`) and enhances each section with parallel research agents. Each major element gets its own dedicated research sub-agent to find:
14
14
  - Best practices and industry patterns
15
15
  - Performance optimizations
16
16
  - UI/UX improvements (if applicable)
@@ -67,20 +67,20 @@ Dynamically discover all available skills and match them to plan sections. Don't
67
67
  # 1. Project-local skills (highest priority - project-specific)
68
68
  ls .opencode/skills/
69
69
 
70
- # 2. User's global skills (~/.opencode/)
70
+ # 2. User's global skills (~/.config/opencode/)
71
71
  ls ~/.opencode/skills/
72
72
 
73
- # 3. Systematic plugin skills (auto-registered)
74
- # Use the systematic_skill tool to list/load; no filesystem traversal needed.
73
+ # 3. compound-engineering plugin skills
74
+ ls ~/.config/opencode/plugins/cache/*/compound-engineering/*/skills/
75
75
 
76
76
  # 4. ALL other installed plugins - check every plugin for skills
77
- find ~/.opencode/plugins/cache -type d -name "skills" 2>/dev/null
77
+ find ~/.config/opencode/plugins/cache -type d -name "skills" 2>/dev/null
78
78
 
79
79
  # 5. Also check installed_plugins.json for all plugin locations
80
- cat ~/.opencode/plugins/installed_plugins.json
80
+ cat ~/.config/opencode/plugins/installed_plugins.json
81
81
  ```
82
82
 
83
- **Important:** Check EVERY source. Don't assume systematic is the only plugin. Use skills from ANY installed plugin that's relevant.
83
+ **Important:** Check EVERY source. Don't assume compound-engineering is the only plugin. Use skills from ANY installed plugin that's relevant.
84
84
 
85
85
  **Step 2: For each discovered skill, read its SKILL.md to understand what it does**
86
86
 
@@ -131,11 +131,11 @@ The skill tells you what to do - follow it. Execute the skill completely."
131
131
 
132
132
  **Example spawns:**
133
133
  ```
134
- Task general-purpose: "Use the dhh-rails-style skill at ~/.opencode/plugins/.../dhh-rails-style. Read SKILL.md and apply it to: [Rails sections of plan]"
134
+ Task general-purpose: "Use the dhh-rails-style skill at ~/.config/opencode/plugins/.../dhh-rails-style. Read SKILL.md and apply it to: [Rails sections of plan]"
135
135
 
136
- Task general-purpose: "Use the frontend-design skill at ~/.opencode/plugins/.../frontend-design. Read SKILL.md and apply it to: [UI sections of plan]"
136
+ Task general-purpose: "Use the frontend-design skill at ~/.config/opencode/plugins/.../frontend-design. Read SKILL.md and apply it to: [UI sections of plan]"
137
137
 
138
- Task general-purpose: "Use the agent-native-architecture skill at ~/.opencode/plugins/.../agent-native-architecture. Read SKILL.md and apply it to: [agent/tool sections of plan]"
138
+ Task general-purpose: "Use the agent-native-architecture skill at ~/.config/opencode/plugins/.../agent-native-architecture. Read SKILL.md and apply it to: [agent/tool sections of plan]"
139
139
 
140
140
  Task general-purpose: "Use the security-patterns skill at ~/.opencode/skills/security-patterns. Read SKILL.md and apply it to: [full plan]"
141
141
  ```
@@ -145,13 +145,13 @@ Task general-purpose: "Use the security-patterns skill at ~/.opencode/skills/sec
145
145
  ### 3. Discover and Apply Learnings/Solutions
146
146
 
147
147
  <thinking>
148
- Check for documented learnings from /ce:compound. These are solved problems stored as markdown files. Spawn a sub-agent for each learning to check if it's relevant.
148
+ Check for documented learnings from /systematic:ce-compound. These are solved problems stored as markdown files. Spawn a sub-agent for each learning to check if it's relevant.
149
149
  </thinking>
150
150
 
151
151
  **LEARNINGS LOCATION - Check these exact folders:**
152
152
 
153
153
  ```
154
- docs/solutions/ <-- PRIMARY: Project-level learnings (created by /ce:compound)
154
+ docs/solutions/ <-- PRIMARY: Project-level learnings (created by /systematic:ce-compound)
155
155
  ├── performance-issues/
156
156
  │ └── *.md
157
157
  ├── debugging-patterns/
@@ -175,8 +175,8 @@ Run these commands to get every learning file:
175
175
  find docs/solutions -name "*.md" -type f 2>/dev/null
176
176
 
177
177
  # If docs/solutions doesn't exist, check alternate locations:
178
- find .opencode/docs -name "*.md" -type f 2>/dev/null
179
- find ~/.opencode/docs -name "*.md" -type f 2>/dev/null
178
+ find .claude/docs -name "*.md" -type f 2>/dev/null
179
+ find ~/.config/opencode/docs -name "*.md" -type f 2>/dev/null
180
180
  ```
181
181
 
182
182
  **Step 2: Read frontmatter of each learning to filter**
@@ -287,8 +287,8 @@ Return concrete, actionable recommendations."
287
287
 
288
288
  For any technologies/frameworks mentioned in the plan, query Context7:
289
289
  ```
290
- context7__resolve-library-id: Find library ID for [framework]
291
- context7__query-docs: Query documentation for specific patterns
290
+ mcp__plugin_compound-engineering_context7__resolve-library-id: Find library ID for [framework]
291
+ mcp__plugin_compound-engineering_context7__query-docs: Query documentation for specific patterns
292
292
  ```
293
293
 
294
294
  **Use google_search for current best practices:**
@@ -305,32 +305,32 @@ Dynamically discover every available agent and run them ALL against the plan. Do
305
305
 
306
306
  ```bash
307
307
  # 1. Project-local agents (highest priority - project-specific)
308
- find .opencode/agents -name "*.md" 2>/dev/null
308
+ find .claude/agents -name "*.md" 2>/dev/null
309
309
 
310
- # 2. User's global agents (~/.opencode/)
311
- find ~/.opencode/agents -name "*.md" 2>/dev/null
310
+ # 2. User's global agents (~/.config/opencode/)
311
+ find ~/.config/opencode/agents -name "*.md" 2>/dev/null
312
312
 
313
- # 3. Systematic plugin agents (auto-registered)
314
- # Agents are available by name; no filesystem traversal needed.
313
+ # 3. compound-engineering plugin agents (all subdirectories)
314
+ find ~/.config/opencode/plugins/cache/*/compound-engineering/*/agents -name "*.md" 2>/dev/null
315
315
 
316
316
  # 4. ALL other installed plugins - check every plugin for agents
317
- find ~/.opencode/plugins/cache -path "*/agents/*.md" 2>/dev/null
317
+ find ~/.config/opencode/plugins/cache -path "*/agents/*.md" 2>/dev/null
318
318
 
319
319
  # 5. Check installed_plugins.json to find all plugin locations
320
- cat ~/.opencode/plugins/installed_plugins.json
320
+ cat ~/.config/opencode/plugins/installed_plugins.json
321
321
 
322
322
  # 6. For local plugins (isLocal: true), check their source directories
323
323
  # Parse installed_plugins.json and find local plugin paths
324
324
  ```
325
325
 
326
326
  **Important:** Check EVERY source. Include agents from:
327
- - Project `.opencode/agents/`
328
- - User's `~/.opencode/agents/`
329
- - Systematic plugin (but SKIP workflow/ agents - only use review/, research/, design/, docs/)
327
+ - Project `.claude/agents/`
328
+ - User's `~/.config/opencode/agents/`
329
+ - compound-engineering plugin (but SKIP workflow/ agents - only use review/, research/, design/, docs/)
330
330
  - ALL other installed plugins (agent-sdk-dev, frontend-design, etc.)
331
331
  - Any local plugins
332
332
 
333
- **For Systematic plugin specifically:**
333
+ **For compound-engineering plugin specifically:**
334
334
  - USE: `agents/review/*` (all reviewers)
335
335
  - USE: `agents/research/*` (all researchers)
336
336
  - USE: `agents/design/*` (design agents)
@@ -370,7 +370,7 @@ Wait for ALL parallel agents to complete - skills, research agents, review agent
370
370
  **Collect outputs from ALL sources:**
371
371
 
372
372
  1. **Skill-based sub-agents** - Each skill's full output (code examples, patterns, recommendations)
373
- 2. **Learnings/Solutions sub-agents** - Relevant documented learnings from /ce:compound
373
+ 2. **Learnings/Solutions sub-agents** - Relevant documented learnings from /systematic:ce-compound
374
374
  3. **Research agents** - Best practices, documentation, real-world examples
375
375
  4. **Review agents** - All feedback from every reviewer (architecture, security, performance, simplicity, etc.)
376
376
  5. **Context7 queries** - Framework documentation and patterns
@@ -480,28 +480,26 @@ After writing the enhanced plan, use the **question tool** to present these opti
480
480
 
481
481
  **Options:**
482
482
  1. **View diff** - Show what was added/changed
483
- 2. **Run `/technical_review`** - Get feedback from reviewers on enhanced plan
484
- 3. **Start `/ce:work`** - Begin implementing this enhanced plan
485
- 4. **Deepen further** - Run another round of research on specific sections
486
- 5. **Revert** - Restore original plan (if backup exists)
483
+ 2. **Start `/systematic:ce-work`** - Begin implementing this enhanced plan
484
+ 3. **Deepen further** - Run another round of research on specific sections
485
+ 4. **Revert** - Restore original plan (if backup exists)
487
486
 
488
487
  Based on selection:
489
488
  - **View diff** → Run `git diff [plan_path]` or show before/after
490
- - **`/technical_review`** → Call the /technical_review command with the plan file path
491
- - **`/ce:work`** → Call the /ce:work command with the plan file path
489
+ - **`/systematic:ce-work`** → Call the /systematic:ce-work command with the plan file path
492
490
  - **Deepen further** → Ask which sections need more research, then re-run those agents
493
491
  - **Revert** → Restore from git or backup
494
492
 
495
493
  ## Example Enhancement
496
494
 
497
- **Before (from /ce:plan):**
495
+ **Before (from /workflows:plan):**
498
496
  ```markdown
499
497
  ## Technical Approach
500
498
 
501
499
  Use React Query for data fetching with optimistic updates.
502
500
  ```
503
501
 
504
- **After (from /deepen-plan):**
502
+ **After (from /workflows:deepen-plan):**
505
503
  ```markdown
506
504
  ## Technical Approach
507
505
 
@@ -544,3 +542,4 @@ const queryClient = new QueryClient({
544
542
  ```
545
543
 
546
544
  NEVER CODE! Just research and enhance the plan.
545
+
@@ -0,0 +1,323 @@
1
+ ---
2
+ name: deepen-plan-beta
3
+ description: '[BETA] Stress-test an existing implementation plan and selectively strengthen weak sections with targeted research. Use when a plan needs more confidence around decisions, sequencing, system-wide impact, risks, or verification. Best for Standard or Deep plans, or high-risk topics such as auth, payments, migrations, external APIs, and security. For structural or clarity improvements, prefer document-review instead.'
4
+ argument-hint: '[path to plan file]'
5
+ disable-model-invocation: true
6
+ ---
7
+
8
+ # Deepen Plan
9
+
10
+ ## Introduction
11
+
12
+ **Note: The current year is 2026.** Use this when searching for recent documentation and best practices.
13
+
14
+ `ce:plan-beta` does the first planning pass. `deepen-plan-beta` is a second-pass confidence check.
15
+
16
+ Use this skill when the plan already exists and the question is not "Is this document clear?" but rather "Is this plan grounded enough for the complexity and risk involved?"
17
+
18
+ This skill does **not** turn plans into implementation scripts. It identifies weak sections, runs targeted research only for those sections, and strengthens the plan in place.
19
+
20
+ `document-review` and `deepen-plan-beta` are different:
21
+ - Use the `document-review` skill when the document needs clarity, simplification, completeness, or scope control
22
+ - Use `deepen-plan-beta` when the document is structurally sound but still needs stronger rationale, sequencing, risk treatment, or system-wide thinking
23
+
24
+ ## Interaction Method
25
+
26
+ Use the platform's question tool when available. When asking the user a question, prefer the platform's blocking question tool if one exists (`AskUserQuestion` in OpenCode, `request_user_input` in Codex, `ask_user` in Gemini). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
27
+
28
+ Ask one question at a time. Prefer a concise single-select choice when natural options exist.
29
+
30
+ ## Plan File
31
+
32
+ <plan_path> #$ARGUMENTS </plan_path>
33
+
34
+ If the plan path above is empty:
35
+ 1. Check `docs/plans/` for recent files
36
+ 2. Ask the user which plan to deepen using the platform's blocking question tool when available (see Interaction Method). Otherwise, present numbered options in chat and wait for the user's reply before proceeding
37
+
38
+ Do not proceed until you have a valid plan file path.
39
+
40
+ ## Core Principles
41
+
42
+ 1. **Stress-test, do not inflate** - Deepening should increase justified confidence, not make the plan longer for its own sake.
43
+ 2. **Selective depth only** - Focus on the weakest 2-5 sections rather than enriching everything.
44
+ 3. **Preserve the planning boundary** - No implementation code, no git command choreography, no exact test command recipes.
45
+ 4. **Use artifact-contained evidence** - Work from the written plan, its `Context & Research`, `Sources & References`, and its origin document when present.
46
+ 5. **Respect product boundaries** - Do not invent new product requirements. If deepening reveals a product-level gap, surface it as an open question or route back to `ce:brainstorm`.
47
+ 6. **Prioritize risk and cross-cutting impact** - The more dangerous or interconnected the work, the more valuable another planning pass becomes.
48
+
49
+ ## Workflow
50
+
51
+ ### Phase 0: Load the Plan and Decide Whether Deepening Is Warranted
52
+
53
+ #### 0.1 Read the Plan and Supporting Inputs
54
+
55
+ Read the plan file completely.
56
+
57
+ If the plan frontmatter includes an `origin:` path:
58
+ - Read the origin document too
59
+ - Use it to check whether the plan still reflects the product intent, scope boundaries, and success criteria
60
+
61
+ #### 0.2 Classify Plan Depth and Topic Risk
62
+
63
+ Determine the plan depth from the document:
64
+ - **Lightweight** - small, bounded, low ambiguity, usually 2-4 implementation units
65
+ - **Standard** - moderate complexity, some technical decisions, usually 3-6 units
66
+ - **Deep** - cross-cutting, high-risk, or strategically important work, usually 4-8 units or phased delivery
67
+
68
+ Also build a risk profile. Treat these as high-risk signals:
69
+ - Authentication, authorization, or security-sensitive behavior
70
+ - Payments, billing, or financial flows
71
+ - Data migrations, backfills, or persistent data changes
72
+ - External APIs or third-party integrations
73
+ - Privacy, compliance, or user data handling
74
+ - Cross-interface parity or multi-surface behavior
75
+ - Significant rollout, monitoring, or operational concerns
76
+
77
+ #### 0.3 Decide Whether to Deepen
78
+
79
+ Use this default:
80
+ - **Lightweight** plans usually do not need deepening unless they are high-risk or the user explicitly requests it
81
+ - **Standard** plans often benefit when one or more important sections still look thin
82
+ - **Deep** or high-risk plans often benefit from a targeted second pass
83
+
84
+ If the plan already appears sufficiently grounded:
85
+ - Say so briefly
86
+ - Recommend moving to `/systematic:ce-work` or the `document-review` skill
87
+ - If the user explicitly asked to deepen anyway, continue with a light pass and deepen at most 1-2 sections
88
+
89
+ ### Phase 1: Parse the Current `ce:plan-beta` Structure
90
+
91
+ Map the plan into the current template. Look for these sections, or their nearest equivalents:
92
+ - `Overview`
93
+ - `Problem Frame`
94
+ - `Requirements Trace`
95
+ - `Scope Boundaries`
96
+ - `Context & Research`
97
+ - `Key Technical Decisions`
98
+ - `Open Questions`
99
+ - `Implementation Units`
100
+ - `System-Wide Impact`
101
+ - `Risks & Dependencies`
102
+ - `Documentation / Operational Notes`
103
+ - `Sources & References`
104
+ - Optional deep-plan sections such as `Alternative Approaches Considered`, `Success Metrics`, `Phased Delivery`, `Risk Analysis & Mitigation`, and `Operational / Rollout Notes`
105
+
106
+ If the plan was written manually or uses different headings:
107
+ - Map sections by intent rather than exact heading names
108
+ - If a section is structurally present but titled differently, treat it as the equivalent section
109
+ - If the plan truly lacks a section, decide whether that absence is intentional for the plan depth or a confidence gap worth scoring
110
+
111
+ Also collect:
112
+ - Frontmatter, including existing `deepened:` date if present
113
+ - Number of implementation units
114
+ - Which files and test files are named
115
+ - Which learnings, patterns, or external references are cited
116
+ - Which sections appear omitted because they were unnecessary versus omitted because they are missing
117
+
118
+ ### Phase 2: Score Confidence Gaps
119
+
120
+ Use a checklist-first, risk-weighted scoring pass.
121
+
122
+ For each section, compute:
123
+ - **Trigger count** - number of checklist problems that apply
124
+ - **Risk bonus** - add 1 if the topic is high-risk and this section is materially relevant to that risk
125
+ - **Critical-section bonus** - add 1 for `Key Technical Decisions`, `Implementation Units`, `System-Wide Impact`, `Risks & Dependencies`, or `Open Questions` in `Standard` or `Deep` plans
126
+
127
+ Treat a section as a candidate if:
128
+ - it hits **2+ total points**, or
129
+ - it hits **1+ point** in a high-risk domain and the section is materially important
130
+
131
+ Choose only the top **2-5** sections by score. If the user explicitly asked to deepen a lightweight plan, cap at **1-2** sections unless the topic is high-risk.
132
+
133
+ Example:
134
+ - A `Key Technical Decisions` section with 1 checklist trigger and the critical-section bonus scores **2 points** and is a candidate
135
+ - A `Risks & Dependencies` section with 1 checklist trigger in a high-risk migration plan also becomes a candidate because the risk bonus applies
136
+
137
+ If the plan already has a `deepened:` date:
138
+ - Prefer sections that have not yet been substantially strengthened, if their scores are comparable
139
+ - Revisit an already-deepened section only when it still scores clearly higher than alternatives or the user explicitly asks for another pass on it
140
+
141
+ #### 2.1 Section Checklists
142
+
143
+ Use these triggers.
144
+
145
+ **Requirements Trace**
146
+ - Requirements are vague or disconnected from implementation units
147
+ - Success criteria are missing or not reflected downstream
148
+ - Units do not clearly advance the traced requirements
149
+ - Origin requirements are not clearly carried forward
150
+
151
+ **Context & Research / Sources & References**
152
+ - Relevant repo patterns are named but never used in decisions or implementation units
153
+ - Cited learnings or references do not materially shape the plan
154
+ - High-risk work lacks appropriate external or internal grounding
155
+ - Research is generic instead of tied to this repo or this plan
156
+
157
+ **Key Technical Decisions**
158
+ - A decision is stated without rationale
159
+ - Rationale does not explain tradeoffs or rejected alternatives
160
+ - The decision does not connect back to scope, requirements, or origin context
161
+ - An obvious design fork exists but the plan never addresses why one path won
162
+
163
+ **Open Questions**
164
+ - Product blockers are hidden as assumptions
165
+ - Planning-owned questions are incorrectly deferred to implementation
166
+ - Resolved questions have no clear basis in repo context, research, or origin decisions
167
+ - Deferred items are too vague to be useful later
168
+
169
+ **Implementation Units**
170
+ - Dependency order is unclear or likely wrong
171
+ - File paths or test file paths are missing where they should be explicit
172
+ - Units are too large, too vague, or broken into micro-steps
173
+ - Approach notes are thin or do not name the pattern to follow
174
+ - Test scenarios or verification outcomes are vague
175
+
176
+ **System-Wide Impact**
177
+ - Affected interfaces, callbacks, middleware, entry points, or parity surfaces are missing
178
+ - Failure propagation is underexplored
179
+ - State lifecycle, caching, or data integrity risks are absent where relevant
180
+ - Integration coverage is weak for cross-layer work
181
+
182
+ **Risks & Dependencies / Documentation / Operational Notes**
183
+ - Risks are listed without mitigation
184
+ - Rollout, monitoring, migration, or support implications are missing when warranted
185
+ - External dependency assumptions are weak or unstated
186
+ - Security, privacy, performance, or data risks are absent where they obviously apply
187
+
188
+ Use the plan's own `Context & Research` and `Sources & References` as evidence. If those sections cite a pattern, learning, or risk that never affects decisions, implementation units, or verification, treat that as a confidence gap.
189
+
190
+ ### Phase 3: Select Targeted Research Agents
191
+
192
+ For each selected section, choose the smallest useful agent set. Do **not** run every agent. Use at most **1-3 agents per section** and usually no more than **8 agents total**.
193
+
194
+ Use fully-qualified agent names inside Task calls.
195
+
196
+ #### 3.1 Deterministic Section-to-Agent Mapping
197
+
198
+ **Requirements Trace / Open Questions classification**
199
+ - `systematic:workflow:spec-flow-analyzer` for missing user flows, edge cases, and handoff gaps
200
+ - `systematic:research:repo-research-analyst` for repo-grounded patterns, conventions, and implementation reality checks
201
+
202
+ **Context & Research / Sources & References gaps**
203
+ - `systematic:research:learnings-researcher` for institutional knowledge and past solved problems
204
+ - `systematic:research:framework-docs-researcher` for official framework or library behavior
205
+ - `systematic:research:best-practices-researcher` for current external patterns and industry guidance
206
+ - Add `systematic:research:git-history-analyzer` only when historical rationale or prior art is materially missing
207
+
208
+ **Key Technical Decisions**
209
+ - `systematic:review:architecture-strategist` for design integrity, boundaries, and architectural tradeoffs
210
+ - Add `systematic:research:framework-docs-researcher` or `systematic:research:best-practices-researcher` when the decision needs external grounding beyond repo evidence
211
+
212
+ **Implementation Units / Verification**
213
+ - `systematic:research:repo-research-analyst` for concrete file targets, patterns to follow, and repo-specific sequencing clues
214
+ - `systematic:review:pattern-recognition-specialist` for consistency, duplication risks, and alignment with existing patterns
215
+ - Add `systematic:workflow:spec-flow-analyzer` when sequencing depends on user flow or handoff completeness
216
+
217
+ **System-Wide Impact**
218
+ - `systematic:review:architecture-strategist` for cross-boundary effects, interface surfaces, and architectural knock-on impact
219
+ - Add the specific specialist that matches the risk:
220
+ - `systematic:review:performance-oracle` for scalability, latency, throughput, and resource-risk analysis
221
+ - `systematic:review:security-sentinel` for auth, validation, exploit surfaces, and security boundary review
222
+ - `systematic:review:data-integrity-guardian` for migrations, persistent state safety, consistency, and data lifecycle risks
223
+
224
+ **Risks & Dependencies / Operational Notes**
225
+ - Use the specialist that matches the actual risk:
226
+ - `systematic:review:security-sentinel` for security, auth, privacy, and exploit risk
227
+ - `systematic:review:data-integrity-guardian` for persistent data safety, constraints, and transaction boundaries
228
+ - `systematic:review:data-migration-expert` for migration realism, backfills, and production data transformation risk
229
+ - `systematic:review:deployment-verification-agent` for rollout checklists, rollback planning, and launch verification
230
+ - `systematic:review:performance-oracle` for capacity, latency, and scaling concerns
231
+
232
+ #### 3.2 Agent Prompt Shape
233
+
234
+ For each selected section, pass:
235
+ - A short plan summary
236
+ - The exact section text
237
+ - Why the section was selected, including which checklist triggers fired
238
+ - The plan depth and risk profile
239
+ - A specific question to answer
240
+
241
+ Instruct the agent to return:
242
+ - findings that change planning quality
243
+ - stronger rationale, sequencing, verification, risk treatment, or references
244
+ - no implementation code
245
+ - no shell commands
246
+
247
+ ### Phase 4: Run Targeted Research and Review
248
+
249
+ Launch the selected agents in parallel.
250
+
251
+ Prefer local repo and institutional evidence first. Use external research only when the gap cannot be closed responsibly from repo context or already-cited sources.
252
+
253
+ If a selected section can be improved by reading the origin document more carefully, do that before dispatching external agents.
254
+
255
+ If agent outputs conflict:
256
+ - Prefer repo-grounded and origin-grounded evidence over generic advice
257
+ - Prefer official framework documentation over secondary best-practice summaries when the conflict is about library behavior
258
+ - If a real tradeoff remains, record it explicitly in the plan rather than pretending the conflict does not exist
259
+
260
+ ### Phase 5: Synthesize and Rewrite the Plan
261
+
262
+ Strengthen only the selected sections. Keep the plan coherent and preserve its overall structure.
263
+
264
+ Allowed changes:
265
+ - Clarify or strengthen decision rationale
266
+ - Tighten requirements trace or origin fidelity
267
+ - Reorder or split implementation units when sequencing is weak
268
+ - Add missing pattern references, file/test paths, or verification outcomes
269
+ - Expand system-wide impact, risks, or rollout treatment where justified
270
+ - Reclassify open questions between `Resolved During Planning` and `Deferred to Implementation` when evidence supports the change
271
+ - Add an optional deep-plan section only when it materially improves execution quality
272
+ - Add or update `deepened: YYYY-MM-DD` in frontmatter when the plan was substantively improved
273
+
274
+ Do **not**:
275
+ - Add fenced implementation code blocks unless the plan itself is about code shape as a design artifact
276
+ - Add git commands, commit choreography, or exact test command recipes
277
+ - Add generic `Research Insights` subsections everywhere
278
+ - Rewrite the entire plan from scratch
279
+ - Invent new product requirements, scope changes, or success criteria without surfacing them explicitly
280
+
281
+ If research reveals a product-level ambiguity that should change behavior or scope:
282
+ - Do not silently decide it here
283
+ - Record it under `Open Questions`
284
+ - Recommend `ce:brainstorm` if the gap is truly product-defining
285
+
286
+ ### Phase 6: Final Checks and Write the File
287
+
288
+ Before writing:
289
+ - Confirm the plan is stronger in specific ways, not merely longer
290
+ - Confirm the planning boundary is intact
291
+ - Confirm the selected sections were actually the weakest ones
292
+ - Confirm origin decisions were preserved when an origin document exists
293
+ - Confirm the final plan still feels right-sized for its depth
294
+
295
+ Update the plan file in place by default.
296
+
297
+ If the user explicitly requests a separate file, append `-deepened` before `.md`, for example:
298
+ - `docs/plans/2026-03-15-001-feat-example-plan-deepened.md`
299
+
300
+ ## Post-Enhancement Options
301
+
302
+ If substantive changes were made, present next steps using the platform's blocking question tool when available (see Interaction Method). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
303
+
304
+ **Question:** "Plan deepened at `[plan_path]`. What would you like to do next?"
305
+
306
+ **Options:**
307
+ 1. **View diff** - Show what changed
308
+ 2. **Run `document-review` skill** - Improve the updated plan through structured document review
309
+ 3. **Start `ce:work` skill** - Begin implementing the plan
310
+ 4. **Deepen specific sections further** - Run another targeted deepening pass on named sections
311
+
312
+ Based on selection:
313
+ - **View diff** -> Show the important additions and changed sections
314
+ - **`document-review` skill** -> Load the `document-review` skill with the plan path
315
+ - **Start `ce:work` skill** -> Call the `ce:work` skill with the plan path
316
+ - **Deepen specific sections further** -> Ask which sections still feel weak and run another targeted pass only for those sections
317
+
318
+ If no substantive changes were warranted:
319
+ - Say that the plan already appears sufficiently grounded
320
+ - Offer the `document-review` skill or `/systematic:ce-work` as the next step instead
321
+
322
+ NEVER CODE! Research, challenge, and strengthen the plan.
323
+
@@ -1,39 +1,40 @@
1
1
  ---
2
2
  name: deploy-docs
3
- description: Validate and prepare Systematic documentation for GitHub Pages deployment
3
+ description: Validate and prepare documentation for GitHub Pages deployment
4
4
  disable-model-invocation: true
5
5
  ---
6
6
 
7
7
  # Deploy Documentation Command
8
8
 
9
- Validate the Systematic Starlight/Astro documentation site and prepare it for GitHub Pages deployment.
9
+ Validate the documentation site and prepare it for GitHub Pages deployment.
10
10
 
11
11
  ## Step 1: Validate Documentation
12
12
 
13
13
  Run these checks:
14
14
 
15
15
  ```bash
16
- # Count bundled assets
17
- echo "Agents: $(ls agents/*/*.md | wc -l)"
18
- echo "Commands: $(ls commands/*.md commands/workflows/*.md | wc -l)"
19
- echo "Skills: $(ls -d skills/*/ 2>/dev/null | wc -l)"
20
-
21
- # Verify CLI listings (review output for expected entries)
22
- bun src/cli.ts list agents
23
- bun src/cli.ts list skills
24
- bun src/cli.ts list commands
25
-
26
- # Build docs (runs docs:generate + Astro build)
27
- bun run docs:build
28
-
29
- # Check Astro output
30
- test -f docs/dist/index.html && echo "✓ docs/dist/index.html present"
16
+ # Count components
17
+ echo "Agents: $(ls plugins/compound-engineering/agents/*.md | wc -l)"
18
+ echo "Skills: $(ls -d plugins/compound-engineering/skills/*/ 2>/dev/null | wc -l)"
19
+
20
+ # Validate JSON
21
+ cat .claude-plugin/marketplace.json | jq . > /dev/null && echo "✓ marketplace.json valid"
22
+ cat plugins/compound-engineering/.claude-plugin/plugin.json | jq . > /dev/null && echo "✓ plugin.json valid"
23
+
24
+ # Check all HTML files exist
25
+ for page in index agents commands skills mcp-servers changelog getting-started; do
26
+ if [ -f "plugins/compound-engineering/docs/pages/${page}.html" ] || [ -f "plugins/compound-engineering/docs/${page}.html" ]; then
27
+ echo "✓ ${page}.html exists"
28
+ else
29
+ echo "✗ ${page}.html MISSING"
30
+ fi
31
+ done
31
32
  ```
32
33
 
33
34
  ## Step 2: Check for Uncommitted Changes
34
35
 
35
36
  ```bash
36
- git status --porcelain docs/
37
+ git status --porcelain plugins/compound-engineering/docs/
37
38
  ```
38
39
 
39
40
  If there are uncommitted changes, warn the user to commit first.
@@ -65,11 +66,7 @@ on:
65
66
  push:
66
67
  branches: [main]
67
68
  paths:
68
- - 'docs/**'
69
- - 'docs/scripts/**'
70
- - 'agents/**'
71
- - 'skills/**'
72
- - 'commands/**'
69
+ - 'plugins/compound-engineering/docs/**'
73
70
  workflow_dispatch:
74
71
 
75
72
  permissions:
@@ -89,15 +86,10 @@ jobs:
89
86
  runs-on: ubuntu-latest
90
87
  steps:
91
88
  - uses: actions/checkout@v4
92
- - uses: oven-sh/setup-bun@v2
93
- with:
94
- bun-version: '1.1.0'
95
- - run: bun install
96
- - run: bun run docs:build
97
89
  - uses: actions/configure-pages@v4
98
90
  - uses: actions/upload-pages-artifact@v3
99
91
  with:
100
- path: 'docs/dist'
92
+ path: 'plugins/compound-engineering/docs'
101
93
  - uses: actions/deploy-pages@v4
102
94
  ```
103
95
 
@@ -108,13 +100,14 @@ Provide a summary:
108
100
  ```
109
101
  ## Deployment Readiness
110
102
 
111
- Starlight/Astro build succeeded
112
- Bundled asset counts match expectations
113
- CLI listings verified
103
+ All HTML pages present
104
+ JSON files valid
105
+ Component counts match
114
106
 
115
107
  ### Next Steps
116
108
  - [ ] Commit any pending changes
117
109
  - [ ] Push to main branch
118
110
  - [ ] Verify GitHub Pages workflow exists
119
- - [ ] Check deployment at https://fro.bot/systematic (or your configured base URL)
111
+ - [ ] Check deployment at https://everyinc.github.io/compound-engineering-plugin/
120
112
  ```
113
+