compound-engineering-pi 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +124 -0
- package/bin/compound-engineering-pi +12 -0
- package/bin/compound-plugin +12 -0
- package/compound-engineering-pi +12 -0
- package/compound-plugin +5 -0
- package/docs/pi.md +152 -0
- package/extensions/compound-engineering-compat.ts +452 -0
- package/package.json +84 -0
- package/pi-resources/compound-engineering/mcporter.json +7 -0
- package/plugins/coding-tutor/.claude-plugin/plugin.json +9 -0
- package/plugins/coding-tutor/README.md +37 -0
- package/plugins/coding-tutor/commands/quiz-me.md +1 -0
- package/plugins/coding-tutor/commands/sync-tutorials.md +25 -0
- package/plugins/coding-tutor/commands/teach-me.md +1 -0
- package/plugins/coding-tutor/skills/coding-tutor/SKILL.md +214 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/create_tutorial.py +207 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/index_tutorials.py +193 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/quiz_priority.py +190 -0
- package/plugins/coding-tutor/skills/coding-tutor/scripts/setup_tutorials.py +118 -0
- package/plugins/compound-engineering/.claude-plugin/plugin.json +33 -0
- package/plugins/compound-engineering/CHANGELOG.md +457 -0
- package/plugins/compound-engineering/CLAUDE.md +89 -0
- package/plugins/compound-engineering/LICENSE +21 -0
- package/plugins/compound-engineering/README.md +232 -0
- package/plugins/compound-engineering/agents/design/design-implementation-reviewer.md +109 -0
- package/plugins/compound-engineering/agents/design/design-iterator.md +224 -0
- package/plugins/compound-engineering/agents/design/figma-design-sync.md +190 -0
- package/plugins/compound-engineering/agents/docs/ankane-readme-writer.md +65 -0
- package/plugins/compound-engineering/agents/research/best-practices-researcher.md +126 -0
- package/plugins/compound-engineering/agents/research/framework-docs-researcher.md +106 -0
- package/plugins/compound-engineering/agents/research/git-history-analyzer.md +59 -0
- package/plugins/compound-engineering/agents/research/learnings-researcher.md +264 -0
- package/plugins/compound-engineering/agents/research/repo-research-analyst.md +135 -0
- package/plugins/compound-engineering/agents/review/agent-native-reviewer.md +261 -0
- package/plugins/compound-engineering/agents/review/architecture-strategist.md +67 -0
- package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +101 -0
- package/plugins/compound-engineering/agents/review/data-integrity-guardian.md +85 -0
- package/plugins/compound-engineering/agents/review/data-migration-expert.md +112 -0
- package/plugins/compound-engineering/agents/review/deployment-verification-agent.md +174 -0
- package/plugins/compound-engineering/agents/review/dhh-rails-reviewer.md +66 -0
- package/plugins/compound-engineering/agents/review/julik-frontend-races-reviewer.md +221 -0
- package/plugins/compound-engineering/agents/review/kieran-python-reviewer.md +133 -0
- package/plugins/compound-engineering/agents/review/kieran-rails-reviewer.md +115 -0
- package/plugins/compound-engineering/agents/review/kieran-typescript-reviewer.md +124 -0
- package/plugins/compound-engineering/agents/review/pattern-recognition-specialist.md +72 -0
- package/plugins/compound-engineering/agents/review/performance-oracle.md +137 -0
- package/plugins/compound-engineering/agents/review/schema-drift-detector.md +154 -0
- package/plugins/compound-engineering/agents/review/security-sentinel.md +114 -0
- package/plugins/compound-engineering/agents/workflow/bug-reproduction-validator.md +82 -0
- package/plugins/compound-engineering/agents/workflow/every-style-editor.md +64 -0
- package/plugins/compound-engineering/agents/workflow/lint.md +16 -0
- package/plugins/compound-engineering/agents/workflow/pr-comment-resolver.md +84 -0
- package/plugins/compound-engineering/agents/workflow/spec-flow-analyzer.md +134 -0
- package/plugins/compound-engineering/commands/agent-native-audit.md +278 -0
- package/plugins/compound-engineering/commands/changelog.md +138 -0
- package/plugins/compound-engineering/commands/create-agent-skill.md +9 -0
- package/plugins/compound-engineering/commands/deepen-plan.md +546 -0
- package/plugins/compound-engineering/commands/deploy-docs.md +113 -0
- package/plugins/compound-engineering/commands/feature-video.md +342 -0
- package/plugins/compound-engineering/commands/generate_command.md +163 -0
- package/plugins/compound-engineering/commands/heal-skill.md +143 -0
- package/plugins/compound-engineering/commands/lfg.md +20 -0
- package/plugins/compound-engineering/commands/release-docs.md +212 -0
- package/plugins/compound-engineering/commands/report-bug.md +151 -0
- package/plugins/compound-engineering/commands/reproduce-bug.md +100 -0
- package/plugins/compound-engineering/commands/resolve_parallel.md +35 -0
- package/plugins/compound-engineering/commands/resolve_todo_parallel.md +37 -0
- package/plugins/compound-engineering/commands/slfg.md +32 -0
- package/plugins/compound-engineering/commands/technical_review.md +8 -0
- package/plugins/compound-engineering/commands/test-browser.md +339 -0
- package/plugins/compound-engineering/commands/test-xcode.md +332 -0
- package/plugins/compound-engineering/commands/triage.md +311 -0
- package/plugins/compound-engineering/commands/workflows/brainstorm.md +124 -0
- package/plugins/compound-engineering/commands/workflows/compound.md +239 -0
- package/plugins/compound-engineering/commands/workflows/plan.md +551 -0
- package/plugins/compound-engineering/commands/workflows/review.md +526 -0
- package/plugins/compound-engineering/commands/workflows/work.md +433 -0
- package/plugins/compound-engineering/skills/agent-browser/SKILL.md +223 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/SKILL.md +435 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/plugins/compound-engineering/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/plugins/compound-engineering/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/plugins/compound-engineering/skills/brainstorming/SKILL.md +190 -0
- package/plugins/compound-engineering/skills/compound-docs/SKILL.md +511 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/plugins/compound-engineering/skills/compound-docs/assets/resolution-template.md +93 -0
- package/plugins/compound-engineering/skills/compound-docs/references/yaml-schema.md +65 -0
- package/plugins/compound-engineering/skills/compound-docs/schema.yaml +176 -0
- package/plugins/compound-engineering/skills/create-agent-skills/SKILL.md +275 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/api-security.md +226 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/best-practices.md +404 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/core-principles.md +437 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/executable-code.md +175 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/official-spec.md +134 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/using-templates.md +112 -0
- package/plugins/compound-engineering/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/plugins/compound-engineering/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/plugins/compound-engineering/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/SKILL.md +185 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/architecture.md +653 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/controllers.md +303 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/frontend.md +510 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/gems.md +266 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/models.md +359 -0
- package/plugins/compound-engineering/skills/dhh-rails-style/references/testing.md +338 -0
- package/plugins/compound-engineering/skills/document-review/SKILL.md +87 -0
- package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +737 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +603 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +418 -0
- package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
- package/plugins/compound-engineering/skills/every-style-editor/SKILL.md +134 -0
- package/plugins/compound-engineering/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/plugins/compound-engineering/skills/file-todos/SKILL.md +252 -0
- package/plugins/compound-engineering/skills/file-todos/assets/todo-template.md +155 -0
- package/plugins/compound-engineering/skills/frontend-design/SKILL.md +42 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/SKILL.md +237 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/requirements.txt +2 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/plugins/compound-engineering/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/plugins/compound-engineering/skills/git-worktree/SKILL.md +302 -0
- package/plugins/compound-engineering/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/plugins/compound-engineering/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/plugins/compound-engineering/skills/rclone/SKILL.md +150 -0
- package/plugins/compound-engineering/skills/rclone/scripts/check_setup.sh +60 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +89 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/get-pr-comments +68 -0
- package/plugins/compound-engineering/skills/resolve-pr-parallel/scripts/resolve-pr-thread +23 -0
- package/plugins/compound-engineering/skills/skill-creator/SKILL.md +210 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/init_skill.py +303 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/package_skill.py +110 -0
- package/plugins/compound-engineering/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/prompts/deepen-plan.md +549 -0
- package/prompts/feature-video.md +341 -0
- package/prompts/resolve_todo_parallel.md +36 -0
- package/prompts/test-browser.md +342 -0
- package/prompts/workflows-brainstorm.md +123 -0
- package/prompts/workflows-compound.md +238 -0
- package/prompts/workflows-plan.md +550 -0
- package/prompts/workflows-review.md +529 -0
- package/prompts/workflows-work.md +432 -0
- package/skills/agent-browser/SKILL.md +223 -0
- package/skills/agent-native-architecture/SKILL.md +435 -0
- package/skills/agent-native-architecture/references/action-parity-discipline.md +409 -0
- package/skills/agent-native-architecture/references/agent-execution-patterns.md +467 -0
- package/skills/agent-native-architecture/references/agent-native-testing.md +582 -0
- package/skills/agent-native-architecture/references/architecture-patterns.md +478 -0
- package/skills/agent-native-architecture/references/dynamic-context-injection.md +338 -0
- package/skills/agent-native-architecture/references/files-universal-interface.md +301 -0
- package/skills/agent-native-architecture/references/from-primitives-to-domain-tools.md +359 -0
- package/skills/agent-native-architecture/references/mcp-tool-design.md +506 -0
- package/skills/agent-native-architecture/references/mobile-patterns.md +871 -0
- package/skills/agent-native-architecture/references/product-implications.md +443 -0
- package/skills/agent-native-architecture/references/refactoring-to-prompt-native.md +317 -0
- package/skills/agent-native-architecture/references/self-modification.md +269 -0
- package/skills/agent-native-architecture/references/shared-workspace-architecture.md +680 -0
- package/skills/agent-native-architecture/references/system-prompt-design.md +250 -0
- package/skills/agent-native-reviewer/SKILL.md +260 -0
- package/skills/andrew-kane-gem-writer/SKILL.md +184 -0
- package/skills/andrew-kane-gem-writer/references/database-adapters.md +231 -0
- package/skills/andrew-kane-gem-writer/references/module-organization.md +121 -0
- package/skills/andrew-kane-gem-writer/references/rails-integration.md +183 -0
- package/skills/andrew-kane-gem-writer/references/resources.md +119 -0
- package/skills/andrew-kane-gem-writer/references/testing-patterns.md +261 -0
- package/skills/ankane-readme-writer/SKILL.md +63 -0
- package/skills/architecture-strategist/SKILL.md +66 -0
- package/skills/best-practices-researcher/SKILL.md +125 -0
- package/skills/brainstorming/SKILL.md +190 -0
- package/skills/bug-reproduction-validator/SKILL.md +81 -0
- package/skills/code-simplicity-reviewer/SKILL.md +100 -0
- package/skills/compound-docs/SKILL.md +511 -0
- package/skills/compound-docs/assets/critical-pattern-template.md +34 -0
- package/skills/compound-docs/assets/resolution-template.md +93 -0
- package/skills/compound-docs/references/yaml-schema.md +65 -0
- package/skills/compound-docs/schema.yaml +176 -0
- package/skills/create-agent-skills/SKILL.md +275 -0
- package/skills/create-agent-skills/references/api-security.md +226 -0
- package/skills/create-agent-skills/references/be-clear-and-direct.md +531 -0
- package/skills/create-agent-skills/references/best-practices.md +404 -0
- package/skills/create-agent-skills/references/common-patterns.md +595 -0
- package/skills/create-agent-skills/references/core-principles.md +437 -0
- package/skills/create-agent-skills/references/executable-code.md +175 -0
- package/skills/create-agent-skills/references/iteration-and-testing.md +474 -0
- package/skills/create-agent-skills/references/official-spec.md +134 -0
- package/skills/create-agent-skills/references/recommended-structure.md +168 -0
- package/skills/create-agent-skills/references/skill-structure.md +152 -0
- package/skills/create-agent-skills/references/using-scripts.md +113 -0
- package/skills/create-agent-skills/references/using-templates.md +112 -0
- package/skills/create-agent-skills/references/workflows-and-validation.md +510 -0
- package/skills/create-agent-skills/templates/router-skill.md +73 -0
- package/skills/create-agent-skills/templates/simple-skill.md +33 -0
- package/skills/create-agent-skills/workflows/add-reference.md +96 -0
- package/skills/create-agent-skills/workflows/add-script.md +93 -0
- package/skills/create-agent-skills/workflows/add-template.md +74 -0
- package/skills/create-agent-skills/workflows/add-workflow.md +120 -0
- package/skills/create-agent-skills/workflows/audit-skill.md +138 -0
- package/skills/create-agent-skills/workflows/create-domain-expertise-skill.md +605 -0
- package/skills/create-agent-skills/workflows/create-new-skill.md +191 -0
- package/skills/create-agent-skills/workflows/get-guidance.md +121 -0
- package/skills/create-agent-skills/workflows/upgrade-to-router.md +161 -0
- package/skills/create-agent-skills/workflows/verify-skill.md +204 -0
- package/skills/data-integrity-guardian/SKILL.md +84 -0
- package/skills/data-migration-expert/SKILL.md +111 -0
- package/skills/deployment-verification-agent/SKILL.md +173 -0
- package/skills/design-implementation-reviewer/SKILL.md +107 -0
- package/skills/design-iterator/SKILL.md +222 -0
- package/skills/dhh-rails-reviewer/SKILL.md +65 -0
- package/skills/dhh-rails-style/SKILL.md +185 -0
- package/skills/dhh-rails-style/references/architecture.md +653 -0
- package/skills/dhh-rails-style/references/controllers.md +303 -0
- package/skills/dhh-rails-style/references/frontend.md +510 -0
- package/skills/dhh-rails-style/references/gems.md +266 -0
- package/skills/dhh-rails-style/references/models.md +359 -0
- package/skills/dhh-rails-style/references/testing.md +338 -0
- package/skills/document-review/SKILL.md +87 -0
- package/skills/dspy-ruby/SKILL.md +737 -0
- package/skills/dspy-ruby/assets/config-template.rb +187 -0
- package/skills/dspy-ruby/assets/module-template.rb +300 -0
- package/skills/dspy-ruby/assets/signature-template.rb +221 -0
- package/skills/dspy-ruby/references/core-concepts.md +674 -0
- package/skills/dspy-ruby/references/observability.md +366 -0
- package/skills/dspy-ruby/references/optimization.md +603 -0
- package/skills/dspy-ruby/references/providers.md +418 -0
- package/skills/dspy-ruby/references/toolsets.md +502 -0
- package/skills/every-style-editor/SKILL.md +134 -0
- package/skills/every-style-editor/references/EVERY_WRITE_STYLE.md +529 -0
- package/skills/every-style-editor-2/SKILL.md +62 -0
- package/skills/figma-design-sync/SKILL.md +188 -0
- package/skills/file-todos/SKILL.md +252 -0
- package/skills/file-todos/assets/todo-template.md +155 -0
- package/skills/framework-docs-researcher/SKILL.md +105 -0
- package/skills/frontend-design/SKILL.md +42 -0
- package/skills/gemini-imagegen/SKILL.md +237 -0
- package/skills/gemini-imagegen/requirements.txt +2 -0
- package/skills/gemini-imagegen/scripts/compose_images.py +157 -0
- package/skills/gemini-imagegen/scripts/edit_image.py +144 -0
- package/skills/gemini-imagegen/scripts/gemini_images.py +263 -0
- package/skills/gemini-imagegen/scripts/generate_image.py +133 -0
- package/skills/gemini-imagegen/scripts/multi_turn_chat.py +216 -0
- package/skills/git-history-analyzer/SKILL.md +58 -0
- package/skills/git-worktree/SKILL.md +302 -0
- package/skills/git-worktree/scripts/worktree-manager.sh +337 -0
- package/skills/julik-frontend-races-reviewer/SKILL.md +220 -0
- package/skills/kieran-python-reviewer/SKILL.md +132 -0
- package/skills/kieran-rails-reviewer/SKILL.md +114 -0
- package/skills/kieran-typescript-reviewer/SKILL.md +123 -0
- package/skills/learnings-researcher/SKILL.md +263 -0
- package/skills/lint/SKILL.md +14 -0
- package/skills/orchestrating-swarms/SKILL.md +1718 -0
- package/skills/pattern-recognition-specialist/SKILL.md +71 -0
- package/skills/performance-oracle/SKILL.md +136 -0
- package/skills/pr-comment-resolver/SKILL.md +82 -0
- package/skills/rclone/SKILL.md +150 -0
- package/skills/rclone/scripts/check_setup.sh +60 -0
- package/skills/repo-research-analyst/SKILL.md +134 -0
- package/skills/resolve_pr_parallel/SKILL.md +89 -0
- package/skills/resolve_pr_parallel/scripts/get-pr-comments +68 -0
- package/skills/resolve_pr_parallel/scripts/resolve-pr-thread +23 -0
- package/skills/schema-drift-detector/SKILL.md +153 -0
- package/skills/security-sentinel/SKILL.md +113 -0
- package/skills/skill-creator/SKILL.md +210 -0
- package/skills/skill-creator/scripts/init_skill.py +303 -0
- package/skills/skill-creator/scripts/package_skill.py +110 -0
- package/skills/skill-creator/scripts/quick_validate.py +65 -0
- package/skills/spec-flow-analyzer/SKILL.md +133 -0
- package/src/commands/convert.ts +183 -0
- package/src/commands/install.ts +273 -0
- package/src/commands/list.ts +37 -0
- package/src/commands/sync.ts +89 -0
- package/src/converters/claude-to-codex.ts +182 -0
- package/src/converters/claude-to-opencode.ts +395 -0
- package/src/converters/claude-to-pi.ts +205 -0
- package/src/index.ts +22 -0
- package/src/parsers/claude-home.ts +65 -0
- package/src/parsers/claude.ts +252 -0
- package/src/sync/codex.ts +92 -0
- package/src/sync/opencode.ts +75 -0
- package/src/sync/pi.ts +88 -0
- package/src/targets/codex.ts +96 -0
- package/src/targets/index.ts +38 -0
- package/src/targets/opencode.ts +57 -0
- package/src/targets/pi.ts +131 -0
- package/src/templates/pi/compat-extension.ts +452 -0
- package/src/types/claude.ts +90 -0
- package/src/types/codex.ts +23 -0
- package/src/types/opencode.ts +54 -0
- package/src/types/pi.ts +40 -0
- package/src/utils/codex-agents.ts +64 -0
- package/src/utils/files.ts +77 -0
- package/src/utils/frontmatter.ts +65 -0
- package/src/utils/symlink.ts +43 -0
package/plugins/compound-engineering/skills/create-agent-skills/references/recommended-structure.md
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# Recommended Skill Structure
|
|
2
|
+
|
|
3
|
+
The optimal structure for complex skills separates routing, workflows, and knowledge.
|
|
4
|
+
|
|
5
|
+
<structure>
|
|
6
|
+
```
|
|
7
|
+
skill-name/
|
|
8
|
+
├── SKILL.md # Router + essential principles (unavoidable)
|
|
9
|
+
├── workflows/ # Step-by-step procedures (how)
|
|
10
|
+
│ ├── workflow-a.md
|
|
11
|
+
│ ├── workflow-b.md
|
|
12
|
+
│ └── ...
|
|
13
|
+
└── references/ # Domain knowledge (what)
|
|
14
|
+
├── reference-a.md
|
|
15
|
+
├── reference-b.md
|
|
16
|
+
└── ...
|
|
17
|
+
```
|
|
18
|
+
</structure>
|
|
19
|
+
|
|
20
|
+
<why_this_works>
|
|
21
|
+
## Problems This Solves
|
|
22
|
+
|
|
23
|
+
**Problem 1: Context gets skipped**
|
|
24
|
+
When important principles are in a separate file, Claude may not read them.
|
|
25
|
+
**Solution:** Put essential principles directly in SKILL.md. They load automatically.
|
|
26
|
+
|
|
27
|
+
**Problem 2: Wrong context loaded**
|
|
28
|
+
A "build" task loads debugging references. A "debug" task loads build references.
|
|
29
|
+
**Solution:** Intake question determines intent → routes to specific workflow → workflow specifies which references to read.
|
|
30
|
+
|
|
31
|
+
**Problem 3: Monolithic skills are overwhelming**
|
|
32
|
+
500+ lines of mixed content makes it hard to find relevant parts.
|
|
33
|
+
**Solution:** Small router (SKILL.md) + focused workflows + reference library.
|
|
34
|
+
|
|
35
|
+
**Problem 4: Procedures mixed with knowledge**
|
|
36
|
+
"How to do X" mixed with "What X means" creates confusion.
|
|
37
|
+
**Solution:** Workflows are procedures (steps). References are knowledge (patterns, examples).
|
|
38
|
+
</why_this_works>
|
|
39
|
+
|
|
40
|
+
<skill_md_template>
|
|
41
|
+
## SKILL.md Template
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
---
|
|
45
|
+
name: skill-name
|
|
46
|
+
description: What it does and when to use it.
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
<essential_principles>
|
|
50
|
+
## How This Skill Works
|
|
51
|
+
|
|
52
|
+
[Inline principles that apply to ALL workflows. Cannot be skipped.]
|
|
53
|
+
|
|
54
|
+
### Principle 1: [Name]
|
|
55
|
+
[Brief explanation]
|
|
56
|
+
|
|
57
|
+
### Principle 2: [Name]
|
|
58
|
+
[Brief explanation]
|
|
59
|
+
</essential_principles>
|
|
60
|
+
|
|
61
|
+
<intake>
|
|
62
|
+
**Ask the user:**
|
|
63
|
+
|
|
64
|
+
What would you like to do?
|
|
65
|
+
1. [Option A]
|
|
66
|
+
2. [Option B]
|
|
67
|
+
3. [Option C]
|
|
68
|
+
4. Something else
|
|
69
|
+
|
|
70
|
+
**Wait for response before proceeding.**
|
|
71
|
+
</intake>
|
|
72
|
+
|
|
73
|
+
<routing>
|
|
74
|
+
| Response | Workflow |
|
|
75
|
+
|----------|----------|
|
|
76
|
+
| 1, "keyword", "keyword" | `workflows/option-a.md` |
|
|
77
|
+
| 2, "keyword", "keyword" | `workflows/option-b.md` |
|
|
78
|
+
| 3, "keyword", "keyword" | `workflows/option-c.md` |
|
|
79
|
+
| 4, other | Clarify, then select |
|
|
80
|
+
|
|
81
|
+
**After reading the workflow, follow it exactly.**
|
|
82
|
+
</routing>
|
|
83
|
+
|
|
84
|
+
<reference_index>
|
|
85
|
+
All domain knowledge in `references/`:
|
|
86
|
+
|
|
87
|
+
**Category A:** file-a.md, file-b.md
|
|
88
|
+
**Category B:** file-c.md, file-d.md
|
|
89
|
+
</reference_index>
|
|
90
|
+
|
|
91
|
+
<workflows_index>
|
|
92
|
+
| Workflow | Purpose |
|
|
93
|
+
|----------|---------|
|
|
94
|
+
| option-a.md | [What it does] |
|
|
95
|
+
| option-b.md | [What it does] |
|
|
96
|
+
| option-c.md | [What it does] |
|
|
97
|
+
</workflows_index>
|
|
98
|
+
```
|
|
99
|
+
</skill_md_template>
|
|
100
|
+
|
|
101
|
+
<workflow_template>
|
|
102
|
+
## Workflow Template
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
# Workflow: [Name]
|
|
106
|
+
|
|
107
|
+
<required_reading>
|
|
108
|
+
**Read these reference files NOW:**
|
|
109
|
+
1. references/relevant-file.md
|
|
110
|
+
2. references/another-file.md
|
|
111
|
+
</required_reading>
|
|
112
|
+
|
|
113
|
+
<process>
|
|
114
|
+
## Step 1: [Name]
|
|
115
|
+
[What to do]
|
|
116
|
+
|
|
117
|
+
## Step 2: [Name]
|
|
118
|
+
[What to do]
|
|
119
|
+
|
|
120
|
+
## Step 3: [Name]
|
|
121
|
+
[What to do]
|
|
122
|
+
</process>
|
|
123
|
+
|
|
124
|
+
<success_criteria>
|
|
125
|
+
This workflow is complete when:
|
|
126
|
+
- [ ] Criterion 1
|
|
127
|
+
- [ ] Criterion 2
|
|
128
|
+
- [ ] Criterion 3
|
|
129
|
+
</success_criteria>
|
|
130
|
+
```
|
|
131
|
+
</workflow_template>
|
|
132
|
+
|
|
133
|
+
<when_to_use_this_pattern>
|
|
134
|
+
## When to Use This Pattern
|
|
135
|
+
|
|
136
|
+
**Use router + workflows + references when:**
|
|
137
|
+
- Multiple distinct workflows (build vs debug vs ship)
|
|
138
|
+
- Different workflows need different references
|
|
139
|
+
- Essential principles must not be skipped
|
|
140
|
+
- Skill has grown beyond 200 lines
|
|
141
|
+
|
|
142
|
+
**Use simple single-file skill when:**
|
|
143
|
+
- One workflow
|
|
144
|
+
- Small reference set
|
|
145
|
+
- Under 200 lines total
|
|
146
|
+
- No essential principles to enforce
|
|
147
|
+
</when_to_use_this_pattern>
|
|
148
|
+
|
|
149
|
+
<key_insight>
|
|
150
|
+
## The Key Insight
|
|
151
|
+
|
|
152
|
+
**SKILL.md is always loaded. Use this guarantee.**
|
|
153
|
+
|
|
154
|
+
Put unavoidable content in SKILL.md:
|
|
155
|
+
- Essential principles
|
|
156
|
+
- Intake question
|
|
157
|
+
- Routing logic
|
|
158
|
+
|
|
159
|
+
Put workflow-specific content in workflows/:
|
|
160
|
+
- Step-by-step procedures
|
|
161
|
+
- Required references for that workflow
|
|
162
|
+
- Success criteria for that workflow
|
|
163
|
+
|
|
164
|
+
Put reusable knowledge in references/:
|
|
165
|
+
- Patterns and examples
|
|
166
|
+
- Technical details
|
|
167
|
+
- Domain expertise
|
|
168
|
+
</key_insight>
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Skill Structure Reference
|
|
2
|
+
|
|
3
|
+
Skills have three structural components: YAML frontmatter (metadata), standard markdown body (content), and progressive disclosure (file organization).
|
|
4
|
+
|
|
5
|
+
## Body Format
|
|
6
|
+
|
|
7
|
+
Use **standard markdown headings** for structure. Keep markdown formatting within content (bold, italic, lists, code blocks, links).
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
---
|
|
11
|
+
name: my-skill
|
|
12
|
+
description: What it does and when to use it
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Skill Name
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
Immediate actionable guidance...
|
|
19
|
+
|
|
20
|
+
## Instructions
|
|
21
|
+
Step-by-step procedures...
|
|
22
|
+
|
|
23
|
+
## Examples
|
|
24
|
+
Concrete usage examples...
|
|
25
|
+
|
|
26
|
+
## Guidelines
|
|
27
|
+
Rules and constraints...
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Recommended Sections
|
|
31
|
+
|
|
32
|
+
Every skill should have:
|
|
33
|
+
|
|
34
|
+
- **Quick Start** - Immediate, actionable guidance (minimal working example)
|
|
35
|
+
- **Instructions** - Core step-by-step guidance
|
|
36
|
+
- **Success Criteria** - How to know it worked
|
|
37
|
+
|
|
38
|
+
Add based on complexity:
|
|
39
|
+
|
|
40
|
+
- **Context** - Background/situational information
|
|
41
|
+
- **Workflow** - Multi-step procedures
|
|
42
|
+
- **Examples** - Concrete input/output pairs
|
|
43
|
+
- **Advanced Features** - Deep-dive topics (link to reference files)
|
|
44
|
+
- **Anti-Patterns** - Common mistakes to avoid
|
|
45
|
+
- **Guidelines** - Rules and constraints
|
|
46
|
+
|
|
47
|
+
## YAML Frontmatter
|
|
48
|
+
|
|
49
|
+
### Required/Recommended Fields
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
---
|
|
53
|
+
name: skill-name-here
|
|
54
|
+
description: What it does and when to use it (specific triggers included)
|
|
55
|
+
---
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Name Field
|
|
59
|
+
|
|
60
|
+
**Validation rules:**
|
|
61
|
+
- Maximum 64 characters
|
|
62
|
+
- Lowercase letters, numbers, hyphens only
|
|
63
|
+
- Must match directory name
|
|
64
|
+
- No reserved words: "anthropic", "claude"
|
|
65
|
+
|
|
66
|
+
**Examples:**
|
|
67
|
+
- `triage-prs`
|
|
68
|
+
- `deploy-production`
|
|
69
|
+
- `review-code`
|
|
70
|
+
- `setup-stripe-payments`
|
|
71
|
+
|
|
72
|
+
**Avoid:** `helper`, `utils`, `tools`, generic names
|
|
73
|
+
|
|
74
|
+
### Description Field
|
|
75
|
+
|
|
76
|
+
**Validation rules:**
|
|
77
|
+
- Maximum 1024 characters
|
|
78
|
+
- Include what it does AND when to use it
|
|
79
|
+
- Third person voice
|
|
80
|
+
|
|
81
|
+
**Good:**
|
|
82
|
+
```yaml
|
|
83
|
+
description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction.
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Bad:**
|
|
87
|
+
```yaml
|
|
88
|
+
description: Helps with documents
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Optional Fields
|
|
92
|
+
|
|
93
|
+
| Field | Description |
|
|
94
|
+
|-------|-------------|
|
|
95
|
+
| `argument-hint` | Usage hints. Example: `[issue-number]` |
|
|
96
|
+
| `disable-model-invocation` | `true` to prevent auto-loading. Use for side-effect workflows. |
|
|
97
|
+
| `user-invocable` | `false` to hide from `/` menu. Use for background knowledge. |
|
|
98
|
+
| `allowed-tools` | Tools without permission prompts. Example: `Read, Bash(git *)` |
|
|
99
|
+
| `model` | `haiku`, `sonnet`, or `opus` |
|
|
100
|
+
| `context` | `fork` for isolated subagent execution |
|
|
101
|
+
| `agent` | Subagent type: `Explore`, `Plan`, `general-purpose`, or custom |
|
|
102
|
+
|
|
103
|
+
## Naming Conventions
|
|
104
|
+
|
|
105
|
+
Use descriptive names that indicate purpose:
|
|
106
|
+
|
|
107
|
+
| Pattern | Examples |
|
|
108
|
+
|---------|----------|
|
|
109
|
+
| Action-oriented | `triage-prs`, `deploy-production`, `review-code` |
|
|
110
|
+
| Domain-specific | `setup-stripe-payments`, `manage-facebook-ads` |
|
|
111
|
+
| Descriptive | `git-worktree`, `frontend-design`, `dhh-rails-style` |
|
|
112
|
+
|
|
113
|
+
## Progressive Disclosure
|
|
114
|
+
|
|
115
|
+
Keep SKILL.md under 500 lines. Split into reference files:
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
my-skill/
|
|
119
|
+
├── SKILL.md # Entry point (required, overview + navigation)
|
|
120
|
+
├── reference.md # Detailed docs (loaded when needed)
|
|
121
|
+
├── examples.md # Usage examples (loaded when needed)
|
|
122
|
+
└── scripts/
|
|
123
|
+
└── helper.py # Utility script (executed, not loaded)
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Rules:**
|
|
127
|
+
- Keep references one level deep from SKILL.md
|
|
128
|
+
- Add table of contents to reference files over 100 lines
|
|
129
|
+
- Use forward slashes in paths: `scripts/helper.py`
|
|
130
|
+
- Name files descriptively: `form_validation_rules.md` not `doc2.md`
|
|
131
|
+
|
|
132
|
+
## Validation Checklist
|
|
133
|
+
|
|
134
|
+
Before finalizing:
|
|
135
|
+
|
|
136
|
+
- [ ] YAML frontmatter valid (name matches directory, description specific)
|
|
137
|
+
- [ ] Uses standard markdown headings (not XML tags)
|
|
138
|
+
- [ ] Has Quick Start, Instructions, and Success Criteria sections
|
|
139
|
+
- [ ] `disable-model-invocation: true` if skill has side effects
|
|
140
|
+
- [ ] SKILL.md under 500 lines
|
|
141
|
+
- [ ] Reference files linked properly from SKILL.md
|
|
142
|
+
- [ ] File paths use forward slashes
|
|
143
|
+
- [ ] Tested with real usage
|
|
144
|
+
|
|
145
|
+
## Anti-Patterns
|
|
146
|
+
|
|
147
|
+
- **XML tags in body** - Use standard markdown headings
|
|
148
|
+
- **Vague descriptions** - Be specific with trigger keywords
|
|
149
|
+
- **Deep nesting** - Keep references one level from SKILL.md
|
|
150
|
+
- **Missing invocation control** - Side-effect workflows need `disable-model-invocation: true`
|
|
151
|
+
- **Inconsistent naming** - Directory name must match `name` field
|
|
152
|
+
- **Windows paths** - Always use forward slashes
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Using Scripts in Skills
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Scripts are executable code that Claude runs as-is rather than regenerating each time. They ensure reliable, error-free execution of repeated operations.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<when_to_use>
|
|
8
|
+
Use scripts when:
|
|
9
|
+
- The same code runs across multiple skill invocations
|
|
10
|
+
- Operations are error-prone when rewritten from scratch
|
|
11
|
+
- Complex shell commands or API interactions are involved
|
|
12
|
+
- Consistency matters more than flexibility
|
|
13
|
+
|
|
14
|
+
Common script types:
|
|
15
|
+
- **Deployment** - Deploy to Vercel, publish packages, push releases
|
|
16
|
+
- **Setup** - Initialize projects, install dependencies, configure environments
|
|
17
|
+
- **API calls** - Authenticated requests, webhook handlers, data fetches
|
|
18
|
+
- **Data processing** - Transform files, batch operations, migrations
|
|
19
|
+
- **Build processes** - Compile, bundle, test runners
|
|
20
|
+
</when_to_use>
|
|
21
|
+
|
|
22
|
+
<script_structure>
|
|
23
|
+
Scripts live in `scripts/` within the skill directory:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
skill-name/
|
|
27
|
+
├── SKILL.md
|
|
28
|
+
├── workflows/
|
|
29
|
+
├── references/
|
|
30
|
+
├── templates/
|
|
31
|
+
└── scripts/
|
|
32
|
+
├── deploy.sh
|
|
33
|
+
├── setup.py
|
|
34
|
+
└── fetch-data.ts
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
A well-structured script includes:
|
|
38
|
+
1. Clear purpose comment at top
|
|
39
|
+
2. Input validation
|
|
40
|
+
3. Error handling
|
|
41
|
+
4. Idempotent operations where possible
|
|
42
|
+
5. Clear output/feedback
|
|
43
|
+
</script_structure>
|
|
44
|
+
|
|
45
|
+
<script_example>
|
|
46
|
+
```bash
|
|
47
|
+
#!/bin/bash
|
|
48
|
+
# deploy.sh - Deploy project to Vercel
|
|
49
|
+
# Usage: ./deploy.sh [environment]
|
|
50
|
+
# Environments: preview (default), production
|
|
51
|
+
|
|
52
|
+
set -euo pipefail
|
|
53
|
+
|
|
54
|
+
ENVIRONMENT="${1:-preview}"
|
|
55
|
+
|
|
56
|
+
# Validate environment
|
|
57
|
+
if [[ "$ENVIRONMENT" != "preview" && "$ENVIRONMENT" != "production" ]]; then
|
|
58
|
+
echo "Error: Environment must be 'preview' or 'production'"
|
|
59
|
+
exit 1
|
|
60
|
+
fi
|
|
61
|
+
|
|
62
|
+
echo "Deploying to $ENVIRONMENT..."
|
|
63
|
+
|
|
64
|
+
if [[ "$ENVIRONMENT" == "production" ]]; then
|
|
65
|
+
vercel --prod
|
|
66
|
+
else
|
|
67
|
+
vercel
|
|
68
|
+
fi
|
|
69
|
+
|
|
70
|
+
echo "Deployment complete."
|
|
71
|
+
```
|
|
72
|
+
</script_example>
|
|
73
|
+
|
|
74
|
+
<workflow_integration>
|
|
75
|
+
Workflows reference scripts like this:
|
|
76
|
+
|
|
77
|
+
```xml
|
|
78
|
+
<process>
|
|
79
|
+
## Step 5: Deploy
|
|
80
|
+
|
|
81
|
+
1. Ensure all tests pass
|
|
82
|
+
2. Run `scripts/deploy.sh production`
|
|
83
|
+
3. Verify deployment succeeded
|
|
84
|
+
4. Update user with deployment URL
|
|
85
|
+
</process>
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The workflow tells Claude WHEN to run the script. The script handles HOW the operation executes.
|
|
89
|
+
</workflow_integration>
|
|
90
|
+
|
|
91
|
+
<best_practices>
|
|
92
|
+
**Do:**
|
|
93
|
+
- Make scripts idempotent (safe to run multiple times)
|
|
94
|
+
- Include clear usage comments
|
|
95
|
+
- Validate inputs before executing
|
|
96
|
+
- Provide meaningful error messages
|
|
97
|
+
- Use `set -euo pipefail` in bash scripts
|
|
98
|
+
|
|
99
|
+
**Don't:**
|
|
100
|
+
- Hardcode secrets or credentials (use environment variables)
|
|
101
|
+
- Create scripts for one-off operations
|
|
102
|
+
- Skip error handling
|
|
103
|
+
- Make scripts do too many unrelated things
|
|
104
|
+
- Forget to make scripts executable (`chmod +x`)
|
|
105
|
+
</best_practices>
|
|
106
|
+
|
|
107
|
+
<security_considerations>
|
|
108
|
+
- Never embed API keys, tokens, or secrets in scripts
|
|
109
|
+
- Use environment variables for sensitive configuration
|
|
110
|
+
- Validate and sanitize any user-provided inputs
|
|
111
|
+
- Be cautious with scripts that delete or modify data
|
|
112
|
+
- Consider adding `--dry-run` options for destructive operations
|
|
113
|
+
</security_considerations>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Using Templates in Skills
|
|
2
|
+
|
|
3
|
+
<purpose>
|
|
4
|
+
Templates are reusable output structures that Claude copies and fills in. They ensure consistent, high-quality outputs without regenerating structure each time.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<when_to_use>
|
|
8
|
+
Use templates when:
|
|
9
|
+
- Output should have consistent structure across invocations
|
|
10
|
+
- The structure matters more than creative generation
|
|
11
|
+
- Filling placeholders is more reliable than blank-page generation
|
|
12
|
+
- Users expect predictable, professional-looking outputs
|
|
13
|
+
|
|
14
|
+
Common template types:
|
|
15
|
+
- **Plans** - Project plans, implementation plans, migration plans
|
|
16
|
+
- **Specifications** - Technical specs, feature specs, API specs
|
|
17
|
+
- **Documents** - Reports, proposals, summaries
|
|
18
|
+
- **Configurations** - Config files, settings, environment setups
|
|
19
|
+
- **Scaffolds** - File structures, boilerplate code
|
|
20
|
+
</when_to_use>
|
|
21
|
+
|
|
22
|
+
<template_structure>
|
|
23
|
+
Templates live in `templates/` within the skill directory:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
skill-name/
|
|
27
|
+
├── SKILL.md
|
|
28
|
+
├── workflows/
|
|
29
|
+
├── references/
|
|
30
|
+
└── templates/
|
|
31
|
+
├── plan-template.md
|
|
32
|
+
├── spec-template.md
|
|
33
|
+
└── report-template.md
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
A template file contains:
|
|
37
|
+
1. Clear section markers
|
|
38
|
+
2. Placeholder indicators (use `{{placeholder}}` or `[PLACEHOLDER]`)
|
|
39
|
+
3. Inline guidance for what goes where
|
|
40
|
+
4. Example content where helpful
|
|
41
|
+
</template_structure>
|
|
42
|
+
|
|
43
|
+
<template_example>
|
|
44
|
+
```markdown
|
|
45
|
+
# {{PROJECT_NAME}} Implementation Plan
|
|
46
|
+
|
|
47
|
+
## Overview
|
|
48
|
+
{{1-2 sentence summary of what this plan covers}}
|
|
49
|
+
|
|
50
|
+
## Goals
|
|
51
|
+
- {{Primary goal}}
|
|
52
|
+
- {{Secondary goals...}}
|
|
53
|
+
|
|
54
|
+
## Scope
|
|
55
|
+
**In scope:**
|
|
56
|
+
- {{What's included}}
|
|
57
|
+
|
|
58
|
+
**Out of scope:**
|
|
59
|
+
- {{What's explicitly excluded}}
|
|
60
|
+
|
|
61
|
+
## Phases
|
|
62
|
+
|
|
63
|
+
### Phase 1: {{Phase name}}
|
|
64
|
+
**Duration:** {{Estimated duration}}
|
|
65
|
+
**Deliverables:**
|
|
66
|
+
- {{Deliverable 1}}
|
|
67
|
+
- {{Deliverable 2}}
|
|
68
|
+
|
|
69
|
+
### Phase 2: {{Phase name}}
|
|
70
|
+
...
|
|
71
|
+
|
|
72
|
+
## Success Criteria
|
|
73
|
+
- [ ] {{Measurable criterion 1}}
|
|
74
|
+
- [ ] {{Measurable criterion 2}}
|
|
75
|
+
|
|
76
|
+
## Risks
|
|
77
|
+
| Risk | Likelihood | Impact | Mitigation |
|
|
78
|
+
|------|------------|--------|------------|
|
|
79
|
+
| {{Risk}} | {{H/M/L}} | {{H/M/L}} | {{Strategy}} |
|
|
80
|
+
```
|
|
81
|
+
</template_example>
|
|
82
|
+
|
|
83
|
+
<workflow_integration>
|
|
84
|
+
Workflows reference templates like this:
|
|
85
|
+
|
|
86
|
+
```xml
|
|
87
|
+
<process>
|
|
88
|
+
## Step 3: Generate Plan
|
|
89
|
+
|
|
90
|
+
1. Read `templates/plan-template.md`
|
|
91
|
+
2. Copy the template structure
|
|
92
|
+
3. Fill each placeholder based on gathered requirements
|
|
93
|
+
4. Review for completeness
|
|
94
|
+
</process>
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
The workflow tells Claude WHEN to use the template. The template provides WHAT structure to produce.
|
|
98
|
+
</workflow_integration>
|
|
99
|
+
|
|
100
|
+
<best_practices>
|
|
101
|
+
**Do:**
|
|
102
|
+
- Keep templates focused on structure, not content
|
|
103
|
+
- Use clear placeholder syntax consistently
|
|
104
|
+
- Include brief inline guidance where sections might be ambiguous
|
|
105
|
+
- Make templates complete but minimal
|
|
106
|
+
|
|
107
|
+
**Don't:**
|
|
108
|
+
- Put excessive example content that might be copied verbatim
|
|
109
|
+
- Create templates for outputs that genuinely need creative generation
|
|
110
|
+
- Over-constrain with too many required sections
|
|
111
|
+
- Forget to update templates when requirements change
|
|
112
|
+
</best_practices>
|