universal-dev-standards 4.2.0 → 5.0.0-beta.10
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/README.md +3 -3
- package/bin/uds.js +165 -5
- package/bundled/core/acceptance-test-driven-development.md +19 -721
- package/bundled/core/accessibility-standards.md +862 -0
- package/bundled/core/ai-agreement-standards.md +95 -0
- package/bundled/core/ai-friendly-architecture.md +2 -0
- package/bundled/core/ai-instruction-standards.md +2 -0
- package/bundled/core/anti-hallucination.md +90 -637
- package/bundled/core/behavior-driven-development.md +20 -735
- package/bundled/core/changelog-standards.md +4 -0
- package/bundled/core/checkin-standards.md +21 -4
- package/bundled/core/code-review-checklist.md +3 -0
- package/bundled/core/commit-message-guide.md +14 -3
- package/bundled/core/deployment-standards.md +296 -0
- package/bundled/core/developer-memory.md +568 -0
- package/bundled/core/documentation-structure.md +114 -18
- package/bundled/core/documentation-writing-standards.md +272 -2
- package/bundled/core/error-code-standards.md +3 -0
- package/bundled/core/forward-derivation-standards.md +134 -8
- package/bundled/core/git-workflow.md +72 -686
- package/bundled/core/guides/anti-hallucination-guide.md +517 -0
- package/bundled/core/guides/git-workflow-guide.md +954 -0
- package/bundled/core/guides/performance-guide.md +508 -0
- package/bundled/core/guides/refactoring-guide.md +608 -0
- package/bundled/core/guides/security-guide.md +485 -0
- package/bundled/core/logging-standards.md +337 -2
- package/bundled/core/performance-standards.md +231 -0
- package/bundled/core/project-context-memory.md +180 -0
- package/bundled/core/project-structure.md +315 -2
- package/bundled/core/refactoring-standards.md +81 -761
- package/bundled/core/requirement-engineering.md +39 -0
- package/bundled/core/reverse-engineering-standards.md +6 -4
- package/bundled/core/security-standards.md +244 -0
- package/bundled/core/spec-driven-development.md +20 -319
- package/bundled/core/test-completeness-dimensions.md +213 -11
- package/bundled/core/test-driven-development.md +22 -978
- package/bundled/core/testing-standards.md +222 -2903
- package/bundled/core/versioning.md +16 -55
- package/bundled/core/virtual-organization-standards.md +85 -0
- package/bundled/locales/README.md +4 -4
- package/bundled/locales/zh-CN/CHANGELOG.md +18 -18
- package/bundled/locales/zh-CN/CLAUDE.md +3 -3
- package/bundled/locales/zh-CN/MAINTENANCE.md +7 -7
- package/bundled/locales/zh-CN/README.md +2 -2
- package/bundled/locales/zh-CN/STANDARDS-MAPPING.md +1 -1
- package/bundled/locales/zh-CN/adoption/ADOPTION-GUIDE.md +3 -3
- package/bundled/locales/zh-CN/adoption/DAILY-WORKFLOW-GUIDE.md +66 -7
- package/bundled/locales/zh-CN/adoption/STATIC-DYNAMIC-GUIDE.md +22 -22
- package/bundled/locales/zh-CN/adoption/checklists/enterprise.md +5 -5
- package/bundled/locales/zh-CN/adoption/checklists/minimal.md +4 -4
- package/bundled/locales/zh-CN/adoption/checklists/recommended.md +5 -5
- package/bundled/locales/zh-CN/ai/MAINTENANCE.md +13 -13
- package/bundled/locales/zh-CN/core/ai-instruction-standards.md +1 -1
- package/bundled/locales/zh-CN/core/anti-hallucination.md +39 -3
- package/bundled/locales/zh-CN/core/checkin-standards.md +18 -5
- package/bundled/locales/zh-CN/core/commit-message-guide.md +1 -1
- package/bundled/locales/zh-CN/core/developer-memory.md +576 -0
- package/bundled/locales/zh-CN/core/documentation-structure.md +43 -5
- package/bundled/locales/zh-CN/core/documentation-writing-standards.md +146 -5
- package/bundled/locales/zh-CN/core/git-workflow.md +179 -4
- package/bundled/locales/zh-CN/core/logging-standards.md +177 -4
- package/bundled/locales/zh-CN/core/project-structure.md +117 -5
- package/bundled/locales/zh-CN/core/refactoring-standards.md +3 -3
- package/bundled/locales/zh-CN/core/reverse-engineering-standards.md +6 -6
- package/bundled/locales/zh-CN/core/spec-driven-development.md +516 -14
- package/bundled/locales/zh-CN/core/test-completeness-dimensions.md +155 -24
- package/bundled/locales/zh-CN/core/test-driven-development.md +71 -20
- package/bundled/locales/zh-CN/core/testing-standards.md +4 -4
- package/bundled/locales/zh-CN/core/versioning.md +1 -1
- package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +90 -51
- package/bundled/locales/zh-CN/docs/CHEATSHEET.md +184 -0
- package/bundled/locales/zh-CN/docs/CLI-FLOW.md +239 -0
- package/bundled/locales/zh-CN/docs/FEATURE-REFERENCE.md +320 -0
- package/bundled/locales/zh-CN/docs/OPERATION-WORKFLOW.md +43 -43
- package/bundled/locales/zh-CN/docs/STANDARDS-REFERENCE.md +440 -0
- package/bundled/locales/zh-CN/docs/USAGE-MODES-COMPARISON.md +1 -1
- package/bundled/locales/zh-CN/docs/WINDOWS-GUIDE.md +1 -1
- package/bundled/locales/zh-CN/integrations/codex/README.md +3 -3
- package/bundled/locales/zh-CN/integrations/gemini-cli/README.md +3 -3
- package/bundled/locales/zh-CN/integrations/github-copilot/README.md +5 -5
- package/bundled/locales/zh-CN/integrations/github-copilot/copilot-instructions.md +9 -9
- package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +18 -6
- package/bundled/locales/zh-CN/integrations/google-antigravity/README.md +2 -2
- package/bundled/locales/zh-CN/integrations/opencode/README.md +3 -3
- package/bundled/locales/zh-CN/integrations/opencode/skills-mapping.md +22 -10
- package/bundled/locales/zh-CN/integrations/openspec/README.md +1 -1
- package/bundled/locales/zh-CN/integrations/spec-kit/AGENTS.md +3 -3
- package/bundled/locales/zh-CN/integrations/spec-kit/README.md +1 -1
- package/bundled/locales/zh-CN/options/commit-message/bilingual.md +1 -1
- package/bundled/locales/zh-CN/options/commit-message/english.md +1 -1
- package/bundled/locales/zh-CN/options/commit-message/traditional-chinese.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/gitflow.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/github-flow.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/merge-commit.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/rebase-ff.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/squash-merge.md +1 -1
- package/bundled/locales/zh-CN/options/git-workflow/trunk-based.md +1 -1
- package/bundled/locales/zh-CN/options/project-structure/dotnet.md +1 -1
- package/bundled/locales/zh-CN/options/project-structure/go.md +1 -1
- package/bundled/locales/zh-CN/options/project-structure/java.md +1 -1
- package/bundled/locales/zh-CN/options/project-structure/nodejs.md +1 -1
- package/bundled/locales/zh-CN/options/project-structure/python.md +1 -1
- package/bundled/locales/zh-CN/options/testing/e2e-testing.md +1 -1
- package/bundled/locales/zh-CN/options/testing/integration-testing.md +1 -1
- package/bundled/locales/zh-CN/options/testing/system-testing.md +1 -1
- package/bundled/locales/zh-CN/options/testing/unit-testing.md +1 -1
- package/bundled/locales/zh-CN/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +2 -2
- package/bundled/locales/zh-CN/skills/README.md +131 -81
- package/bundled/locales/zh-CN/skills/agents/README.md +281 -0
- package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +10 -10
- package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +8 -8
- package/bundled/locales/zh-CN/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +8 -8
- package/bundled/locales/zh-CN/skills/ai-friendly-architecture/SKILL.md +221 -0
- package/bundled/locales/zh-CN/skills/ai-instruction-standards/SKILL.md +214 -0
- package/bundled/locales/zh-CN/skills/atdd-assistant/SKILL.md +71 -0
- package/bundled/locales/zh-CN/skills/atdd-assistant/acceptance-criteria-guide.md +428 -0
- package/bundled/locales/zh-CN/skills/atdd-assistant/atdd-workflow.md +484 -0
- package/bundled/locales/zh-CN/skills/atdd-assistant/guide.md +368 -0
- package/bundled/locales/zh-CN/skills/bdd-assistant/SKILL.md +68 -0
- package/bundled/locales/zh-CN/skills/bdd-assistant/bdd-workflow.md +406 -0
- package/bundled/locales/zh-CN/skills/bdd-assistant/gherkin-guide.md +454 -0
- package/bundled/locales/zh-CN/skills/bdd-assistant/guide.md +324 -0
- package/bundled/locales/zh-CN/skills/changelog-guide/SKILL.md +64 -0
- package/bundled/locales/zh-CN/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +6 -7
- package/bundled/locales/zh-CN/skills/checkin-assistant/SKILL.md +56 -0
- package/bundled/locales/zh-CN/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -7
- package/bundled/locales/zh-CN/skills/code-review-assistant/SKILL.md +56 -0
- package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +5 -6
- package/bundled/locales/zh-CN/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/bdd.md +2 -2
- package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/methodology.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/commands → commands}/refactor.md +3 -3
- package/bundled/locales/zh-CN/skills/commit-standards/SKILL.md +61 -0
- package/bundled/locales/zh-CN/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +5 -6
- package/bundled/locales/zh-CN/skills/{claude-code/commit-standards → commit-standards}/language-options.md +3 -3
- package/bundled/locales/zh-CN/skills/docs-generator/SKILL.md +59 -0
- package/bundled/locales/zh-CN/skills/docs-generator/guide.md +262 -0
- package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -8
- package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-CN/skills/forward-derivation/SKILL.md +62 -0
- package/bundled/locales/zh-CN/skills/forward-derivation/guide.md +130 -0
- package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-CN/skills/methodology-system/SKILL.md +78 -0
- package/bundled/locales/zh-CN/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +2 -2
- package/bundled/locales/zh-CN/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +2 -2
- package/bundled/locales/zh-CN/skills/{claude-code/methodology-system → methodology-system}/runtime.md +3 -3
- package/bundled/locales/zh-CN/skills/project-discovery/SKILL.md +66 -0
- package/bundled/locales/zh-CN/skills/project-discovery/guide.md +371 -0
- package/bundled/locales/zh-CN/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +4 -4
- package/bundled/locales/zh-CN/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +1 -1
- package/bundled/locales/zh-CN/skills/refactoring-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-CN/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -8
- package/bundled/locales/zh-CN/skills/release-standards/SKILL.md +64 -0
- package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/changelog-format.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +5 -6
- package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/release-workflow.md +7 -7
- package/bundled/locales/zh-CN/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +3 -3
- package/bundled/locales/zh-CN/skills/requirement-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +4 -5
- package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +3 -3
- package/bundled/locales/zh-CN/skills/reverse-engineer/SKILL.md +67 -0
- package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +2 -2
- package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +17 -18
- package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +2 -2
- package/bundled/locales/zh-CN/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +3 -3
- package/bundled/locales/zh-CN/skills/spec-driven-dev/SKILL.md +75 -0
- package/bundled/locales/zh-CN/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +10 -11
- package/bundled/locales/zh-CN/skills/tdd-assistant/SKILL.md +66 -0
- package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +12 -16
- package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
- package/bundled/locales/zh-CN/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +3 -3
- package/bundled/locales/zh-CN/skills/test-coverage-assistant/SKILL.md +65 -0
- package/bundled/locales/zh-CN/skills/test-coverage-assistant/guide.md +284 -0
- package/bundled/locales/zh-CN/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +8 -8
- package/bundled/locales/zh-CN/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +4 -4
- package/bundled/locales/zh-CN/skills/{cline → tools/cline}/README.md +1 -1
- package/bundled/locales/zh-CN/skills/{copilot → tools/copilot}/README.md +1 -1
- package/bundled/locales/zh-CN/skills/{copilot → tools/copilot}/copilot-instructions.md +1 -1
- package/bundled/locales/zh-CN/skills/{cursor → tools/cursor}/README.md +1 -1
- package/bundled/locales/zh-CN/skills/{windsurf → tools/windsurf}/README.md +1 -1
- package/bundled/locales/zh-TW/CHANGELOG.md +16 -16
- package/bundled/locales/zh-TW/CLAUDE.md +3 -3
- package/bundled/locales/zh-TW/MAINTENANCE.md +7 -7
- package/bundled/locales/zh-TW/README.md +13 -7
- package/bundled/locales/zh-TW/STANDARDS-MAPPING.md +1 -1
- package/bundled/locales/zh-TW/adoption/ADOPTION-GUIDE.md +4 -4
- package/bundled/locales/zh-TW/adoption/DAILY-WORKFLOW-GUIDE.md +66 -7
- package/bundled/locales/zh-TW/adoption/STATIC-DYNAMIC-GUIDE.md +22 -22
- package/bundled/locales/zh-TW/adoption/checklists/enterprise.md +5 -5
- package/bundled/locales/zh-TW/adoption/checklists/minimal.md +4 -4
- package/bundled/locales/zh-TW/adoption/checklists/recommended.md +5 -5
- package/bundled/locales/zh-TW/ai/MAINTENANCE.md +13 -13
- package/bundled/locales/zh-TW/ai/standards/anti-hallucination.ai.yaml +3 -2
- package/bundled/locales/zh-TW/ai/standards/git-workflow.ai.yaml +4 -3
- package/bundled/locales/zh-TW/ai/standards/spec-driven-development.ai.yaml +3 -3
- package/bundled/locales/zh-TW/ai/standards/testing.ai.yaml +1 -0
- package/bundled/locales/zh-TW/core/ai-instruction-standards.md +1 -1
- package/bundled/locales/zh-TW/core/anti-hallucination.md +38 -701
- package/bundled/locales/zh-TW/core/changelog-standards.md +1 -1
- package/bundled/locales/zh-TW/core/checkin-standards.md +18 -5
- package/bundled/locales/zh-TW/core/code-review-checklist.md +1 -1
- package/bundled/locales/zh-TW/core/commit-message-guide.md +1 -1
- package/bundled/locales/zh-TW/core/developer-memory.md +576 -0
- package/bundled/locales/zh-TW/core/documentation-structure.md +115 -22
- package/bundled/locales/zh-TW/core/documentation-writing-standards.md +126 -5
- package/bundled/locales/zh-TW/core/forward-derivation-standards.md +2 -2
- package/bundled/locales/zh-TW/core/git-workflow.md +38 -812
- package/bundled/locales/zh-TW/core/guides/anti-hallucination-guide.md +779 -0
- package/bundled/locales/zh-TW/core/guides/git-workflow-guide.md +1016 -0
- package/bundled/locales/zh-TW/core/guides/refactoring-guide.md +864 -0
- package/bundled/locales/zh-TW/core/guides/testing-guide.md +2280 -0
- package/bundled/locales/zh-TW/core/logging-standards.md +159 -4
- package/bundled/locales/zh-TW/core/project-structure.md +102 -9
- package/bundled/locales/zh-TW/core/refactoring-standards.md +37 -823
- package/bundled/locales/zh-TW/core/reverse-engineering-standards.md +6 -6
- package/bundled/locales/zh-TW/core/spec-driven-development.md +17 -268
- package/bundled/locales/zh-TW/core/test-completeness-dimensions.md +128 -14
- package/bundled/locales/zh-TW/core/test-driven-development.md +20 -983
- package/bundled/locales/zh-TW/core/testing-standards.md +120 -2105
- package/bundled/locales/zh-TW/core/versioning.md +13 -55
- package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +90 -51
- package/bundled/locales/zh-TW/docs/CHEATSHEET.md +184 -0
- package/bundled/locales/zh-TW/docs/CLI-FLOW.md +239 -0
- package/bundled/locales/zh-TW/docs/FEATURE-REFERENCE.md +320 -0
- package/bundled/locales/zh-TW/docs/MIGRATION-V5.md +71 -0
- package/bundled/locales/zh-TW/docs/OPERATION-WORKFLOW.md +42 -42
- package/bundled/locales/zh-TW/docs/STANDARDS-REFERENCE.md +440 -0
- package/bundled/locales/zh-TW/docs/USAGE-MODES-COMPARISON.md +1 -1
- package/bundled/locales/zh-TW/docs/WINDOWS-GUIDE.md +1 -1
- package/bundled/locales/zh-TW/integrations/claude-code/README.md +44 -0
- package/bundled/locales/zh-TW/integrations/github-copilot/copilot-instructions.md +3 -3
- package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +18 -6
- package/bundled/locales/zh-TW/integrations/opencode/skills-mapping.md +22 -10
- package/bundled/locales/zh-TW/methodologies/guides/sdd-guide.md +338 -0
- package/bundled/locales/zh-TW/methodologies/guides/tdd-guide.md +1055 -0
- package/bundled/locales/zh-TW/options/commit-message/bilingual.md +1 -1
- package/bundled/locales/zh-TW/options/commit-message/english.md +1 -1
- package/bundled/locales/zh-TW/options/commit-message/traditional-chinese.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/gitflow.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/github-flow.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/merge-commit.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/rebase-ff.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/squash-merge.md +1 -1
- package/bundled/locales/zh-TW/options/git-workflow/trunk-based.md +1 -1
- package/bundled/locales/zh-TW/options/project-structure/dotnet.md +1 -1
- package/bundled/locales/zh-TW/options/project-structure/go.md +1 -1
- package/bundled/locales/zh-TW/options/project-structure/java.md +1 -1
- package/bundled/locales/zh-TW/options/project-structure/nodejs.md +1 -1
- package/bundled/locales/zh-TW/options/project-structure/python.md +1 -1
- package/bundled/locales/zh-TW/options/testing/e2e-testing.md +1 -1
- package/bundled/locales/zh-TW/options/testing/integration-testing.md +1 -1
- package/bundled/locales/zh-TW/options/testing/system-testing.md +1 -1
- package/bundled/locales/zh-TW/options/testing/unit-testing.md +1 -1
- package/bundled/locales/zh-TW/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +2 -2
- package/bundled/locales/zh-TW/skills/README.md +131 -79
- package/bundled/locales/zh-TW/skills/agents/README.md +281 -0
- package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +7 -7
- package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +8 -8
- package/bundled/locales/zh-TW/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +8 -8
- package/bundled/locales/zh-TW/skills/ai-friendly-architecture/SKILL.md +221 -0
- package/bundled/locales/zh-TW/skills/ai-instruction-standards/SKILL.md +214 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/SKILL.md +71 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/acceptance-criteria-guide.md +428 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/atdd-workflow.md +484 -0
- package/bundled/locales/zh-TW/skills/atdd-assistant/guide.md +368 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/SKILL.md +68 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/bdd-workflow.md +406 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/gherkin-guide.md +454 -0
- package/bundled/locales/zh-TW/skills/bdd-assistant/guide.md +324 -0
- package/bundled/locales/zh-TW/skills/changelog-guide/SKILL.md +64 -0
- package/bundled/locales/zh-TW/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +6 -7
- package/bundled/locales/zh-TW/skills/checkin-assistant/SKILL.md +56 -0
- package/bundled/locales/zh-TW/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -7
- package/bundled/locales/zh-TW/skills/code-review-assistant/SKILL.md +56 -0
- package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +2 -3
- package/bundled/locales/zh-TW/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/bdd.md +2 -2
- package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/methodology.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/commands → commands}/refactor.md +3 -3
- package/bundled/locales/zh-TW/skills/commit-standards/SKILL.md +61 -0
- package/bundled/locales/zh-TW/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +5 -6
- package/bundled/locales/zh-TW/skills/{claude-code/commit-standards → commit-standards}/language-options.md +3 -3
- package/bundled/locales/zh-TW/skills/docs-generator/SKILL.md +59 -0
- package/bundled/locales/zh-TW/skills/docs-generator/guide.md +262 -0
- package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -8
- package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-TW/skills/forward-derivation/SKILL.md +62 -0
- package/bundled/locales/zh-TW/skills/{claude-code/forward-derivation/SKILL.md → forward-derivation/guide.md} +24 -19
- package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-TW/skills/methodology-system/SKILL.md +78 -0
- package/bundled/locales/zh-TW/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +2 -2
- package/bundled/locales/zh-TW/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +2 -2
- package/bundled/locales/zh-TW/skills/{claude-code/methodology-system → methodology-system}/runtime.md +3 -3
- package/bundled/locales/zh-TW/skills/project-discovery/SKILL.md +66 -0
- package/bundled/locales/zh-TW/skills/project-discovery/guide.md +371 -0
- package/bundled/locales/zh-TW/skills/project-discovery/workflow.md +574 -0
- package/bundled/locales/zh-TW/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +4 -4
- package/bundled/locales/zh-TW/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +1 -1
- package/bundled/locales/zh-TW/skills/refactoring-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-TW/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -8
- package/bundled/locales/zh-TW/skills/release-standards/SKILL.md +64 -0
- package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/changelog-format.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +2 -3
- package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/release-workflow.md +60 -28
- package/bundled/locales/zh-TW/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +3 -3
- package/bundled/locales/zh-TW/skills/requirement-assistant/SKILL.md +67 -0
- package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +2 -3
- package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +3 -3
- package/bundled/locales/zh-TW/skills/reverse-engineer/SKILL.md +67 -0
- package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +2 -2
- package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +17 -18
- package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +2 -2
- package/bundled/locales/zh-TW/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +3 -3
- package/bundled/locales/zh-TW/skills/spec-driven-dev/SKILL.md +75 -0
- package/bundled/locales/zh-TW/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +9 -10
- package/bundled/locales/zh-TW/skills/tdd-assistant/SKILL.md +66 -0
- package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +9 -10
- package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
- package/bundled/locales/zh-TW/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +3 -3
- package/bundled/locales/zh-TW/skills/test-coverage-assistant/SKILL.md +65 -0
- package/bundled/locales/zh-TW/skills/{claude-code/test-coverage-assistant/SKILL.md → test-coverage-assistant/guide.md} +27 -24
- package/bundled/locales/zh-TW/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +6 -6
- package/bundled/locales/zh-TW/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +4 -4
- package/bundled/locales/zh-TW/skills/{cline → tools/cline}/README.md +1 -1
- package/bundled/locales/zh-TW/skills/{copilot → tools/copilot}/README.md +1 -1
- package/bundled/locales/zh-TW/skills/{copilot → tools/copilot}/copilot-instructions.md +1 -1
- package/bundled/locales/zh-TW/skills/{cursor → tools/cursor}/README.md +1 -1
- package/bundled/locales/zh-TW/skills/{windsurf → tools/windsurf}/README.md +1 -1
- package/bundled/skills/INTEGRATION-GUIDE.md +210 -0
- package/bundled/skills/README.md +95 -0
- package/bundled/skills/_shared/README.md +60 -0
- package/bundled/skills/{claude-code/agents → agents}/README.md +2 -2
- package/bundled/skills/{claude-code/agents → agents}/code-architect.md +1 -1
- package/bundled/skills/{claude-code/agents → agents}/doc-writer.md +1 -1
- package/bundled/skills/{claude-code/agents → agents}/reviewer.md +1 -1
- package/bundled/skills/{claude-code/agents → agents}/spec-analyst.md +1 -1
- package/bundled/skills/{claude-code/agents → agents}/test-specialist.md +1 -1
- package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/SKILL.md +28 -5
- package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/anti-hallucination.md +24 -5
- package/bundled/skills/{claude-code/ai-collaboration-standards → ai-collaboration-standards}/certainty-labels.md +31 -6
- package/bundled/skills/ai-friendly-architecture/SKILL.md +216 -0
- package/bundled/skills/ai-instruction-standards/SKILL.md +209 -0
- package/bundled/skills/atdd-assistant/SKILL.md +74 -0
- package/bundled/skills/{claude-code/atdd-assistant → atdd-assistant}/acceptance-criteria-guide.md +1 -1
- package/bundled/skills/{claude-code/atdd-assistant → atdd-assistant}/atdd-workflow.md +1 -1
- package/bundled/skills/{claude-code/atdd-assistant/SKILL.md → atdd-assistant/guide.md} +11 -11
- package/bundled/skills/bdd-assistant/SKILL.md +70 -0
- package/bundled/skills/{claude-code/bdd-assistant → bdd-assistant}/bdd-workflow.md +1 -1
- package/bundled/skills/{claude-code/bdd-assistant → bdd-assistant}/gherkin-guide.md +1 -1
- package/bundled/skills/{claude-code/bdd-assistant/SKILL.md → bdd-assistant/guide.md} +11 -11
- package/bundled/skills/changelog-guide/SKILL.md +66 -0
- package/bundled/skills/{claude-code/changelog-guide/SKILL.md → changelog-guide/guide.md} +8 -6
- package/bundled/skills/checkin-assistant/SKILL.md +52 -0
- package/bundled/skills/{claude-code/checkin-assistant/SKILL.md → checkin-assistant/guide.md} +6 -6
- package/bundled/skills/code-review-assistant/SKILL.md +53 -0
- package/bundled/skills/{claude-code/code-review-assistant → code-review-assistant}/checkin-checklist.md +3 -3
- package/bundled/skills/{claude-code/code-review-assistant/SKILL.md → code-review-assistant/guide.md} +7 -5
- package/bundled/skills/{claude-code/code-review-assistant → code-review-assistant}/review-checklist.md +3 -3
- package/bundled/skills/commands/COMMAND-FAMILY-OVERVIEW.md +290 -0
- package/bundled/skills/{claude-code/commands → commands}/README.md +13 -3
- package/bundled/skills/{claude-code/commands → commands}/atdd.md +3 -3
- package/bundled/skills/{claude-code/commands → commands}/bdd.md +2 -2
- package/bundled/skills/commands/changelog.md +58 -0
- package/bundled/skills/{claude-code/commands → commands}/check.md +1 -1
- package/bundled/skills/commands/checkin.md +53 -0
- package/bundled/skills/{claude-code/commands → commands}/commit.md +3 -3
- package/bundled/skills/{claude-code/commands → commands}/config.md +1 -1
- package/bundled/skills/{claude-code/commands → commands}/coverage.md +5 -4
- package/bundled/skills/commands/derive-all.md +53 -0
- package/bundled/skills/commands/derive-atdd.md +49 -0
- package/bundled/skills/commands/derive-bdd.md +47 -0
- package/bundled/skills/commands/derive-tdd.md +48 -0
- package/bundled/skills/commands/derive.md +72 -0
- package/bundled/skills/commands/discover.md +80 -0
- package/bundled/skills/commands/docgen.md +61 -0
- package/bundled/skills/commands/docs.md +59 -0
- package/bundled/skills/commands/guide.md +44 -0
- package/bundled/skills/{claude-code/commands → commands}/init.md +2 -2
- package/bundled/skills/{claude-code/commands → commands}/methodology.md +32 -16
- package/bundled/skills/{claude-code/commands → commands}/refactor.md +2 -2
- package/bundled/skills/commands/release.md +56 -0
- package/bundled/skills/{claude-code/commands → commands}/requirement.md +3 -3
- package/bundled/skills/commands/reverse-bdd.md +47 -0
- package/bundled/skills/commands/reverse-sdd.md +51 -0
- package/bundled/skills/commands/reverse-tdd.md +51 -0
- package/bundled/skills/commands/reverse.md +63 -0
- package/bundled/skills/{claude-code/commands → commands}/review.md +3 -3
- package/bundled/skills/commands/sdd.md +135 -0
- package/bundled/skills/{claude-code/commands → commands}/tdd.md +3 -3
- package/bundled/skills/{claude-code/commands → commands}/update.md +2 -2
- package/bundled/skills/commit-standards/SKILL.md +60 -0
- package/bundled/skills/{claude-code/commit-standards → commit-standards}/conventional-commits.md +3 -3
- package/bundled/skills/{claude-code/commit-standards/SKILL.md → commit-standards/guide.md} +17 -5
- package/bundled/skills/{claude-code/commit-standards → commit-standards}/language-options.md +2 -2
- package/bundled/skills/docs-generator/SKILL.md +69 -0
- package/bundled/skills/docs-generator/guide.md +258 -0
- package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/SKILL.md +7 -7
- package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/documentation-structure.md +3 -3
- package/bundled/skills/{claude-code/documentation-guide → documentation-guide}/readme-template.md +2 -2
- package/bundled/skills/{claude-code/error-code-guide → error-code-guide}/SKILL.md +7 -5
- package/bundled/skills/forward-derivation/SKILL.md +61 -0
- package/bundled/skills/{claude-code/forward-derivation/SKILL.md → forward-derivation/guide.md} +44 -29
- package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/SKILL.md +7 -5
- package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/branch-naming.md +2 -2
- package/bundled/skills/{claude-code/git-workflow-guide → git-workflow-guide}/git-workflow.md +3 -3
- package/bundled/skills/{claude-code/logging-guide → logging-guide}/SKILL.md +7 -5
- package/bundled/skills/methodology-system/SKILL.md +75 -0
- package/bundled/skills/{claude-code/methodology-system → methodology-system}/create-methodology.md +1 -1
- package/bundled/skills/{claude-code/methodology-system/SKILL.md → methodology-system/guide.md} +51 -16
- package/bundled/skills/methodology-system/integrated-flow.md +454 -0
- package/bundled/skills/{claude-code/methodology-system → methodology-system}/runtime.md +2 -2
- package/bundled/skills/project-discovery/SKILL.md +63 -0
- package/bundled/skills/project-discovery/guide.md +367 -0
- package/bundled/skills/project-discovery/workflow.md +566 -0
- package/bundled/skills/{claude-code/project-structure-guide → project-structure-guide}/SKILL.md +14 -4
- package/bundled/skills/refactoring-assistant/SKILL.md +78 -0
- package/bundled/skills/{claude-code/refactoring-assistant/SKILL.md → refactoring-assistant/guide.md} +7 -7
- package/bundled/skills/release-standards/SKILL.md +61 -0
- package/bundled/skills/{claude-code/release-standards → release-standards}/changelog-format.md +2 -2
- package/bundled/skills/{claude-code/release-standards/SKILL.md → release-standards/guide.md} +7 -5
- package/bundled/skills/{claude-code/release-standards → release-standards}/release-workflow.md +59 -24
- package/bundled/skills/{claude-code/release-standards → release-standards}/semantic-versioning.md +2 -2
- package/bundled/skills/requirement-assistant/SKILL.md +66 -0
- package/bundled/skills/{claude-code/requirement-assistant/SKILL.md → requirement-assistant/guide.md} +14 -6
- package/bundled/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-checklist.md +2 -2
- package/bundled/skills/{claude-code/requirement-assistant → requirement-assistant}/requirement-writing.md +2 -2
- package/bundled/skills/reverse-engineer/SKILL.md +64 -0
- package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/bdd-extraction.md +1 -1
- package/bundled/skills/{claude-code/reverse-engineer/SKILL.md → reverse-engineer/guide.md} +21 -18
- package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/tdd-analysis.md +1 -1
- package/bundled/skills/{claude-code/reverse-engineer → reverse-engineer}/workflow.md +2 -2
- package/bundled/skills/spec-driven-dev/SKILL.md +80 -0
- package/bundled/skills/{claude-code/spec-driven-dev/SKILL.md → spec-driven-dev/guide.md} +50 -8
- package/bundled/skills/tdd-assistant/SKILL.md +65 -0
- package/bundled/skills/{claude-code/tdd-assistant/SKILL.md → tdd-assistant/guide.md} +10 -10
- package/bundled/skills/{claude-code/tdd-assistant → tdd-assistant}/language-examples.md +3 -3
- package/bundled/skills/{claude-code/tdd-assistant → tdd-assistant}/tdd-workflow.md +2 -2
- package/bundled/skills/test-coverage-assistant/SKILL.md +63 -0
- package/bundled/skills/{claude-code/test-coverage-assistant/SKILL.md → test-coverage-assistant/guide.md} +39 -24
- package/bundled/skills/{claude-code/testing-guide → testing-guide}/SKILL.md +12 -7
- package/bundled/skills/{claude-code/testing-guide → testing-guide}/testing-pyramid.md +3 -3
- package/bundled/skills/testing-guide/testing-theory.md +2291 -0
- package/bundled/skills/tools/cline/.clinerules +79 -0
- package/bundled/skills/tools/cline/README.md +50 -0
- package/bundled/skills/tools/copilot/README.md +99 -0
- package/bundled/skills/tools/copilot/copilot-instructions.md +71 -0
- package/bundled/skills/tools/cursor/.cursorrules +101 -0
- package/bundled/skills/tools/cursor/README.md +50 -0
- package/bundled/skills/tools/windsurf/.windsurfrules +76 -0
- package/bundled/skills/tools/windsurf/README.md +51 -0
- package/bundled/skills/{claude-code/workflows → workflows}/README.md +1 -1
- package/bundled/skills/workflows/release.workflow.yaml +893 -0
- package/package.json +4 -1
- package/src/commands/check.js +195 -130
- package/src/commands/config.js +1262 -0
- package/src/commands/configure.js +3 -950
- package/src/commands/fix.js +53 -0
- package/src/commands/hitl.js +19 -0
- package/src/commands/init.js +320 -1030
- package/src/commands/list.js +1 -1
- package/src/commands/simulate.js +61 -0
- package/src/commands/spec.js +288 -0
- package/src/commands/start.js +373 -0
- package/src/commands/sweep.js +142 -0
- package/src/commands/update.js +136 -19
- package/src/commands/workflow.js +265 -1
- package/src/config/ai-agent-paths.js +89 -29
- package/src/core/constants.js +7 -1
- package/src/core/manifest.js +1 -0
- package/src/flows/init-flow.js +243 -0
- package/src/hitl/checkpoint.js +80 -0
- package/src/hitl/classifier.js +54 -0
- package/src/hitl/manager.js +88 -0
- package/src/i18n/messages.js +907 -99
- package/src/index.js +1 -0
- package/src/installers/integration-installer.js +237 -0
- package/src/installers/manifest-installer.js +131 -0
- package/src/installers/skills-installer.js +286 -0
- package/src/installers/standards-installer.js +193 -0
- package/src/missions/MissionManager.js +501 -0
- package/src/prompts/init.js +228 -130
- package/src/prompts/integrations.js +13 -1
- package/src/schemas/standard.schema.json +117 -0
- package/src/utils/agents-installer.js +2 -2
- package/src/utils/config-loader.js +47 -0
- package/src/utils/config-manager.js +108 -0
- package/src/utils/config-merger.js +47 -0
- package/src/utils/github.js +22 -18
- package/src/utils/inquirer-patch.js +98 -0
- package/src/utils/integration-generator.js +392 -58
- package/src/utils/reference-sync.js +69 -19
- package/src/utils/skills-installer.js +6 -3
- package/src/utils/standard-fixer.js +141 -0
- package/src/utils/standard-validator.js +329 -0
- package/src/utils/workflow-executor.js +886 -0
- package/src/utils/workflow-state.js +404 -0
- package/src/utils/workflows-installer.js +2 -2
- package/src/vibe/auto-sweep.js +349 -0
- package/src/vibe/micro-spec.js +428 -0
- package/standards-registry.json +278 -102
- package/bundled/locales/zh-CN/skills/claude-code/README.md +0 -174
- package/bundled/locales/zh-CN/skills/claude-code/test-coverage-assistant/SKILL.md +0 -282
- package/bundled/locales/zh-TW/skills/claude-code/README.md +0 -174
- package/bundled/skills/claude-code/README.md +0 -215
- package/bundled/skills/claude-code/commands/changelog.md +0 -57
- package/bundled/skills/claude-code/commands/derive-all.md +0 -214
- package/bundled/skills/claude-code/commands/derive-atdd.md +0 -177
- package/bundled/skills/claude-code/commands/derive-bdd.md +0 -158
- package/bundled/skills/claude-code/commands/derive-tdd.md +0 -259
- package/bundled/skills/claude-code/commands/docs.md +0 -75
- package/bundled/skills/claude-code/commands/release.md +0 -50
- package/bundled/skills/claude-code/commands/reverse-bdd.md +0 -264
- package/bundled/skills/claude-code/commands/reverse-spec.md +0 -185
- package/bundled/skills/claude-code/commands/reverse-tdd.md +0 -351
- package/bundled/skills/claude-code/commands/spec.md +0 -69
- package/bundled/skills/claude-code/methodology-system/integrated-flow.md +0 -322
- /package/bundled/skills/{claude-code/CONTRIBUTING.template.md → CONTRIBUTING.template.md} +0 -0
- /package/bundled/skills/{claude-code/ai → ai}/standards/checkin.ai.yaml +0 -0
- /package/bundled/skills/{claude-code/ai → ai}/standards/commit.ai.yaml +0 -0
- /package/bundled/skills/{claude-code/ai → ai}/standards/refactoring.ai.yaml +0 -0
- /package/bundled/skills/{claude-code/ai → ai}/standards/testing.ai.yaml +0 -0
- /package/bundled/skills/{claude-code/project-structure-guide → project-structure-guide}/language-patterns.md +0 -0
- /package/bundled/skills/{claude-code/workflows → workflows}/code-review.workflow.yaml +0 -0
- /package/bundled/skills/{claude-code/workflows → workflows}/feature-dev.workflow.yaml +0 -0
- /package/bundled/skills/{claude-code/workflows → workflows}/integrated-flow.workflow.yaml +0 -0
- /package/bundled/skills/{claude-code/workflows → workflows}/large-codebase-analysis.workflow.yaml +0 -0
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/project-discovery/workflow.md
|
|
3
|
+
source_version: 1.0.0
|
|
4
|
+
translation_version: 1.0.0
|
|
5
|
+
last_synced: 2026-02-09
|
|
6
|
+
status: current
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# 專案現況評估工作流程指南
|
|
10
|
+
|
|
11
|
+
> **語言**: [English](../../../../skills/project-discovery/workflow.md) | 繁體中文
|
|
12
|
+
|
|
13
|
+
**版本**: 1.0.0
|
|
14
|
+
**最後更新**: 2026-02-09
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 概覽
|
|
19
|
+
|
|
20
|
+
本指南提供 Phase 0 現況評估工作流程每個步驟的詳細執行說明。請搭配[專案現況評估技能](./SKILL.md)使用。
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
┌─────────────────────────────────────────────────────────────────┐
|
|
24
|
+
│ Phase 0:現況評估流程 │
|
|
25
|
+
│ │
|
|
26
|
+
│ 輸入:既有程式碼 + 預計功能區域 │
|
|
27
|
+
│ │
|
|
28
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
29
|
+
│ │ 0.1 程碼 │→│ 0.2 架構 │→│ 0.3 文件 │ │
|
|
30
|
+
│ │ 健康度 │ │ 審查 │ │ 盤點 │ │
|
|
31
|
+
│ └──────────┘ └──────────┘ └──────────┘ │
|
|
32
|
+
│ │ │ │ │
|
|
33
|
+
│ ▼ ▼ ▼ │
|
|
34
|
+
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
|
|
35
|
+
│ │ 0.4 程碼 │→│ 0.5 依賴 │→│ 0.6 影響 │ │
|
|
36
|
+
│ │ 審查 │ │ 安全 │ │ 範圍 │ │
|
|
37
|
+
│ └──────────┘ └──────────┘ └──────────┘ │
|
|
38
|
+
│ │ │ │ │
|
|
39
|
+
│ └──────────────┴──────────────┘ │
|
|
40
|
+
│ │ │
|
|
41
|
+
│ ▼ │
|
|
42
|
+
│ 現況評估報告 │
|
|
43
|
+
│ (通過 / 不通過 / 有條件通過) │
|
|
44
|
+
└─────────────────────────────────────────────────────────────────┘
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 步驟 0.1:程式碼健康度檢查
|
|
50
|
+
|
|
51
|
+
### 目標
|
|
52
|
+
|
|
53
|
+
建立程式碼目前品質的量化基準。
|
|
54
|
+
|
|
55
|
+
### 程序
|
|
56
|
+
|
|
57
|
+
#### 0.1.1 執行測試套件
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# 範例指令(依據你的專案調整)
|
|
61
|
+
npm test # Node.js
|
|
62
|
+
pytest --cov # Python
|
|
63
|
+
dotnet test # .NET
|
|
64
|
+
./gradlew test # Java/Kotlin
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
記錄:
|
|
68
|
+
- 測試總數、通過、失敗、跳過
|
|
69
|
+
- 覆蓋率百分比(行覆蓋、分支覆蓋若有的話)
|
|
70
|
+
- 執行時間
|
|
71
|
+
|
|
72
|
+
#### 0.1.2 執行 Linter
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# 範例指令
|
|
76
|
+
npm run lint # ESLint
|
|
77
|
+
flake8 . # Python
|
|
78
|
+
dotnet format --verify-no-changes # .NET
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
記錄:
|
|
82
|
+
- 錯誤數
|
|
83
|
+
- 警告數
|
|
84
|
+
- 最常違反的規則
|
|
85
|
+
|
|
86
|
+
#### 0.1.3 識別程式碼異味
|
|
87
|
+
|
|
88
|
+
尋找:
|
|
89
|
+
- 超過 50 行的函式
|
|
90
|
+
- 超過 500 行的檔案
|
|
91
|
+
- 巢狀深度 > 4 層
|
|
92
|
+
- 重複的程式碼區塊
|
|
93
|
+
- 神級類別 / 職責過多的模組
|
|
94
|
+
|
|
95
|
+
#### 0.1.4 檢查死碼
|
|
96
|
+
|
|
97
|
+
- 未使用的匯出
|
|
98
|
+
- 不可達的程式碼路徑
|
|
99
|
+
- 被註解掉的程式碼區塊
|
|
100
|
+
- 仍存在的已棄用函式
|
|
101
|
+
|
|
102
|
+
### 輸出範本
|
|
103
|
+
|
|
104
|
+
```markdown
|
|
105
|
+
### 步驟 0.1 結果:程式碼健康度
|
|
106
|
+
|
|
107
|
+
| 指標 | 值 | 門檻 | 狀態 |
|
|
108
|
+
|------|-----|------|------|
|
|
109
|
+
| 測試通過 | X/Y | 100% | ✅/⚠️/❌ |
|
|
110
|
+
| 測試覆蓋率 | X% | ≥ 60% | ✅/⚠️/❌ |
|
|
111
|
+
| Lint 錯誤 | X | 0 | ✅/⚠️/❌ |
|
|
112
|
+
| Lint 警告 | X | < 20 | ✅/⚠️/❌ |
|
|
113
|
+
| 主要程式碼異味 | X | < 5 | ✅/⚠️/❌ |
|
|
114
|
+
| 死碼檔案 | X | 0 | ✅/⚠️/❌ |
|
|
115
|
+
|
|
116
|
+
**健康度分數**: [良好 / 需要關注 / 嚴重]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### 品質閘門
|
|
120
|
+
|
|
121
|
+
| 條件 | 行動 |
|
|
122
|
+
|------|------|
|
|
123
|
+
| 測試通過率 < 70% | ❌ 標記為高風險。建議先修復測試。 |
|
|
124
|
+
| 覆蓋率 < 30% | ⚠️ 建議在新增功能前先補測試。 |
|
|
125
|
+
| 嚴重的 lint 錯誤 | ⚠️ 繼續前先處理。 |
|
|
126
|
+
|
|
127
|
+
### 引用規範
|
|
128
|
+
|
|
129
|
+
- [測試標準](../../core/testing-standards.md) — 覆蓋率目標、測試金字塔
|
|
130
|
+
- [反向工程標準](../../core/reverse-engineering-standards.md) — 程式碼掃描方法論
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## 步驟 0.2:架構理解
|
|
135
|
+
|
|
136
|
+
### 目標
|
|
137
|
+
|
|
138
|
+
繪製系統結構、識別模式並評估可維護性。
|
|
139
|
+
|
|
140
|
+
### 程序
|
|
141
|
+
|
|
142
|
+
#### 0.2.1 識別進入點
|
|
143
|
+
|
|
144
|
+
- 主應用程式檔案(如 `index.ts`、`main.py`、`Program.cs`)
|
|
145
|
+
- API 路由定義
|
|
146
|
+
- 事件處理器 / 訊息消費者
|
|
147
|
+
- 排程任務 / cron 任務
|
|
148
|
+
- CLI 進入點
|
|
149
|
+
|
|
150
|
+
#### 0.2.2 繪製模組依賴
|
|
151
|
+
|
|
152
|
+
追蹤依賴圖:
|
|
153
|
+
```
|
|
154
|
+
進入點 → 路由 → 控制器 → 服務 → 儲存庫 → 資料庫
|
|
155
|
+
→ 外部 API
|
|
156
|
+
→ 訊息佇列
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
尋找:
|
|
160
|
+
- 循環依賴
|
|
161
|
+
- 過度廣泛的匯入
|
|
162
|
+
- 不相關模組之間的緊耦合
|
|
163
|
+
|
|
164
|
+
#### 0.2.3 識別架構模式
|
|
165
|
+
|
|
166
|
+
| 模式 | 指標 |
|
|
167
|
+
|------|------|
|
|
168
|
+
| MVC | controllers/、models/、views/ 目錄 |
|
|
169
|
+
| DDD | domain/、application/、infrastructure/ 目錄 |
|
|
170
|
+
| 微服務 | 多個服務目錄、API 閘道 |
|
|
171
|
+
| 單體式 | 單一大型應用程式目錄 |
|
|
172
|
+
| 六角形架構 | ports/、adapters/ 目錄 |
|
|
173
|
+
| 事件驅動 | 事件處理器、訊息佇列、發布/訂閱 |
|
|
174
|
+
|
|
175
|
+
#### 0.2.4 評估 AI 友善度
|
|
176
|
+
|
|
177
|
+
對照 [AI 友善架構](../../core/ai-friendly-architecture.md) 檢查:
|
|
178
|
+
- 模組邊界清晰嗎?
|
|
179
|
+
- 專案結構可發現嗎?
|
|
180
|
+
- 命名慣例一致嗎?
|
|
181
|
+
- 介面有文件化嗎?
|
|
182
|
+
|
|
183
|
+
### 輸出範本
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
### 步驟 0.2 結果:架構
|
|
187
|
+
|
|
188
|
+
**已識別模式**: [模式名稱] [Confirmed/Inferred]
|
|
189
|
+
**模組數**: X 個模組橫跨 Y 個套件
|
|
190
|
+
**進入點**: [清單]
|
|
191
|
+
|
|
192
|
+
#### 依賴概覽
|
|
193
|
+
[簡化依賴圖]
|
|
194
|
+
|
|
195
|
+
#### 問題
|
|
196
|
+
- [Confirmed/Inferred] [描述附來源:file:line]
|
|
197
|
+
|
|
198
|
+
#### AI 友善度分數
|
|
199
|
+
| 維度 | 評分 | 備註 |
|
|
200
|
+
|------|------|------|
|
|
201
|
+
| 可發現性 | ✅/⚠️/❌ | ... |
|
|
202
|
+
| 模組邊界 | ✅/⚠️/❌ | ... |
|
|
203
|
+
| 命名一致性 | ✅/⚠️/❌ | ... |
|
|
204
|
+
| 介面清晰度 | ✅/⚠️/❌ | ... |
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### 品質閘門
|
|
208
|
+
|
|
209
|
+
| 條件 | 行動 |
|
|
210
|
+
|------|------|
|
|
211
|
+
| 無清晰模組邊界 | ⚠️ 建議制定架構重構計畫。 |
|
|
212
|
+
| 循環依賴 | ⚠️ 記錄並規劃解決方案。 |
|
|
213
|
+
| 無法辨識模式 | 標記為 [Unknown] — 需要利害關係人確認。 |
|
|
214
|
+
|
|
215
|
+
### 引用規範
|
|
216
|
+
|
|
217
|
+
- [AI 友善架構](../../core/ai-friendly-architecture.md)
|
|
218
|
+
- [反向工程標準](../../core/reverse-engineering-standards.md)
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## 步驟 0.3:文件盤點
|
|
223
|
+
|
|
224
|
+
### 目標
|
|
225
|
+
|
|
226
|
+
評估現有文件、其完整性和新鮮度。
|
|
227
|
+
|
|
228
|
+
### 程序
|
|
229
|
+
|
|
230
|
+
#### 0.3.1 檢查標準文件
|
|
231
|
+
|
|
232
|
+
| 文件 | 檢查項目 |
|
|
233
|
+
|------|----------|
|
|
234
|
+
| README.md | 存在?安裝說明?是否最新? |
|
|
235
|
+
| CONTRIBUTING.md | 存在?涵蓋工作流程? |
|
|
236
|
+
| CHANGELOG.md | 存在?格式?最後一筆? |
|
|
237
|
+
| LICENSE | 存在?正確? |
|
|
238
|
+
| API 文件 | 存在?自動生成?是否最新? |
|
|
239
|
+
| ADR(架構決策記錄) | 存在?有組織? |
|
|
240
|
+
|
|
241
|
+
#### 0.3.2 評估內嵌文件
|
|
242
|
+
|
|
243
|
+
- 函式/方法 JSDoc/docstring 覆蓋率
|
|
244
|
+
- 模組級文件
|
|
245
|
+
- 複雜演算法說明
|
|
246
|
+
- TODO/FIXME/HACK 註解數量
|
|
247
|
+
|
|
248
|
+
#### 0.3.3 評估文件新鮮度
|
|
249
|
+
|
|
250
|
+
比較文件日期與近期程式碼變更:
|
|
251
|
+
- 如果文件超過 6 個月未更新但程式碼有重大變更 → 過期
|
|
252
|
+
- 如果文件引用已移除的功能或舊 API → 已過時
|
|
253
|
+
|
|
254
|
+
### 輸出範本
|
|
255
|
+
|
|
256
|
+
```markdown
|
|
257
|
+
### 步驟 0.3 結果:文件
|
|
258
|
+
|
|
259
|
+
| 文件 | 存在 | 最後更新 | 狀態 |
|
|
260
|
+
|------|------|----------|------|
|
|
261
|
+
| README.md | ✅/❌ | YYYY-MM-DD | ✅ 最新 / ⚠️ 過期 / ❌ 遺失 |
|
|
262
|
+
| CONTRIBUTING.md | ✅/❌ | ... | ... |
|
|
263
|
+
| CHANGELOG.md | ✅/❌ | ... | ... |
|
|
264
|
+
| API 文件 | ✅/❌ | ... | ... |
|
|
265
|
+
| ADR | ✅/❌ | ... | ... |
|
|
266
|
+
| 內嵌文件 | ⚠️ 部分 | ... | ... |
|
|
267
|
+
|
|
268
|
+
**文件分數**: [良好 / 需要關注 / 嚴重]
|
|
269
|
+
**TODO/FIXME 數量**: X
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
### 品質閘門
|
|
273
|
+
|
|
274
|
+
| 條件 | 行動 |
|
|
275
|
+
|------|------|
|
|
276
|
+
| 無 README | ❌ 繼續前先建立 README。 |
|
|
277
|
+
| 文件嚴重過期(> 1 年) | ⚠️ 標記為文件債。 |
|
|
278
|
+
| 無 CHANGELOG | ⚠️ 建議新增變更日誌追蹤。 |
|
|
279
|
+
|
|
280
|
+
### 引用規範
|
|
281
|
+
|
|
282
|
+
- [文件結構](../../core/documentation-structure.md)
|
|
283
|
+
- [變更日誌標準](../../core/changelog-standards.md)
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
## 步驟 0.4:程式碼審查快照
|
|
288
|
+
|
|
289
|
+
### 目標
|
|
290
|
+
|
|
291
|
+
對最關鍵的程式碼路徑進行定向品質稽核。
|
|
292
|
+
|
|
293
|
+
### 程序
|
|
294
|
+
|
|
295
|
+
#### 0.4.1 識別關鍵路徑
|
|
296
|
+
|
|
297
|
+
根據以下條件選擇 3-5 條路徑:
|
|
298
|
+
- 業務關鍵度(認證、支付、資料存取)
|
|
299
|
+
- 複雜度(最複雜的模組)
|
|
300
|
+
- 變更頻率(最常修改的檔案)
|
|
301
|
+
- 與計畫功能開發的相關性
|
|
302
|
+
|
|
303
|
+
#### 0.4.2 套用程式碼審查清單
|
|
304
|
+
|
|
305
|
+
對每條關鍵路徑評估:
|
|
306
|
+
|
|
307
|
+
| 類別 | 檢查項目 |
|
|
308
|
+
|------|----------|
|
|
309
|
+
| 功能 | 運作正確嗎?邊界情況已處理? |
|
|
310
|
+
| 安全性 | 輸入驗證?SQL 注入?XSS?認證檢查? |
|
|
311
|
+
| 錯誤處理 | try/catch?優雅降級?錯誤日誌? |
|
|
312
|
+
| 可讀性 | 命名清晰?函式長度合理? |
|
|
313
|
+
| 效能 | 明顯瓶頸?N+1 查詢?記憶體洩漏? |
|
|
314
|
+
|
|
315
|
+
#### 0.4.3 套用反幻覺標籤
|
|
316
|
+
|
|
317
|
+
**重要**:只報告你實際讀過的內容。
|
|
318
|
+
|
|
319
|
+
- `[Confirmed]` — 從程式碼中直接驗證
|
|
320
|
+
- `[Inferred]` — 從模式進行邏輯推斷
|
|
321
|
+
- `[Unknown]` — 未驗證,需要調查
|
|
322
|
+
|
|
323
|
+
### 輸出範本
|
|
324
|
+
|
|
325
|
+
```markdown
|
|
326
|
+
### 步驟 0.4 結果:程式碼審查快照
|
|
327
|
+
|
|
328
|
+
#### 關鍵路徑 1:[名稱]
|
|
329
|
+
[Confirmed] 已審查:[檔案清單附行號範圍]
|
|
330
|
+
|
|
331
|
+
| 面向 | 評分 | 備註 |
|
|
332
|
+
|------|------|------|
|
|
333
|
+
| 功能 | ✅/⚠️/❌ | ... |
|
|
334
|
+
| 安全性 | ✅/⚠️/❌ | ... |
|
|
335
|
+
| 錯誤處理 | ✅/⚠️/❌ | ... |
|
|
336
|
+
| 可讀性 | ✅/⚠️/❌ | ... |
|
|
337
|
+
| 效能 | ✅/⚠️/❌ | ... |
|
|
338
|
+
|
|
339
|
+
**發現**: [附確定性標籤的清單]
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### 品質閘門
|
|
343
|
+
|
|
344
|
+
| 條件 | 行動 |
|
|
345
|
+
|------|------|
|
|
346
|
+
| 發現安全漏洞 | ❌ 必須在新增功能前修復。 |
|
|
347
|
+
| 關鍵錯誤處理缺口 | ⚠️ 繼續前先處理。 |
|
|
348
|
+
|
|
349
|
+
### 引用規範
|
|
350
|
+
|
|
351
|
+
- [反幻覺指南](../../core/anti-hallucination.md)
|
|
352
|
+
- [程式碼審查清單](../../core/code-review-checklist.md)
|
|
353
|
+
|
|
354
|
+
---
|
|
355
|
+
|
|
356
|
+
## 步驟 0.5:依賴與安全檢查
|
|
357
|
+
|
|
358
|
+
### 目標
|
|
359
|
+
|
|
360
|
+
識別有漏洞、過期或不必要的依賴。
|
|
361
|
+
|
|
362
|
+
### 程序
|
|
363
|
+
|
|
364
|
+
#### 0.5.1 執行安全稽核
|
|
365
|
+
|
|
366
|
+
```bash
|
|
367
|
+
# Node.js
|
|
368
|
+
npm audit
|
|
369
|
+
|
|
370
|
+
# Python
|
|
371
|
+
pip-audit
|
|
372
|
+
safety check
|
|
373
|
+
|
|
374
|
+
# .NET
|
|
375
|
+
dotnet list package --vulnerable
|
|
376
|
+
|
|
377
|
+
# Go
|
|
378
|
+
govulncheck ./...
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
#### 0.5.2 檢查過期套件
|
|
382
|
+
|
|
383
|
+
```bash
|
|
384
|
+
# Node.js
|
|
385
|
+
npm outdated
|
|
386
|
+
|
|
387
|
+
# Python
|
|
388
|
+
pip list --outdated
|
|
389
|
+
|
|
390
|
+
# .NET
|
|
391
|
+
dotnet list package --outdated
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
#### 0.5.3 識別未使用依賴
|
|
395
|
+
|
|
396
|
+
```bash
|
|
397
|
+
# Node.js
|
|
398
|
+
npx depcheck
|
|
399
|
+
|
|
400
|
+
# Python
|
|
401
|
+
pip-extra-reqs --requirements-file=requirements.txt .
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
#### 0.5.4 評估授權合規
|
|
405
|
+
|
|
406
|
+
檢查依賴樹中是否有不相容的授權。
|
|
407
|
+
|
|
408
|
+
### 輸出範本
|
|
409
|
+
|
|
410
|
+
```markdown
|
|
411
|
+
### 步驟 0.5 結果:依賴
|
|
412
|
+
|
|
413
|
+
| 類別 | 數量 | 詳情 |
|
|
414
|
+
|------|------|------|
|
|
415
|
+
| 嚴重漏洞 | X | [列出 CVE 編號] |
|
|
416
|
+
| 高風險漏洞 | X | ... |
|
|
417
|
+
| 過期(主要版本) | X | ... |
|
|
418
|
+
| 過期(次要/修補) | X | ... |
|
|
419
|
+
| 未使用依賴 | X | [列出套件名稱] |
|
|
420
|
+
| 授權疑慮 | X | ... |
|
|
421
|
+
|
|
422
|
+
**安全分數**: [良好 / 需要關注 / 嚴重]
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### 品質閘門
|
|
426
|
+
|
|
427
|
+
| 條件 | 行動 |
|
|
428
|
+
|------|------|
|
|
429
|
+
| 嚴重 CVE | ❌ 必須在新增功能前修補。 |
|
|
430
|
+
| > 5 個高風險漏洞 | ⚠️ 規劃修復衝刺。 |
|
|
431
|
+
| 未使用依賴 | ℹ️ 清理以降低攻擊面。 |
|
|
432
|
+
|
|
433
|
+
### 引用規範
|
|
434
|
+
|
|
435
|
+
- [安全標準](../../../../core/security-standards.md)
|
|
436
|
+
- [簽入標準](../../core/checkin-standards.md)
|
|
437
|
+
|
|
438
|
+
---
|
|
439
|
+
|
|
440
|
+
## 步驟 0.6:影響範圍分析
|
|
441
|
+
|
|
442
|
+
### 目標
|
|
443
|
+
|
|
444
|
+
繪製提議變更在系統中的傳播方式並評估風險。
|
|
445
|
+
|
|
446
|
+
### 程序
|
|
447
|
+
|
|
448
|
+
#### 0.6.1 定義變更目標
|
|
449
|
+
|
|
450
|
+
明確陳述:
|
|
451
|
+
- 要修改什麼功能區域?
|
|
452
|
+
- 會直接觸及哪些模組?
|
|
453
|
+
- 預期的變更類型是什麼(新增、修改、重構)?
|
|
454
|
+
|
|
455
|
+
#### 0.6.2 追蹤依賴
|
|
456
|
+
|
|
457
|
+
對每個直接修改的模組:
|
|
458
|
+
1. 列出匯入/依賴它的模組
|
|
459
|
+
2. 列出它匯入/依賴的模組
|
|
460
|
+
3. 統計總影響模組數(直接 + 間接)
|
|
461
|
+
|
|
462
|
+
#### 0.6.3 建構風險矩陣
|
|
463
|
+
|
|
464
|
+
| 風險 | 可能性 | 影響 | 緩解措施 |
|
|
465
|
+
|------|--------|------|----------|
|
|
466
|
+
| [描述] | 低/中/高 | 低/中/高/嚴重 | [行動] |
|
|
467
|
+
|
|
468
|
+
可能性因素:
|
|
469
|
+
- 受影響區域的程式碼複雜度
|
|
470
|
+
- 受影響區域的測試覆蓋率
|
|
471
|
+
- 觸及的模組數量
|
|
472
|
+
|
|
473
|
+
影響因素:
|
|
474
|
+
- 受影響功能的業務關鍵度
|
|
475
|
+
- 面向使用者 vs. 內部
|
|
476
|
+
- 資料完整性影響
|
|
477
|
+
|
|
478
|
+
#### 0.6.4 決定判定
|
|
479
|
+
|
|
480
|
+
| 爆炸半徑 | 建議 |
|
|
481
|
+
|----------|------|
|
|
482
|
+
| < 10% 模組 | ✅ 通過 — 低風險,正常進行 |
|
|
483
|
+
| 10-30% 模組 | ⚠️ 有條件通過 — 先新增整合測試 |
|
|
484
|
+
| > 30% 模組 | ❌ 不通過 — 拆分為較小的變更 |
|
|
485
|
+
|
|
486
|
+
### 輸出範本
|
|
487
|
+
|
|
488
|
+
```markdown
|
|
489
|
+
### 步驟 0.6 結果:影響範圍
|
|
490
|
+
|
|
491
|
+
**變更目標**: [功能/模組名稱]
|
|
492
|
+
**爆炸半徑**: X 個模組直接,Y 個間接(佔總數的 Z%)
|
|
493
|
+
|
|
494
|
+
#### 風險矩陣
|
|
495
|
+
|
|
496
|
+
| 風險 | 可能性 | 影響 | 緩解措施 |
|
|
497
|
+
|------|--------|------|----------|
|
|
498
|
+
| ... | ... | ... | ... |
|
|
499
|
+
|
|
500
|
+
**判定**: [通過 / 有條件通過 / 不通過]
|
|
501
|
+
**理由**: [1-2 句]
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
### 引用規範
|
|
505
|
+
|
|
506
|
+
- [需求工程](../../../../core/requirement-engineering.md)
|
|
507
|
+
|
|
508
|
+
---
|
|
509
|
+
|
|
510
|
+
## 彙整現況評估報告
|
|
511
|
+
|
|
512
|
+
完成全部 6 個步驟後,將發現合併為單一報告。
|
|
513
|
+
|
|
514
|
+
### 報告結構
|
|
515
|
+
|
|
516
|
+
```markdown
|
|
517
|
+
# 現況評估報告:[專案名稱]
|
|
518
|
+
|
|
519
|
+
**日期**: YYYY-MM-DD
|
|
520
|
+
**評估者**: [AI 助手 / 開發者姓名]
|
|
521
|
+
**範圍**: [功能區域或完整專案]
|
|
522
|
+
|
|
523
|
+
## 執行摘要
|
|
524
|
+
[2-3 句:整體健康度、主要風險、建議]
|
|
525
|
+
|
|
526
|
+
## 判定:[通過 / 不通過 / 有條件通過]
|
|
527
|
+
|
|
528
|
+
## 分數摘要
|
|
529
|
+
|
|
530
|
+
| 區域 | 分數 | 嚴重問題數 |
|
|
531
|
+
|------|------|-----------|
|
|
532
|
+
| 程式碼健康度 (0.1) | ✅/⚠️/❌ | X |
|
|
533
|
+
| 架構 (0.2) | ✅/⚠️/❌ | X |
|
|
534
|
+
| 文件 (0.3) | ✅/⚠️/❌ | X |
|
|
535
|
+
| 程式碼品質 (0.4) | ✅/⚠️/❌ | X |
|
|
536
|
+
| 依賴 (0.5) | ✅/⚠️/❌ | X |
|
|
537
|
+
| 影響範圍 (0.6) | ✅/⚠️/❌ | X |
|
|
538
|
+
|
|
539
|
+
## 阻塞項目
|
|
540
|
+
[列出繼續前必須解決的項目]
|
|
541
|
+
|
|
542
|
+
## 建議
|
|
543
|
+
[按優先順序排列]
|
|
544
|
+
|
|
545
|
+
## 後續步驟
|
|
546
|
+
- [ ] 處理阻塞項目
|
|
547
|
+
- [ ] /reverse — 若舊程式碼需要 SDD 規格
|
|
548
|
+
- [ ] /sdd — 為新功能撰寫規格
|
|
549
|
+
- [ ] 開始實作
|
|
550
|
+
```
|
|
551
|
+
|
|
552
|
+
### 判定決策矩陣
|
|
553
|
+
|
|
554
|
+
| 阻塞項目 | 高風險 | 判定 |
|
|
555
|
+
|----------|--------|------|
|
|
556
|
+
| 0 | 0-2 | ✅ 通過 |
|
|
557
|
+
| 0 | 3+ | ⚠️ 有條件通過 — 先處理風險 |
|
|
558
|
+
| 1+ | 任意 | ❌ 不通過 — 解決阻塞項目 |
|
|
559
|
+
|
|
560
|
+
---
|
|
561
|
+
|
|
562
|
+
## 版本歷史
|
|
563
|
+
|
|
564
|
+
| 版本 | 日期 | 變更 |
|
|
565
|
+
|------|------|------|
|
|
566
|
+
| 1.0.0 | 2026-02-09 | 初始發布 |
|
|
567
|
+
|
|
568
|
+
---
|
|
569
|
+
|
|
570
|
+
## 授權
|
|
571
|
+
|
|
572
|
+
本指南採用 [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) 授權。
|
|
573
|
+
|
|
574
|
+
**來源**: [universal-dev-standards](https://github.com/AsiaOstrich/universal-dev-standards)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
source:
|
|
2
|
+
source: ../../../../skills/project-structure-guide/SKILL.md
|
|
3
3
|
source_version: 1.0.0
|
|
4
4
|
translation_version: 1.0.0
|
|
5
5
|
last_synced: 2025-12-30
|
|
@@ -8,7 +8,7 @@ status: current
|
|
|
8
8
|
|
|
9
9
|
# 專案結構指南
|
|
10
10
|
|
|
11
|
-
> **Language**: [English](
|
|
11
|
+
> **Language**: [English](../../../../skills/project-structure-guide/SKILL.md) | 繁體中文
|
|
12
12
|
|
|
13
13
|
**版本**:1.0.0
|
|
14
14
|
**最後更新**:2025-12-30
|
|
@@ -139,5 +139,5 @@ project/
|
|
|
139
139
|
|
|
140
140
|
## 相關標準
|
|
141
141
|
|
|
142
|
-
- [核心:專案結構](
|
|
143
|
-
- [AI:專案結構選項](
|
|
142
|
+
- [核心:專案結構](../../core/project-structure.md)
|
|
143
|
+
- [AI:專案結構選項](../../../../options/project-structure/)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
source: ../../../../skills/refactoring-assistant/SKILL.md
|
|
3
|
+
source_version: 2.0.0
|
|
4
|
+
translation_version: 2.0.0
|
|
5
|
+
last_synced: 2026-02-10
|
|
6
|
+
status: current
|
|
7
|
+
description: |
|
|
8
|
+
引導重構決策、推薦策略,並提供逐步執行工作流程。
|
|
9
|
+
使用時機:重構程式碼、評估重構 vs 重寫、處理遺留程式碼。
|
|
10
|
+
關鍵字:refactor, strategy, legacy, technical debt, 重構, 策略, 遺留程式碼, 技術債。
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# 重構助手
|
|
14
|
+
|
|
15
|
+
> **語言**: [English](../../../../skills/refactoring-assistant/SKILL.md) | 繁體中文
|
|
16
|
+
|
|
17
|
+
引導重構決策、推薦策略,並提供逐步執行工作流程。
|
|
18
|
+
|
|
19
|
+
## 使用方式
|
|
20
|
+
|
|
21
|
+
| 命令 | 用途 |
|
|
22
|
+
|------|------|
|
|
23
|
+
| `/refactor` | 啟動互動式重構引導 |
|
|
24
|
+
| `/refactor decide` | 執行重構 vs 重寫決策樹 |
|
|
25
|
+
| `/refactor tactical` | 建議戰術性(日常)策略 |
|
|
26
|
+
| `/refactor strategic` | 引導戰略性/架構重構 |
|
|
27
|
+
| `/refactor legacy` | 遺留程式碼安全策略 |
|
|
28
|
+
| `/refactor debt` | 技術債評估 |
|
|
29
|
+
|
|
30
|
+
## 策略快速參考
|
|
31
|
+
|
|
32
|
+
### 戰術性策略(日常)
|
|
33
|
+
|
|
34
|
+
| 策略 | 使用時機 |
|
|
35
|
+
|------|---------|
|
|
36
|
+
| **準備式重構** | 新增被阻擋的功能之前 |
|
|
37
|
+
| **童子軍法則** | 任何維護工作中 |
|
|
38
|
+
| **紅-綠-重構** | TDD 開發循環 |
|
|
39
|
+
|
|
40
|
+
### 戰略性策略(架構)
|
|
41
|
+
|
|
42
|
+
| 策略 | 使用時機 |
|
|
43
|
+
|------|---------|
|
|
44
|
+
| **絞殺者無花果** | 逐步替換整個系統 |
|
|
45
|
+
| **防腐層** | 與遺留系統整合 |
|
|
46
|
+
| **抽象分支** | 在主幹上重構共享程式碼 |
|
|
47
|
+
|
|
48
|
+
### 安全防護策略(遺留程式碼)
|
|
49
|
+
|
|
50
|
+
| 策略 | 使用時機 |
|
|
51
|
+
|------|---------|
|
|
52
|
+
| **特徵化測試** | 任何遺留程式碼重構之前 |
|
|
53
|
+
| **草稿式重構** | 理解黑盒程式碼 |
|
|
54
|
+
| **尋找接縫** | 在遺留程式碼中注入測試替身 |
|
|
55
|
+
|
|
56
|
+
## 工作流程
|
|
57
|
+
|
|
58
|
+
1. **評估** - 識別要重構的程式碼,評估測試覆蓋率
|
|
59
|
+
2. **決策** - 需要時執行決策樹(重構 vs 重寫)
|
|
60
|
+
3. **選擇策略** - 根據範圍和風險選擇適當策略
|
|
61
|
+
4. **執行** - 遵循逐步工作流程,包含安全檢查
|
|
62
|
+
5. **驗證** - 執行測試以確認行為未被改變
|
|
63
|
+
|
|
64
|
+
## 參考
|
|
65
|
+
|
|
66
|
+
- 詳細指南:[guide.md](./guide.md)
|
|
67
|
+
- 核心規範:[refactoring-standards.md](../../../../core/refactoring-standards.md)
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
---
|
|
2
|
-
source: skills/
|
|
2
|
+
source: ../../../../skills/refactoring-assistant/SKILL.md
|
|
3
3
|
source_version: 2.0.0
|
|
4
4
|
translation_version: 2.0.0
|
|
5
5
|
last_synced: 2026-01-21
|
|
6
6
|
status: current
|
|
7
|
-
name: refactoring-assistant
|
|
8
7
|
description: |
|
|
9
8
|
引導重構決策和大規模程式碼改進。
|
|
10
9
|
使用時機:重構程式碼、遺留系統現代化、技術債、重寫決策。
|
|
@@ -13,7 +12,7 @@ description: |
|
|
|
13
12
|
|
|
14
13
|
# 重構助手
|
|
15
14
|
|
|
16
|
-
> **語言**: [English](
|
|
15
|
+
> **語言**: [English](../../../../skills/refactoring-assistant/SKILL.md) | 繁體中文
|
|
17
16
|
|
|
18
17
|
**版本**: 2.0.0
|
|
19
18
|
**最後更新**: 2026-01-21
|
|
@@ -278,16 +277,16 @@ selection_guide:
|
|
|
278
277
|
## 詳細指南
|
|
279
278
|
|
|
280
279
|
完整標準請參閱:
|
|
281
|
-
- [重構標準](
|
|
280
|
+
- [重構標準](../../core/refactoring-standards.md)
|
|
282
281
|
|
|
283
282
|
---
|
|
284
283
|
|
|
285
284
|
## 相關標準
|
|
286
285
|
|
|
287
|
-
- [重構標準](
|
|
288
|
-
- [測試驅動開發](
|
|
289
|
-
- [程式碼審查檢查清單](
|
|
290
|
-
- [簽入標準](
|
|
286
|
+
- [重構標準](../../core/refactoring-standards.md) - 核心標準
|
|
287
|
+
- [測試驅動開發](../../core/test-driven-development.md) - TDD 重構階段
|
|
288
|
+
- [程式碼審查檢查清單](../../core/code-review-checklist.md) - 重構 PR 審查
|
|
289
|
+
- [簽入標準](../../core/checkin-standards.md) - 提交前要求
|
|
291
290
|
- [TDD 助手](../tdd-assistant/SKILL.md) - TDD 工作流程
|
|
292
291
|
|
|
293
292
|
---
|