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
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: feature-video
|
|
3
|
+
description: Record a video walkthrough of a feature and add it to the PR description
|
|
4
|
+
argument-hint: "[PR number or 'current'] [optional: base URL, default localhost:3000]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Feature Video Walkthrough
|
|
8
|
+
|
|
9
|
+
<command_purpose>Record a video walkthrough demonstrating a feature, upload it, and add it to the PR description.</command_purpose>
|
|
10
|
+
|
|
11
|
+
## Introduction
|
|
12
|
+
|
|
13
|
+
<role>Developer Relations Engineer creating feature demo videos</role>
|
|
14
|
+
|
|
15
|
+
This command creates professional video walkthroughs of features for PR documentation:
|
|
16
|
+
- Records browser interactions using agent-browser CLI
|
|
17
|
+
- Demonstrates the complete user flow
|
|
18
|
+
- Uploads the video for easy sharing
|
|
19
|
+
- Updates the PR description with an embedded video
|
|
20
|
+
|
|
21
|
+
## Prerequisites
|
|
22
|
+
|
|
23
|
+
<requirements>
|
|
24
|
+
- Local development server running (e.g., `bin/dev`, `rails server`)
|
|
25
|
+
- agent-browser CLI installed
|
|
26
|
+
- Git repository with a PR to document
|
|
27
|
+
- `ffmpeg` installed (for video conversion)
|
|
28
|
+
- `rclone` configured (optional, for cloud upload - see rclone skill)
|
|
29
|
+
</requirements>
|
|
30
|
+
|
|
31
|
+
## Setup
|
|
32
|
+
|
|
33
|
+
**Check installation:**
|
|
34
|
+
```bash
|
|
35
|
+
command -v agent-browser >/dev/null 2>&1 && echo "Installed" || echo "NOT INSTALLED"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
**Install if needed:**
|
|
39
|
+
```bash
|
|
40
|
+
npm install -g agent-browser && agent-browser install
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
See the `agent-browser` skill for detailed usage.
|
|
44
|
+
|
|
45
|
+
## Main Tasks
|
|
46
|
+
|
|
47
|
+
### 1. Parse Arguments
|
|
48
|
+
|
|
49
|
+
<parse_args>
|
|
50
|
+
|
|
51
|
+
**Arguments:** $ARGUMENTS
|
|
52
|
+
|
|
53
|
+
Parse the input:
|
|
54
|
+
- First argument: PR number or "current" (defaults to current branch's PR)
|
|
55
|
+
- Second argument: Base URL (defaults to `http://localhost:3000`)
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Get PR number for current branch if needed
|
|
59
|
+
gh pr view --json number -q '.number'
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
</parse_args>
|
|
63
|
+
|
|
64
|
+
### 2. Gather Feature Context
|
|
65
|
+
|
|
66
|
+
<gather_context>
|
|
67
|
+
|
|
68
|
+
**Get PR details:**
|
|
69
|
+
```bash
|
|
70
|
+
gh pr view [number] --json title,body,files,headRefName -q '.'
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Get changed files:**
|
|
74
|
+
```bash
|
|
75
|
+
gh pr view [number] --json files -q '.files[].path'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Map files to testable routes** (same as playwright-test):
|
|
79
|
+
|
|
80
|
+
| File Pattern | Route(s) |
|
|
81
|
+
|-------------|----------|
|
|
82
|
+
| `app/views/users/*` | `/users`, `/users/:id`, `/users/new` |
|
|
83
|
+
| `app/controllers/settings_controller.rb` | `/settings` |
|
|
84
|
+
| `app/javascript/controllers/*_controller.js` | Pages using that Stimulus controller |
|
|
85
|
+
| `app/components/*_component.rb` | Pages rendering that component |
|
|
86
|
+
|
|
87
|
+
</gather_context>
|
|
88
|
+
|
|
89
|
+
### 3. Plan the Video Flow
|
|
90
|
+
|
|
91
|
+
<plan_flow>
|
|
92
|
+
|
|
93
|
+
Before recording, create a shot list:
|
|
94
|
+
|
|
95
|
+
1. **Opening shot**: Homepage or starting point (2-3 seconds)
|
|
96
|
+
2. **Navigation**: How user gets to the feature
|
|
97
|
+
3. **Feature demonstration**: Core functionality (main focus)
|
|
98
|
+
4. **Edge cases**: Error states, validation, etc. (if applicable)
|
|
99
|
+
5. **Success state**: Completed action/result
|
|
100
|
+
|
|
101
|
+
Ask user to confirm or adjust the flow:
|
|
102
|
+
|
|
103
|
+
```markdown
|
|
104
|
+
**Proposed Video Flow**
|
|
105
|
+
|
|
106
|
+
Based on PR #[number]: [title]
|
|
107
|
+
|
|
108
|
+
1. Start at: /[starting-route]
|
|
109
|
+
2. Navigate to: /[feature-route]
|
|
110
|
+
3. Demonstrate:
|
|
111
|
+
- [Action 1]
|
|
112
|
+
- [Action 2]
|
|
113
|
+
- [Action 3]
|
|
114
|
+
4. Show result: [success state]
|
|
115
|
+
|
|
116
|
+
Estimated duration: ~[X] seconds
|
|
117
|
+
|
|
118
|
+
Does this look right?
|
|
119
|
+
1. Yes, start recording
|
|
120
|
+
2. Modify the flow (describe changes)
|
|
121
|
+
3. Add specific interactions to demonstrate
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
</plan_flow>
|
|
125
|
+
|
|
126
|
+
### 4. Setup Video Recording
|
|
127
|
+
|
|
128
|
+
<setup_recording>
|
|
129
|
+
|
|
130
|
+
**Create videos directory:**
|
|
131
|
+
```bash
|
|
132
|
+
mkdir -p tmp/videos
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
**Recording approach: Use browser screenshots as frames**
|
|
136
|
+
|
|
137
|
+
agent-browser captures screenshots at key moments, then combine into video using ffmpeg:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
ffmpeg -framerate 2 -pattern_type glob -i 'tmp/screenshots/*.png' -vf "scale=1280:-1" tmp/videos/feature-demo.gif
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
</setup_recording>
|
|
144
|
+
|
|
145
|
+
### 5. Record the Walkthrough
|
|
146
|
+
|
|
147
|
+
<record_walkthrough>
|
|
148
|
+
|
|
149
|
+
Execute the planned flow, capturing each step:
|
|
150
|
+
|
|
151
|
+
**Step 1: Navigate to starting point**
|
|
152
|
+
```bash
|
|
153
|
+
agent-browser open "[base-url]/[start-route]"
|
|
154
|
+
agent-browser wait 2000
|
|
155
|
+
agent-browser screenshot tmp/screenshots/01-start.png
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
**Step 2: Perform navigation/interactions**
|
|
159
|
+
```bash
|
|
160
|
+
agent-browser snapshot -i # Get refs
|
|
161
|
+
agent-browser click @e1 # Click navigation element
|
|
162
|
+
agent-browser wait 1000
|
|
163
|
+
agent-browser screenshot tmp/screenshots/02-navigate.png
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Step 3: Demonstrate feature**
|
|
167
|
+
```bash
|
|
168
|
+
agent-browser snapshot -i # Get refs for feature elements
|
|
169
|
+
agent-browser click @e2 # Click feature element
|
|
170
|
+
agent-browser wait 1000
|
|
171
|
+
agent-browser screenshot tmp/screenshots/03-feature.png
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
**Step 4: Capture result**
|
|
175
|
+
```bash
|
|
176
|
+
agent-browser wait 2000
|
|
177
|
+
agent-browser screenshot tmp/screenshots/04-result.png
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**Create video/GIF from screenshots:**
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
# Create directories
|
|
184
|
+
mkdir -p tmp/videos tmp/screenshots
|
|
185
|
+
|
|
186
|
+
# Create MP4 video (RECOMMENDED - better quality, smaller size)
|
|
187
|
+
# -framerate 0.5 = 2 seconds per frame (slower playback)
|
|
188
|
+
# -framerate 1 = 1 second per frame
|
|
189
|
+
ffmpeg -y -framerate 0.5 -pattern_type glob -i 'tmp/screenshots/*.png' \
|
|
190
|
+
-c:v libx264 -pix_fmt yuv420p -vf "scale=1280:-2" \
|
|
191
|
+
tmp/videos/feature-demo.mp4
|
|
192
|
+
|
|
193
|
+
# Create low-quality GIF for preview (small file, for GitHub embed)
|
|
194
|
+
ffmpeg -y -framerate 0.5 -pattern_type glob -i 'tmp/screenshots/*.png' \
|
|
195
|
+
-vf "scale=640:-1:flags=lanczos,split[s0][s1];[s0]palettegen=max_colors=128[p];[s1][p]paletteuse" \
|
|
196
|
+
-loop 0 tmp/videos/feature-demo-preview.gif
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
**Note:**
|
|
200
|
+
- The `-2` in MP4 scale ensures height is divisible by 2 (required for H.264)
|
|
201
|
+
- Preview GIF uses 640px width and 128 colors to keep file size small (~100-200KB)
|
|
202
|
+
|
|
203
|
+
</record_walkthrough>
|
|
204
|
+
|
|
205
|
+
### 6. Upload the Video
|
|
206
|
+
|
|
207
|
+
<upload_video>
|
|
208
|
+
|
|
209
|
+
**Upload with rclone:**
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Check rclone is configured
|
|
213
|
+
rclone listremotes
|
|
214
|
+
|
|
215
|
+
# Upload video, preview GIF, and screenshots to cloud storage
|
|
216
|
+
# Use --s3-no-check-bucket to avoid permission errors
|
|
217
|
+
rclone copy tmp/videos/ r2:kieran-claude/pr-videos/pr-[number]/ --s3-no-check-bucket --progress
|
|
218
|
+
rclone copy tmp/screenshots/ r2:kieran-claude/pr-videos/pr-[number]/screenshots/ --s3-no-check-bucket --progress
|
|
219
|
+
|
|
220
|
+
# List uploaded files
|
|
221
|
+
rclone ls r2:kieran-claude/pr-videos/pr-[number]/
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
Public URLs (R2 with public access):
|
|
225
|
+
```
|
|
226
|
+
Video: https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-[number]/feature-demo.mp4
|
|
227
|
+
Preview: https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-[number]/feature-demo-preview.gif
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
</upload_video>
|
|
231
|
+
|
|
232
|
+
### 7. Update PR Description
|
|
233
|
+
|
|
234
|
+
<update_pr>
|
|
235
|
+
|
|
236
|
+
**Get current PR body:**
|
|
237
|
+
```bash
|
|
238
|
+
gh pr view [number] --json body -q '.body'
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
**Add video section to PR description:**
|
|
242
|
+
|
|
243
|
+
If the PR already has a video section, replace it. Otherwise, append:
|
|
244
|
+
|
|
245
|
+
**IMPORTANT:** GitHub cannot embed external MP4s directly. Use a clickable GIF that links to the video:
|
|
246
|
+
|
|
247
|
+
```markdown
|
|
248
|
+
## Demo
|
|
249
|
+
|
|
250
|
+
[]([video-mp4-url])
|
|
251
|
+
|
|
252
|
+
*Click to view full video*
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
Example:
|
|
256
|
+
```markdown
|
|
257
|
+
[](https://pub-4047722ebb1b4b09853f24d3b61467f1.r2.dev/pr-videos/pr-137/feature-demo.mp4)
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Update the PR:**
|
|
261
|
+
```bash
|
|
262
|
+
gh pr edit [number] --body "[updated body with video section]"
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
**Or add as a comment if preferred:**
|
|
266
|
+
```bash
|
|
267
|
+
gh pr comment [number] --body "## Feature Demo
|
|
268
|
+
|
|
269
|
+

|
|
270
|
+
|
|
271
|
+
_Automated walkthrough of the changes in this PR_"
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
</update_pr>
|
|
275
|
+
|
|
276
|
+
### 8. Cleanup
|
|
277
|
+
|
|
278
|
+
<cleanup>
|
|
279
|
+
|
|
280
|
+
```bash
|
|
281
|
+
# Optional: Clean up screenshots
|
|
282
|
+
rm -rf tmp/screenshots
|
|
283
|
+
|
|
284
|
+
# Keep videos for reference
|
|
285
|
+
echo "Video retained at: tmp/videos/feature-demo.gif"
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
</cleanup>
|
|
289
|
+
|
|
290
|
+
### 9. Summary
|
|
291
|
+
|
|
292
|
+
<summary>
|
|
293
|
+
|
|
294
|
+
Present completion summary:
|
|
295
|
+
|
|
296
|
+
```markdown
|
|
297
|
+
## Feature Video Complete
|
|
298
|
+
|
|
299
|
+
**PR:** #[number] - [title]
|
|
300
|
+
**Video:** [url or local path]
|
|
301
|
+
**Duration:** ~[X] seconds
|
|
302
|
+
**Format:** [GIF/MP4]
|
|
303
|
+
|
|
304
|
+
### Shots Captured
|
|
305
|
+
1. [Starting point] - [description]
|
|
306
|
+
2. [Navigation] - [description]
|
|
307
|
+
3. [Feature demo] - [description]
|
|
308
|
+
4. [Result] - [description]
|
|
309
|
+
|
|
310
|
+
### PR Updated
|
|
311
|
+
- [x] Video section added to PR description
|
|
312
|
+
- [ ] Ready for review
|
|
313
|
+
|
|
314
|
+
**Next steps:**
|
|
315
|
+
- Review the video to ensure it accurately demonstrates the feature
|
|
316
|
+
- Share with reviewers for context
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
</summary>
|
|
320
|
+
|
|
321
|
+
## Quick Usage Examples
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
# Record video for current branch's PR
|
|
325
|
+
/feature-video
|
|
326
|
+
|
|
327
|
+
# Record video for specific PR
|
|
328
|
+
/feature-video 847
|
|
329
|
+
|
|
330
|
+
# Record with custom base URL
|
|
331
|
+
/feature-video 847 http://localhost:5000
|
|
332
|
+
|
|
333
|
+
# Record for staging environment
|
|
334
|
+
/feature-video current https://staging.example.com
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
## Tips
|
|
338
|
+
|
|
339
|
+
- **Keep it short**: 10-30 seconds is ideal for PR demos
|
|
340
|
+
- **Focus on the change**: Don't include unrelated UI
|
|
341
|
+
- **Show before/after**: If fixing a bug, show the broken state first (if possible)
|
|
342
|
+
- **Annotate if needed**: Add text overlays for complex features
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: generate_command
|
|
3
|
+
description: Create a new custom slash command following conventions and best practices
|
|
4
|
+
argument-hint: "[command purpose and requirements]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Create a Custom Claude Code Command
|
|
9
|
+
|
|
10
|
+
Create a new slash command in `.claude/commands/` for the requested task.
|
|
11
|
+
|
|
12
|
+
## Goal
|
|
13
|
+
|
|
14
|
+
#$ARGUMENTS
|
|
15
|
+
|
|
16
|
+
## Key Capabilities to Leverage
|
|
17
|
+
|
|
18
|
+
**File Operations:**
|
|
19
|
+
- Read, Edit, Write - modify files precisely
|
|
20
|
+
- Glob, Grep - search codebase
|
|
21
|
+
- MultiEdit - atomic multi-part changes
|
|
22
|
+
|
|
23
|
+
**Development:**
|
|
24
|
+
- Bash - run commands (git, tests, linters)
|
|
25
|
+
- Task - launch specialized agents for complex tasks
|
|
26
|
+
- TodoWrite - track progress with todo lists
|
|
27
|
+
|
|
28
|
+
**Web & APIs:**
|
|
29
|
+
- WebFetch, WebSearch - research documentation
|
|
30
|
+
- GitHub (gh cli) - PRs, issues, reviews
|
|
31
|
+
- Playwright - browser automation, screenshots
|
|
32
|
+
|
|
33
|
+
**Integrations:**
|
|
34
|
+
- AppSignal - logs and monitoring
|
|
35
|
+
- Context7 - framework docs
|
|
36
|
+
- Stripe, Todoist, Featurebase (if relevant)
|
|
37
|
+
|
|
38
|
+
## Best Practices
|
|
39
|
+
|
|
40
|
+
1. **Be specific and clear** - detailed instructions yield better results
|
|
41
|
+
2. **Break down complex tasks** - use step-by-step plans
|
|
42
|
+
3. **Use examples** - reference existing code patterns
|
|
43
|
+
4. **Include success criteria** - tests pass, linting clean, etc.
|
|
44
|
+
5. **Think first** - use "think hard" or "plan" keywords for complex problems
|
|
45
|
+
6. **Iterate** - guide the process step by step
|
|
46
|
+
|
|
47
|
+
## Required: YAML Frontmatter
|
|
48
|
+
|
|
49
|
+
**EVERY command MUST start with YAML frontmatter:**
|
|
50
|
+
|
|
51
|
+
```yaml
|
|
52
|
+
---
|
|
53
|
+
name: command-name
|
|
54
|
+
description: Brief description of what this command does (max 100 chars)
|
|
55
|
+
argument-hint: "[what arguments the command accepts]"
|
|
56
|
+
---
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Fields:**
|
|
60
|
+
- `name`: Lowercase command identifier (used internally)
|
|
61
|
+
- `description`: Clear, concise summary of command purpose
|
|
62
|
+
- `argument-hint`: Shows user what arguments are expected (e.g., `[file path]`, `[PR number]`, `[optional: format]`)
|
|
63
|
+
|
|
64
|
+
## Structure Your Command
|
|
65
|
+
|
|
66
|
+
```markdown
|
|
67
|
+
# [Command Name]
|
|
68
|
+
|
|
69
|
+
[Brief description of what this command does]
|
|
70
|
+
|
|
71
|
+
## Steps
|
|
72
|
+
|
|
73
|
+
1. [First step with specific details]
|
|
74
|
+
- Include file paths, patterns, or constraints
|
|
75
|
+
- Reference existing code if applicable
|
|
76
|
+
|
|
77
|
+
2. [Second step]
|
|
78
|
+
- Use parallel tool calls when possible
|
|
79
|
+
- Check/verify results
|
|
80
|
+
|
|
81
|
+
3. [Final steps]
|
|
82
|
+
- Run tests
|
|
83
|
+
- Lint code
|
|
84
|
+
- Commit changes (if appropriate)
|
|
85
|
+
|
|
86
|
+
## Success Criteria
|
|
87
|
+
|
|
88
|
+
- [ ] Tests pass
|
|
89
|
+
- [ ] Code follows style guide
|
|
90
|
+
- [ ] Documentation updated (if needed)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Tips for Effective Commands
|
|
94
|
+
|
|
95
|
+
- **Use $ARGUMENTS** placeholder for dynamic inputs
|
|
96
|
+
- **Reference CLAUDE.md** patterns and conventions
|
|
97
|
+
- **Include verification steps** - tests, linting, visual checks
|
|
98
|
+
- **Be explicit about constraints** - don't modify X, use pattern Y
|
|
99
|
+
- **Use XML tags** for structured prompts: `<task>`, `<requirements>`, `<constraints>`
|
|
100
|
+
|
|
101
|
+
## Example Pattern
|
|
102
|
+
|
|
103
|
+
```markdown
|
|
104
|
+
Implement #$ARGUMENTS following these steps:
|
|
105
|
+
|
|
106
|
+
1. Research existing patterns
|
|
107
|
+
- Search for similar code using Grep
|
|
108
|
+
- Read relevant files to understand approach
|
|
109
|
+
|
|
110
|
+
2. Plan the implementation
|
|
111
|
+
- Think through edge cases and requirements
|
|
112
|
+
- Consider test cases needed
|
|
113
|
+
|
|
114
|
+
3. Implement
|
|
115
|
+
- Follow existing code patterns (reference specific files)
|
|
116
|
+
- Write tests first if doing TDD
|
|
117
|
+
- Ensure code follows CLAUDE.md conventions
|
|
118
|
+
|
|
119
|
+
4. Verify
|
|
120
|
+
- Run tests: `bin/rails test`
|
|
121
|
+
- Run linter: `bundle exec standardrb`
|
|
122
|
+
- Check changes with git diff
|
|
123
|
+
|
|
124
|
+
5. Commit (optional)
|
|
125
|
+
- Stage changes
|
|
126
|
+
- Write clear commit message
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## Creating the Command File
|
|
130
|
+
|
|
131
|
+
1. **Create the file** at `.claude/commands/[name].md` (subdirectories like `workflows/` supported)
|
|
132
|
+
2. **Start with YAML frontmatter** (see section above)
|
|
133
|
+
3. **Structure the command** using the template above
|
|
134
|
+
4. **Test the command** by using it with appropriate arguments
|
|
135
|
+
|
|
136
|
+
## Command File Template
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
---
|
|
140
|
+
name: command-name
|
|
141
|
+
description: What this command does
|
|
142
|
+
argument-hint: "[expected arguments]"
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
# Command Title
|
|
146
|
+
|
|
147
|
+
Brief introduction of what the command does and when to use it.
|
|
148
|
+
|
|
149
|
+
## Workflow
|
|
150
|
+
|
|
151
|
+
### Step 1: [First Major Step]
|
|
152
|
+
|
|
153
|
+
Details about what to do.
|
|
154
|
+
|
|
155
|
+
### Step 2: [Second Major Step]
|
|
156
|
+
|
|
157
|
+
Details about what to do.
|
|
158
|
+
|
|
159
|
+
## Success Criteria
|
|
160
|
+
|
|
161
|
+
- [ ] Expected outcome 1
|
|
162
|
+
- [ ] Expected outcome 2
|
|
163
|
+
```
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: heal-skill
|
|
3
|
+
description: Fix incorrect SKILL.md files when a skill has wrong instructions or outdated API references
|
|
4
|
+
argument-hint: [optional: specific issue to fix]
|
|
5
|
+
allowed-tools: [Read, Edit, Bash(ls:*), Bash(git:*)]
|
|
6
|
+
disable-model-invocation: true
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<objective>
|
|
10
|
+
Update a skill's SKILL.md and related files based on corrections discovered during execution.
|
|
11
|
+
|
|
12
|
+
Analyze the conversation to detect which skill is running, reflect on what went wrong, propose specific fixes, get user approval, then apply changes with optional commit.
|
|
13
|
+
</objective>
|
|
14
|
+
|
|
15
|
+
<context>
|
|
16
|
+
Skill detection: !`ls -1 ./skills/*/SKILL.md | head -5`
|
|
17
|
+
</context>
|
|
18
|
+
|
|
19
|
+
<quick_start>
|
|
20
|
+
<workflow>
|
|
21
|
+
1. **Detect skill** from conversation context (invocation messages, recent SKILL.md references)
|
|
22
|
+
2. **Reflect** on what went wrong and how you discovered the fix
|
|
23
|
+
3. **Present** proposed changes with before/after diffs
|
|
24
|
+
4. **Get approval** before making any edits
|
|
25
|
+
5. **Apply** changes and optionally commit
|
|
26
|
+
</workflow>
|
|
27
|
+
</quick_start>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
<step_1 name="detect_skill">
|
|
31
|
+
Identify the skill from conversation context:
|
|
32
|
+
|
|
33
|
+
- Look for skill invocation messages
|
|
34
|
+
- Check which SKILL.md was recently referenced
|
|
35
|
+
- Examine current task context
|
|
36
|
+
|
|
37
|
+
Set: `SKILL_NAME=[skill-name]` and `SKILL_DIR=./skills/$SKILL_NAME`
|
|
38
|
+
|
|
39
|
+
If unclear, ask the user.
|
|
40
|
+
</step_1>
|
|
41
|
+
|
|
42
|
+
<step_2 name="reflection_and_analysis">
|
|
43
|
+
Focus on $ARGUMENTS if provided, otherwise analyze broader context.
|
|
44
|
+
|
|
45
|
+
Determine:
|
|
46
|
+
- **What was wrong**: Quote specific sections from SKILL.md that are incorrect
|
|
47
|
+
- **Discovery method**: Context7, error messages, trial and error, documentation lookup
|
|
48
|
+
- **Root cause**: Outdated API, incorrect parameters, wrong endpoint, missing context
|
|
49
|
+
- **Scope of impact**: Single section or multiple? Related files affected?
|
|
50
|
+
- **Proposed fix**: Which files, which sections, before/after for each
|
|
51
|
+
</step_2>
|
|
52
|
+
|
|
53
|
+
<step_3 name="scan_affected_files">
|
|
54
|
+
```bash
|
|
55
|
+
ls -la $SKILL_DIR/
|
|
56
|
+
ls -la $SKILL_DIR/references/ 2>/dev/null
|
|
57
|
+
ls -la $SKILL_DIR/scripts/ 2>/dev/null
|
|
58
|
+
```
|
|
59
|
+
</step_3>
|
|
60
|
+
|
|
61
|
+
<step_4 name="present_proposed_changes">
|
|
62
|
+
Present changes in this format:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
**Skill being healed:** [skill-name]
|
|
66
|
+
**Issue discovered:** [1-2 sentence summary]
|
|
67
|
+
**Root cause:** [brief explanation]
|
|
68
|
+
|
|
69
|
+
**Files to be modified:**
|
|
70
|
+
- [ ] SKILL.md
|
|
71
|
+
- [ ] references/[file].md
|
|
72
|
+
- [ ] scripts/[file].py
|
|
73
|
+
|
|
74
|
+
**Proposed changes:**
|
|
75
|
+
|
|
76
|
+
### Change 1: SKILL.md - [Section name]
|
|
77
|
+
**Location:** Line [X] in SKILL.md
|
|
78
|
+
|
|
79
|
+
**Current (incorrect):**
|
|
80
|
+
```
|
|
81
|
+
[exact text from current file]
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Corrected:**
|
|
85
|
+
```
|
|
86
|
+
[new text]
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Reason:** [why this fixes the issue]
|
|
90
|
+
|
|
91
|
+
[repeat for each change across all files]
|
|
92
|
+
|
|
93
|
+
**Impact assessment:**
|
|
94
|
+
- Affects: [authentication/API endpoints/parameters/examples/etc.]
|
|
95
|
+
|
|
96
|
+
**Verification:**
|
|
97
|
+
These changes will prevent: [specific error that prompted this]
|
|
98
|
+
```
|
|
99
|
+
</step_4>
|
|
100
|
+
|
|
101
|
+
<step_5 name="request_approval">
|
|
102
|
+
```
|
|
103
|
+
Should I apply these changes?
|
|
104
|
+
|
|
105
|
+
1. Yes, apply and commit all changes
|
|
106
|
+
2. Apply but don't commit (let me review first)
|
|
107
|
+
3. Revise the changes (I'll provide feedback)
|
|
108
|
+
4. Cancel (don't make changes)
|
|
109
|
+
|
|
110
|
+
Choose (1-4):
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
**Wait for user response. Do not proceed without approval.**
|
|
114
|
+
</step_5>
|
|
115
|
+
|
|
116
|
+
<step_6 name="apply_changes">
|
|
117
|
+
Only after approval (option 1 or 2):
|
|
118
|
+
|
|
119
|
+
1. Use Edit tool for each correction across all files
|
|
120
|
+
2. Read back modified sections to verify
|
|
121
|
+
3. If option 1, commit with structured message showing what was healed
|
|
122
|
+
4. Confirm completion with file list
|
|
123
|
+
</step_6>
|
|
124
|
+
</process>
|
|
125
|
+
|
|
126
|
+
<success_criteria>
|
|
127
|
+
- Skill correctly detected from conversation context
|
|
128
|
+
- All incorrect sections identified with before/after
|
|
129
|
+
- User approved changes before application
|
|
130
|
+
- All edits applied across SKILL.md and related files
|
|
131
|
+
- Changes verified by reading back
|
|
132
|
+
- Commit created if user chose option 1
|
|
133
|
+
- Completion confirmed with file list
|
|
134
|
+
</success_criteria>
|
|
135
|
+
|
|
136
|
+
<verification>
|
|
137
|
+
Before completing:
|
|
138
|
+
|
|
139
|
+
- Read back each modified section to confirm changes applied
|
|
140
|
+
- Ensure cross-file consistency (SKILL.md examples match references/)
|
|
141
|
+
- Verify git commit created if option 1 was selected
|
|
142
|
+
- Check no unintended files were modified
|
|
143
|
+
</verification>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: lfg
|
|
3
|
+
description: Full autonomous engineering workflow
|
|
4
|
+
argument-hint: "[feature description]"
|
|
5
|
+
disable-model-invocation: true
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Run these slash commands in order. Do not do anything else.
|
|
9
|
+
|
|
10
|
+
1. `/ralph-wiggum:ralph-loop "finish all slash commands" --completion-promise "DONE"`
|
|
11
|
+
2. `/workflows:plan $ARGUMENTS`
|
|
12
|
+
3. `/compound-engineering:deepen-plan`
|
|
13
|
+
4. `/workflows:work`
|
|
14
|
+
5. `/workflows:review`
|
|
15
|
+
6. `/compound-engineering:resolve_todo_parallel`
|
|
16
|
+
7. `/compound-engineering:test-browser`
|
|
17
|
+
8. `/compound-engineering:feature-video`
|
|
18
|
+
9. Output `<promise>DONE</promise>` when video is in PR
|
|
19
|
+
|
|
20
|
+
Start with step 1 now.
|