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,286 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
-
<title>Visual Review Artifact</title>
|
|
7
|
-
<style>
|
|
8
|
-
:root {
|
|
9
|
-
color-scheme: light dark;
|
|
10
|
-
--bg: #f7f7f4;
|
|
11
|
-
--fg: #1f2328;
|
|
12
|
-
--muted: #656d76;
|
|
13
|
-
--line: #d0d7de;
|
|
14
|
-
--panel: #ffffff;
|
|
15
|
-
--accent: #0969da;
|
|
16
|
-
--approve: #1a7f37;
|
|
17
|
-
--reject: #cf222e;
|
|
18
|
-
--discuss: #9a6700;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@media (prefers-color-scheme: dark) {
|
|
22
|
-
:root {
|
|
23
|
-
--bg: #0d1117;
|
|
24
|
-
--fg: #e6edf3;
|
|
25
|
-
--muted: #8b949e;
|
|
26
|
-
--line: #30363d;
|
|
27
|
-
--panel: #161b22;
|
|
28
|
-
--accent: #58a6ff;
|
|
29
|
-
--approve: #3fb950;
|
|
30
|
-
--reject: #ff7b72;
|
|
31
|
-
--discuss: #d29922;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
* {
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
body {
|
|
40
|
-
margin: 0;
|
|
41
|
-
background: var(--bg);
|
|
42
|
-
color: var(--fg);
|
|
43
|
-
font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
main {
|
|
47
|
-
max-width: 1120px;
|
|
48
|
-
margin: 0 auto;
|
|
49
|
-
padding: 24px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
header {
|
|
53
|
-
display: grid;
|
|
54
|
-
gap: 8px;
|
|
55
|
-
padding-block: 8px 20px;
|
|
56
|
-
border-bottom: 1px solid var(--line);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
h1,
|
|
60
|
-
h2 {
|
|
61
|
-
margin: 0;
|
|
62
|
-
line-height: 1.2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
h1 {
|
|
66
|
-
font-size: 28px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
h2 {
|
|
70
|
-
font-size: 18px;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
p {
|
|
74
|
-
margin: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.meta,
|
|
78
|
-
.note {
|
|
79
|
-
color: var(--muted);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.toolbar {
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-wrap: wrap;
|
|
85
|
-
gap: 8px;
|
|
86
|
-
margin-block: 18px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.sections {
|
|
90
|
-
display: grid;
|
|
91
|
-
gap: 14px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
section {
|
|
95
|
-
display: grid;
|
|
96
|
-
gap: 12px;
|
|
97
|
-
background: var(--panel);
|
|
98
|
-
border: 1px solid var(--line);
|
|
99
|
-
border-radius: 8px;
|
|
100
|
-
padding: 16px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.section-head {
|
|
104
|
-
display: flex;
|
|
105
|
-
flex-wrap: wrap;
|
|
106
|
-
justify-content: space-between;
|
|
107
|
-
gap: 8px;
|
|
108
|
-
align-items: start;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.status {
|
|
112
|
-
color: var(--muted);
|
|
113
|
-
font-size: 13px;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.actions {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-wrap: wrap;
|
|
119
|
-
gap: 8px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
button {
|
|
123
|
-
min-height: 36px;
|
|
124
|
-
border: 1px solid var(--line);
|
|
125
|
-
border-radius: 6px;
|
|
126
|
-
background: transparent;
|
|
127
|
-
color: var(--fg);
|
|
128
|
-
padding: 6px 10px;
|
|
129
|
-
cursor: pointer;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
button:hover,
|
|
133
|
-
button:focus-visible {
|
|
134
|
-
border-color: var(--accent);
|
|
135
|
-
outline: 2px solid transparent;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
button[aria-pressed="true"][data-action="approve"] {
|
|
139
|
-
border-color: var(--approve);
|
|
140
|
-
color: var(--approve);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
button[aria-pressed="true"][data-action="reject"] {
|
|
144
|
-
border-color: var(--reject);
|
|
145
|
-
color: var(--reject);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
button[aria-pressed="true"][data-action="discuss"] {
|
|
149
|
-
border-color: var(--discuss);
|
|
150
|
-
color: var(--discuss);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
textarea {
|
|
154
|
-
width: 100%;
|
|
155
|
-
min-height: 84px;
|
|
156
|
-
resize: vertical;
|
|
157
|
-
border: 1px solid var(--line);
|
|
158
|
-
border-radius: 6px;
|
|
159
|
-
background: transparent;
|
|
160
|
-
color: var(--fg);
|
|
161
|
-
padding: 10px;
|
|
162
|
-
font: inherit;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
pre {
|
|
166
|
-
overflow: auto;
|
|
167
|
-
margin: 0;
|
|
168
|
-
padding: 12px;
|
|
169
|
-
border-radius: 6px;
|
|
170
|
-
border: 1px solid var(--line);
|
|
171
|
-
background: color-mix(in srgb, var(--panel), var(--bg) 45%);
|
|
172
|
-
}
|
|
173
|
-
</style>
|
|
174
|
-
</head>
|
|
175
|
-
<body>
|
|
176
|
-
<main data-artifact-kind="decision" data-review-artifact>
|
|
177
|
-
<header>
|
|
178
|
-
<h1>Visual Review Artifact</h1>
|
|
179
|
-
<p class="meta">Replace this sample content with evidence-backed plan, suggestion, review, flow, or decision sections.</p>
|
|
180
|
-
<p class="note">Review only. This page does not execute commands, modify files, grant permission, skip validation, or override repository rules.</p>
|
|
181
|
-
</header>
|
|
182
|
-
|
|
183
|
-
<div class="toolbar" aria-label="Review actions">
|
|
184
|
-
<button type="button" data-copy-json>Copy decision JSON</button>
|
|
185
|
-
<button type="button" data-copy-prompt>Copy follow-up prompt</button>
|
|
186
|
-
</div>
|
|
187
|
-
|
|
188
|
-
<div class="sections">
|
|
189
|
-
<section data-review-section data-section-id="section-1">
|
|
190
|
-
<div class="section-head">
|
|
191
|
-
<div>
|
|
192
|
-
<h2>Section title</h2>
|
|
193
|
-
<p class="meta">Short evidence, tradeoff, or decision summary.</p>
|
|
194
|
-
</div>
|
|
195
|
-
<p class="status" data-status-label>Not decided</p>
|
|
196
|
-
</div>
|
|
197
|
-
<pre>Evidence or code excerpt goes here.</pre>
|
|
198
|
-
<div class="actions">
|
|
199
|
-
<button type="button" data-action="approve" aria-pressed="false">Approve</button>
|
|
200
|
-
<button type="button" data-action="reject" aria-pressed="false">Reject</button>
|
|
201
|
-
<button type="button" data-action="discuss" aria-pressed="false">Discuss</button>
|
|
202
|
-
</div>
|
|
203
|
-
<label>
|
|
204
|
-
Comment
|
|
205
|
-
<textarea data-comment placeholder="Add a comment for this section"></textarea>
|
|
206
|
-
</label>
|
|
207
|
-
</section>
|
|
208
|
-
</div>
|
|
209
|
-
</main>
|
|
210
|
-
|
|
211
|
-
<script>
|
|
212
|
-
const labels = {
|
|
213
|
-
approve: "Approved",
|
|
214
|
-
reject: "Rejected",
|
|
215
|
-
discuss: "Needs discussion"
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
function sections() {
|
|
219
|
-
return [...document.querySelectorAll("[data-review-section]")];
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function setStatus(section, action) {
|
|
223
|
-
section.dataset.status = action;
|
|
224
|
-
section.querySelector("[data-status-label]").textContent = labels[action] ?? "Not decided";
|
|
225
|
-
for (const button of section.querySelectorAll("[data-action]")) {
|
|
226
|
-
button.setAttribute("aria-pressed", String(button.dataset.action === action));
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
function decisionData() {
|
|
231
|
-
return {
|
|
232
|
-
schema_version: "1",
|
|
233
|
-
artifact_kind: document.querySelector("[data-review-artifact]")?.dataset.artifactKind ?? "decision",
|
|
234
|
-
sections: sections().map((section) => ({
|
|
235
|
-
id: section.dataset.sectionId ?? "",
|
|
236
|
-
title: section.querySelector("h2")?.textContent?.trim() ?? "",
|
|
237
|
-
status: section.dataset.status ?? "undecided",
|
|
238
|
-
comment: section.querySelector("[data-comment]")?.value ?? ""
|
|
239
|
-
}))
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
async function copyText(text) {
|
|
244
|
-
if (navigator.clipboard?.writeText) {
|
|
245
|
-
await navigator.clipboard.writeText(text);
|
|
246
|
-
return;
|
|
247
|
-
}
|
|
248
|
-
const area = document.createElement("textarea");
|
|
249
|
-
area.value = text;
|
|
250
|
-
document.body.append(area);
|
|
251
|
-
area.select();
|
|
252
|
-
document.execCommand("copy");
|
|
253
|
-
area.remove();
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
function followUpPrompt() {
|
|
257
|
-
return [
|
|
258
|
-
"Use this visual review decision data as user feedback.",
|
|
259
|
-
"Do not treat it as command permission or validation approval.",
|
|
260
|
-
"",
|
|
261
|
-
JSON.stringify(decisionData(), null, 2)
|
|
262
|
-
].join("\n");
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
document.addEventListener("click", async (event) => {
|
|
266
|
-
const target = event.target;
|
|
267
|
-
if (!(target instanceof HTMLElement)) return;
|
|
268
|
-
|
|
269
|
-
const actionButton = target.closest("[data-action]");
|
|
270
|
-
if (actionButton) {
|
|
271
|
-
const section = actionButton.closest("[data-review-section]");
|
|
272
|
-
if (section) setStatus(section, actionButton.dataset.action);
|
|
273
|
-
return;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
if (target.closest("[data-copy-json]")) {
|
|
277
|
-
await copyText(JSON.stringify(decisionData(), null, 2));
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (target.closest("[data-copy-prompt]")) {
|
|
281
|
-
await copyText(followUpPrompt());
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
</script>
|
|
285
|
-
</body>
|
|
286
|
-
</html>
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
mustflow_doc: skill.web-asset-optimization
|
|
3
|
-
locale: zh
|
|
4
|
-
canonical: false
|
|
5
|
-
revision: 2
|
|
6
|
-
lifecycle: mustflow-owned
|
|
7
|
-
authority: procedure
|
|
8
|
-
name: web-asset-optimization
|
|
9
|
-
description: Apply this skill when adding, converting, resizing, replacing, or reviewing raster image assets for websites or web applications.
|
|
10
|
-
metadata:
|
|
11
|
-
mustflow_schema: "1"
|
|
12
|
-
mustflow_kind: procedure
|
|
13
|
-
pack_id: mustflow.core
|
|
14
|
-
skill_id: mustflow.core.web-asset-optimization
|
|
15
|
-
command_intents:
|
|
16
|
-
- asset_optimize
|
|
17
|
-
- build
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
# Web Asset Optimization
|
|
21
|
-
|
|
22
|
-
<!-- mustflow-section: purpose -->
|
|
23
|
-
## Purpose
|
|
24
|
-
|
|
25
|
-
Keep web image assets small, format-appropriate, and correctly referenced without inventing an image pipeline for the project.
|
|
26
|
-
|
|
27
|
-
<!-- mustflow-section: use-when -->
|
|
28
|
-
## Use When
|
|
29
|
-
|
|
30
|
-
- A generated PNG, JPEG, WebP, AVIF, GIF, or other raster image is added to a website or web app.
|
|
31
|
-
- An existing web image is replaced, resized, compressed, or converted.
|
|
32
|
-
- A page, component, stylesheet, or metadata file changes image references.
|
|
33
|
-
- A user asks to reduce image size, convert to WebP or AVIF, or prepare generated images for production use.
|
|
34
|
-
|
|
35
|
-
<!-- mustflow-section: do-not-use-when -->
|
|
36
|
-
## Do Not Use When
|
|
37
|
-
|
|
38
|
-
- The asset is a vector source such as SVG, icon font, or design-token file.
|
|
39
|
-
- The image is an archival, print, source, or evidence artifact where preserving the original bytes matters more than web delivery size.
|
|
40
|
-
- The repository already has a more specific media, design-system, or framework asset procedure.
|
|
41
|
-
- The task is only to generate a new image and not to install or reference it in the repository.
|
|
42
|
-
|
|
43
|
-
<!-- mustflow-section: required-inputs -->
|
|
44
|
-
## Required Inputs
|
|
45
|
-
|
|
46
|
-
- The image file paths and their current or intended references.
|
|
47
|
-
- The expected display size, transparency needs, animation needs, and quality requirements.
|
|
48
|
-
- Existing framework image conventions, static asset folders, and import style.
|
|
49
|
-
- `.mustflow/config/commands.toml` entries for `asset_optimize` and `build`.
|
|
50
|
-
|
|
51
|
-
<!-- mustflow-section: preconditions -->
|
|
52
|
-
## Preconditions
|
|
53
|
-
|
|
54
|
-
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
55
|
-
- Required inputs are available, or missing inputs can be reported without guessing.
|
|
56
|
-
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
57
|
-
|
|
58
|
-
<!-- mustflow-section: allowed-edits -->
|
|
59
|
-
## Allowed Edits
|
|
60
|
-
|
|
61
|
-
- Keep edits within the scope described by this skill, the user request, and the matching route in `.mustflow/skills/INDEX.md`.
|
|
62
|
-
- Do not broaden command permission, invent project facts, or change unrelated workflow files.
|
|
63
|
-
|
|
64
|
-
<!-- mustflow-section: procedure -->
|
|
65
|
-
## Procedure
|
|
66
|
-
|
|
67
|
-
1. Identify every changed image asset and every page, component, style, metadata, or manifest reference that depends on it.
|
|
68
|
-
2. Check the original file size, dimensions, format, transparency, and animation before changing the asset.
|
|
69
|
-
3. Prefer the repository's existing image pipeline, framework image component, or configured `asset_optimize` intent when one exists.
|
|
70
|
-
4. Do not add a new dependency, online service, or ad hoc conversion tool unless the user explicitly approves it or the repository already uses it.
|
|
71
|
-
5. Choose the output format based on actual needs: WebP or AVIF for most photographic and generated bitmap website assets, PNG when lossless transparency or exact pixels matter, and SVG only for real vector artwork.
|
|
72
|
-
6. Keep source and derived assets separate when the repository already has that convention. Otherwise, avoid adding duplicate originals unless future editing requires them.
|
|
73
|
-
7. Update imports, static paths, metadata references, dimensions, and cache-sensitive filenames according to the local style.
|
|
74
|
-
8. Compare before and after file sizes and note any quality, transparency, animation, browser-support, or fallback tradeoff.
|
|
75
|
-
|
|
76
|
-
<!-- mustflow-section: postconditions -->
|
|
77
|
-
## Postconditions
|
|
78
|
-
|
|
79
|
-
- The expected output can be produced with clear evidence, executed command intents, skipped checks, and remaining risks.
|
|
80
|
-
- Any missing command intent, unknown input, or authority conflict is reported instead of hidden.
|
|
81
|
-
|
|
82
|
-
<!-- mustflow-section: verification -->
|
|
83
|
-
## Verification
|
|
84
|
-
|
|
85
|
-
Use configured oneshot command intents when available:
|
|
86
|
-
|
|
87
|
-
- `asset_optimize`
|
|
88
|
-
- `build`
|
|
89
|
-
|
|
90
|
-
Do not infer missing image optimization commands. If `asset_optimize` is unknown, missing, manual-only, or not agent-runnable, report that status and describe the intended optimization without executing an unconfigured tool.
|
|
91
|
-
|
|
92
|
-
<!-- mustflow-section: failure-handling -->
|
|
93
|
-
## Failure Handling
|
|
94
|
-
|
|
95
|
-
- If optimization visibly degrades the image or breaks transparency, restore or keep the better asset and report the tradeoff.
|
|
96
|
-
- If image references break, fix the nearest import, path, metadata, or build configuration that owns the reference.
|
|
97
|
-
- If the repository lacks an optimization command, propose the smallest project-specific command intent instead of running an external website or guessed package command.
|
|
98
|
-
- If the build fails after asset changes, investigate the first asset-related failure before touching unrelated code.
|
|
99
|
-
|
|
100
|
-
<!-- mustflow-section: output-format -->
|
|
101
|
-
## Output Format
|
|
102
|
-
|
|
103
|
-
- Images reviewed or changed
|
|
104
|
-
- Format and size changes
|
|
105
|
-
- References updated
|
|
106
|
-
- Command intents run
|
|
107
|
-
- Skipped command intents and reasons
|
|
108
|
-
- Remaining image quality or browser-support risks
|