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,433 @@
|
|
|
1
|
+
# TypeScript Violation Examples
|
|
2
|
+
|
|
3
|
+
Extended violation patterns for TypeScript reviews. Reference from main SKILL.md.
|
|
4
|
+
|
|
5
|
+
## Type Safety Violations
|
|
6
|
+
|
|
7
|
+
### Using `any` Type
|
|
8
|
+
|
|
9
|
+
**Direct any usage**
|
|
10
|
+
```typescript
|
|
11
|
+
// VIOLATION: any disables type checking
|
|
12
|
+
function parse(json: string): any {
|
|
13
|
+
return JSON.parse(json);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// VIOLATION: any parameter
|
|
17
|
+
function process(data: any) {
|
|
18
|
+
console.log(data.name); // No type safety
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// VIOLATION: any in generics
|
|
22
|
+
function wrap<T = any>(value: T) {
|
|
23
|
+
return { value };
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Implicit any**
|
|
28
|
+
```typescript
|
|
29
|
+
// VIOLATION: Implicit any on parameter
|
|
30
|
+
function greet(name) { // name is implicitly any
|
|
31
|
+
return `Hello, ${name}`;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// VIOLATION: Implicit any in catch
|
|
35
|
+
try {
|
|
36
|
+
riskyOperation();
|
|
37
|
+
} catch (e) { // e is any
|
|
38
|
+
console.log(e.message);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Type Assertions Without Validation
|
|
43
|
+
|
|
44
|
+
**Unsafe casts**
|
|
45
|
+
```typescript
|
|
46
|
+
// VIOLATION: Casting without checking
|
|
47
|
+
const user = data as User; // data could be anything
|
|
48
|
+
user.name.toUpperCase(); // Runtime error if data is wrong
|
|
49
|
+
|
|
50
|
+
// VIOLATION: Double assertion bypass
|
|
51
|
+
const value = data as unknown as SpecificType; // Bypasses type checking
|
|
52
|
+
|
|
53
|
+
// VIOLATION: Non-null assertion on nullable
|
|
54
|
+
function getName(user: User | null): string {
|
|
55
|
+
return user!.name; // Will crash if user is null
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Object index without type safety**
|
|
60
|
+
```typescript
|
|
61
|
+
// VIOLATION: Accessing unknown keys
|
|
62
|
+
const value = obj[key]; // value is any
|
|
63
|
+
|
|
64
|
+
// VIOLATION: No validation on dynamic access
|
|
65
|
+
function getField(obj: object, field: string) {
|
|
66
|
+
return (obj as any)[field]; // Unsafe dynamic access
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Non-Exhaustive Pattern Matching
|
|
71
|
+
|
|
72
|
+
**Missing switch cases**
|
|
73
|
+
```typescript
|
|
74
|
+
type Status = 'pending' | 'active' | 'completed' | 'failed';
|
|
75
|
+
|
|
76
|
+
// VIOLATION: Non-exhaustive switch
|
|
77
|
+
function handleStatus(status: Status): string {
|
|
78
|
+
switch (status) {
|
|
79
|
+
case 'pending':
|
|
80
|
+
return 'Waiting';
|
|
81
|
+
case 'active':
|
|
82
|
+
return 'Running';
|
|
83
|
+
// Missing: 'completed' and 'failed'
|
|
84
|
+
}
|
|
85
|
+
return 'Unknown'; // Hides missing cases
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Incomplete discriminated union handling**
|
|
90
|
+
```typescript
|
|
91
|
+
type Result<T> = { ok: true; value: T } | { ok: false; error: Error };
|
|
92
|
+
|
|
93
|
+
// VIOLATION: Only handling success
|
|
94
|
+
function process<T>(result: Result<T>): T {
|
|
95
|
+
if (result.ok) {
|
|
96
|
+
return result.value;
|
|
97
|
+
}
|
|
98
|
+
// Missing error handling - TypeScript won't catch this without strictness
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Type Guard Violations
|
|
105
|
+
|
|
106
|
+
### Missing Type Narrowing
|
|
107
|
+
|
|
108
|
+
**Trusting unvalidated input**
|
|
109
|
+
```typescript
|
|
110
|
+
// VIOLATION: No runtime validation
|
|
111
|
+
function processUser(data: unknown) {
|
|
112
|
+
const user = data as User; // Assumes data is User
|
|
113
|
+
console.log(user.name); // Runtime error if not User
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// VIOLATION: Checking only one property
|
|
117
|
+
function isUser(obj: unknown): obj is User {
|
|
118
|
+
return typeof obj === 'object' && obj !== null && 'name' in obj;
|
|
119
|
+
// Missing: doesn't check 'name' is string, or other required properties
|
|
120
|
+
}
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Incorrect type predicate**
|
|
124
|
+
```typescript
|
|
125
|
+
// VIOLATION: Predicate doesn't match check
|
|
126
|
+
function isString(value: unknown): value is string {
|
|
127
|
+
return value !== null; // Wrong check - doesn't verify it's a string!
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// VIOLATION: Predicate allows invalid state
|
|
131
|
+
function isPositiveNumber(value: unknown): value is number {
|
|
132
|
+
return typeof value === 'number'; // Doesn't check positive
|
|
133
|
+
}
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Unsafe instanceof Usage
|
|
137
|
+
|
|
138
|
+
**instanceof with primitives**
|
|
139
|
+
```typescript
|
|
140
|
+
// VIOLATION: instanceof doesn't work with primitives
|
|
141
|
+
function isNumber(value: unknown): value is number {
|
|
142
|
+
return value instanceof Number; // Fails for primitive numbers!
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// VIOLATION: Cross-realm instanceof issues
|
|
146
|
+
function isArray(value: unknown): value is unknown[] {
|
|
147
|
+
return value instanceof Array; // Fails across iframes/realms
|
|
148
|
+
}
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Missing Null Checks
|
|
152
|
+
|
|
153
|
+
**Trusting optional properties**
|
|
154
|
+
```typescript
|
|
155
|
+
// VIOLATION: No null check on optional
|
|
156
|
+
interface Config {
|
|
157
|
+
timeout?: number;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function getTimeout(config: Config): number {
|
|
161
|
+
return config.timeout * 1000; // Error: possibly undefined
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// VIOLATION: Chained optional access without handling
|
|
165
|
+
function getCity(user: User): string {
|
|
166
|
+
return user.address.city; // Error if address is undefined
|
|
167
|
+
}
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## Utility Type Violations
|
|
173
|
+
|
|
174
|
+
### Manual Type Manipulation
|
|
175
|
+
|
|
176
|
+
**Rewriting built-in utility types**
|
|
177
|
+
```typescript
|
|
178
|
+
// VIOLATION: Reinventing Partial<T>
|
|
179
|
+
type MyPartial<T> = {
|
|
180
|
+
[P in keyof T]?: T[P];
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
// VIOLATION: Reinventing Pick<T, K>
|
|
184
|
+
type MyPick<T, K extends keyof T> = {
|
|
185
|
+
[P in K]: T[P];
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
// VIOLATION: Manual readonly mapping
|
|
189
|
+
type MyReadonly<T> = {
|
|
190
|
+
readonly [P in keyof T]: T[P];
|
|
191
|
+
};
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Redundant type definitions**
|
|
195
|
+
```typescript
|
|
196
|
+
// VIOLATION: Duplicating existing type
|
|
197
|
+
interface CreateUserInput {
|
|
198
|
+
name: string;
|
|
199
|
+
email: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
interface UpdateUserInput { // Nearly identical to CreateUserInput
|
|
203
|
+
name?: string;
|
|
204
|
+
email?: string;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// Should use: type UpdateUserInput = Partial<CreateUserInput>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
### Incorrect Generic Constraints
|
|
211
|
+
|
|
212
|
+
**Missing constraints**
|
|
213
|
+
```typescript
|
|
214
|
+
// VIOLATION: No constraint on key access
|
|
215
|
+
function getProperty<T, K>(obj: T, key: K) {
|
|
216
|
+
return obj[key]; // Error: K is not constrained to keyof T
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// VIOLATION: Unconstrained generic with method call
|
|
220
|
+
function callToString<T>(value: T): string {
|
|
221
|
+
return value.toString(); // Works but loses type info
|
|
222
|
+
}
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Over-constrained generics**
|
|
226
|
+
```typescript
|
|
227
|
+
// VIOLATION: Constraint too narrow
|
|
228
|
+
function merge<T extends { id: string }>(a: T, b: T): T {
|
|
229
|
+
return { ...a, ...b };
|
|
230
|
+
}
|
|
231
|
+
// Can't merge objects without 'id' property even when not needed
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
### Improper Mapped Types
|
|
235
|
+
|
|
236
|
+
**Losing optional/readonly modifiers**
|
|
237
|
+
```typescript
|
|
238
|
+
// VIOLATION: Removes optionality
|
|
239
|
+
type Transformed<T> = {
|
|
240
|
+
[P in keyof T]: string; // Loses optional modifiers from T
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
// VIOLATION: Loses readonly
|
|
244
|
+
type Mutable<T> = {
|
|
245
|
+
[P in keyof T]: T[P]; // Doesn't remove readonly, just copies
|
|
246
|
+
};
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
## Async Pattern Violations
|
|
252
|
+
|
|
253
|
+
### Unhandled Promises
|
|
254
|
+
|
|
255
|
+
**Fire-and-forget async calls**
|
|
256
|
+
```typescript
|
|
257
|
+
// VIOLATION: Promise ignored
|
|
258
|
+
async function processData() {
|
|
259
|
+
saveToDatabase(data); // No await, no .catch()
|
|
260
|
+
console.log('Saved!'); // Lies - may not be saved
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// VIOLATION: forEach with async
|
|
264
|
+
ids.forEach(async (id) => {
|
|
265
|
+
await processItem(id); // forEach doesn't wait!
|
|
266
|
+
});
|
|
267
|
+
// Code continues before any processing completes
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
**Missing error handling**
|
|
271
|
+
```typescript
|
|
272
|
+
// VIOLATION: No catch on promise
|
|
273
|
+
async function loadUser(id: string): Promise<User> {
|
|
274
|
+
const response = await fetch(`/api/users/${id}`);
|
|
275
|
+
return response.json(); // No error handling for fetch failure
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// VIOLATION: catch swallows error
|
|
279
|
+
async function process() {
|
|
280
|
+
try {
|
|
281
|
+
await riskyOperation();
|
|
282
|
+
} catch (e) {
|
|
283
|
+
console.log('Error'); // Error details lost
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### Race Conditions
|
|
289
|
+
|
|
290
|
+
**Stale closure**
|
|
291
|
+
```typescript
|
|
292
|
+
// VIOLATION: Closure captures stale value
|
|
293
|
+
function createCounter() {
|
|
294
|
+
let count = 0;
|
|
295
|
+
|
|
296
|
+
return async () => {
|
|
297
|
+
count++;
|
|
298
|
+
await delay(100);
|
|
299
|
+
console.log(count); // May not be the expected value
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
// Multiple calls will all log the same final value
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
**Uncancelled previous requests**
|
|
306
|
+
```typescript
|
|
307
|
+
// VIOLATION: Race condition with sequential requests
|
|
308
|
+
class DataLoader {
|
|
309
|
+
async load(id: string) {
|
|
310
|
+
const data = await fetch(`/api/${id}`);
|
|
311
|
+
this.data = await data.json(); // Older slow request may overwrite newer fast one
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### Improper Async Iteration
|
|
317
|
+
|
|
318
|
+
**await in loop when parallel is safe**
|
|
319
|
+
```typescript
|
|
320
|
+
// VIOLATION: Sequential when parallel is possible
|
|
321
|
+
async function processAll(items: Item[]) {
|
|
322
|
+
const results = [];
|
|
323
|
+
for (const item of items) {
|
|
324
|
+
results.push(await process(item)); // Unnecessarily sequential
|
|
325
|
+
}
|
|
326
|
+
return results;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// VIOLATION: Blocking Promise.all with unbounded concurrency
|
|
330
|
+
async function processAll(items: Item[]) {
|
|
331
|
+
return Promise.all(items.map(item => fetchData(item)));
|
|
332
|
+
// Could overwhelm server with 1000s of concurrent requests
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Mixing async patterns**
|
|
337
|
+
```typescript
|
|
338
|
+
// VIOLATION: Callback inside async function
|
|
339
|
+
async function getData() {
|
|
340
|
+
fs.readFile('data.json', (err, data) => {
|
|
341
|
+
return JSON.parse(data); // This return does nothing!
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
// VIOLATION: Not returning promise in .then()
|
|
346
|
+
fetchData()
|
|
347
|
+
.then(data => {
|
|
348
|
+
processAsync(data); // Should return this promise
|
|
349
|
+
})
|
|
350
|
+
.then(() => {
|
|
351
|
+
console.log('Done'); // Runs before processAsync completes
|
|
352
|
+
});
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Improper Promise Construction
|
|
356
|
+
|
|
357
|
+
**Promise constructor anti-pattern**
|
|
358
|
+
```typescript
|
|
359
|
+
// VIOLATION: Wrapping async in Promise constructor
|
|
360
|
+
function fetchData(): Promise<Data> {
|
|
361
|
+
return new Promise(async (resolve, reject) => {
|
|
362
|
+
const data = await fetch('/api/data');
|
|
363
|
+
resolve(data);
|
|
364
|
+
});
|
|
365
|
+
// Async executor is an anti-pattern - errors won't be caught properly
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
// VIOLATION: Unnecessary Promise wrapping
|
|
369
|
+
function getValue(): Promise<number> {
|
|
370
|
+
return new Promise((resolve) => {
|
|
371
|
+
resolve(42); // Just return Promise.resolve(42)
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
**Missing rejection handling**
|
|
377
|
+
```typescript
|
|
378
|
+
// VIOLATION: Unhandled rejection in Promise.all
|
|
379
|
+
async function loadAll(ids: string[]) {
|
|
380
|
+
const results = await Promise.all(ids.map(id => fetch(`/api/${id}`)));
|
|
381
|
+
return results;
|
|
382
|
+
// One failure rejects entire batch, no partial results
|
|
383
|
+
}
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
---
|
|
387
|
+
|
|
388
|
+
## Module Violations
|
|
389
|
+
|
|
390
|
+
### Circular Dependencies
|
|
391
|
+
|
|
392
|
+
**Direct circular import**
|
|
393
|
+
```typescript
|
|
394
|
+
// a.ts
|
|
395
|
+
import { B } from './b';
|
|
396
|
+
export class A { b = new B(); }
|
|
397
|
+
|
|
398
|
+
// b.ts
|
|
399
|
+
import { A } from './a'; // Circular!
|
|
400
|
+
export class B { a = new A(); }
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
**Export-time side effects**
|
|
404
|
+
```typescript
|
|
405
|
+
// VIOLATION: Code runs on import
|
|
406
|
+
export const config = loadConfig(); // Runs when imported
|
|
407
|
+
|
|
408
|
+
// VIOLATION: Initializing singletons at module level
|
|
409
|
+
export const db = new Database(connectionString); // Can't be tested
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### Import Anti-patterns
|
|
413
|
+
|
|
414
|
+
**Importing everything**
|
|
415
|
+
```typescript
|
|
416
|
+
// VIOLATION: Import entire module
|
|
417
|
+
import * as utils from './utils';
|
|
418
|
+
utils.formatDate(date); // No tree-shaking
|
|
419
|
+
|
|
420
|
+
// VIOLATION: Re-exporting with namespace
|
|
421
|
+
export * as helpers from './helpers'; // Harder to trace dependencies
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
**Dynamic import abuse**
|
|
425
|
+
```typescript
|
|
426
|
+
// VIOLATION: Dynamic import with variable path
|
|
427
|
+
const module = await import(modulePath); // Not statically analyzable
|
|
428
|
+
|
|
429
|
+
// VIOLATION: Conditional static import
|
|
430
|
+
if (condition) {
|
|
431
|
+
import { feature } from './feature'; // Syntax error - can't use in block
|
|
432
|
+
}
|
|
433
|
+
```
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# DevFlow .claudeignore - Protects against sensitive files and context pollution
|
|
2
|
+
# Generated by DevFlow - Edit as needed for your project
|
|
3
|
+
|
|
4
|
+
# === SECURITY: Sensitive Files ===
|
|
5
|
+
# Environment and secrets
|
|
6
|
+
.env
|
|
7
|
+
.env.*
|
|
8
|
+
.env.local
|
|
9
|
+
.env.*.local
|
|
10
|
+
*.env
|
|
11
|
+
.envrc
|
|
12
|
+
|
|
13
|
+
# Credentials and keys
|
|
14
|
+
*.key
|
|
15
|
+
*.pem
|
|
16
|
+
*.p12
|
|
17
|
+
*.pfx
|
|
18
|
+
*.cer
|
|
19
|
+
*.crt
|
|
20
|
+
*.der
|
|
21
|
+
id_rsa
|
|
22
|
+
id_dsa
|
|
23
|
+
id_ecdsa
|
|
24
|
+
id_ed25519
|
|
25
|
+
*.ppk
|
|
26
|
+
*_rsa
|
|
27
|
+
*_dsa
|
|
28
|
+
*secret*
|
|
29
|
+
*password*
|
|
30
|
+
*credential*
|
|
31
|
+
credentials.json
|
|
32
|
+
secrets.json
|
|
33
|
+
secrets.yaml
|
|
34
|
+
secrets.yml
|
|
35
|
+
|
|
36
|
+
# Cloud provider credentials
|
|
37
|
+
.aws/credentials
|
|
38
|
+
.aws/config
|
|
39
|
+
.gcp/credentials.json
|
|
40
|
+
.azure/credentials
|
|
41
|
+
|
|
42
|
+
# Package manager credentials
|
|
43
|
+
.npmrc
|
|
44
|
+
.pypirc
|
|
45
|
+
.gem/credentials
|
|
46
|
+
pip.conf
|
|
47
|
+
|
|
48
|
+
# Database
|
|
49
|
+
*.sql
|
|
50
|
+
*.db
|
|
51
|
+
*.sqlite
|
|
52
|
+
*.sqlite3
|
|
53
|
+
|
|
54
|
+
# === DEPENDENCIES & BUILD ===
|
|
55
|
+
# Node.js
|
|
56
|
+
node_modules/
|
|
57
|
+
npm-debug.log*
|
|
58
|
+
yarn-debug.log*
|
|
59
|
+
yarn-error.log*
|
|
60
|
+
pnpm-debug.log*
|
|
61
|
+
.pnpm-store/
|
|
62
|
+
|
|
63
|
+
# Python
|
|
64
|
+
__pycache__/
|
|
65
|
+
*.py[cod]
|
|
66
|
+
*$py.class
|
|
67
|
+
.Python
|
|
68
|
+
env/
|
|
69
|
+
venv/
|
|
70
|
+
ENV/
|
|
71
|
+
.venv/
|
|
72
|
+
pip-log.txt
|
|
73
|
+
pip-delete-this-directory.txt
|
|
74
|
+
.eggs/
|
|
75
|
+
*.egg-info/
|
|
76
|
+
dist/
|
|
77
|
+
build/
|
|
78
|
+
*.whl
|
|
79
|
+
|
|
80
|
+
# Ruby
|
|
81
|
+
vendor/bundle/
|
|
82
|
+
.bundle/
|
|
83
|
+
|
|
84
|
+
# Go
|
|
85
|
+
vendor/
|
|
86
|
+
go.sum
|
|
87
|
+
|
|
88
|
+
# Rust
|
|
89
|
+
target/
|
|
90
|
+
Cargo.lock
|
|
91
|
+
|
|
92
|
+
# Java
|
|
93
|
+
target/
|
|
94
|
+
*.class
|
|
95
|
+
*.jar
|
|
96
|
+
*.war
|
|
97
|
+
|
|
98
|
+
# PHP
|
|
99
|
+
vendor/
|
|
100
|
+
composer.lock
|
|
101
|
+
|
|
102
|
+
# === BUILD ARTIFACTS ===
|
|
103
|
+
dist/
|
|
104
|
+
build/
|
|
105
|
+
out/
|
|
106
|
+
.next/
|
|
107
|
+
.nuxt/
|
|
108
|
+
.output/
|
|
109
|
+
.vite/
|
|
110
|
+
.cache/
|
|
111
|
+
.parcel-cache/
|
|
112
|
+
.turbo/
|
|
113
|
+
*.tsbuildinfo
|
|
114
|
+
|
|
115
|
+
# === LOGS & TEMP FILES ===
|
|
116
|
+
logs/
|
|
117
|
+
*.log
|
|
118
|
+
*.tmp
|
|
119
|
+
*.temp
|
|
120
|
+
*.swp
|
|
121
|
+
*.swo
|
|
122
|
+
*~
|
|
123
|
+
.DS_Store
|
|
124
|
+
Thumbs.db
|
|
125
|
+
*.bak
|
|
126
|
+
*.orig
|
|
127
|
+
*.rej
|
|
128
|
+
.cache
|
|
129
|
+
|
|
130
|
+
# === VERSION CONTROL ===
|
|
131
|
+
.git/
|
|
132
|
+
.svn/
|
|
133
|
+
.hg/
|
|
134
|
+
.gitignore
|
|
135
|
+
|
|
136
|
+
# === IDE & EDITORS ===
|
|
137
|
+
.vscode/
|
|
138
|
+
.idea/
|
|
139
|
+
*.sublime-*
|
|
140
|
+
*.code-workspace
|
|
141
|
+
.project
|
|
142
|
+
.classpath
|
|
143
|
+
.settings/
|
|
144
|
+
|
|
145
|
+
# === TEST COVERAGE ===
|
|
146
|
+
coverage/
|
|
147
|
+
.nyc_output/
|
|
148
|
+
htmlcov/
|
|
149
|
+
.coverage
|
|
150
|
+
.pytest_cache/
|
|
151
|
+
.tox/
|
|
152
|
+
|
|
153
|
+
# === OS-SPECIFIC ===
|
|
154
|
+
.DS_Store
|
|
155
|
+
.AppleDouble
|
|
156
|
+
.LSOverride
|
|
157
|
+
Thumbs.db
|
|
158
|
+
ehthumbs.db
|
|
159
|
+
Desktop.ini
|
|
160
|
+
|
|
161
|
+
# === MEDIA & LARGE FILES ===
|
|
162
|
+
*.mp4
|
|
163
|
+
*.avi
|
|
164
|
+
*.mov
|
|
165
|
+
*.wmv
|
|
166
|
+
*.flv
|
|
167
|
+
*.mp3
|
|
168
|
+
*.wav
|
|
169
|
+
*.zip
|
|
170
|
+
*.tar.gz
|
|
171
|
+
*.rar
|
|
172
|
+
*.7z
|
|
173
|
+
*.dmg
|
|
174
|
+
*.iso
|
|
175
|
+
|
|
176
|
+
# === DOCUMENTATION BUILD ===
|
|
177
|
+
site/
|
|
178
|
+
_site/
|
|
179
|
+
.docusaurus/
|
|
180
|
+
.vuepress/dist/
|
|
181
|
+
|
|
182
|
+
# === LOCK FILES (usually not needed for AI context) ===
|
|
183
|
+
package-lock.json
|
|
184
|
+
yarn.lock
|
|
185
|
+
pnpm-lock.yaml
|
|
186
|
+
Gemfile.lock
|
|
187
|
+
poetry.lock
|
|
188
|
+
Pipfile.lock
|