devflow-kit 0.8.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +185 -29
- package/LICENSE +1 -1
- package/README.md +179 -308
- package/dist/cli.js +3 -1
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.js +311 -575
- package/dist/commands/list.d.ts +3 -0
- package/dist/commands/list.js +20 -0
- package/dist/commands/uninstall.d.ts +10 -0
- package/dist/commands/uninstall.js +351 -78
- package/dist/plugins.d.ts +46 -0
- package/dist/plugins.js +162 -0
- package/dist/utils/cli.d.ts +5 -0
- package/dist/utils/cli.js +14 -0
- package/dist/utils/installer.d.ts +41 -0
- package/dist/utils/installer.js +177 -0
- package/dist/utils/paths.d.ts +10 -0
- package/dist/utils/paths.js +23 -3
- package/dist/utils/post-install.d.ts +68 -0
- package/dist/utils/post-install.js +427 -0
- package/dist/utils/safe-delete-install.d.ts +22 -0
- package/dist/utils/safe-delete-install.js +156 -0
- package/dist/utils/safe-delete.d.ts +12 -0
- package/dist/utils/safe-delete.js +83 -0
- package/package.json +18 -8
- package/plugins/devflow-audit-claude/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-audit-claude/README.md +46 -0
- package/plugins/devflow-audit-claude/agents/claude-md-auditor.md +134 -0
- package/plugins/devflow-audit-claude/commands/audit-claude.md +85 -0
- package/plugins/devflow-code-review/.claude-plugin/plugin.json +31 -0
- package/plugins/devflow-code-review/README.md +73 -0
- package/plugins/devflow-code-review/agents/git.md +272 -0
- package/plugins/devflow-code-review/agents/reviewer.md +119 -0
- package/plugins/devflow-code-review/agents/synthesizer.md +204 -0
- package/plugins/devflow-code-review/commands/code-review-teams.md +262 -0
- package/plugins/devflow-code-review/commands/code-review.md +141 -0
- package/plugins/devflow-code-review/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-code-review/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-code-review/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-code-review/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-code-review/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-code-review/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/SKILL.md +153 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/detection.md +337 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/patterns.md +873 -0
- package/plugins/devflow-code-review/skills/architecture-patterns/references/violations.md +575 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/SKILL.md +143 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/detection.md +264 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/patterns.md +487 -0
- package/plugins/devflow-code-review/skills/complexity-patterns/references/violations.md +361 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/SKILL.md +140 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/detection.md +207 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/patterns.md +202 -0
- package/plugins/devflow-code-review/skills/consistency-patterns/references/violations.md +213 -0
- package/plugins/devflow-code-review/skills/database-patterns/SKILL.md +134 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/detection.md +208 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/patterns.md +394 -0
- package/plugins/devflow-code-review/skills/database-patterns/references/violations.md +332 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/SKILL.md +141 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/detection.md +181 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/patterns.md +225 -0
- package/plugins/devflow-code-review/skills/dependencies-patterns/references/violations.md +247 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/SKILL.md +125 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/detection.md +190 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/patterns.md +189 -0
- package/plugins/devflow-code-review/skills/documentation-patterns/references/violations.md +163 -0
- package/plugins/devflow-code-review/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-code-review/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-code-review/skills/performance-patterns/SKILL.md +154 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/detection.md +351 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/patterns.md +503 -0
- package/plugins/devflow-code-review/skills/performance-patterns/references/violations.md +354 -0
- package/plugins/devflow-code-review/skills/react/SKILL.md +276 -0
- package/plugins/devflow-code-review/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-code-review/skills/react/references/violations.md +565 -0
- package/plugins/devflow-code-review/skills/regression-patterns/SKILL.md +146 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/detection.md +237 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/patterns.md +226 -0
- package/plugins/devflow-code-review/skills/regression-patterns/references/violations.md +225 -0
- package/plugins/devflow-code-review/skills/review-methodology/SKILL.md +119 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/patterns.md +186 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/report-template.md +142 -0
- package/plugins/devflow-code-review/skills/review-methodology/references/violations.md +125 -0
- package/plugins/devflow-code-review/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-code-review/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-code-review/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-code-review/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/.claude-plugin/plugin.json +27 -0
- package/plugins/devflow-core-skills/README.md +50 -0
- package/plugins/devflow-core-skills/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-core-skills/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-core-skills/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-core-skills/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-core-skills/skills/docs-framework/SKILL.md +134 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/patterns.md +346 -0
- package/plugins/devflow-core-skills/skills/docs-framework/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-core-skills/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-core-skills/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-core-skills/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-core-skills/skills/git-workflow/SKILL.md +158 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-patterns.md +115 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/commit-violations.md +77 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-patterns.md +127 -0
- package/plugins/devflow-core-skills/skills/git-workflow/references/pr-violations.md +96 -0
- package/plugins/devflow-core-skills/skills/github-patterns/SKILL.md +153 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/patterns.md +572 -0
- package/plugins/devflow-core-skills/skills/github-patterns/references/violations.md +298 -0
- package/plugins/devflow-core-skills/skills/input-validation/SKILL.md +148 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/detection.md +283 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/patterns.md +361 -0
- package/plugins/devflow-core-skills/skills/input-validation/references/violations.md +224 -0
- package/plugins/devflow-core-skills/skills/react/SKILL.md +276 -0
- package/plugins/devflow-core-skills/skills/react/references/patterns.md +1331 -0
- package/plugins/devflow-core-skills/skills/react/references/violations.md +565 -0
- package/plugins/devflow-core-skills/skills/test-patterns/SKILL.md +183 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/detection.md +149 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/patterns.md +220 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/report-template.md +108 -0
- package/plugins/devflow-core-skills/skills/test-patterns/references/violations.md +221 -0
- package/plugins/devflow-core-skills/skills/typescript/SKILL.md +176 -0
- package/plugins/devflow-core-skills/skills/typescript/references/patterns.md +1105 -0
- package/plugins/devflow-core-skills/skills/typescript/references/violations.md +433 -0
- package/plugins/devflow-debug/.claude-plugin/plugin.json +18 -0
- package/plugins/devflow-debug/README.md +65 -0
- package/plugins/devflow-debug/agents/git.md +272 -0
- package/plugins/devflow-debug/commands/debug-teams.md +231 -0
- package/plugins/devflow-debug/commands/debug.md +160 -0
- package/plugins/devflow-debug/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-debug/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-debug/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-debug/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-debug/skills/git-safety/SKILL.md +122 -0
- package/plugins/devflow-debug/skills/git-safety/references/detection.md +290 -0
- package/plugins/devflow-debug/skills/git-safety/references/patterns.md +289 -0
- package/plugins/devflow-debug/skills/git-safety/references/violations.md +18 -0
- package/plugins/devflow-implement/.claude-plugin/plugin.json +21 -0
- package/plugins/devflow-implement/README.md +71 -0
- package/plugins/devflow-implement/agents/coder.md +122 -0
- package/plugins/devflow-implement/agents/git.md +272 -0
- package/plugins/devflow-implement/agents/scrutinizer.md +80 -0
- package/plugins/devflow-implement/agents/shepherd.md +94 -0
- package/plugins/devflow-implement/agents/simplifier.md +62 -0
- package/plugins/devflow-implement/agents/skimmer.md +88 -0
- package/plugins/devflow-implement/agents/synthesizer.md +204 -0
- package/plugins/devflow-implement/agents/validator.md +86 -0
- package/plugins/devflow-implement/commands/implement-teams.md +608 -0
- package/plugins/devflow-implement/commands/implement.md +426 -0
- package/plugins/devflow-implement/skills/accessibility/SKILL.md +229 -0
- package/plugins/devflow-implement/skills/accessibility/references/detection.md +171 -0
- package/plugins/devflow-implement/skills/accessibility/references/patterns.md +670 -0
- package/plugins/devflow-implement/skills/accessibility/references/violations.md +419 -0
- package/plugins/devflow-implement/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-implement/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-implement/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-implement/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-implement/skills/frontend-design/SKILL.md +254 -0
- package/plugins/devflow-implement/skills/frontend-design/references/detection.md +184 -0
- package/plugins/devflow-implement/skills/frontend-design/references/patterns.md +511 -0
- package/plugins/devflow-implement/skills/frontend-design/references/violations.md +453 -0
- package/plugins/devflow-implement/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-implement/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-implement/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-implement/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-implement/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-implement/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-resolve/.claude-plugin/plugin.json +19 -0
- package/plugins/devflow-resolve/README.md +65 -0
- package/plugins/devflow-resolve/agents/git.md +272 -0
- package/plugins/devflow-resolve/agents/resolver.md +131 -0
- package/plugins/devflow-resolve/agents/simplifier.md +62 -0
- package/plugins/devflow-resolve/commands/resolve-teams.md +298 -0
- package/plugins/devflow-resolve/commands/resolve.md +237 -0
- package/plugins/devflow-resolve/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-resolve/skills/agent-teams/references/team-patterns.md +217 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/SKILL.md +162 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/patterns.md +1063 -0
- package/plugins/devflow-resolve/skills/implementation-patterns/references/violations.md +483 -0
- package/plugins/devflow-resolve/skills/security-patterns/SKILL.md +156 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/detection.md +287 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/patterns.md +507 -0
- package/plugins/devflow-resolve/skills/security-patterns/references/violations.md +237 -0
- package/plugins/devflow-self-review/.claude-plugin/plugin.json +7 -0
- package/plugins/devflow-self-review/README.md +38 -0
- package/plugins/devflow-self-review/agents/scrutinizer.md +80 -0
- package/plugins/devflow-self-review/agents/simplifier.md +62 -0
- package/plugins/devflow-self-review/agents/validator.md +86 -0
- package/plugins/devflow-self-review/commands/self-review.md +126 -0
- package/plugins/devflow-self-review/skills/core-patterns/SKILL.md +162 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/checklist.md +276 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/detection.md +303 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/patterns.md +576 -0
- package/plugins/devflow-self-review/skills/core-patterns/references/violations.md +369 -0
- package/plugins/devflow-self-review/skills/self-review/SKILL.md +149 -0
- package/plugins/devflow-self-review/skills/self-review/references/patterns.md +405 -0
- package/plugins/devflow-self-review/skills/self-review/references/report-template.md +253 -0
- package/plugins/devflow-self-review/skills/self-review/references/violations.md +308 -0
- package/plugins/devflow-specify/.claude-plugin/plugin.json +15 -0
- package/plugins/devflow-specify/README.md +46 -0
- package/plugins/devflow-specify/agents/skimmer.md +88 -0
- package/plugins/devflow-specify/agents/synthesizer.md +204 -0
- package/plugins/devflow-specify/commands/specify-teams.md +314 -0
- package/plugins/devflow-specify/commands/specify.md +179 -0
- package/plugins/devflow-specify/skills/agent-teams/SKILL.md +124 -0
- package/plugins/devflow-specify/skills/agent-teams/references/cleanup.md +104 -0
- package/plugins/devflow-specify/skills/agent-teams/references/communication.md +122 -0
- package/plugins/devflow-specify/skills/agent-teams/references/team-patterns.md +217 -0
- package/scripts/hooks/background-memory-update.sh +167 -0
- package/scripts/hooks/pre-compact-memory.sh +81 -0
- package/scripts/hooks/session-start-memory.sh +84 -0
- package/scripts/hooks/stop-update-memory.sh +81 -0
- package/shared/agents/coder.md +122 -0
- package/shared/agents/git.md +272 -0
- package/shared/agents/resolver.md +131 -0
- package/shared/agents/reviewer.md +119 -0
- package/shared/agents/scrutinizer.md +80 -0
- package/shared/agents/shepherd.md +94 -0
- package/shared/agents/simplifier.md +62 -0
- package/shared/agents/skimmer.md +88 -0
- package/shared/agents/synthesizer.md +204 -0
- package/shared/agents/validator.md +86 -0
- package/shared/skills/accessibility/SKILL.md +229 -0
- package/shared/skills/accessibility/references/detection.md +171 -0
- package/shared/skills/accessibility/references/patterns.md +670 -0
- package/shared/skills/accessibility/references/violations.md +419 -0
- package/shared/skills/agent-teams/SKILL.md +124 -0
- package/shared/skills/agent-teams/references/cleanup.md +104 -0
- package/shared/skills/agent-teams/references/communication.md +122 -0
- package/shared/skills/agent-teams/references/team-patterns.md +217 -0
- package/shared/skills/architecture-patterns/SKILL.md +153 -0
- package/shared/skills/architecture-patterns/references/detection.md +337 -0
- package/shared/skills/architecture-patterns/references/patterns.md +873 -0
- package/shared/skills/architecture-patterns/references/violations.md +575 -0
- package/shared/skills/complexity-patterns/SKILL.md +143 -0
- package/shared/skills/complexity-patterns/references/detection.md +264 -0
- package/shared/skills/complexity-patterns/references/patterns.md +487 -0
- package/shared/skills/complexity-patterns/references/violations.md +361 -0
- package/shared/skills/consistency-patterns/SKILL.md +140 -0
- package/shared/skills/consistency-patterns/references/detection.md +207 -0
- package/shared/skills/consistency-patterns/references/patterns.md +202 -0
- package/shared/skills/consistency-patterns/references/violations.md +213 -0
- package/shared/skills/core-patterns/SKILL.md +162 -0
- package/shared/skills/core-patterns/references/checklist.md +276 -0
- package/shared/skills/core-patterns/references/code-smell-violations.md +144 -0
- package/shared/skills/core-patterns/references/detection.md +303 -0
- package/shared/skills/core-patterns/references/patterns.md +576 -0
- package/shared/skills/core-patterns/references/violations.md +369 -0
- package/shared/skills/database-patterns/SKILL.md +134 -0
- package/shared/skills/database-patterns/references/detection.md +208 -0
- package/shared/skills/database-patterns/references/patterns.md +394 -0
- package/shared/skills/database-patterns/references/violations.md +332 -0
- package/shared/skills/dependencies-patterns/SKILL.md +141 -0
- package/shared/skills/dependencies-patterns/references/detection.md +181 -0
- package/shared/skills/dependencies-patterns/references/patterns.md +225 -0
- package/shared/skills/dependencies-patterns/references/violations.md +247 -0
- package/shared/skills/docs-framework/SKILL.md +134 -0
- package/shared/skills/docs-framework/references/patterns.md +346 -0
- package/shared/skills/docs-framework/references/violations.md +221 -0
- package/shared/skills/documentation-patterns/SKILL.md +125 -0
- package/shared/skills/documentation-patterns/references/detection.md +190 -0
- package/shared/skills/documentation-patterns/references/patterns.md +189 -0
- package/shared/skills/documentation-patterns/references/violations.md +163 -0
- package/shared/skills/frontend-design/SKILL.md +254 -0
- package/shared/skills/frontend-design/references/detection.md +184 -0
- package/shared/skills/frontend-design/references/patterns.md +511 -0
- package/shared/skills/frontend-design/references/violations.md +453 -0
- package/shared/skills/git-safety/SKILL.md +122 -0
- package/shared/skills/git-safety/references/detection.md +290 -0
- package/shared/skills/git-safety/references/patterns.md +289 -0
- package/shared/skills/git-safety/references/violations.md +18 -0
- package/shared/skills/git-workflow/SKILL.md +158 -0
- package/shared/skills/git-workflow/references/commit-patterns.md +115 -0
- package/shared/skills/git-workflow/references/commit-violations.md +77 -0
- package/shared/skills/git-workflow/references/pr-patterns.md +127 -0
- package/shared/skills/git-workflow/references/pr-violations.md +96 -0
- package/shared/skills/github-patterns/SKILL.md +153 -0
- package/shared/skills/github-patterns/references/patterns.md +572 -0
- package/shared/skills/github-patterns/references/violations.md +298 -0
- package/shared/skills/implementation-patterns/SKILL.md +162 -0
- package/shared/skills/implementation-patterns/references/patterns.md +1063 -0
- package/shared/skills/implementation-patterns/references/violations.md +483 -0
- package/shared/skills/input-validation/SKILL.md +148 -0
- package/shared/skills/input-validation/references/detection.md +283 -0
- package/shared/skills/input-validation/references/patterns.md +361 -0
- package/shared/skills/input-validation/references/violations.md +224 -0
- package/shared/skills/performance-patterns/SKILL.md +154 -0
- package/shared/skills/performance-patterns/references/detection.md +351 -0
- package/shared/skills/performance-patterns/references/patterns.md +503 -0
- package/shared/skills/performance-patterns/references/violations.md +354 -0
- package/shared/skills/react/SKILL.md +276 -0
- package/shared/skills/react/references/patterns.md +1331 -0
- package/shared/skills/react/references/violations.md +565 -0
- package/shared/skills/regression-patterns/SKILL.md +146 -0
- package/shared/skills/regression-patterns/references/detection.md +237 -0
- package/shared/skills/regression-patterns/references/patterns.md +226 -0
- package/shared/skills/regression-patterns/references/violations.md +225 -0
- package/shared/skills/review-methodology/SKILL.md +119 -0
- package/shared/skills/review-methodology/references/patterns.md +186 -0
- package/shared/skills/review-methodology/references/report-template.md +142 -0
- package/shared/skills/review-methodology/references/violations.md +125 -0
- package/shared/skills/security-patterns/SKILL.md +156 -0
- package/shared/skills/security-patterns/references/detection.md +287 -0
- package/shared/skills/security-patterns/references/patterns.md +507 -0
- package/shared/skills/security-patterns/references/violations.md +237 -0
- package/shared/skills/self-review/SKILL.md +149 -0
- package/shared/skills/self-review/references/patterns.md +405 -0
- package/shared/skills/self-review/references/report-template.md +253 -0
- package/shared/skills/self-review/references/violations.md +308 -0
- package/shared/skills/test-patterns/SKILL.md +183 -0
- package/shared/skills/test-patterns/references/detection.md +149 -0
- package/shared/skills/test-patterns/references/patterns.md +220 -0
- package/shared/skills/test-patterns/references/report-template.md +108 -0
- package/shared/skills/test-patterns/references/violations.md +221 -0
- package/shared/skills/typescript/SKILL.md +176 -0
- package/shared/skills/typescript/references/patterns.md +1105 -0
- package/shared/skills/typescript/references/violations.md +433 -0
- package/src/templates/claudeignore.template +188 -0
- package/src/templates/managed-settings.json +146 -0
- package/src/templates/settings.json +59 -0
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/uninstall.d.ts.map +0 -1
- package/dist/commands/uninstall.js.map +0 -1
- package/dist/utils/git.d.ts.map +0 -1
- package/dist/utils/git.js.map +0 -1
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js.map +0 -1
- package/src/claude/CLAUDE.md +0 -400
- package/src/claude/agents/devflow/audit-architecture.md +0 -132
- package/src/claude/agents/devflow/audit-complexity.md +0 -132
- package/src/claude/agents/devflow/audit-database.md +0 -132
- package/src/claude/agents/devflow/audit-dependencies.md +0 -132
- package/src/claude/agents/devflow/audit-documentation.md +0 -132
- package/src/claude/agents/devflow/audit-performance.md +0 -256
- package/src/claude/agents/devflow/audit-security.md +0 -259
- package/src/claude/agents/devflow/audit-tests.md +0 -132
- package/src/claude/agents/devflow/audit-typescript.md +0 -132
- package/src/claude/agents/devflow/brainstorm.md +0 -279
- package/src/claude/agents/devflow/catch-up.md +0 -345
- package/src/claude/agents/devflow/code-review.md +0 -307
- package/src/claude/agents/devflow/commit.md +0 -380
- package/src/claude/agents/devflow/debug.md +0 -476
- package/src/claude/agents/devflow/design.md +0 -491
- package/src/claude/agents/devflow/pr-comments.md +0 -285
- package/src/claude/agents/devflow/project-state.md +0 -419
- package/src/claude/agents/devflow/pull-request.md +0 -423
- package/src/claude/agents/devflow/release.md +0 -1137
- package/src/claude/agents/devflow/tech-debt.md +0 -338
- package/src/claude/commands/devflow/brainstorm.md +0 -68
- package/src/claude/commands/devflow/breakdown.md +0 -125
- package/src/claude/commands/devflow/catch-up.md +0 -29
- package/src/claude/commands/devflow/code-review.md +0 -237
- package/src/claude/commands/devflow/commit.md +0 -17
- package/src/claude/commands/devflow/debug.md +0 -56
- package/src/claude/commands/devflow/design.md +0 -82
- package/src/claude/commands/devflow/devlog.md +0 -408
- package/src/claude/commands/devflow/implement.md +0 -100
- package/src/claude/commands/devflow/plan.md +0 -223
- package/src/claude/commands/devflow/pull-request.md +0 -269
- package/src/claude/commands/devflow/release.md +0 -251
- package/src/claude/commands/devflow/resolve-comments.md +0 -583
- package/src/claude/scripts/statusline.sh +0 -47
- package/src/claude/settings.json +0 -6
- package/src/claude/skills/devflow/code-smell/SKILL.md +0 -428
- package/src/claude/skills/devflow/debug/SKILL.md +0 -119
- package/src/claude/skills/devflow/error-handling/SKILL.md +0 -597
- package/src/claude/skills/devflow/input-validation/SKILL.md +0 -514
- package/src/claude/skills/devflow/pattern-check/SKILL.md +0 -238
- package/src/claude/skills/devflow/research/SKILL.md +0 -138
- package/src/claude/skills/devflow/test-design/SKILL.md +0 -384
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
allowed-tools: Task, Bash
|
|
3
|
-
description: Create pull request with comprehensive analysis and smart description generation
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Your task
|
|
7
|
-
|
|
8
|
-
Create a pull request from the current branch with a comprehensive description generated by analyzing commits and code changes. This command orchestrates PR creation using the `pull-request` sub-agent for deep analysis.
|
|
9
|
-
|
|
10
|
-
### Step 1: Parse Arguments and Detect Context
|
|
11
|
-
|
|
12
|
-
Parse the arguments to determine base branch and PR options:
|
|
13
|
-
|
|
14
|
-
```bash
|
|
15
|
-
# Parse arguments
|
|
16
|
-
BASE_BRANCH=""
|
|
17
|
-
DRAFT_FLAG=""
|
|
18
|
-
|
|
19
|
-
for arg in $ARGUMENTS; do
|
|
20
|
-
case $arg in
|
|
21
|
-
--draft)
|
|
22
|
-
DRAFT_FLAG="--draft"
|
|
23
|
-
;;
|
|
24
|
-
*)
|
|
25
|
-
if [ -z "$BASE_BRANCH" ]; then
|
|
26
|
-
BASE_BRANCH="$arg"
|
|
27
|
-
fi
|
|
28
|
-
;;
|
|
29
|
-
esac
|
|
30
|
-
done
|
|
31
|
-
|
|
32
|
-
# Get current branch
|
|
33
|
-
CURRENT_BRANCH=$(git branch --show-current)
|
|
34
|
-
if [ -z "$CURRENT_BRANCH" ]; then
|
|
35
|
-
echo "❌ Not on a branch (detached HEAD). Checkout a feature branch first."
|
|
36
|
-
exit 1
|
|
37
|
-
fi
|
|
38
|
-
|
|
39
|
-
# Auto-detect base branch if not specified
|
|
40
|
-
if [ -z "$BASE_BRANCH" ]; then
|
|
41
|
-
for branch in main master develop; do
|
|
42
|
-
if git show-ref --verify --quiet refs/heads/$branch; then
|
|
43
|
-
BASE_BRANCH=$branch
|
|
44
|
-
break
|
|
45
|
-
fi
|
|
46
|
-
done
|
|
47
|
-
fi
|
|
48
|
-
|
|
49
|
-
if [ -z "$BASE_BRANCH" ]; then
|
|
50
|
-
echo "❌ Could not auto-detect base branch. Specify manually: /pull-request <base-branch>"
|
|
51
|
-
exit 1
|
|
52
|
-
fi
|
|
53
|
-
|
|
54
|
-
echo "=== PR CREATION CONTEXT ==="
|
|
55
|
-
echo "Current branch: $CURRENT_BRANCH"
|
|
56
|
-
echo "Base branch: $BASE_BRANCH"
|
|
57
|
-
echo "Draft mode: ${DRAFT_FLAG:-disabled}"
|
|
58
|
-
echo ""
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### Step 2: Pre-Flight Checks
|
|
62
|
-
|
|
63
|
-
Verify the branch state and catch common issues:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
echo "=== PRE-FLIGHT CHECKS ==="
|
|
67
|
-
|
|
68
|
-
# Check if branch has commits ahead of base
|
|
69
|
-
COMMITS_AHEAD=$(git rev-list --count $BASE_BRANCH..HEAD)
|
|
70
|
-
if [ "$COMMITS_AHEAD" -eq 0 ]; then
|
|
71
|
-
echo "❌ No commits to create PR. Branch is up to date with $BASE_BRANCH."
|
|
72
|
-
exit 1
|
|
73
|
-
fi
|
|
74
|
-
|
|
75
|
-
# Check if PR already exists for this branch
|
|
76
|
-
EXISTING_PR=$(gh pr list --head "$CURRENT_BRANCH" --json number --jq '.[0].number' 2>/dev/null || echo "")
|
|
77
|
-
if [ -n "$EXISTING_PR" ]; then
|
|
78
|
-
echo "⚠️ PR #$EXISTING_PR already exists for branch $CURRENT_BRANCH"
|
|
79
|
-
echo "View: gh pr view $EXISTING_PR"
|
|
80
|
-
echo "Update: git push to update existing PR"
|
|
81
|
-
exit 1
|
|
82
|
-
fi
|
|
83
|
-
|
|
84
|
-
# Check if branch is pushed to remote
|
|
85
|
-
if ! git ls-remote --exit-code --heads origin "$CURRENT_BRANCH" >/dev/null 2>&1; then
|
|
86
|
-
echo "⚠️ Branch not pushed to remote. Pushing now..."
|
|
87
|
-
git push -u origin "$CURRENT_BRANCH"
|
|
88
|
-
fi
|
|
89
|
-
|
|
90
|
-
# Show quick summary
|
|
91
|
-
echo "✅ Ready to create PR"
|
|
92
|
-
echo " Commits: $COMMITS_AHEAD ahead of $BASE_BRANCH"
|
|
93
|
-
git log --oneline $BASE_BRANCH..HEAD | head -5
|
|
94
|
-
echo ""
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Step 3: Launch Pull Request Sub-Agent
|
|
98
|
-
|
|
99
|
-
Launch the `pull-request` sub-agent to analyze commits and generate PR content:
|
|
100
|
-
|
|
101
|
-
**IMPORTANT**: Pass these variables to the sub-agent:
|
|
102
|
-
- `CURRENT_BRANCH`: The branch being reviewed
|
|
103
|
-
- `BASE_BRANCH`: The base branch for comparison
|
|
104
|
-
|
|
105
|
-
The sub-agent will:
|
|
106
|
-
1. Analyze commit history and messages
|
|
107
|
-
2. Analyze code changes and impact
|
|
108
|
-
3. Extract issue references
|
|
109
|
-
4. Detect breaking changes
|
|
110
|
-
5. Generate PR title and comprehensive description
|
|
111
|
-
6. Assess PR size and suggest splits if needed
|
|
112
|
-
|
|
113
|
-
Use the Task tool to launch the sub-agent with subagent_type="pull-request":
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
Launch pull-request sub-agent with:
|
|
117
|
-
- Current branch: {CURRENT_BRANCH}
|
|
118
|
-
- Base branch: {BASE_BRANCH}
|
|
119
|
-
|
|
120
|
-
The sub-agent will analyze all commits and changes between {BASE_BRANCH} and {CURRENT_BRANCH}, then generate:
|
|
121
|
-
- PR title following conventional commit format
|
|
122
|
-
- Comprehensive PR description with:
|
|
123
|
-
- Summary of changes
|
|
124
|
-
- Breaking changes (if any)
|
|
125
|
-
- Testing recommendations
|
|
126
|
-
- Related issues
|
|
127
|
-
- Size assessment and recommendations
|
|
128
|
-
|
|
129
|
-
Return the complete PR title and description ready for `gh pr create`.
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Step 4: Review Sub-Agent Output
|
|
133
|
-
|
|
134
|
-
After the sub-agent completes, extract the generated PR content and present it to the user for review:
|
|
135
|
-
|
|
136
|
-
```markdown
|
|
137
|
-
📝 GENERATED PR CONTENT
|
|
138
|
-
|
|
139
|
-
**Title:**
|
|
140
|
-
{generated PR title}
|
|
141
|
-
|
|
142
|
-
**Description:**
|
|
143
|
-
{generated PR description}
|
|
144
|
-
|
|
145
|
-
---
|
|
146
|
-
|
|
147
|
-
**Size Assessment:**
|
|
148
|
-
- Files changed: {X}
|
|
149
|
-
- Lines changed: {Y}
|
|
150
|
-
- Complexity: {Simple/Medium/Complex/Too Large}
|
|
151
|
-
|
|
152
|
-
{If too large, show recommendations for splitting}
|
|
153
|
-
|
|
154
|
-
**Recommendations from analysis:**
|
|
155
|
-
{Any warnings or suggestions from sub-agent}
|
|
156
|
-
```
|
|
157
|
-
|
|
158
|
-
### Step 5: Create Pull Request
|
|
159
|
-
|
|
160
|
-
Create the PR using `gh pr create` with the generated content:
|
|
161
|
-
|
|
162
|
-
```bash
|
|
163
|
-
# Save PR body to temp file to preserve formatting
|
|
164
|
-
PR_BODY=$(cat <<'EOF'
|
|
165
|
-
{generated PR description from sub-agent}
|
|
166
|
-
EOF
|
|
167
|
-
)
|
|
168
|
-
|
|
169
|
-
# Create the PR
|
|
170
|
-
gh pr create \
|
|
171
|
-
--base "$BASE_BRANCH" \
|
|
172
|
-
--head "$CURRENT_BRANCH" \
|
|
173
|
-
--title "{generated PR title}" \
|
|
174
|
-
--body "$PR_BODY" \
|
|
175
|
-
$DRAFT_FLAG
|
|
176
|
-
|
|
177
|
-
# Capture the PR URL
|
|
178
|
-
PR_URL=$(gh pr view --json url --jq '.url' 2>/dev/null || echo "")
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
### Step 6: Provide Success Summary
|
|
182
|
-
|
|
183
|
-
Present the final summary to the user:
|
|
184
|
-
|
|
185
|
-
```markdown
|
|
186
|
-
✅ PULL REQUEST CREATED
|
|
187
|
-
|
|
188
|
-
🔗 **PR URL:** {PR_URL}
|
|
189
|
-
|
|
190
|
-
📊 **Summary:**
|
|
191
|
-
- Branch: {CURRENT_BRANCH} → {BASE_BRANCH}
|
|
192
|
-
- Commits: {X} commits
|
|
193
|
-
- Files: {Y} files changed
|
|
194
|
-
- Status: {Draft/Ready for review}
|
|
195
|
-
|
|
196
|
-
💡 **Next Steps:**
|
|
197
|
-
- View PR: gh pr view {PR_NUMBER}
|
|
198
|
-
- Request reviews: gh pr edit {PR_NUMBER} --add-reviewer @username
|
|
199
|
-
- Monitor CI checks: gh pr checks {PR_NUMBER}
|
|
200
|
-
- If changes needed, push commits or use /resolve-comments after review
|
|
201
|
-
|
|
202
|
-
📝 **Full PR details:** {PR_URL}
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Usage Examples
|
|
208
|
-
|
|
209
|
-
### Basic Usage
|
|
210
|
-
```bash
|
|
211
|
-
# Create PR to main branch (auto-detected)
|
|
212
|
-
/pull-request
|
|
213
|
-
|
|
214
|
-
# Create PR to develop branch
|
|
215
|
-
/pull-request develop
|
|
216
|
-
|
|
217
|
-
# Create draft PR
|
|
218
|
-
/pull-request --draft
|
|
219
|
-
|
|
220
|
-
# Create draft PR to specific base
|
|
221
|
-
/pull-request develop --draft
|
|
222
|
-
```
|
|
223
|
-
|
|
224
|
-
### When to Use
|
|
225
|
-
|
|
226
|
-
**✅ Use /pull-request when:**
|
|
227
|
-
- You have commits ready for review
|
|
228
|
-
- Branch is ready for team review
|
|
229
|
-
- You want comprehensive PR description
|
|
230
|
-
- You want to detect breaking changes automatically
|
|
231
|
-
|
|
232
|
-
**⚠️ Before using:**
|
|
233
|
-
- Run `/code-review` to validate quality
|
|
234
|
-
- Ensure all commits are meaningful (not WIP)
|
|
235
|
-
- Consider if PR is too large (should it be split?)
|
|
236
|
-
|
|
237
|
-
**💡 Pro Tips:**
|
|
238
|
-
- For small PRs (<10 files), this generates great descriptions automatically
|
|
239
|
-
- For large PRs (>20 files), consider the split recommendations
|
|
240
|
-
- Draft PRs are great for early feedback without formal review requests
|
|
241
|
-
- PR description can be edited after creation with `gh pr edit`
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## Command Behavior
|
|
246
|
-
|
|
247
|
-
### Pre-Flight Validation:
|
|
248
|
-
- ✅ Verifies branch has commits ahead of base
|
|
249
|
-
- ✅ Checks for existing PRs on this branch
|
|
250
|
-
- ✅ Ensures branch is pushed to remote
|
|
251
|
-
- ✅ Validates base branch exists
|
|
252
|
-
|
|
253
|
-
### PR Content Generation:
|
|
254
|
-
- ✅ Analyzes all commits since branching from base
|
|
255
|
-
- ✅ Groups changes by feature/fix/refactor
|
|
256
|
-
- ✅ Extracts issue references automatically
|
|
257
|
-
- ✅ Detects breaking changes from commit messages
|
|
258
|
-
- ✅ Generates testing recommendations
|
|
259
|
-
|
|
260
|
-
### Safety Features:
|
|
261
|
-
- ⚠️ Warns if PR is too large (>500 lines changed)
|
|
262
|
-
- ⚠️ Suggests splitting strategy for large PRs
|
|
263
|
-
- ⚠️ Detects missing tests or documentation
|
|
264
|
-
- ⚠️ Highlights security-sensitive changes
|
|
265
|
-
|
|
266
|
-
### Integration:
|
|
267
|
-
- Works seamlessly with `/code-review` (run before PR creation)
|
|
268
|
-
- Complements `/resolve-comments` (for handling feedback after PR)
|
|
269
|
-
- Follows conventional commit format for consistency
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Automated release workflow with version management and publishing
|
|
3
|
-
allowed-tools: Task, Bash, Read, Write, Edit, Grep, Glob
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
## Your Task
|
|
7
|
-
|
|
8
|
-
Orchestrate a complete release workflow using the release sub-agent. This command guides you through creating a professional release with version management, changelog generation, building, testing, and publishing.
|
|
9
|
-
|
|
10
|
-
**Workflow**: User input → Release agent automation → User confirmations at critical steps
|
|
11
|
-
|
|
12
|
-
### Step 1: Determine Release Type
|
|
13
|
-
|
|
14
|
-
First, ask the user what type of release they want to create:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
echo "🚀 DEVFLOW RELEASE AUTOMATION"
|
|
18
|
-
echo ""
|
|
19
|
-
echo "This will guide you through creating a new release."
|
|
20
|
-
echo ""
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
Present options to the user:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
What type of release do you want to create?
|
|
27
|
-
|
|
28
|
-
1. **patch** - Bug fixes and maintenance (0.1.2 → 0.1.3)
|
|
29
|
-
2. **minor** - New features, backwards compatible (0.1.2 → 0.2.0)
|
|
30
|
-
3. **major** - Breaking changes (0.1.2 → 1.0.0)
|
|
31
|
-
4. **custom** - Specify exact version (e.g., 2.0.0-beta.1)
|
|
32
|
-
5. **analyze** - Analyze changes and get recommendation first
|
|
33
|
-
|
|
34
|
-
Please specify the release type (patch/minor/major/custom/analyze):
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### Step 2: Launch Release Agent
|
|
38
|
-
|
|
39
|
-
Once the user provides input, launch the release sub-agent with the appropriate prompt:
|
|
40
|
-
|
|
41
|
-
**If user chose "analyze"**:
|
|
42
|
-
```
|
|
43
|
-
Invoke the release sub-agent with this prompt:
|
|
44
|
-
|
|
45
|
-
"Analyze the current repository state and recent commits. Execute through Step 3 (Determine New Version) and provide a recommendation for the version bump type. Show:
|
|
46
|
-
- Current version
|
|
47
|
-
- Commits since last release
|
|
48
|
-
- Breaking changes, features, and fixes detected
|
|
49
|
-
- Recommended version bump with reasoning
|
|
50
|
-
|
|
51
|
-
Stop and wait for user decision before proceeding with the release."
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
**If user chose "patch", "minor", or "major"**:
|
|
55
|
-
```
|
|
56
|
-
Invoke the release sub-agent with this prompt:
|
|
57
|
-
|
|
58
|
-
"Create a {bump_type} release. Follow the complete release workflow:
|
|
59
|
-
1. Detect project type and configuration
|
|
60
|
-
2. Verify clean working directory
|
|
61
|
-
3. Analyze recent changes since last release
|
|
62
|
-
4. Calculate new version as {bump_type} bump
|
|
63
|
-
5. Generate changelog entry from commits
|
|
64
|
-
6. Update version files
|
|
65
|
-
7. Build project (if applicable)
|
|
66
|
-
8. Run tests (if applicable)
|
|
67
|
-
|
|
68
|
-
STOP before Step 8 (Commit Version Bump) and show me:
|
|
69
|
-
- Current version → New version
|
|
70
|
-
- Generated changelog entry
|
|
71
|
-
- Files that will be modified
|
|
72
|
-
- Build/test results
|
|
73
|
-
|
|
74
|
-
Wait for my confirmation before proceeding with commit, push, publish, and tagging."
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
**If user chose "custom"**:
|
|
78
|
-
```
|
|
79
|
-
Ask user: "Please specify the exact version number (e.g., 2.0.0-beta.1):"
|
|
80
|
-
|
|
81
|
-
Then invoke the release sub-agent with this prompt:
|
|
82
|
-
|
|
83
|
-
"Create a release with custom version {specified_version}. Follow the complete release workflow:
|
|
84
|
-
1. Detect project type and configuration
|
|
85
|
-
2. Verify clean working directory
|
|
86
|
-
3. Analyze recent changes since last release
|
|
87
|
-
4. Use the specified version: {specified_version}
|
|
88
|
-
5. Generate changelog entry from commits
|
|
89
|
-
6. Update version files
|
|
90
|
-
7. Build project (if applicable)
|
|
91
|
-
8. Run tests (if applicable)
|
|
92
|
-
|
|
93
|
-
STOP before Step 8 (Commit Version Bump) and show me:
|
|
94
|
-
- Current version → New version
|
|
95
|
-
- Generated changelog entry
|
|
96
|
-
- Files that will be modified
|
|
97
|
-
- Build/test results
|
|
98
|
-
|
|
99
|
-
Wait for my confirmation before proceeding with commit, push, publish, and tagging."
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
### Step 3: Review and Confirm
|
|
103
|
-
|
|
104
|
-
After the release agent completes the preparation phase and stops, present the summary to the user:
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
📋 RELEASE READY FOR REVIEW
|
|
108
|
-
|
|
109
|
-
Current Version: {current_version}
|
|
110
|
-
New Version: {new_version}
|
|
111
|
-
Project Type: {project_type}
|
|
112
|
-
|
|
113
|
-
📝 Changelog Entry:
|
|
114
|
-
{generated_changelog}
|
|
115
|
-
|
|
116
|
-
📄 Files to be Modified:
|
|
117
|
-
- {version_file}
|
|
118
|
-
- {changelog_file}
|
|
119
|
-
|
|
120
|
-
✅ Build Status: {build_result}
|
|
121
|
-
✅ Test Status: {test_result}
|
|
122
|
-
|
|
123
|
-
---
|
|
124
|
-
|
|
125
|
-
The release agent will now:
|
|
126
|
-
1. Commit version bump
|
|
127
|
-
2. Push to remote
|
|
128
|
-
3. Publish package (if applicable)
|
|
129
|
-
4. Create git tag
|
|
130
|
-
5. Create GitHub/GitLab release (if available)
|
|
131
|
-
|
|
132
|
-
⚠️ WARNING: Steps 3-5 are PERMANENT and PUBLIC
|
|
133
|
-
|
|
134
|
-
Do you want to proceed with the release? (yes/no):
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
### Step 4: Complete Release (After Confirmation)
|
|
138
|
-
|
|
139
|
-
If user confirms, continue with the release agent:
|
|
140
|
-
|
|
141
|
-
```
|
|
142
|
-
Invoke the release sub-agent again with this prompt:
|
|
143
|
-
|
|
144
|
-
"Continue the release process from Step 8 (Commit Version Bump):
|
|
145
|
-
8. Commit version bump
|
|
146
|
-
9. Push to remote
|
|
147
|
-
10. Publish package (if applicable) - STOP and ask for confirmation before publishing
|
|
148
|
-
11. Create git tag
|
|
149
|
-
12. Create GitHub/GitLab release
|
|
150
|
-
13. Provide final summary
|
|
151
|
-
|
|
152
|
-
Execute these steps sequentially. Before Step 10 (publishing to package registry), STOP and explicitly ask for confirmation as this is permanent and public."
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
### Step 5: Publish Confirmation
|
|
156
|
-
|
|
157
|
-
When the agent reaches the publish step, ask for explicit confirmation:
|
|
158
|
-
|
|
159
|
-
```
|
|
160
|
-
⚠️ FINAL CONFIRMATION REQUIRED
|
|
161
|
-
|
|
162
|
-
The package is ready to be published to the public registry.
|
|
163
|
-
|
|
164
|
-
Project: {project_name}
|
|
165
|
-
Version: {new_version}
|
|
166
|
-
Registry: {registry_name}
|
|
167
|
-
Command: {publish_command}
|
|
168
|
-
|
|
169
|
-
This action is PERMANENT and IRREVERSIBLE.
|
|
170
|
-
|
|
171
|
-
Do you want to publish to the public registry? (yes/no):
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### Step 6: Final Summary
|
|
175
|
-
|
|
176
|
-
After the release is complete, the agent will provide a final summary. Display it to the user and provide next steps:
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
The release agent will show:
|
|
180
|
-
- Release summary with all completed steps
|
|
181
|
-
- Links to package registry
|
|
182
|
-
- Links to GitHub/GitLab release
|
|
183
|
-
- Links to tag and commits
|
|
184
|
-
- Verification steps for the user
|
|
185
|
-
|
|
186
|
-
Next steps for you:
|
|
187
|
-
1. Verify package appears in registry
|
|
188
|
-
2. Test installation in fresh environment
|
|
189
|
-
3. Announce release to users/team
|
|
190
|
-
4. Update documentation if needed
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
## Error Handling
|
|
194
|
-
|
|
195
|
-
If the release agent encounters an error at any step:
|
|
196
|
-
|
|
197
|
-
1. **Before commit**: Changes can be rolled back easily
|
|
198
|
-
```bash
|
|
199
|
-
git checkout {version_files}
|
|
200
|
-
```
|
|
201
|
-
|
|
202
|
-
2. **After commit, before push**: Can amend or reset
|
|
203
|
-
```bash
|
|
204
|
-
git reset --hard HEAD~1
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
3. **After push, before publish**: Can remove tag and revert
|
|
208
|
-
```bash
|
|
209
|
-
git tag -d {tag}
|
|
210
|
-
git push origin :{tag}
|
|
211
|
-
git revert HEAD
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
4. **After publish**: Cannot unpublish in most registries
|
|
215
|
-
- npm: Can only deprecate, not unpublish after 24h
|
|
216
|
-
- Document issue and create patch release
|
|
217
|
-
|
|
218
|
-
Always provide clear recovery instructions if something fails.
|
|
219
|
-
|
|
220
|
-
## Safety Features
|
|
221
|
-
|
|
222
|
-
- ✅ Verify clean working directory before starting
|
|
223
|
-
- ✅ Show preview of all changes before committing
|
|
224
|
-
- ✅ Require explicit confirmation before publishing
|
|
225
|
-
- ✅ Provide rollback instructions at each step
|
|
226
|
-
- ✅ Stop and ask before any permanent/public action
|
|
227
|
-
- ✅ Generate proper semantic versioning
|
|
228
|
-
- ✅ Run build and tests before releasing
|
|
229
|
-
|
|
230
|
-
## Quick Reference
|
|
231
|
-
|
|
232
|
-
```bash
|
|
233
|
-
# Standard releases
|
|
234
|
-
/release # Interactive - asks for release type
|
|
235
|
-
|
|
236
|
-
# With specific type (if supported in future)
|
|
237
|
-
/release patch
|
|
238
|
-
/release minor
|
|
239
|
-
/release major
|
|
240
|
-
|
|
241
|
-
# Analyze first
|
|
242
|
-
/release analyze # Show recommendations without releasing
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
## Notes
|
|
246
|
-
|
|
247
|
-
- The release sub-agent handles all the technical details
|
|
248
|
-
- This command provides the user interaction layer
|
|
249
|
-
- Critical steps require explicit user confirmation
|
|
250
|
-
- All actions are logged and can be audited
|
|
251
|
-
- Works with any programming language/ecosystem
|