devflow-kit 0.9.0 → 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 +167 -29
- package/LICENSE +1 -1
- package/README.md +179 -310
- package/dist/cli.js +3 -1
- package/dist/commands/init.d.ts +21 -0
- package/dist/commands/init.js +311 -576
- 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/get-issue.md +0 -286
- 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 -493
- 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/get-issue.md +0 -16
- 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 -20
- 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
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: git-workflow
|
|
3
|
+
description: This skill should be used when the user asks to "commit changes", "create a pull request", "stage files", "prepare for review", "write a commit message", or runs git add, git commit, git push, or gh pr operations. Provides atomic commit patterns, conventional commit formatting, PR description templates, and honest change documentation.
|
|
4
|
+
user-invocable: false
|
|
5
|
+
allowed-tools: Bash, Read, Grep, Glob
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Git Workflow
|
|
9
|
+
|
|
10
|
+
Atomic commits and honest PR descriptions. Complements git-safety with commit and PR-specific patterns.
|
|
11
|
+
|
|
12
|
+
## Iron Law
|
|
13
|
+
|
|
14
|
+
> **ATOMIC COMMITS WITH HONEST DESCRIPTIONS**
|
|
15
|
+
>
|
|
16
|
+
> Every commit MUST represent a single logical change. Every PR description MUST accurately
|
|
17
|
+
> reflect ALL changes, risks, and testing gaps. Mixed concerns, hidden limitations, and
|
|
18
|
+
> dishonest descriptions are violations. No exceptions.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Commit Message Format
|
|
23
|
+
|
|
24
|
+
### Structure
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
<type>(<scope>): <short summary> (max 50 chars)
|
|
28
|
+
|
|
29
|
+
<optional body explaining what and why>
|
|
30
|
+
<wrap at 72 characters>
|
|
31
|
+
|
|
32
|
+
<optional footer with references>
|
|
33
|
+
|
|
34
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Types
|
|
38
|
+
|
|
39
|
+
| Type | Use When |
|
|
40
|
+
|------|----------|
|
|
41
|
+
| `feat` | New feature or capability |
|
|
42
|
+
| `fix` | Bug fix |
|
|
43
|
+
| `docs` | Documentation only changes |
|
|
44
|
+
| `style` | Code style/formatting (no logic change) |
|
|
45
|
+
| `refactor` | Code change that neither fixes nor adds |
|
|
46
|
+
| `test` | Adding or updating tests |
|
|
47
|
+
| `chore` | Build, dependencies, tooling |
|
|
48
|
+
| `perf` | Performance improvements |
|
|
49
|
+
|
|
50
|
+
### HEREDOC Format (Required)
|
|
51
|
+
|
|
52
|
+
Always use HEREDOC for commit messages to handle special characters:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
git commit -m "$(cat <<'EOF'
|
|
56
|
+
feat(auth): add JWT token validation
|
|
57
|
+
|
|
58
|
+
Implement token validation middleware with:
|
|
59
|
+
- Signature verification
|
|
60
|
+
- Expiration checking
|
|
61
|
+
- Role-based access control
|
|
62
|
+
|
|
63
|
+
Closes #123
|
|
64
|
+
|
|
65
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
66
|
+
EOF
|
|
67
|
+
)"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Atomic Commit Grouping
|
|
71
|
+
|
|
72
|
+
1. **By Feature/Module**: Changes within same directory or module
|
|
73
|
+
2. **By Type**: Source code, tests, docs, config separately
|
|
74
|
+
3. **By Relationship**: Files that change together for single logical purpose
|
|
75
|
+
|
|
76
|
+
### Anti-Patterns
|
|
77
|
+
|
|
78
|
+
- **Grab-bag commits**: "Various fixes and updates" - VIOLATION
|
|
79
|
+
- **Mixed concerns**: Feature + refactor + fix in one commit - VIOLATION
|
|
80
|
+
- **Blind staging**: `git add .` without review - VIOLATION
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Pull Request
|
|
85
|
+
|
|
86
|
+
### PR Title Format
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
<type>(<scope>): <description>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
**Rules**: Under 72 characters, imperative mood, specific but concise.
|
|
93
|
+
|
|
94
|
+
### PR Description Structure
|
|
95
|
+
|
|
96
|
+
Every PR description MUST include these sections:
|
|
97
|
+
|
|
98
|
+
| Section | Purpose |
|
|
99
|
+
|---------|---------|
|
|
100
|
+
| Summary | 2-3 sentences: what and why |
|
|
101
|
+
| Changes | Features, fixes, refactoring by category |
|
|
102
|
+
| Breaking Changes | User action required (or "None") |
|
|
103
|
+
| Testing | Coverage, manual steps, gaps |
|
|
104
|
+
| Related Issues | Closes/relates to links |
|
|
105
|
+
|
|
106
|
+
### Size Assessment
|
|
107
|
+
|
|
108
|
+
| Size | Lines Changed | Action |
|
|
109
|
+
|------|---------------|--------|
|
|
110
|
+
| Small | < 200 | Proceed normally |
|
|
111
|
+
| Medium | 200-500 | Consider splitting if unrelated changes |
|
|
112
|
+
| Large | 500-1000 | Recommend splitting |
|
|
113
|
+
| Very Large | > 1000 | **WARN**: Split into smaller PRs |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## Safety Checks
|
|
118
|
+
|
|
119
|
+
Before staging files, apply sensitive file detection and content scanning patterns from `git-safety` skill.
|
|
120
|
+
|
|
121
|
+
## Pre-Commit Checklist
|
|
122
|
+
|
|
123
|
+
- [ ] Changes are atomic (single logical change)
|
|
124
|
+
- [ ] No sensitive files included
|
|
125
|
+
- [ ] No secrets in file content
|
|
126
|
+
- [ ] Commit message follows format
|
|
127
|
+
- [ ] Message explains "what" and "why"
|
|
128
|
+
- [ ] Related files grouped together
|
|
129
|
+
|
|
130
|
+
## Description Quality Checklist
|
|
131
|
+
|
|
132
|
+
- [ ] Summary clearly explains what and why
|
|
133
|
+
- [ ] Breaking changes documented (or explicitly "None")
|
|
134
|
+
- [ ] Testing gaps honestly disclosed
|
|
135
|
+
- [ ] Related issues linked
|
|
136
|
+
- [ ] Size assessed and split recommended if needed
|
|
137
|
+
|
|
138
|
+
---
|
|
139
|
+
|
|
140
|
+
## Extended References
|
|
141
|
+
|
|
142
|
+
For extended examples and templates:
|
|
143
|
+
|
|
144
|
+
| Reference | Contents |
|
|
145
|
+
|-----------|----------|
|
|
146
|
+
| `references/commit-patterns.md` | Multi-commit flows, bug fix patterns, breaking changes |
|
|
147
|
+
| `references/commit-violations.md` | Grab-bag commits, blind staging, vague messages |
|
|
148
|
+
| `references/pr-patterns.md` | Full PR template, key change detection, pre-flight scripts |
|
|
149
|
+
| `references/pr-violations.md` | Vague descriptions, hidden breaking changes, massive PRs |
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
## Related Skills
|
|
154
|
+
|
|
155
|
+
| Skill | Use For |
|
|
156
|
+
|-------|---------|
|
|
157
|
+
| `git-safety` | Lock handling, sequential ops, sensitive file detection |
|
|
158
|
+
| `github-patterns` | GitHub API, rate limits, PR comments, releases |
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# Commit Patterns
|
|
2
|
+
|
|
3
|
+
Correct commit practices for atomic, well-documented history.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Message Format
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
<type>(<scope>): <short summary> (max 50 chars)
|
|
11
|
+
|
|
12
|
+
<optional body explaining what and why>
|
|
13
|
+
<wrap at 72 characters>
|
|
14
|
+
|
|
15
|
+
<optional footer with references>
|
|
16
|
+
|
|
17
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Always use HEREDOC for commit messages:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git commit -m "$(cat <<'EOF'
|
|
24
|
+
feat(auth): add JWT token validation
|
|
25
|
+
|
|
26
|
+
Implement token validation middleware with:
|
|
27
|
+
- Signature verification
|
|
28
|
+
- Expiration checking
|
|
29
|
+
- Role-based access control
|
|
30
|
+
|
|
31
|
+
Closes #123
|
|
32
|
+
|
|
33
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
34
|
+
EOF
|
|
35
|
+
)"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## Atomic Commit Examples
|
|
41
|
+
|
|
42
|
+
### Feature Implementation (Multi-Commit Flow)
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Step 1: Core implementation
|
|
46
|
+
git add src/services/user-service.ts src/models/user.ts && \
|
|
47
|
+
git commit -m "feat(users): add user service with CRUD operations"
|
|
48
|
+
|
|
49
|
+
# Step 2: Tests for the feature
|
|
50
|
+
git add tests/services/user-service.test.ts && \
|
|
51
|
+
git commit -m "test(users): add comprehensive user service tests"
|
|
52
|
+
|
|
53
|
+
# Step 3: API endpoint
|
|
54
|
+
git add src/routes/users.ts src/middleware/user-validation.ts && \
|
|
55
|
+
git commit -m "feat(api): add user API endpoints"
|
|
56
|
+
|
|
57
|
+
# Step 4: Documentation
|
|
58
|
+
git add docs/api/users.md && \
|
|
59
|
+
git commit -m "docs(api): document user endpoints"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Bug Fix (Isolated Change)
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
git add src/utils/date-parser.ts tests/utils/date-parser.test.ts && \
|
|
66
|
+
git commit -m "$(cat <<'EOF'
|
|
67
|
+
fix(dates): handle timezone offset in ISO date parsing
|
|
68
|
+
|
|
69
|
+
Previous implementation assumed UTC, causing off-by-one errors
|
|
70
|
+
for dates near midnight in non-UTC timezones.
|
|
71
|
+
|
|
72
|
+
Fixes #456
|
|
73
|
+
|
|
74
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
75
|
+
EOF
|
|
76
|
+
)"
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Breaking Changes
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
git commit -m "$(cat <<'EOF'
|
|
83
|
+
feat(api)!: change response format to JSON:API spec
|
|
84
|
+
|
|
85
|
+
BREAKING CHANGE: API responses now follow JSON:API specification.
|
|
86
|
+
All clients must update to handle new response structure.
|
|
87
|
+
|
|
88
|
+
Migration guide: docs/migration/v2-response-format.md
|
|
89
|
+
|
|
90
|
+
Co-Authored-By: Claude <noreply@anthropic.com>
|
|
91
|
+
EOF
|
|
92
|
+
)"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Splitting Mixed Changes
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# Check what's changed
|
|
101
|
+
git status
|
|
102
|
+
git diff --stat
|
|
103
|
+
|
|
104
|
+
# Stage only related files for first commit
|
|
105
|
+
git add src/auth/*.ts
|
|
106
|
+
git commit -m "feat(auth): add session management"
|
|
107
|
+
|
|
108
|
+
# Stage tests for that feature
|
|
109
|
+
git add tests/auth/*.ts
|
|
110
|
+
git commit -m "test(auth): add session management tests"
|
|
111
|
+
|
|
112
|
+
# Stage unrelated refactoring
|
|
113
|
+
git add src/utils/string-helpers.ts
|
|
114
|
+
git commit -m "refactor(utils): simplify string helper functions"
|
|
115
|
+
```
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Commit Violations
|
|
2
|
+
|
|
3
|
+
Common commit anti-patterns to avoid.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Summary Table
|
|
8
|
+
|
|
9
|
+
| Violation | Example | Impact |
|
|
10
|
+
|-----------|---------|--------|
|
|
11
|
+
| Grab-bag commits | "Various fixes and updates" | Hard to review, revert, bisect |
|
|
12
|
+
| Blind staging | `git add .` | Accidental sensitive file commits |
|
|
13
|
+
| Vague messages | "Fix bug" | Lost context, unclear history |
|
|
14
|
+
| Missing context | "Update user.ts" | No explanation of why |
|
|
15
|
+
| Sensitive files | Committing .env | Security breach |
|
|
16
|
+
| Mixed concerns | Feature + fix + chore | Impossible atomic reverts |
|
|
17
|
+
| No type prefix | "Add login" | Inconsistent changelog |
|
|
18
|
+
| Force push shared | `--force` to main | Team work destroyed |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Grab-Bag Commits
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
# VIOLATION: Multiple unrelated changes
|
|
26
|
+
git add . && git commit -m "Various fixes and updates"
|
|
27
|
+
|
|
28
|
+
# FIX: Split into atomic commits by concern
|
|
29
|
+
git add src/auth/*.ts && git commit -m "feat(auth): add login handler"
|
|
30
|
+
git add src/components/button.tsx && git commit -m "fix(ui): correct button color"
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Blind Staging
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# VIOLATION: No review of what's being committed
|
|
37
|
+
git add .
|
|
38
|
+
git add -A
|
|
39
|
+
|
|
40
|
+
# FIX: Review and stage specific files
|
|
41
|
+
git status && git diff
|
|
42
|
+
git add src/services/user.ts src/models/user.ts
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Vague Messages
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# VIOLATION: No context
|
|
49
|
+
git commit -m "Fix bug"
|
|
50
|
+
git commit -m "WIP"
|
|
51
|
+
git commit -m "stuff"
|
|
52
|
+
|
|
53
|
+
# FIX: Describe what and why
|
|
54
|
+
git commit -m "fix(auth): prevent session timeout during active use"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Sensitive Files
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# VIOLATION: Committing secrets
|
|
61
|
+
git add .env
|
|
62
|
+
git add config/credentials.json
|
|
63
|
+
|
|
64
|
+
# FIX: Add to .gitignore and commit example config
|
|
65
|
+
git add .env.example
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Force Push to Shared Branches
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# VIOLATION: Rewriting shared history
|
|
72
|
+
git push --force origin main
|
|
73
|
+
|
|
74
|
+
# FIX: Create new commits for fixes
|
|
75
|
+
git commit -m "fix(auth): correct typo in previous commit"
|
|
76
|
+
git push # Normal push
|
|
77
|
+
```
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Pull Request Patterns
|
|
2
|
+
|
|
3
|
+
Correct patterns for high-quality PRs.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Full PR Description Template
|
|
8
|
+
|
|
9
|
+
```markdown
|
|
10
|
+
## Summary
|
|
11
|
+
|
|
12
|
+
{2-3 sentence overview of what this PR does and why}
|
|
13
|
+
|
|
14
|
+
## Changes
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
- Feature 1 with brief description
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
- Fix 1 with impact description
|
|
21
|
+
|
|
22
|
+
### Refactoring
|
|
23
|
+
- Refactor 1 with rationale
|
|
24
|
+
|
|
25
|
+
## Breaking Changes
|
|
26
|
+
|
|
27
|
+
{List breaking changes that require user action, or "None"}
|
|
28
|
+
|
|
29
|
+
## Testing
|
|
30
|
+
|
|
31
|
+
### Test Coverage
|
|
32
|
+
- {N} test files modified/added
|
|
33
|
+
- {What's tested}
|
|
34
|
+
|
|
35
|
+
### Manual Testing
|
|
36
|
+
1. Test scenario 1: steps
|
|
37
|
+
2. Test scenario 2: steps
|
|
38
|
+
|
|
39
|
+
### Testing Gaps
|
|
40
|
+
{Honest assessment of what's NOT tested}
|
|
41
|
+
|
|
42
|
+
## Security Considerations
|
|
43
|
+
|
|
44
|
+
{Security-relevant changes, or "No security impact"}
|
|
45
|
+
|
|
46
|
+
## Performance Impact
|
|
47
|
+
|
|
48
|
+
{Expected performance changes, or "No performance impact expected"}
|
|
49
|
+
|
|
50
|
+
## Deployment Notes
|
|
51
|
+
|
|
52
|
+
{Special deployment instructions, or "No special deployment steps"}
|
|
53
|
+
|
|
54
|
+
## Related Issues
|
|
55
|
+
|
|
56
|
+
Closes #{issue}
|
|
57
|
+
Related to #{issue}
|
|
58
|
+
|
|
59
|
+
## Reviewer Focus Areas
|
|
60
|
+
|
|
61
|
+
1. {file:line} - {why this needs attention}
|
|
62
|
+
2. {file:line} - {why this needs attention}
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
Generated with [Claude Code](https://claude.com/claude-code)
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
## Creating the PR with HEREDOC
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
gh pr create \
|
|
75
|
+
--base main \
|
|
76
|
+
--title "feat(auth): add authentication middleware" \
|
|
77
|
+
--body "$(cat <<'EOF'
|
|
78
|
+
## Summary
|
|
79
|
+
|
|
80
|
+
Implements JWT-based authentication...
|
|
81
|
+
|
|
82
|
+
[Full description content]
|
|
83
|
+
|
|
84
|
+
Generated with [Claude Code](https://claude.com/claude-code)
|
|
85
|
+
EOF
|
|
86
|
+
)"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## Key Change Detection
|
|
92
|
+
|
|
93
|
+
| Change Type | Detection | Action |
|
|
94
|
+
|-------------|-----------|--------|
|
|
95
|
+
| Breaking Changes | `grep -i "BREAKING CHANGE" commits` | **MANDATORY** section |
|
|
96
|
+
| Database Migrations | `migration\|schema` in file names | Highlight + deployment notes |
|
|
97
|
+
| Dependency Changes | `package.json`, `Cargo.toml`, etc. | List versions changed |
|
|
98
|
+
| Config Changes | `.config.`, `.yml`, `.toml` | Note configuration impact |
|
|
99
|
+
| Missing Tests | Source changed, no test files | **WARN** in Testing Gaps |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## Size Guidelines
|
|
104
|
+
|
|
105
|
+
| Size | Lines Changed | Review Time | Recommendation |
|
|
106
|
+
|------|---------------|-------------|----------------|
|
|
107
|
+
| Small | < 200 | 15 min | Ideal |
|
|
108
|
+
| Medium | 200-500 | 30 min | Acceptable |
|
|
109
|
+
| Large | 500-1000 | 1 hour | Consider splitting |
|
|
110
|
+
| XL | > 1000 | Hours | **Must split** |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Pre-Flight Check Script
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
# 1. Verify commits exist
|
|
118
|
+
COMMITS_AHEAD=$(git rev-list --count main..HEAD)
|
|
119
|
+
[ "$COMMITS_AHEAD" -eq 0 ] && echo "ERROR: No commits to review" && exit 1
|
|
120
|
+
|
|
121
|
+
# 2. Check for existing PR
|
|
122
|
+
PR_EXISTS=$(gh pr list --head "$(git branch --show-current)" --json number --jq '.[0].number')
|
|
123
|
+
[ -n "$PR_EXISTS" ] && echo "PR #$PR_EXISTS already exists" && exit 1
|
|
124
|
+
|
|
125
|
+
# 3. Ensure branch is pushed
|
|
126
|
+
git ls-remote --exit-code --heads origin "$(git branch --show-current)" || git push -u origin "$(git branch --show-current)"
|
|
127
|
+
```
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Pull Request Violations
|
|
2
|
+
|
|
3
|
+
Common PR anti-patterns and how to fix them.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Violation Table
|
|
8
|
+
|
|
9
|
+
| Violation | Problem | Fix |
|
|
10
|
+
|-----------|---------|-----|
|
|
11
|
+
| Vague descriptions | Reviewers can't understand changes | Use structured template |
|
|
12
|
+
| Hidden breaking changes | Consumers surprised | Document explicitly |
|
|
13
|
+
| Massive PRs (>1000 lines) | Impossible to review | Split into smaller PRs |
|
|
14
|
+
| Missing test plan | Unknown coverage | Include manual/automated test steps |
|
|
15
|
+
| No related issues | Lost context | Link to issues/tickets |
|
|
16
|
+
| Dishonest limitations | Technical debt hidden | Disclose honestly |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Vague Description Examples
|
|
21
|
+
|
|
22
|
+
```markdown
|
|
23
|
+
# BAD: Vague
|
|
24
|
+
## Summary
|
|
25
|
+
Fixed some bugs and added features.
|
|
26
|
+
|
|
27
|
+
# GOOD: Specific
|
|
28
|
+
## Summary
|
|
29
|
+
- Fix: Null pointer exception in UserService when email is empty
|
|
30
|
+
- Feat: Add rate limiting to /api/login endpoint (5 req/min)
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## Hidden Breaking Changes
|
|
36
|
+
|
|
37
|
+
```markdown
|
|
38
|
+
# BAD: Breaking change buried in code
|
|
39
|
+
## Summary
|
|
40
|
+
Refactored authentication module.
|
|
41
|
+
|
|
42
|
+
# GOOD: Breaking changes called out
|
|
43
|
+
## Breaking Changes
|
|
44
|
+
- `authenticate(token)` now returns `Result<User, AuthError>` instead of `User | null`
|
|
45
|
+
- Required migration: Run `npm run migrate:auth` before deploying
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Massive PR Split Recommendation
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
PR SIZE WARNING
|
|
54
|
+
|
|
55
|
+
This PR changes {X} files and {Y} lines. Consider splitting:
|
|
56
|
+
|
|
57
|
+
1. PR 1: {Component A} - {files}
|
|
58
|
+
2. PR 2: {Component B} - {files}
|
|
59
|
+
3. PR 3: {Tests} - {files}
|
|
60
|
+
|
|
61
|
+
Rationale: Smaller PRs are easier to review, safer to merge.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Missing Test Plan
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
# BAD: No testing information
|
|
70
|
+
## Summary
|
|
71
|
+
Added new payment processing.
|
|
72
|
+
|
|
73
|
+
# GOOD: Clear test plan
|
|
74
|
+
## Testing
|
|
75
|
+
### Automated
|
|
76
|
+
- 12 unit tests for PaymentService
|
|
77
|
+
- 3 integration tests for Stripe webhook
|
|
78
|
+
|
|
79
|
+
### Gaps
|
|
80
|
+
- Edge case: Partial refunds not tested (tracked in #456)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Dishonest Limitations
|
|
86
|
+
|
|
87
|
+
```markdown
|
|
88
|
+
# BAD: Hiding technical debt
|
|
89
|
+
## Summary
|
|
90
|
+
Implemented caching layer.
|
|
91
|
+
|
|
92
|
+
# GOOD: Honest about limitations
|
|
93
|
+
## Limitations
|
|
94
|
+
- Cache invalidation not implemented (tracked in #789)
|
|
95
|
+
- Memory usage not bounded - add eviction policy before production load
|
|
96
|
+
```
|