mustflow 1.18.16 → 1.30.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/README.md +16 -6
- package/dist/cli/commands/adapters.js +90 -0
- package/dist/cli/commands/classify.js +3 -4
- package/dist/cli/commands/contract-lint.js +26 -6
- package/dist/cli/commands/dashboard.js +103 -4
- package/dist/cli/commands/explain-verify.js +213 -0
- package/dist/cli/commands/explain.js +48 -4
- package/dist/cli/commands/handoff.js +136 -0
- package/dist/cli/commands/run.js +97 -136
- package/dist/cli/commands/update.js +91 -61
- package/dist/cli/commands/verify.js +230 -137
- package/dist/cli/i18n/en.js +65 -4
- package/dist/cli/i18n/es.js +65 -4
- package/dist/cli/i18n/fr.js +65 -4
- package/dist/cli/i18n/hi.js +65 -4
- package/dist/cli/i18n/ko.js +65 -4
- package/dist/cli/i18n/zh.js +65 -4
- package/dist/cli/index.js +11 -0
- package/dist/cli/lib/command-registry.js +10 -0
- package/dist/cli/lib/dashboard-export.js +775 -0
- package/dist/cli/lib/local-index.js +22 -6
- package/dist/cli/lib/run-plan.js +222 -0
- package/dist/cli/lib/templates.js +18 -3
- package/dist/cli/lib/update-diff-preview.js +163 -0
- package/dist/cli/lib/validation.js +22 -0
- package/dist/core/adapter-compatibility.js +235 -0
- package/dist/core/change-classification.js +9 -0
- package/dist/core/change-verification.js +10 -3
- package/dist/core/check-issues.js +4 -0
- package/dist/core/command-contract-validation.js +14 -0
- package/dist/core/command-cwd.js +18 -6
- package/dist/core/command-env.js +91 -0
- package/dist/core/contract-lint.js +165 -3
- package/dist/core/contract-models.js +172 -0
- package/dist/core/dashboard-verification.js +2 -0
- package/dist/core/doc-review-triage.js +1 -0
- package/dist/core/handoff-record.js +376 -0
- package/dist/core/public-json-contracts.js +16 -0
- package/dist/core/run-receipt.js +46 -7
- package/dist/core/run-write-drift.js +180 -0
- package/dist/core/secret-redaction.js +39 -0
- package/dist/core/source-anchors.js +3 -5
- package/dist/core/verification-decision-graph.js +223 -0
- package/package.json +3 -1
- package/schemas/README.md +11 -4
- package/schemas/adapter-compatibility-report.schema.json +184 -0
- package/schemas/change-verification-report.schema.json +133 -1
- package/schemas/commands.schema.json +8 -1
- package/schemas/contract-lint-report.schema.json +48 -0
- package/schemas/explain-report.schema.json +265 -2
- package/schemas/handoff-validation-report.schema.json +68 -0
- package/schemas/run-receipt.schema.json +74 -1
- package/templates/default/common/.mustflow/config/commands.toml +2 -0
- package/templates/default/i18n.toml +78 -234
- package/templates/default/locales/en/.mustflow/skills/INDEX.md +7 -3
- package/templates/default/locales/en/.mustflow/skills/architecture-deepening-review/SKILL.md +154 -0
- package/templates/default/locales/en/.mustflow/skills/behavior-preserving-refactor/SKILL.md +8 -3
- package/templates/default/locales/en/.mustflow/skills/code-review/SKILL.md +9 -4
- package/templates/default/locales/en/.mustflow/skills/date-number-audit/SKILL.md +19 -4
- package/templates/default/locales/en/.mustflow/skills/diff-risk-review/SKILL.md +4 -2
- package/templates/default/locales/en/.mustflow/skills/external-skill-intake/SKILL.md +141 -0
- package/templates/default/locales/en/.mustflow/skills/release-notes-authoring/SKILL.md +143 -0
- package/templates/default/locales/en/.mustflow/skills/repro-first-debug/SKILL.md +22 -8
- package/templates/default/locales/en/.mustflow/skills/skill-authoring/SKILL.md +3 -3
- package/templates/default/locales/en/.mustflow/skills/source-freshness-check/SKILL.md +22 -9
- package/templates/default/locales/en/.mustflow/skills/ui-quality-gate/SKILL.md +21 -13
- package/templates/default/locales/en/.mustflow/skills/vertical-slice-tdd/SKILL.md +167 -0
- package/templates/default/manifest.toml +16 -1
- package/templates/default/locales/es/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/es/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/es/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/es/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/es/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/es/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/es/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/es/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/es/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/es/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/es/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/es/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/es/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/es/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/es/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/es/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/es/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/es/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/es/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/es/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/es/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/es/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/es/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/es/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/es/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/es/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/es/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/es/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/es/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/es/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/es/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/es/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/es/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/es/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/es/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/es/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/es/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/es/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/fr/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/fr/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/fr/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/fr/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/fr/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/fr/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/fr/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/fr/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/fr/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/fr/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/fr/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/fr/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/fr/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/fr/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/fr/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/fr/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/fr/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/fr/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/fr/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/fr/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/fr/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/fr/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/fr/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/fr/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/fr/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/fr/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/fr/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/fr/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/fr/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/fr/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/fr/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/fr/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/fr/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/fr/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/fr/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/fr/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/fr/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/fr/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/hi/.mustflow/skills/INDEX.md +0 -75
- package/templates/default/locales/hi/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/hi/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/hi/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/hi/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/hi/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/hi/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/hi/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/hi/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/hi/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/hi/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/hi/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/hi/.mustflow/skills/failure-triage/SKILL.md +0 -97
- package/templates/default/locales/hi/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/hi/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/hi/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/hi/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/hi/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/hi/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/hi/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/hi/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/hi/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/hi/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/hi/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/hi/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/hi/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/hi/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/hi/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/hi/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/hi/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/hi/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/hi/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/hi/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/hi/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/hi/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/hi/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/hi/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/hi/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/ko/.mustflow/skills/INDEX.md +0 -80
- package/templates/default/locales/ko/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/ko/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/ko/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/ko/.mustflow/skills/code-review/SKILL.md +0 -118
- package/templates/default/locales/ko/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/ko/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/ko/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/ko/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/ko/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/ko/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/ko/.mustflow/skills/docs-update/SKILL.md +0 -107
- package/templates/default/locales/ko/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/ko/.mustflow/skills/failure-triage/SKILL.md +0 -119
- package/templates/default/locales/ko/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/ko/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/ko/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/ko/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -259
- package/templates/default/locales/ko/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/ko/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/ko/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/ko/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/ko/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/ko/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/ko/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/ko/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/ko/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/ko/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/ko/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/ko/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/ko/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/ko/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/ko/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/ko/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/ko/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/ko/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/ko/.mustflow/skills/test-maintenance/SKILL.md +0 -130
- package/templates/default/locales/ko/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/ko/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
- package/templates/default/locales/zh/.mustflow/skills/INDEX.md +0 -74
- package/templates/default/locales/zh/.mustflow/skills/adapter-boundary/SKILL.md +0 -193
- package/templates/default/locales/zh/.mustflow/skills/artifact-integrity-check/SKILL.md +0 -114
- package/templates/default/locales/zh/.mustflow/skills/behavior-preserving-refactor/SKILL.md +0 -182
- package/templates/default/locales/zh/.mustflow/skills/code-review/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/codebase-orientation/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/command-pattern/SKILL.md +0 -247
- package/templates/default/locales/zh/.mustflow/skills/composition-over-inheritance/SKILL.md +0 -176
- package/templates/default/locales/zh/.mustflow/skills/contract-sync-check/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/database-change-safety/SKILL.md +0 -155
- package/templates/default/locales/zh/.mustflow/skills/date-number-audit/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/dependency-injection/SKILL.md +0 -161
- package/templates/default/locales/zh/.mustflow/skills/dependency-reality-check/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/diff-risk-review/SKILL.md +0 -136
- package/templates/default/locales/zh/.mustflow/skills/docs-prose-review/SKILL.md +0 -119
- package/templates/default/locales/zh/.mustflow/skills/docs-update/SKILL.md +0 -97
- package/templates/default/locales/zh/.mustflow/skills/external-prompt-injection-defense/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/facade-pattern/SKILL.md +0 -210
- package/templates/default/locales/zh/.mustflow/skills/failure-triage/SKILL.md +0 -96
- package/templates/default/locales/zh/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +0 -118
- package/templates/default/locales/zh/.mustflow/skills/line-ending-hygiene/SKILL.md +0 -111
- package/templates/default/locales/zh/.mustflow/skills/migration-safety-check/SKILL.md +0 -117
- package/templates/default/locales/zh/.mustflow/skills/multi-agent-work-coordination/SKILL.md +0 -260
- package/templates/default/locales/zh/.mustflow/skills/null-object-pattern/SKILL.md +0 -196
- package/templates/default/locales/zh/.mustflow/skills/pattern-scout/SKILL.md +0 -110
- package/templates/default/locales/zh/.mustflow/skills/performance-budget-check/SKILL.md +0 -121
- package/templates/default/locales/zh/.mustflow/skills/project-context-authoring/SKILL.md +0 -107
- package/templates/default/locales/zh/.mustflow/skills/pure-core-imperative-shell/SKILL.md +0 -212
- package/templates/default/locales/zh/.mustflow/skills/readme-authoring/SKILL.md +0 -115
- package/templates/default/locales/zh/.mustflow/skills/repo-improvement-loop/SKILL.md +0 -150
- package/templates/default/locales/zh/.mustflow/skills/repro-first-debug/SKILL.md +0 -112
- package/templates/default/locales/zh/.mustflow/skills/requirement-regression-guard/SKILL.md +0 -152
- package/templates/default/locales/zh/.mustflow/skills/result-option/SKILL.md +0 -186
- package/templates/default/locales/zh/.mustflow/skills/security-privacy-review/SKILL.md +0 -116
- package/templates/default/locales/zh/.mustflow/skills/security-regression-tests/SKILL.md +0 -131
- package/templates/default/locales/zh/.mustflow/skills/skill-authoring/SKILL.md +0 -110
- package/templates/default/locales/zh/.mustflow/skills/source-freshness-check/SKILL.md +0 -111
- package/templates/default/locales/zh/.mustflow/skills/state-machine-pattern/SKILL.md +0 -214
- package/templates/default/locales/zh/.mustflow/skills/strategy-pattern/SKILL.md +0 -215
- package/templates/default/locales/zh/.mustflow/skills/structure-discovery-gate/SKILL.md +0 -159
- package/templates/default/locales/zh/.mustflow/skills/test-design-guard/SKILL.md +0 -162
- package/templates/default/locales/zh/.mustflow/skills/test-maintenance/SKILL.md +0 -122
- package/templates/default/locales/zh/.mustflow/skills/ui-quality-gate/SKILL.md +0 -117
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/SKILL.md +0 -127
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/assets/review-template.html +0 -286
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/resources.toml +0 -7
- package/templates/default/locales/zh/.mustflow/skills/web-asset-optimization/SKILL.md +0 -108
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mustflow_doc: skill.behavior-preserving-refactor
|
|
3
|
-
locale: es
|
|
4
|
-
canonical: false
|
|
5
|
-
revision: 11
|
|
6
|
-
lifecycle: mustflow-owned
|
|
7
|
-
authority: procedure
|
|
8
|
-
name: behavior-preserving-refactor
|
|
9
|
-
description: Apply this skill when refactoring should reduce change cost while preserving existing behavior and keeping behavior changes separate.
|
|
10
|
-
metadata:
|
|
11
|
-
mustflow_schema: "1"
|
|
12
|
-
mustflow_kind: procedure
|
|
13
|
-
pack_id: mustflow.core
|
|
14
|
-
skill_id: mustflow.core.behavior-preserving-refactor
|
|
15
|
-
command_intents:
|
|
16
|
-
- changes_status
|
|
17
|
-
- changes_diff_summary
|
|
18
|
-
- test_related
|
|
19
|
-
- test
|
|
20
|
-
- docs_validate_fast
|
|
21
|
-
- test_release
|
|
22
|
-
- mustflow_check
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
# Behavior-Preserving Refactor
|
|
26
|
-
|
|
27
|
-
<!-- mustflow-section: purpose -->
|
|
28
|
-
## Purpose
|
|
29
|
-
|
|
30
|
-
Guide refactoring that lowers future change cost without silently changing runtime behavior.
|
|
31
|
-
|
|
32
|
-
Refactoring is not cleanup for aesthetics. It is a controlled way to make code easier to understand, test, and change while keeping bug fixes, feature work, and behavior changes separate.
|
|
33
|
-
|
|
34
|
-
<!-- mustflow-section: use-when -->
|
|
35
|
-
## Use When
|
|
36
|
-
|
|
37
|
-
- The user asks to refactor, clean up, reorganize, simplify, split, extract, rename, remove duplication, or improve structure.
|
|
38
|
-
- A planned change risks mixing renames, moves, extractions, deduplication, bug fixes, and feature behavior in one diff.
|
|
39
|
-
- Existing code is hard to change because responsibilities, names, branches, dependencies, or tests are unclear.
|
|
40
|
-
- Existing inheritance, base classes, abstract classes, template methods, protected state, or subclass variants make behavior harder to test or change.
|
|
41
|
-
- Existing handlers, repositories, adapters, jobs, or services mix business decisions with database access, network calls, logging, current time, generated identifiers, randomness, environment reads, or framework objects.
|
|
42
|
-
- Existing controllers, handlers, jobs, or services mix one state-changing intent with authorization, transactions, idempotency, audit logs, outbox events, retries, concurrency checks, and external side effects.
|
|
43
|
-
- Existing controllers, handlers, workers, command handlers, or services repeat the same multi-step subsystem sequence and should move behind a stable facade without changing behavior.
|
|
44
|
-
- Existing lifecycle state changes are scattered across direct assignments, handlers, repositories, jobs, UI checks, SQL conditions, or provider callbacks.
|
|
45
|
-
- Existing code repeats presence checks for optional collaborators such as loggers, analytics clients, caches, optional notifications, or no-op processors.
|
|
46
|
-
- The task touches legacy or weakly tested code and needs a safer refactoring order.
|
|
47
|
-
|
|
48
|
-
<!-- mustflow-section: do-not-use-when -->
|
|
49
|
-
## Do Not Use When
|
|
50
|
-
|
|
51
|
-
- The requested task is primarily a bug fix or failure diagnosis; use `repro-first-debug` first.
|
|
52
|
-
- The change introduces new folders, modules, routing, data models, or external service boundaries before refactoring scope is clear; use `structure-discovery-gate`.
|
|
53
|
-
- The task is only to review an already completed diff; use `diff-risk-review` or `code-review`.
|
|
54
|
-
- The target code is about to be deleted, the requirement is still unclear, or the next step requires a product decision rather than a refactor.
|
|
55
|
-
|
|
56
|
-
<!-- mustflow-section: required-inputs -->
|
|
57
|
-
## Required Inputs
|
|
58
|
-
|
|
59
|
-
- The refactoring goal, target files or area, and the concrete pain being reduced.
|
|
60
|
-
- Current behavior evidence, such as tests, examples, fixtures, command output, or observed input and output cases.
|
|
61
|
-
- Existing local patterns for naming, file boundaries, dependencies, and tests.
|
|
62
|
-
- Current changed-file list when the worktree is already dirty.
|
|
63
|
-
- Relevant command-intent contract entries for verification.
|
|
64
|
-
|
|
65
|
-
<!-- mustflow-section: preconditions -->
|
|
66
|
-
## Preconditions
|
|
67
|
-
|
|
68
|
-
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
69
|
-
- The expected behavior to preserve is known, or the unknown behavior has been reported before edits begin.
|
|
70
|
-
- If the area is unfamiliar, `codebase-orientation` or `pattern-scout` has been used to avoid inventing a parallel structure.
|
|
71
|
-
- If tests are absent or weak, the first safe step is to add characterization coverage, capture input and output cases, or explicitly report the verification gap.
|
|
72
|
-
|
|
73
|
-
<!-- mustflow-section: allowed-edits -->
|
|
74
|
-
## Allowed Edits
|
|
75
|
-
|
|
76
|
-
- Rename unclear identifiers when the rename improves call-site meaning without changing behavior.
|
|
77
|
-
- Extract small functions, policies, or helpers when they have a clear concept, inputs, outputs, and test value.
|
|
78
|
-
- Flatten conditional flow when it preserves the same guard conditions and error behavior.
|
|
79
|
-
- Separate responsibilities, dependencies, or side effects in the smallest useful step.
|
|
80
|
-
- Move domain decisions toward pure functions or narrow policy objects, and keep I/O, clocks, network calls, process spawning, persistence, and logging in the imperative edge.
|
|
81
|
-
- Add or update tests that preserve current behavior or make the refactoring safe.
|
|
82
|
-
- Do not mix behavior changes, bug fixes, new features, broad formatting churn, or unrelated cleanup into the refactor.
|
|
83
|
-
|
|
84
|
-
<!-- mustflow-section: procedure -->
|
|
85
|
-
## Procedure
|
|
86
|
-
|
|
87
|
-
Before broad hotspot scans, compress candidates before reading files.
|
|
88
|
-
|
|
89
|
-
- Exclude generated files, bundled files, lock files, dependency directories, large fixtures, snapshots, build outputs, minified files, and source maps before ranking candidates.
|
|
90
|
-
- Use `[refactoring.hotspots]` preferences as scan limits: `large_file_candidate_kb` for the first size signal, `history_days` for recent change and bug-fix history, and the candidate limits for how many files to inspect at each depth.
|
|
91
|
-
- Prefer overlapping low-cost signals over a single metric: size, recent change frequency, bug-fix history, import/export count, TODO/FIXME/HACK count, type or lint bypasses, missing nearby tests, and architecture-boundary imports.
|
|
92
|
-
- Treat strong combinations as higher priority, such as large files with frequent changes and no tests, small security/payment/permission files with repeated bug fixes, large React client components with many effects, and API/controller files that mix validation, authorization, business logic, database access, and response formatting.
|
|
93
|
-
- Do not read every candidate. Keep the first pass to the configured primary limit, narrow to the configured structure-review limit, and read full file contents only for the configured full-file limit.
|
|
94
|
-
- When opening a candidate, inspect imports, exports, declarations, TODO or type-bypass neighborhoods, and the largest or most branch-heavy function before reading the full file.
|
|
95
|
-
|
|
96
|
-
1. Diagnose whether refactoring is needed.
|
|
97
|
-
- Name the real problem: change cost, unclear responsibility, repeated bug risk, test difficulty, dependency coupling, or confusing flow.
|
|
98
|
-
- Do not refactor only because code looks long, old, or stylistically uneven.
|
|
99
|
-
2. Identify behavior that must stay fixed.
|
|
100
|
-
- Prefer existing tests or examples.
|
|
101
|
-
- If coverage is missing, record representative input and output cases or add focused characterization tests before structural edits.
|
|
102
|
-
- Treat suspected bugs as separate follow-up fixes unless the user explicitly asks to change behavior.
|
|
103
|
-
3. Choose the safest refactoring ladder.
|
|
104
|
-
- Start with names and local clarity.
|
|
105
|
-
- Then extract small concepts with clear inputs and outputs.
|
|
106
|
-
- Then flatten conditions or isolate policies.
|
|
107
|
-
- Then remove duplication only when the duplicated code changes for the same reason.
|
|
108
|
-
- Move files, introduce abstractions, or split modules only after local behavior is easier to see.
|
|
109
|
-
4. Check duplication before merging code.
|
|
110
|
-
- Keep duplication when code only looks similar or will change for different reasons.
|
|
111
|
-
- Prefer common code only when it represents the same rule, simplifies call sites, and does not add parameter or branch complexity.
|
|
112
|
-
- Prefer explicit duplication over a misleading abstraction.
|
|
113
|
-
5. Check extracted functions and names.
|
|
114
|
-
- Extract only concepts that can be named precisely.
|
|
115
|
-
- Avoid vague names such as `process`, `handle`, `do`, or `helper` unless they match established local style.
|
|
116
|
-
- Boolean functions should read naturally at call sites and reveal the condition being tested.
|
|
117
|
-
6. Prefer the low-ceremony structural pattern that matches the pain:
|
|
118
|
-
- Dependency injection when direct construction, global lookup, or hidden imports of tools, clients, clocks, file systems, processes, loggers, configuration, random generators, identifiers, queues, or external SDKs makes behavior hard to test. Use `dependency-injection` before editing that boundary.
|
|
119
|
-
- Adapter or translator boundaries when external formats leak into core logic. Use `adapter-boundary` when provider data, protocols, errors, timeouts, retries, idempotency, security, or observability are part of the boundary.
|
|
120
|
-
- Composition over inheritance when behavior can be assembled from small explicit collaborators. Use `composition-over-inheritance` before editing `extends`, base classes, abstract classes, template methods, protected state, mixins, or subclass combinations.
|
|
121
|
-
- Command pattern when a state-changing user or system intent needs a traceable execution unit with explicit payload, context, authorization, transaction boundary, idempotency, outbox, audit, retry, or concurrency behavior. Use `command-pattern` before editing that execution unit.
|
|
122
|
-
- Pure core with an imperative shell when business decisions, validation, authorization, pricing, eligibility, state transitions, or domain events are mixed with I/O, time, generated identifiers, randomness, environment reads, or framework objects. Use `pure-core-imperative-shell` before editing that split.
|
|
123
|
-
- State machine pattern when status, state, phase, step, or stage controls allowed behavior and transitions are scattered or assigned directly. Use `state-machine-pattern` before editing lifecycle transitions.
|
|
124
|
-
- Strategy pattern when repeated branches choose among interchangeable algorithms, policies, pricing rules, scoring methods, provider choices, or feature variants that share one purpose. Use `strategy-pattern` before editing that strategy family.
|
|
125
|
-
- Result and Option values when expected failures, meaningful absence, null returns, thrown business failures, or ambiguous success flags make behavior hard to follow. Use `result-option` before editing that return-shape contract.
|
|
126
|
-
- Null Object pattern when repeated nullable checks around an optional collaborator can be replaced by a same-interface neutral implementation without hiding required failures. Use `null-object-pattern` before editing that optional dependency boundary.
|
|
127
|
-
- Injected time context when current time affects preserved behavior.
|
|
128
|
-
7. Handle conditional complexity by finding the policy.
|
|
129
|
-
- Use early exits for simple guard conditions when they preserve behavior.
|
|
130
|
-
- Separate state, type, permission, and exceptional-rule branches when they are mixed.
|
|
131
|
-
- Avoid replacing clear branches with a strategy object, table, or abstraction before the policy boundary is proven.
|
|
132
|
-
8. Keep commits and reports reviewable.
|
|
133
|
-
- Separate renames, moves, extractions, deduplication, tests, and behavior changes when possible.
|
|
134
|
-
- If behavior changes are discovered, stop and report them as a separate fix path.
|
|
135
|
-
9. Verify with the narrowest configured command intents that cover the changed code and contract surfaces.
|
|
136
|
-
|
|
137
|
-
<!-- mustflow-section: postconditions -->
|
|
138
|
-
## Postconditions
|
|
139
|
-
|
|
140
|
-
- Existing behavior is preserved or any behavior change is clearly separated and reported.
|
|
141
|
-
- The refactor has a named purpose tied to lower change cost, lower defect risk, or better testability.
|
|
142
|
-
- The diff is small enough for a reviewer to distinguish mechanical changes from semantic changes.
|
|
143
|
-
- Tests or verification evidence cover the behavior most likely to regress.
|
|
144
|
-
|
|
145
|
-
<!-- mustflow-section: verification -->
|
|
146
|
-
## Verification
|
|
147
|
-
|
|
148
|
-
Use configured oneshot command intents when available:
|
|
149
|
-
|
|
150
|
-
- `changes_status`
|
|
151
|
-
- `changes_diff_summary`
|
|
152
|
-
- `test_related`
|
|
153
|
-
- `test`
|
|
154
|
-
- `docs_validate_fast`
|
|
155
|
-
- `test_release`
|
|
156
|
-
- `mustflow_check`
|
|
157
|
-
|
|
158
|
-
Choose the narrowest configured test or build intent that proves the refactored behavior. Use documentation and release checks only when the refactor changes public docs, templates, schemas, package metadata, or release-sensitive surfaces.
|
|
159
|
-
|
|
160
|
-
<!-- mustflow-section: failure-handling -->
|
|
161
|
-
## Failure Handling
|
|
162
|
-
|
|
163
|
-
- If current behavior cannot be observed, stop before broad restructuring and report the missing safety evidence.
|
|
164
|
-
- If a refactor uncovers a bug, keep the refactor behavior-preserving and propose the fix as a separate change.
|
|
165
|
-
- If deduplication creates more options, branches, or vague names, undo or postpone that abstraction.
|
|
166
|
-
- If tests fail after a supposedly behavior-preserving edit, diagnose the behavior difference before continuing.
|
|
167
|
-
- If the next useful step is a large module move or public boundary change, use `structure-discovery-gate` and `contract-sync-check` before proceeding.
|
|
168
|
-
|
|
169
|
-
<!-- mustflow-section: output-format -->
|
|
170
|
-
## Output Format
|
|
171
|
-
|
|
172
|
-
- Refactoring goal
|
|
173
|
-
- Behavior preservation evidence
|
|
174
|
-
- Structural risk signals found
|
|
175
|
-
- Facade extraction used or intentionally avoided
|
|
176
|
-
- Refactoring ladder chosen
|
|
177
|
-
- Structural pattern used or intentionally avoided
|
|
178
|
-
- Changes made or analysis-only recommendation
|
|
179
|
-
- Behavior changes intentionally excluded
|
|
180
|
-
- Verification intents run
|
|
181
|
-
- Skipped checks and reasons
|
|
182
|
-
- Remaining risks or follow-up fix path
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mustflow_doc: skill.code-review
|
|
3
|
-
locale: es
|
|
4
|
-
canonical: false
|
|
5
|
-
revision: 3
|
|
6
|
-
lifecycle: mustflow-owned
|
|
7
|
-
authority: procedure
|
|
8
|
-
name: code-review
|
|
9
|
-
description: Aplica esta skill al revisar cambios de codigo, alcance, riesgos o brechas de verificacion.
|
|
10
|
-
metadata:
|
|
11
|
-
mustflow_schema: "1"
|
|
12
|
-
mustflow_kind: procedure
|
|
13
|
-
pack_id: mustflow.core
|
|
14
|
-
skill_id: mustflow.core.code-review
|
|
15
|
-
command_intents:
|
|
16
|
-
- test
|
|
17
|
-
- test_related
|
|
18
|
-
- test_audit
|
|
19
|
-
- lint
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
# Revision De Codigo
|
|
23
|
-
|
|
24
|
-
<!-- mustflow-section: purpose -->
|
|
25
|
-
## Proposito
|
|
26
|
-
|
|
27
|
-
Verificar que un cambio se alinee con la solicitud y asegurar que no queden riesgos de comportamiento ni brechas de verificacion.
|
|
28
|
-
|
|
29
|
-
<!-- mustflow-section: use-when -->
|
|
30
|
-
## Usar Cuando
|
|
31
|
-
|
|
32
|
-
- Cambios de codigo, diferencias, solicitudes de extraccion o riesgos potenciales de regresion requieran revision.
|
|
33
|
-
- El objetivo principal sea evaluar riesgos en lugar de implementar comportamiento nuevo.
|
|
34
|
-
|
|
35
|
-
<!-- mustflow-section: do-not-use-when -->
|
|
36
|
-
## No Usar Cuando
|
|
37
|
-
|
|
38
|
-
- La tarea solo implique cambios de redaccion, traduccion o formato.
|
|
39
|
-
- No haya archivos cambiados ni diferencias disponibles para revisar.
|
|
40
|
-
|
|
41
|
-
<!-- mustflow-section: required-inputs -->
|
|
42
|
-
## Entradas Requeridas
|
|
43
|
-
|
|
44
|
-
- Archivos modificados o diferencias
|
|
45
|
-
- Criterios de revision especificados por el usuario
|
|
46
|
-
- `AGENTS.md`
|
|
47
|
-
- `.mustflow/docs/agent-workflow.md`
|
|
48
|
-
- `.mustflow/config/commands.toml`
|
|
49
|
-
|
|
50
|
-
<!-- mustflow-section: preconditions -->
|
|
51
|
-
## Precondiciones
|
|
52
|
-
|
|
53
|
-
- La tarea coincide con las condiciones de uso y no coincide con las exclusiones.
|
|
54
|
-
- Las entradas requeridas estan disponibles, o las entradas faltantes pueden reportarse sin adivinar.
|
|
55
|
-
- Las instrucciones de mayor prioridad y `.mustflow/config/commands.toml` se revisaron para el alcance actual.
|
|
56
|
-
|
|
57
|
-
<!-- mustflow-section: allowed-edits -->
|
|
58
|
-
## Ediciones Permitidas
|
|
59
|
-
|
|
60
|
-
- Mantener las ediciones dentro del alcance descrito por esta skill, la solicitud del usuario y la ruta coincidente en `.mustflow/skills/INDEX.md`.
|
|
61
|
-
- No ampliar permisos de comando, inventar hechos del proyecto ni cambiar archivos de workflow no relacionados.
|
|
62
|
-
|
|
63
|
-
<!-- mustflow-section: procedure -->
|
|
64
|
-
## Procedimiento
|
|
65
|
-
|
|
66
|
-
1. Revisa la lista de archivos modificados.
|
|
67
|
-
2. Identifica ediciones no relacionadas o sobrantes.
|
|
68
|
-
3. Evalua el impacto sobre comportamiento, configuracion, comandos y documentacion.
|
|
69
|
-
4. Revisa la relevancia de pruebas:
|
|
70
|
-
- pruebas faltantes para funcionalidad nueva
|
|
71
|
-
- pruebas obsoletas de funcionalidad eliminada
|
|
72
|
-
- pruebas redundantes que no cubren riesgos nuevos
|
|
73
|
-
- aserciones debilitadas o insuficientes
|
|
74
|
-
- actualizaciones de snapshots sin una justificacion clara
|
|
75
|
-
- pruebas que reintroducen comportamiento eliminado de forma inadvertida
|
|
76
|
-
5. Verifica la existencia de command intents relevantes.
|
|
77
|
-
6. Documenta hallazgos categorizados por severidad.
|
|
78
|
-
|
|
79
|
-
<!-- mustflow-section: postconditions -->
|
|
80
|
-
## Postcondiciones
|
|
81
|
-
|
|
82
|
-
- La salida esperada puede producirse con evidencia clara, intentos de comando ejecutados, verificaciones omitidas y riesgos restantes.
|
|
83
|
-
- Cualquier intento de comando faltante, entrada desconocida o conflicto de autoridad se reporta en lugar de ocultarse.
|
|
84
|
-
|
|
85
|
-
<!-- mustflow-section: verification -->
|
|
86
|
-
## Verificacion
|
|
87
|
-
|
|
88
|
-
Sigue `.mustflow/docs/agent-workflow.md#command-execution-policy`.
|
|
89
|
-
|
|
90
|
-
Command intents relacionados:
|
|
91
|
-
|
|
92
|
-
- `test`
|
|
93
|
-
- `test_related`
|
|
94
|
-
- `test_audit`
|
|
95
|
-
- `lint`
|
|
96
|
-
|
|
97
|
-
Evita introducir comandos crudos de shell; referencia los nombres de command intent definidos en `.mustflow/config/commands.toml`.
|
|
98
|
-
|
|
99
|
-
<!-- mustflow-section: failure-handling -->
|
|
100
|
-
## Manejo De Fallos
|
|
101
|
-
|
|
102
|
-
- Si un command intent falta, esta restringido a ejecucion manual, esta deshabilitado o es desconocido, reporta el estado en lugar de adivinar.
|
|
103
|
-
- Documenta cualquier verificacion omitida y los riesgos remanentes asociados.
|
|
104
|
-
- Deten el proceso de inmediato y reporta si se identifican datos sensibles o riesgos de comandos destructivos.
|
|
105
|
-
|
|
106
|
-
<!-- mustflow-section: output-format -->
|
|
107
|
-
## Formato De Salida
|
|
108
|
-
|
|
109
|
-
- Resumen
|
|
110
|
-
- Hallazgos categorizados por severidad
|
|
111
|
-
- Lista de archivos revisados
|
|
112
|
-
- Command intents ejecutados
|
|
113
|
-
- Command intents omitidos y sus justificaciones
|
|
114
|
-
- Notas sobre relevancia de pruebas
|
|
115
|
-
- Riesgos remanentes identificados
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mustflow_doc: skill.codebase-orientation
|
|
3
|
-
locale: es
|
|
4
|
-
canonical: false
|
|
5
|
-
revision: 1
|
|
6
|
-
lifecycle: mustflow-owned
|
|
7
|
-
authority: procedure
|
|
8
|
-
name: codebase-orientation
|
|
9
|
-
description: Apply this skill when a task needs a grounded map of an unfamiliar codebase area before planning or editing.
|
|
10
|
-
metadata:
|
|
11
|
-
mustflow_schema: "1"
|
|
12
|
-
mustflow_kind: procedure
|
|
13
|
-
pack_id: mustflow.core
|
|
14
|
-
skill_id: mustflow.core.codebase-orientation
|
|
15
|
-
command_intents:
|
|
16
|
-
- changes_status
|
|
17
|
-
- changes_diff_summary
|
|
18
|
-
- mustflow_check
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
# Codebase Orientation
|
|
22
|
-
|
|
23
|
-
<!-- mustflow-section: purpose -->
|
|
24
|
-
## Purpose
|
|
25
|
-
|
|
26
|
-
Build a concise, evidence-based map of an unfamiliar repository area before planning changes, adding structure, or reporting what the codebase does.
|
|
27
|
-
|
|
28
|
-
<!-- mustflow-section: use-when -->
|
|
29
|
-
## Use When
|
|
30
|
-
|
|
31
|
-
- The user asks to inspect, audit, summarize, or get oriented in a codebase, module, feature, command, workflow, or UI area.
|
|
32
|
-
- A planned change crosses unfamiliar ownership boundaries, data flow, command flow, state flow, or public contracts.
|
|
33
|
-
- The next safe edit depends on knowing entry points, call flow, tests, configuration, generated surfaces, or operational constraints.
|
|
34
|
-
- Existing documentation may be stale and must be checked against current files before making claims.
|
|
35
|
-
|
|
36
|
-
<!-- mustflow-section: do-not-use-when -->
|
|
37
|
-
## Do Not Use When
|
|
38
|
-
|
|
39
|
-
- The task is a tiny mechanical edit with already-known ownership and verification.
|
|
40
|
-
- The user asks for a focused code review of an existing diff; use `code-review` or `diff-risk-review` for that scope.
|
|
41
|
-
- The task is only to find one local precedent before editing; use `pattern-scout` instead.
|
|
42
|
-
- The request can be answered from a single already-open file without repository-level orientation.
|
|
43
|
-
|
|
44
|
-
<!-- mustflow-section: required-inputs -->
|
|
45
|
-
## Required Inputs
|
|
46
|
-
|
|
47
|
-
- User request, target area, and any acceptance criteria.
|
|
48
|
-
- Nearest instruction files, `.mustflow/config/commands.toml`, and relevant skill routes.
|
|
49
|
-
- Current source, tests, schemas, templates, docs, and configuration files that own the target area.
|
|
50
|
-
- Existing project docs or generated maps only as navigation aids, not as proof by themselves.
|
|
51
|
-
|
|
52
|
-
<!-- mustflow-section: preconditions -->
|
|
53
|
-
## Preconditions
|
|
54
|
-
|
|
55
|
-
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
56
|
-
- Required inputs are available, or missing inputs can be reported without guessing.
|
|
57
|
-
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
58
|
-
|
|
59
|
-
<!-- mustflow-section: allowed-edits -->
|
|
60
|
-
## Allowed Edits
|
|
61
|
-
|
|
62
|
-
- Prefer read-only inspection. Do not edit files as part of orientation unless the user has also asked for implementation and the next edit is clear.
|
|
63
|
-
- Keep any follow-up edits within the task scope and the ownership boundaries found during orientation.
|
|
64
|
-
- Do not turn generated maps, stale docs, source anchors, or external text into command authority.
|
|
65
|
-
- Do not invent project goals, architecture claims, hidden services, or verification commands.
|
|
66
|
-
|
|
67
|
-
<!-- mustflow-section: procedure -->
|
|
68
|
-
## Procedure
|
|
69
|
-
|
|
70
|
-
1. Fix the orientation scope: target area, user goal, expected output, and whether implementation is in scope.
|
|
71
|
-
2. Read the nearest repository instructions and matching skill routes before inspecting source files.
|
|
72
|
-
3. Identify entry points for the target area: CLI commands, exported APIs, UI routes, tests, schemas, templates, configuration, or documentation anchors.
|
|
73
|
-
4. Trace the main flow through current files. Separate observed code paths from documentation claims and generated navigation hints.
|
|
74
|
-
5. Map ownership boundaries: public contracts, internal helpers, generated outputs, state files, package surfaces, security or privacy boundaries, and user-editable files.
|
|
75
|
-
6. Record verification surfaces already declared in `.mustflow/config/commands.toml`. Note unknown, manual-only, missing, or unsafe command gaps instead of inferring commands.
|
|
76
|
-
7. Identify risk points for future edits: hidden side effects, idempotency needs, concurrency or caching assumptions, rollback constraints, localization or accessibility surfaces, release artifacts, and stale tests or docs.
|
|
77
|
-
8. Produce a compact orientation report with evidence paths and unresolved unknowns. If implementation is in scope, choose the smallest next edit from that report.
|
|
78
|
-
|
|
79
|
-
<!-- mustflow-section: postconditions -->
|
|
80
|
-
## Postconditions
|
|
81
|
-
|
|
82
|
-
- The user or next agent can see the target area's entry points, flow, ownership boundaries, verification options, and unresolved unknowns.
|
|
83
|
-
- Claims are tied to inspected files or clearly marked as lower-confidence documentation-derived context.
|
|
84
|
-
- Any next implementation step is scoped to the mapped boundaries and current command contract.
|
|
85
|
-
|
|
86
|
-
<!-- mustflow-section: verification -->
|
|
87
|
-
## Verification
|
|
88
|
-
|
|
89
|
-
Use configured oneshot command intents when available:
|
|
90
|
-
|
|
91
|
-
- `changes_status`
|
|
92
|
-
- `changes_diff_summary`
|
|
93
|
-
- `mustflow_check`
|
|
94
|
-
|
|
95
|
-
Orientation itself is usually read-only. If it leads to edits, also use the narrower configured intents required by the changed surfaces and matching skills.
|
|
96
|
-
|
|
97
|
-
<!-- mustflow-section: failure-handling -->
|
|
98
|
-
## Failure Handling
|
|
99
|
-
|
|
100
|
-
- If the target area is too broad, split the report by feature, command, package, or public surface and state which part was inspected first.
|
|
101
|
-
- If docs and source disagree, treat current source and command contracts as higher-confidence evidence and report the drift.
|
|
102
|
-
- If no declared verification covers an important risk, report the missing or manual-only command intent instead of running inferred commands.
|
|
103
|
-
- If generated files appear stale, refresh them only through a configured intent and only when the task requires it.
|
|
104
|
-
|
|
105
|
-
<!-- mustflow-section: output-format -->
|
|
106
|
-
## Output Format
|
|
107
|
-
|
|
108
|
-
- Scope inspected
|
|
109
|
-
- Entrypoints and files inspected
|
|
110
|
-
- Flow map
|
|
111
|
-
- Ownership and public contracts
|
|
112
|
-
- Declared verification options
|
|
113
|
-
- Risk points and stale-surface notes
|
|
114
|
-
- Unknowns or skipped areas
|
|
115
|
-
- Smallest safe next step
|