mustflow 1.15.97
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/LICENSE +16 -0
- package/README.md +422 -0
- package/dist/cli/commands/check.js +73 -0
- package/dist/cli/commands/classify.js +104 -0
- package/dist/cli/commands/context.js +95 -0
- package/dist/cli/commands/contract-lint.js +74 -0
- package/dist/cli/commands/dashboard.js +654 -0
- package/dist/cli/commands/docs.js +382 -0
- package/dist/cli/commands/doctor.js +232 -0
- package/dist/cli/commands/explain.js +293 -0
- package/dist/cli/commands/help.js +148 -0
- package/dist/cli/commands/impact.js +120 -0
- package/dist/cli/commands/index.js +70 -0
- package/dist/cli/commands/init.js +986 -0
- package/dist/cli/commands/line-endings.js +102 -0
- package/dist/cli/commands/map.js +95 -0
- package/dist/cli/commands/run.js +442 -0
- package/dist/cli/commands/search.js +166 -0
- package/dist/cli/commands/status.js +65 -0
- package/dist/cli/commands/update.js +443 -0
- package/dist/cli/commands/verify.js +448 -0
- package/dist/cli/commands/version-sources.js +79 -0
- package/dist/cli/commands/version.js +57 -0
- package/dist/cli/i18n/en.js +702 -0
- package/dist/cli/i18n/es.js +702 -0
- package/dist/cli/i18n/fr.js +702 -0
- package/dist/cli/i18n/hi.js +702 -0
- package/dist/cli/i18n/ko.js +702 -0
- package/dist/cli/i18n/zh.js +702 -0
- package/dist/cli/index.js +218 -0
- package/dist/cli/lib/agent-context.js +342 -0
- package/dist/cli/lib/browser-open.js +58 -0
- package/dist/cli/lib/cli-output.js +36 -0
- package/dist/cli/lib/command-contract.js +1 -0
- package/dist/cli/lib/command-registry.js +107 -0
- package/dist/cli/lib/dashboard-html.js +1866 -0
- package/dist/cli/lib/dashboard-locale.js +309 -0
- package/dist/cli/lib/dashboard-preferences.js +405 -0
- package/dist/cli/lib/doc-review-ledger.js +226 -0
- package/dist/cli/lib/filesystem.js +125 -0
- package/dist/cli/lib/git-changes.js +13 -0
- package/dist/cli/lib/i18n.js +55 -0
- package/dist/cli/lib/local-index.js +1014 -0
- package/dist/cli/lib/locale-tags.js +4 -0
- package/dist/cli/lib/manifest-lock.js +131 -0
- package/dist/cli/lib/npm-version-check.js +97 -0
- package/dist/cli/lib/package-info.js +13 -0
- package/dist/cli/lib/preferences-options.js +8 -0
- package/dist/cli/lib/project-root.js +23 -0
- package/dist/cli/lib/repo-map.js +635 -0
- package/dist/cli/lib/reporter.js +8 -0
- package/dist/cli/lib/run-receipt.js +1 -0
- package/dist/cli/lib/template-i18n.js +265 -0
- package/dist/cli/lib/templates.js +188 -0
- package/dist/cli/lib/toml.js +1 -0
- package/dist/cli/lib/validation.js +1639 -0
- package/dist/cli/lib/version-sources.js +1 -0
- package/dist/core/authority-resolution.js +155 -0
- package/dist/core/change-classification.js +122 -0
- package/dist/core/change-verification.js +80 -0
- package/dist/core/check-issues.js +67 -0
- package/dist/core/command-classification.js +22 -0
- package/dist/core/command-contract-rules.js +27 -0
- package/dist/core/command-contract-validation.js +197 -0
- package/dist/core/command-cwd.js +12 -0
- package/dist/core/command-effects.js +182 -0
- package/dist/core/command-explanation.js +135 -0
- package/dist/core/command-intent-eligibility.js +76 -0
- package/dist/core/config-loading.js +54 -0
- package/dist/core/contract-lint.js +110 -0
- package/dist/core/contract-models.js +53 -0
- package/dist/core/dashboard-verification.js +132 -0
- package/dist/core/doc-review-triage.js +92 -0
- package/dist/core/line-endings.js +144 -0
- package/dist/core/public-json-contracts.js +112 -0
- package/dist/core/public-surface-explanation.js +49 -0
- package/dist/core/release-version-validation.js +53 -0
- package/dist/core/retention-explanation.js +74 -0
- package/dist/core/retention-policy.js +57 -0
- package/dist/core/run-receipt.js +77 -0
- package/dist/core/skill-route-alignment.js +100 -0
- package/dist/core/skill-route-explanation.js +117 -0
- package/dist/core/source-anchor-explanation.js +33 -0
- package/dist/core/source-anchor-status.js +269 -0
- package/dist/core/source-anchor-symbols.js +181 -0
- package/dist/core/source-anchor-validation.js +158 -0
- package/dist/core/source-anchors.js +194 -0
- package/dist/core/surface-decision-model.js +18 -0
- package/dist/core/toml.js +11 -0
- package/dist/core/verification-plan.js +41 -0
- package/dist/core/verification-scheduler.js +92 -0
- package/dist/core/version-impact.js +54 -0
- package/dist/core/version-sources.js +235 -0
- package/dist/core/version-sync-policy.js +85 -0
- package/examples/README.md +13 -0
- package/examples/docs-only/README.md +72 -0
- package/examples/host-instruction-conflicts/README.md +47 -0
- package/examples/minimal-js/README.md +98 -0
- package/examples/missing-command-contracts/README.md +70 -0
- package/examples/nested-repos/README.md +62 -0
- package/package.json +80 -0
- package/schemas/README.md +32 -0
- package/schemas/change-verification-report.schema.json +319 -0
- package/schemas/classify-report.schema.json +113 -0
- package/schemas/commands.schema.json +116 -0
- package/schemas/context-report.schema.json +341 -0
- package/schemas/contract-lint-report.schema.json +61 -0
- package/schemas/docs-review-list.schema.json +72 -0
- package/schemas/doctor-report.schema.json +175 -0
- package/schemas/explain-report.schema.json +471 -0
- package/schemas/impact-report.schema.json +121 -0
- package/schemas/line-endings-report.schema.json +63 -0
- package/schemas/run-receipt.schema.json +75 -0
- package/schemas/verify-report.schema.json +67 -0
- package/schemas/version-sources-report.schema.json +42 -0
- package/templates/default/common/.mustflow/config/commands.toml +251 -0
- package/templates/default/common/.mustflow/config/mustflow.toml +424 -0
- package/templates/default/common/.mustflow/config/preferences.toml +125 -0
- package/templates/default/common/gitignore.mustflow +9 -0
- package/templates/default/i18n.toml +483 -0
- package/templates/default/locales/en/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/en/.mustflow/context/PROJECT.md +66 -0
- package/templates/default/locales/en/.mustflow/docs/agent-workflow.md +345 -0
- package/templates/default/locales/en/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/en/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/en/.mustflow/skills/artifact-integrity-check/SKILL.md +121 -0
- package/templates/default/locales/en/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/en/.mustflow/skills/code-review/SKILL.md +115 -0
- package/templates/default/locales/en/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/en/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/en/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/en/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/en/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/en/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/en/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/en/.mustflow/skills/diff-risk-review/SKILL.md +143 -0
- package/templates/default/locales/en/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/en/.mustflow/skills/docs-update/SKILL.md +100 -0
- package/templates/default/locales/en/.mustflow/skills/external-prompt-injection-defense/SKILL.md +124 -0
- package/templates/default/locales/en/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/en/.mustflow/skills/failure-triage/SKILL.md +97 -0
- package/templates/default/locales/en/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/en/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/en/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/en/.mustflow/skills/multi-agent-work-coordination/SKILL.md +260 -0
- package/templates/default/locales/en/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/en/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/en/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/en/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/en/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/en/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/en/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/en/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/en/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/en/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/en/.mustflow/skills/security-privacy-review/SKILL.md +130 -0
- package/templates/default/locales/en/.mustflow/skills/security-regression-tests/SKILL.md +157 -0
- package/templates/default/locales/en/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/en/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/en/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/en/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/en/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/en/.mustflow/skills/test-maintenance/SKILL.md +122 -0
- package/templates/default/locales/en/.mustflow/skills/ui-quality-gate/SKILL.md +119 -0
- package/templates/default/locales/en/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/en/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/en/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/en/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/en/AGENTS.md +114 -0
- package/templates/default/locales/es/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/es/.mustflow/context/PROJECT.md +63 -0
- package/templates/default/locales/es/.mustflow/docs/agent-workflow.md +365 -0
- package/templates/default/locales/es/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/es/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/es/.mustflow/skills/artifact-integrity-check/SKILL.md +114 -0
- package/templates/default/locales/es/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/es/.mustflow/skills/code-review/SKILL.md +115 -0
- package/templates/default/locales/es/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/es/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/es/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/es/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/es/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/es/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/es/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/es/.mustflow/skills/diff-risk-review/SKILL.md +136 -0
- package/templates/default/locales/es/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/es/.mustflow/skills/docs-update/SKILL.md +97 -0
- package/templates/default/locales/es/.mustflow/skills/external-prompt-injection-defense/SKILL.md +116 -0
- package/templates/default/locales/es/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/es/.mustflow/skills/failure-triage/SKILL.md +97 -0
- package/templates/default/locales/es/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/es/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/es/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/es/.mustflow/skills/multi-agent-work-coordination/SKILL.md +260 -0
- package/templates/default/locales/es/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/es/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/es/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/es/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/es/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/es/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/es/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/es/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/es/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/es/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/es/.mustflow/skills/security-privacy-review/SKILL.md +116 -0
- package/templates/default/locales/es/.mustflow/skills/security-regression-tests/SKILL.md +131 -0
- package/templates/default/locales/es/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/es/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/es/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/es/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/es/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/es/.mustflow/skills/test-maintenance/SKILL.md +122 -0
- package/templates/default/locales/es/.mustflow/skills/ui-quality-gate/SKILL.md +117 -0
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/es/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/es/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/es/AGENTS.md +83 -0
- package/templates/default/locales/fr/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/fr/.mustflow/context/PROJECT.md +63 -0
- package/templates/default/locales/fr/.mustflow/docs/agent-workflow.md +368 -0
- package/templates/default/locales/fr/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/fr/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/fr/.mustflow/skills/artifact-integrity-check/SKILL.md +114 -0
- package/templates/default/locales/fr/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/fr/.mustflow/skills/code-review/SKILL.md +115 -0
- package/templates/default/locales/fr/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/fr/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/fr/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/fr/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/fr/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/fr/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/fr/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/fr/.mustflow/skills/diff-risk-review/SKILL.md +136 -0
- package/templates/default/locales/fr/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/fr/.mustflow/skills/docs-update/SKILL.md +97 -0
- package/templates/default/locales/fr/.mustflow/skills/external-prompt-injection-defense/SKILL.md +116 -0
- package/templates/default/locales/fr/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/fr/.mustflow/skills/failure-triage/SKILL.md +97 -0
- package/templates/default/locales/fr/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/fr/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/fr/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/fr/.mustflow/skills/multi-agent-work-coordination/SKILL.md +260 -0
- package/templates/default/locales/fr/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/fr/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/fr/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/fr/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/fr/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/fr/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/fr/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/fr/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/fr/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/fr/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/fr/.mustflow/skills/security-privacy-review/SKILL.md +116 -0
- package/templates/default/locales/fr/.mustflow/skills/security-regression-tests/SKILL.md +131 -0
- package/templates/default/locales/fr/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/fr/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/fr/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/fr/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/fr/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/fr/.mustflow/skills/test-maintenance/SKILL.md +122 -0
- package/templates/default/locales/fr/.mustflow/skills/ui-quality-gate/SKILL.md +117 -0
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/fr/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/fr/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/fr/AGENTS.md +84 -0
- package/templates/default/locales/hi/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/hi/.mustflow/context/PROJECT.md +65 -0
- package/templates/default/locales/hi/.mustflow/docs/agent-workflow.md +359 -0
- package/templates/default/locales/hi/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/hi/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/hi/.mustflow/skills/artifact-integrity-check/SKILL.md +114 -0
- package/templates/default/locales/hi/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/hi/.mustflow/skills/code-review/SKILL.md +115 -0
- package/templates/default/locales/hi/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/hi/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/hi/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/hi/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/hi/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/hi/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/hi/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/hi/.mustflow/skills/diff-risk-review/SKILL.md +136 -0
- package/templates/default/locales/hi/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/hi/.mustflow/skills/docs-update/SKILL.md +97 -0
- package/templates/default/locales/hi/.mustflow/skills/external-prompt-injection-defense/SKILL.md +116 -0
- package/templates/default/locales/hi/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/hi/.mustflow/skills/failure-triage/SKILL.md +97 -0
- package/templates/default/locales/hi/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/hi/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/hi/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/hi/.mustflow/skills/multi-agent-work-coordination/SKILL.md +260 -0
- package/templates/default/locales/hi/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/hi/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/hi/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/hi/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/hi/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/hi/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/hi/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/hi/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/hi/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/hi/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/hi/.mustflow/skills/security-privacy-review/SKILL.md +116 -0
- package/templates/default/locales/hi/.mustflow/skills/security-regression-tests/SKILL.md +131 -0
- package/templates/default/locales/hi/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/hi/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/hi/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/hi/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/hi/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/hi/.mustflow/skills/test-maintenance/SKILL.md +122 -0
- package/templates/default/locales/hi/.mustflow/skills/ui-quality-gate/SKILL.md +117 -0
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/hi/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/hi/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/hi/AGENTS.md +83 -0
- package/templates/default/locales/ko/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/ko/.mustflow/context/PROJECT.md +66 -0
- package/templates/default/locales/ko/.mustflow/docs/agent-workflow.md +506 -0
- package/templates/default/locales/ko/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/ko/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/ko/.mustflow/skills/artifact-integrity-check/SKILL.md +114 -0
- package/templates/default/locales/ko/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/ko/.mustflow/skills/code-review/SKILL.md +118 -0
- package/templates/default/locales/ko/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/ko/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/ko/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/ko/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/ko/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/ko/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/ko/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/ko/.mustflow/skills/diff-risk-review/SKILL.md +136 -0
- package/templates/default/locales/ko/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/ko/.mustflow/skills/docs-update/SKILL.md +107 -0
- package/templates/default/locales/ko/.mustflow/skills/external-prompt-injection-defense/SKILL.md +116 -0
- package/templates/default/locales/ko/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/ko/.mustflow/skills/failure-triage/SKILL.md +119 -0
- package/templates/default/locales/ko/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/ko/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/ko/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/ko/.mustflow/skills/multi-agent-work-coordination/SKILL.md +259 -0
- package/templates/default/locales/ko/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/ko/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/ko/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/ko/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/ko/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/ko/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/ko/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/ko/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/ko/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/ko/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/ko/.mustflow/skills/security-privacy-review/SKILL.md +116 -0
- package/templates/default/locales/ko/.mustflow/skills/security-regression-tests/SKILL.md +131 -0
- package/templates/default/locales/ko/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/ko/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/ko/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/ko/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/ko/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/ko/.mustflow/skills/test-maintenance/SKILL.md +130 -0
- package/templates/default/locales/ko/.mustflow/skills/ui-quality-gate/SKILL.md +117 -0
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/ko/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/ko/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/ko/AGENTS.md +85 -0
- package/templates/default/locales/zh/.mustflow/context/INDEX.md +39 -0
- package/templates/default/locales/zh/.mustflow/context/PROJECT.md +64 -0
- package/templates/default/locales/zh/.mustflow/docs/agent-workflow.md +310 -0
- package/templates/default/locales/zh/.mustflow/skills/INDEX.md +78 -0
- package/templates/default/locales/zh/.mustflow/skills/adapter-boundary/SKILL.md +193 -0
- package/templates/default/locales/zh/.mustflow/skills/artifact-integrity-check/SKILL.md +114 -0
- package/templates/default/locales/zh/.mustflow/skills/behavior-preserving-refactor/SKILL.md +182 -0
- package/templates/default/locales/zh/.mustflow/skills/code-review/SKILL.md +115 -0
- package/templates/default/locales/zh/.mustflow/skills/codebase-orientation/SKILL.md +115 -0
- package/templates/default/locales/zh/.mustflow/skills/command-pattern/SKILL.md +247 -0
- package/templates/default/locales/zh/.mustflow/skills/composition-over-inheritance/SKILL.md +176 -0
- package/templates/default/locales/zh/.mustflow/skills/contract-sync-check/SKILL.md +116 -0
- package/templates/default/locales/zh/.mustflow/skills/date-number-audit/SKILL.md +116 -0
- package/templates/default/locales/zh/.mustflow/skills/dependency-injection/SKILL.md +161 -0
- package/templates/default/locales/zh/.mustflow/skills/dependency-reality-check/SKILL.md +115 -0
- package/templates/default/locales/zh/.mustflow/skills/diff-risk-review/SKILL.md +136 -0
- package/templates/default/locales/zh/.mustflow/skills/docs-prose-review/SKILL.md +119 -0
- package/templates/default/locales/zh/.mustflow/skills/docs-update/SKILL.md +97 -0
- package/templates/default/locales/zh/.mustflow/skills/external-prompt-injection-defense/SKILL.md +116 -0
- package/templates/default/locales/zh/.mustflow/skills/facade-pattern/SKILL.md +210 -0
- package/templates/default/locales/zh/.mustflow/skills/failure-triage/SKILL.md +96 -0
- package/templates/default/locales/zh/.mustflow/skills/instruction-conflict-scope-check/SKILL.md +118 -0
- package/templates/default/locales/zh/.mustflow/skills/line-ending-hygiene/SKILL.md +111 -0
- package/templates/default/locales/zh/.mustflow/skills/migration-safety-check/SKILL.md +117 -0
- package/templates/default/locales/zh/.mustflow/skills/multi-agent-work-coordination/SKILL.md +260 -0
- package/templates/default/locales/zh/.mustflow/skills/null-object-pattern/SKILL.md +196 -0
- package/templates/default/locales/zh/.mustflow/skills/pattern-scout/SKILL.md +110 -0
- package/templates/default/locales/zh/.mustflow/skills/performance-budget-check/SKILL.md +121 -0
- package/templates/default/locales/zh/.mustflow/skills/project-context-authoring/SKILL.md +107 -0
- package/templates/default/locales/zh/.mustflow/skills/pure-core-imperative-shell/SKILL.md +212 -0
- package/templates/default/locales/zh/.mustflow/skills/readme-authoring/SKILL.md +115 -0
- package/templates/default/locales/zh/.mustflow/skills/repo-improvement-loop/SKILL.md +150 -0
- package/templates/default/locales/zh/.mustflow/skills/repro-first-debug/SKILL.md +112 -0
- package/templates/default/locales/zh/.mustflow/skills/requirement-regression-guard/SKILL.md +152 -0
- package/templates/default/locales/zh/.mustflow/skills/result-option/SKILL.md +186 -0
- package/templates/default/locales/zh/.mustflow/skills/security-privacy-review/SKILL.md +116 -0
- package/templates/default/locales/zh/.mustflow/skills/security-regression-tests/SKILL.md +131 -0
- package/templates/default/locales/zh/.mustflow/skills/skill-authoring/SKILL.md +110 -0
- package/templates/default/locales/zh/.mustflow/skills/source-freshness-check/SKILL.md +111 -0
- package/templates/default/locales/zh/.mustflow/skills/state-machine-pattern/SKILL.md +214 -0
- package/templates/default/locales/zh/.mustflow/skills/strategy-pattern/SKILL.md +215 -0
- package/templates/default/locales/zh/.mustflow/skills/structure-discovery-gate/SKILL.md +159 -0
- package/templates/default/locales/zh/.mustflow/skills/test-maintenance/SKILL.md +122 -0
- package/templates/default/locales/zh/.mustflow/skills/ui-quality-gate/SKILL.md +117 -0
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/SKILL.md +127 -0
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/assets/review-template.html +286 -0
- package/templates/default/locales/zh/.mustflow/skills/visual-review-artifact/resources.toml +7 -0
- package/templates/default/locales/zh/.mustflow/skills/web-asset-optimization/SKILL.md +108 -0
- package/templates/default/locales/zh/AGENTS.md +86 -0
- package/templates/default/manifest.toml +339 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
---
|
|
2
|
+
mustflow_doc: skill.structure-discovery-gate
|
|
3
|
+
locale: en
|
|
4
|
+
canonical: true
|
|
5
|
+
revision: 12
|
|
6
|
+
lifecycle: mustflow-owned
|
|
7
|
+
authority: procedure
|
|
8
|
+
name: structure-discovery-gate
|
|
9
|
+
description: Apply this skill before introducing new feature structure, folders, file boundaries, routing, data models, or integration boundaries.
|
|
10
|
+
metadata:
|
|
11
|
+
mustflow_schema: "1"
|
|
12
|
+
mustflow_kind: procedure
|
|
13
|
+
pack_id: mustflow.core
|
|
14
|
+
skill_id: mustflow.core.structure-discovery-gate
|
|
15
|
+
command_intents:
|
|
16
|
+
- changes_status
|
|
17
|
+
- changes_diff_summary
|
|
18
|
+
- docs_validate_fast
|
|
19
|
+
- test_release
|
|
20
|
+
- mustflow_check
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Structure Discovery Gate
|
|
24
|
+
|
|
25
|
+
<!-- mustflow-section: purpose -->
|
|
26
|
+
## Purpose
|
|
27
|
+
|
|
28
|
+
Find hidden structure decisions before coding so new files, folders, names, routing, data models, and integration boundaries reduce future change cost instead of producing a neat but brittle tree.
|
|
29
|
+
|
|
30
|
+
<!-- mustflow-section: use-when -->
|
|
31
|
+
## Use When
|
|
32
|
+
|
|
33
|
+
- The task asks for a new feature, module, folder layout, architecture, scaffold, refactor, API integration, website, app flow, routing structure, data model, state model, or file split.
|
|
34
|
+
- A named technology or service may be only an implementation choice rather than the product domain, such as AdSense, Stripe, Supabase, Firebase, Resend, SendGrid, Google Analytics, Plausible, or a CMS.
|
|
35
|
+
- The request may hide costly structural decisions around localization, SEO, authentication, authorization, payments, ads, analytics, admin workflows, deployment, content management, storage, retention, or external service replacement.
|
|
36
|
+
- The agent is about to create new top-level folders, shared modules, providers, adapters, services, constants, or public names.
|
|
37
|
+
|
|
38
|
+
<!-- mustflow-section: do-not-use-when -->
|
|
39
|
+
## Do Not Use When
|
|
40
|
+
|
|
41
|
+
- The task is a tiny mechanical edit with an obvious target file and no new boundary.
|
|
42
|
+
- The user explicitly asks for a disposable prototype, spike, or one-off example where future structure is out of scope.
|
|
43
|
+
- A structure decision has already been made in current project instructions, accepted design docs, or the immediately preceding user answer.
|
|
44
|
+
- The task is only to match an existing local pattern; use `pattern-scout` unless hidden product assumptions may still change the shape.
|
|
45
|
+
|
|
46
|
+
<!-- mustflow-section: required-inputs -->
|
|
47
|
+
## Required Inputs
|
|
48
|
+
|
|
49
|
+
- User request and intended product or code change.
|
|
50
|
+
- Current project instructions, relevant context, and nearby implementation patterns when available.
|
|
51
|
+
- Known target platform, language, framework, package, or deployment constraints.
|
|
52
|
+
- Any named external services, content sources, user roles, locales, data stores, algorithms, policies, feature flags, or revenue surfaces in the request.
|
|
53
|
+
- Risk surfaces that could require a plan/apply gate, capability object, Result or Option return shape, command execution unit, facade entry point, invariant policy, state machine, pure core with an imperative shell, dependency injection boundary, adapter boundary, composition over inheritance, injected clock, state transition table, or idempotency ledger.
|
|
54
|
+
- Optional collaborators whose absence might require a null object, disabled implementation, identity implementation, deny-all policy, or explicit failure.
|
|
55
|
+
- Relevant command-intent contract entries for later verification.
|
|
56
|
+
|
|
57
|
+
<!-- mustflow-section: preconditions -->
|
|
58
|
+
## Preconditions
|
|
59
|
+
|
|
60
|
+
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
61
|
+
- Required inputs are available from current context or can be stated as unknown without guessing.
|
|
62
|
+
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
63
|
+
|
|
64
|
+
<!-- mustflow-section: allowed-edits -->
|
|
65
|
+
## Allowed Edits
|
|
66
|
+
|
|
67
|
+
- Use this skill to shape the plan, questions, assumptions, file boundaries, and the smallest resulting implementation.
|
|
68
|
+
- Edit only files needed for the accepted or reasonably assumed structure.
|
|
69
|
+
- Do not create broad design documents, policy files, shared folders, provider systems, or abstractions just because they sound tidy.
|
|
70
|
+
- Do not treat this skill as permission to delay every task for a long interview; ask only questions that can change the structure.
|
|
71
|
+
|
|
72
|
+
<!-- mustflow-section: procedure -->
|
|
73
|
+
## Procedure
|
|
74
|
+
|
|
75
|
+
1. Restate the requested change as the product capability or code responsibility, not just the named technology.
|
|
76
|
+
2. Identify hidden decisions that could change routing, folder names, file boundaries, data model, state ownership, environment variables, tests, deployment, SEO, localization, external integrations, or legal and policy requirements.
|
|
77
|
+
3. Classify each decision:
|
|
78
|
+
- Blocking: the answer can change the basic structure and cannot be safely assumed.
|
|
79
|
+
- Structure-impacting: the answer changes boundaries, but a conservative default can be stated if the user does not answer.
|
|
80
|
+
- Preference: the answer affects styling, wording, or minor details and should not block structure.
|
|
81
|
+
4. Ask at most five high-value questions before coding. Prioritize localization, authentication, authorization, payments, ads, personal data, destructive data actions, admin workflows, SEO, content storage, and external service replacement.
|
|
82
|
+
5. For any question not asked, state the default assumption briefly. Defaults should keep future changes possible without adding speculative layers.
|
|
83
|
+
6. Select structure patterns only when the task's risk shape requires them:
|
|
84
|
+
- Use a plan/apply gate for destructive, bulk, migration, billing, permission, publishing, or external-send operations that need review before execution.
|
|
85
|
+
- Use a capability object when a function should require a specific granted action instead of reading broad user or role state.
|
|
86
|
+
- Use Result and Option values for expected business failures, meaningful absence, not found, invalid input, denied access, stale state, or blocked policy. Use `result-option` before editing that return-shape contract.
|
|
87
|
+
- Use a Null Object only when an optional collaborator can safely implement the same interface with honest neutral behavior and the caller should not branch on presence. Use `null-object-pattern` before editing that optional dependency boundary.
|
|
88
|
+
- Use a command pattern when a state-changing user or system intent needs explicit payload, context, authorization, transaction, idempotency, outbox, audit, retry, concurrency, or queue and worker reuse. Use `command-pattern` before editing that execution unit.
|
|
89
|
+
- Use a facade pattern when controllers, handlers, workers, command handlers, services, or UI events need one stable high-level entry point over a repeated multi-step subsystem workflow. Use `facade-pattern` before editing that entry point.
|
|
90
|
+
- Use invariant policy modules when a state change must preserve non-negotiable rules, such as last-owner, paid-order, refund, or entitlement constraints.
|
|
91
|
+
- Use a state machine when status, state, phase, step, or stage controls allowed events, terminal states, guards, effects, transition history, duplicate-event handling, or concurrency. Use `state-machine-pattern` before editing that lifecycle.
|
|
92
|
+
- Use a strategy pattern when several algorithms, policies, calculations, provider choices, feature-flag variants, or scoring methods share one purpose and should not keep branching inside the stable workflow. Use `strategy-pattern` before editing that strategy family.
|
|
93
|
+
- Use pure core with an imperative shell when business decisions, validation, authorization, pricing, eligibility, state transitions, domain events, or effect descriptions would otherwise be mixed with I/O, clocks, generated identifiers, randomness, environment reads, or framework objects.
|
|
94
|
+
- Use composition over inheritance when behavior varies by multiple dimensions, class inheritance is proposed for implementation reuse, or framework subclasses could stay thin by delegating to explicit collaborators.
|
|
95
|
+
- Use dependency injection when core logic would otherwise construct, import, resolve, or hide databases, SDKs, clocks, random generators, configuration, loggers, framework objects, filesystems, queues, AI clients, payment gateways, or email senders.
|
|
96
|
+
- Use an adapter boundary when external APIs, databases, model responses, webhooks, files, queues, caches, framework objects, or command output cross into internal logic or leave it.
|
|
97
|
+
- Inject time or a time context when expiration, scheduling, retries, leases, or rate windows affect behavior.
|
|
98
|
+
- Use explicit state transitions when three or more states have meaningful allowed moves.
|
|
99
|
+
- Use an action ledger or idempotency key when repeating a side effect would be harmful.
|
|
100
|
+
7. Prefer the smallest local version of the selected pattern. Do not add a framework, base class, service locator, global event bus, broad repository layer, or abstract factory when a plain function, table, adapter, or narrow policy object is enough.
|
|
101
|
+
8. Separate product domains from vendor implementations. Use broad names at the product boundary and specific names inside provider or adapter internals.
|
|
102
|
+
- Prefer `monetization/ads/providers/adsense` over top-level `adsense`.
|
|
103
|
+
- Prefer `payments/providers/stripe` over top-level `stripe`.
|
|
104
|
+
- Prefer `notifications/email/providers/resend` over top-level `resend`.
|
|
105
|
+
- Prefer `analytics/providers/google-analytics` over top-level `googleAnalytics`.
|
|
106
|
+
9. Propose the smallest folder and file structure that follows the answers and assumptions. For each new file or folder, state its responsibility and what it must not contain.
|
|
107
|
+
10. Check the structure against local precedent with `pattern-scout` when the repository already has a nearby pattern.
|
|
108
|
+
11. If the selected structure changes expected failure, meaningful absence, thrown business errors, null returns, or public error mapping, use `result-option` before editing that scope.
|
|
109
|
+
12. If the selected structure creates or repairs a state-changing execution unit, use `command-pattern` before editing that scope.
|
|
110
|
+
13. If the selected structure introduces or repairs lifecycle state transitions, use `state-machine-pattern` before editing that scope.
|
|
111
|
+
14. If the selected structure introduces interchangeable algorithms, policies, calculations, provider choices, or feature-flag variants, use `strategy-pattern` before editing that scope.
|
|
112
|
+
15. If the selected structure introduces one high-level entry point over several subsystem collaborators, use `facade-pattern` before editing that scope.
|
|
113
|
+
16. If the selected structure separates business decisions from execution, use `pure-core-imperative-shell` before editing that scope.
|
|
114
|
+
17. If the selected structure introduces inheritance, base classes, protected state, or subclass variants, use `composition-over-inheritance` before editing that scope.
|
|
115
|
+
18. If the selected structure introduces or repairs an external dependency boundary, use `dependency-injection` for construction and collaborator flow, and `adapter-boundary` for external data, protocol, error, timeout, retry, idempotency, security, and observability handling.
|
|
116
|
+
19. Implement only after the questions, assumptions, structure, dependency direction, and verification surface are clear enough for the task size.
|
|
117
|
+
|
|
118
|
+
<!-- mustflow-section: postconditions -->
|
|
119
|
+
## Postconditions
|
|
120
|
+
|
|
121
|
+
- The final structure follows an explicit set of answers or assumptions.
|
|
122
|
+
- Top-level names reflect product responsibilities rather than replaceable vendor names unless the vendor is the product itself.
|
|
123
|
+
- New folders and files have clear responsibilities, non-responsibilities, and dependency direction.
|
|
124
|
+
- Any skipped question, deferred decision, or intentionally narrow assumption is reported.
|
|
125
|
+
|
|
126
|
+
<!-- mustflow-section: verification -->
|
|
127
|
+
## Verification
|
|
128
|
+
|
|
129
|
+
Use configured oneshot command intents when available:
|
|
130
|
+
|
|
131
|
+
- `changes_status`
|
|
132
|
+
- `changes_diff_summary`
|
|
133
|
+
- `docs_validate_fast`
|
|
134
|
+
- `test_release`
|
|
135
|
+
- `mustflow_check`
|
|
136
|
+
|
|
137
|
+
Also run narrower configured tests or builds required by the changed source, template, documentation, or public contract.
|
|
138
|
+
|
|
139
|
+
<!-- mustflow-section: failure-handling -->
|
|
140
|
+
## Failure Handling
|
|
141
|
+
|
|
142
|
+
- If too many structural unknowns remain, ask only the highest-impact blocking questions and report the assumptions that are unsafe to make.
|
|
143
|
+
- If the user does not answer non-blocking questions, proceed with conservative defaults and keep the first implementation small.
|
|
144
|
+
- If a vendor name has already leaked into broad public structure, either localize it inside a provider or report why renaming is out of scope.
|
|
145
|
+
- If a proposed abstraction has only one known use and no likely replacement pressure, keep it close to the feature instead of moving it to shared code.
|
|
146
|
+
- If this skill overlaps with `codebase-orientation`, use orientation to map the existing area first, then return to this skill for the structure decision.
|
|
147
|
+
|
|
148
|
+
<!-- mustflow-section: output-format -->
|
|
149
|
+
## Output Format
|
|
150
|
+
|
|
151
|
+
- Capability or responsibility being built
|
|
152
|
+
- Blocking questions asked, or none
|
|
153
|
+
- Structure-impacting assumptions
|
|
154
|
+
- Proposed files and responsibilities
|
|
155
|
+
- Dependency direction
|
|
156
|
+
- Structural patterns selected or intentionally skipped
|
|
157
|
+
- Local pattern used or reason no pattern applies
|
|
158
|
+
- Command intents run
|
|
159
|
+
- Skipped checks and remaining structure risk
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
mustflow_doc: skill.test-maintenance
|
|
3
|
+
locale: en
|
|
4
|
+
canonical: true
|
|
5
|
+
revision: 3
|
|
6
|
+
lifecycle: mustflow-owned
|
|
7
|
+
authority: procedure
|
|
8
|
+
name: test-maintenance
|
|
9
|
+
description: Apply this skill when adding, updating, removing, or auditing tests in response to changes to behavior, APIs, snapshots, compatibility, or bug fixes.
|
|
10
|
+
metadata:
|
|
11
|
+
mustflow_schema: "1"
|
|
12
|
+
mustflow_kind: procedure
|
|
13
|
+
pack_id: mustflow.core
|
|
14
|
+
skill_id: mustflow.core.test-maintenance
|
|
15
|
+
command_intents:
|
|
16
|
+
- test
|
|
17
|
+
- test_related
|
|
18
|
+
- test_audit
|
|
19
|
+
- snapshot_update
|
|
20
|
+
- lint
|
|
21
|
+
- build
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# Test Maintenance
|
|
25
|
+
|
|
26
|
+
<!-- mustflow-section: purpose -->
|
|
27
|
+
## Purpose
|
|
28
|
+
|
|
29
|
+
Keep tests aligned with the current behavior contract.
|
|
30
|
+
|
|
31
|
+
<!-- mustflow-section: use-when -->
|
|
32
|
+
## Use When
|
|
33
|
+
|
|
34
|
+
- Behavior is added, changed, removed, or deprecated.
|
|
35
|
+
- A bug fix needs a regression test.
|
|
36
|
+
- Existing tests may be stale, duplicated, too broad, or tied to removed implementation details.
|
|
37
|
+
- Snapshot output has changed.
|
|
38
|
+
|
|
39
|
+
<!-- mustflow-section: do-not-use-when -->
|
|
40
|
+
## Do Not Use When
|
|
41
|
+
|
|
42
|
+
- The task only changes prose or comments.
|
|
43
|
+
- The repository lacks a configured test intent and the user has requested not to add tests.
|
|
44
|
+
|
|
45
|
+
<!-- mustflow-section: required-inputs -->
|
|
46
|
+
## Required Inputs
|
|
47
|
+
|
|
48
|
+
- User request
|
|
49
|
+
- Current behavior contract
|
|
50
|
+
- Changed or removed code path
|
|
51
|
+
- Existing test style
|
|
52
|
+
- `.mustflow/config/commands.toml`
|
|
53
|
+
- `.mustflow/config/mustflow.toml` `[testing]`
|
|
54
|
+
|
|
55
|
+
<!-- mustflow-section: preconditions -->
|
|
56
|
+
## Preconditions
|
|
57
|
+
|
|
58
|
+
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
59
|
+
- Required inputs are available, or missing inputs can be reported without guessing.
|
|
60
|
+
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
61
|
+
|
|
62
|
+
<!-- mustflow-section: allowed-edits -->
|
|
63
|
+
## Allowed Edits
|
|
64
|
+
|
|
65
|
+
- Keep edits within the scope described by this skill, the user request, and the matching route in `.mustflow/skills/INDEX.md`.
|
|
66
|
+
- Do not broaden command permission, invent project facts, or change unrelated workflow files.
|
|
67
|
+
|
|
68
|
+
<!-- mustflow-section: procedure -->
|
|
69
|
+
## Procedure
|
|
70
|
+
|
|
71
|
+
1. Define the expected current behavior.
|
|
72
|
+
2. Search for existing tests before introducing new ones.
|
|
73
|
+
3. Classify affected tests:
|
|
74
|
+
- `active`: still validates current behavior
|
|
75
|
+
- `update_needed`: behavior changed
|
|
76
|
+
- `obsolete_candidate`: likely validates removed or irrelevant behavior
|
|
77
|
+
- `legacy_contract`: old behavior is intentionally preserved
|
|
78
|
+
- `flaky_or_environmental`: failure may depend on environment
|
|
79
|
+
4. Add, update, remove, or report tests according to the classification.
|
|
80
|
+
5. Do not reintroduce removed behavior solely because old tests expect it.
|
|
81
|
+
6. Treat snapshot updates as manual unless `snapshot_update` is explicitly approved and configured.
|
|
82
|
+
7. Keep tests deterministic and close to the behavior contract.
|
|
83
|
+
|
|
84
|
+
<!-- mustflow-section: postconditions -->
|
|
85
|
+
## Postconditions
|
|
86
|
+
|
|
87
|
+
- The expected output can be produced with clear evidence, executed command intents, skipped checks, and remaining risks.
|
|
88
|
+
- Any missing command intent, unknown input, or authority conflict is reported instead of hidden.
|
|
89
|
+
|
|
90
|
+
<!-- mustflow-section: verification -->
|
|
91
|
+
## Verification
|
|
92
|
+
|
|
93
|
+
Use configured oneshot command intents when available:
|
|
94
|
+
|
|
95
|
+
- `test`
|
|
96
|
+
- `test_related`
|
|
97
|
+
- `test_audit`
|
|
98
|
+
- `snapshot_update` only with explicit approval
|
|
99
|
+
- `lint`
|
|
100
|
+
- `build`
|
|
101
|
+
|
|
102
|
+
Do not infer missing test commands.
|
|
103
|
+
|
|
104
|
+
<!-- mustflow-section: failure-handling -->
|
|
105
|
+
## Failure Handling
|
|
106
|
+
|
|
107
|
+
- If tests fail, inspect the first relevant failure.
|
|
108
|
+
- Do not delete or weaken tests merely to make validation pass.
|
|
109
|
+
- If it is uncertain whether a test is stale, report it instead of deleting it.
|
|
110
|
+
- If the test command is unavailable, report the missing intent.
|
|
111
|
+
|
|
112
|
+
<!-- mustflow-section: output-format -->
|
|
113
|
+
## Output Format
|
|
114
|
+
|
|
115
|
+
- Behavior contract being tested
|
|
116
|
+
- Tests added
|
|
117
|
+
- Tests updated
|
|
118
|
+
- Tests removed, with reason
|
|
119
|
+
- Stale test candidates
|
|
120
|
+
- Command intents run
|
|
121
|
+
- Skipped command intents and reasons
|
|
122
|
+
- Remaining test risks
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
---
|
|
2
|
+
mustflow_doc: skill.ui-quality-gate
|
|
3
|
+
locale: en
|
|
4
|
+
canonical: true
|
|
5
|
+
revision: 2
|
|
6
|
+
lifecycle: mustflow-owned
|
|
7
|
+
authority: procedure
|
|
8
|
+
name: ui-quality-gate
|
|
9
|
+
description: Apply this skill when user-facing UI, dashboard, settings, navigation, form, copy, responsive layout, accessibility, or visual state changes are planned, edited, reviewed, or reported.
|
|
10
|
+
metadata:
|
|
11
|
+
mustflow_schema: "1"
|
|
12
|
+
mustflow_kind: procedure
|
|
13
|
+
pack_id: mustflow.core
|
|
14
|
+
skill_id: mustflow.core.ui-quality-gate
|
|
15
|
+
command_intents:
|
|
16
|
+
- changes_status
|
|
17
|
+
- changes_diff_summary
|
|
18
|
+
- docs_validate_fast
|
|
19
|
+
- test_release
|
|
20
|
+
- mustflow_check
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# UI Quality Gate
|
|
24
|
+
|
|
25
|
+
<!-- mustflow-section: purpose -->
|
|
26
|
+
## Purpose
|
|
27
|
+
|
|
28
|
+
Keep user-facing interfaces usable, minimal, responsive, and verifiable instead of drifting into decorative demos or brittle screenshots.
|
|
29
|
+
|
|
30
|
+
<!-- mustflow-section: use-when -->
|
|
31
|
+
## Use When
|
|
32
|
+
|
|
33
|
+
- A change touches dashboard, settings, navigation, forms, tables, lists, tabs, buttons, empty states, tooltips, status messages, or user-facing copy.
|
|
34
|
+
- A task asks for UI polish, layout, responsive behavior, accessibility, visual states, language switching, labels, or interaction feedback.
|
|
35
|
+
- A report claims that UI text fits, controls are understandable, language updates apply, or a page renders correctly.
|
|
36
|
+
- A change could add explanatory, marketing-like, decorative, duplicate, invented, or non-actionable UI content.
|
|
37
|
+
|
|
38
|
+
<!-- mustflow-section: do-not-use-when -->
|
|
39
|
+
## Do Not Use When
|
|
40
|
+
|
|
41
|
+
- The task changes only backend logic, CLI output, metadata, or documentation with no user-facing UI surface.
|
|
42
|
+
- The task is only image asset conversion; use `web-asset-optimization` for that part.
|
|
43
|
+
- The UI change cannot be rendered or inspected in the current environment; report the inspection gap instead of claiming visual verification.
|
|
44
|
+
|
|
45
|
+
<!-- mustflow-section: required-inputs -->
|
|
46
|
+
## Required Inputs
|
|
47
|
+
|
|
48
|
+
- The changed UI surface, user task, and expected interaction path.
|
|
49
|
+
- Existing design patterns, labels, states, accessibility conventions, and localization rules in the same area.
|
|
50
|
+
- Viewports, themes, languages, and state combinations that need inspection.
|
|
51
|
+
- Relevant command-intent contract entries for status, diff, docs, build, release, or mustflow validation.
|
|
52
|
+
|
|
53
|
+
<!-- mustflow-section: preconditions -->
|
|
54
|
+
## Preconditions
|
|
55
|
+
|
|
56
|
+
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
57
|
+
- Required inputs are available, or missing inputs can be reported without guessing.
|
|
58
|
+
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
59
|
+
|
|
60
|
+
<!-- mustflow-section: allowed-edits -->
|
|
61
|
+
## Allowed Edits
|
|
62
|
+
|
|
63
|
+
- Add, remove, or refine UI controls, labels, states, layout constraints, localization hooks, and accessibility attributes when they support the user's real task.
|
|
64
|
+
- Remove decorative, explanatory, invented, or marketing-like UI content that does not help the user act on real data.
|
|
65
|
+
- Prefer existing component patterns and stable dimensions over new visual systems.
|
|
66
|
+
- Do not claim a UI is visually verified without an actual render, screenshot, DOM inspection, or clear reason that visual verification was unavailable.
|
|
67
|
+
|
|
68
|
+
<!-- mustflow-section: procedure -->
|
|
69
|
+
## Procedure
|
|
70
|
+
|
|
71
|
+
1. Identify the real user task and the UI surface that supports it.
|
|
72
|
+
2. Check nearby UI patterns before adding new layout, component, color, copy, or state conventions.
|
|
73
|
+
3. Remove or avoid non-essential welcome text, feature summaries, decorative cards, fake metrics, marketing copy, and invented controls.
|
|
74
|
+
4. Verify controls are understandable: icon buttons need accessible names or tooltips, destructive or state-changing actions need clear labels, and disabled states need a visible reason when useful.
|
|
75
|
+
5. Check accessibility behavior before visual polish: native elements first, keyboard access, focus order and return, visible focus state, names for icon-only controls, form error linkage, live status announcements, reduced-motion handling, and sufficient contrast.
|
|
76
|
+
6. Check localization-sensitive behavior: language switching, fallback text, placeholders, plural or formatted values, long translated labels, bidirectional text, logical spacing, and date, time, number, currency, or unit display where applicable.
|
|
77
|
+
7. Check layout constraints: text should not overflow, overlap, resize fixed-format controls unexpectedly, or depend on viewport-width font scaling.
|
|
78
|
+
8. Check state coverage: loading, empty, error, saved, changed, disabled, selected, focused, and language-switched states should update consistently where applicable.
|
|
79
|
+
9. Inspect responsive and localization-sensitive surfaces when the change affects layout or translated text.
|
|
80
|
+
10. Run the narrowest configured verification that covers the changed UI, documentation, package, or mustflow contract.
|
|
81
|
+
|
|
82
|
+
<!-- mustflow-section: postconditions -->
|
|
83
|
+
## Postconditions
|
|
84
|
+
|
|
85
|
+
- The UI supports the user's task without unnecessary explanatory or decorative surface.
|
|
86
|
+
- Important controls, labels, states, layout constraints, and localization updates are checked or reported as unverified.
|
|
87
|
+
- Final reports distinguish code-level verification from visual or interactive verification.
|
|
88
|
+
|
|
89
|
+
<!-- mustflow-section: verification -->
|
|
90
|
+
## Verification
|
|
91
|
+
|
|
92
|
+
Use configured oneshot command intents when available:
|
|
93
|
+
|
|
94
|
+
- `changes_status`
|
|
95
|
+
- `changes_diff_summary`
|
|
96
|
+
- `docs_validate_fast`
|
|
97
|
+
- `test_release`
|
|
98
|
+
- `mustflow_check`
|
|
99
|
+
|
|
100
|
+
Use a narrower configured test, build, browser, screenshot, or accessibility intent when it better proves the changed UI surface.
|
|
101
|
+
|
|
102
|
+
<!-- mustflow-section: failure-handling -->
|
|
103
|
+
## Failure Handling
|
|
104
|
+
|
|
105
|
+
- If visual inspection is unavailable, report the unverified viewport, state, or interaction instead of assuming it works.
|
|
106
|
+
- If UI text overlaps, clips, or fails to update after a state or language change, fix the smallest owning component before adding broader layout changes.
|
|
107
|
+
- If a requested UI element conflicts with repository UI minimalism rules, implement the smallest task-focused control and report the omitted decorative content.
|
|
108
|
+
- If verification requires an interactive server or browser command not declared by the command contract, stop at that boundary and report the skipped check.
|
|
109
|
+
|
|
110
|
+
<!-- mustflow-section: output-format -->
|
|
111
|
+
## Output Format
|
|
112
|
+
|
|
113
|
+
- UI surface reviewed
|
|
114
|
+
- User task and states checked
|
|
115
|
+
- Layout, keyboard, focus, accessibility, and localization checks
|
|
116
|
+
- Decorative or unnecessary UI avoided or removed
|
|
117
|
+
- Command intents run
|
|
118
|
+
- Skipped visual checks and reasons
|
|
119
|
+
- Remaining UI risk
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
---
|
|
2
|
+
mustflow_doc: skill.visual-review-artifact
|
|
3
|
+
locale: en
|
|
4
|
+
canonical: true
|
|
5
|
+
revision: 1
|
|
6
|
+
lifecycle: mustflow-owned
|
|
7
|
+
authority: procedure
|
|
8
|
+
name: visual-review-artifact
|
|
9
|
+
description: Apply this skill when a plan, suggestion, code explanation, or review result would be easier to inspect as a safe static HTML review artifact.
|
|
10
|
+
metadata:
|
|
11
|
+
mustflow_schema: "1"
|
|
12
|
+
mustflow_kind: procedure
|
|
13
|
+
pack_id: mustflow.core
|
|
14
|
+
skill_id: mustflow.core.visual-review-artifact
|
|
15
|
+
command_intents:
|
|
16
|
+
- changes_status
|
|
17
|
+
- changes_diff_summary
|
|
18
|
+
- docs_validate_fast
|
|
19
|
+
- test_release
|
|
20
|
+
- mustflow_check
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Visual Review Artifact
|
|
24
|
+
|
|
25
|
+
<!-- mustflow-section: purpose -->
|
|
26
|
+
## Purpose
|
|
27
|
+
|
|
28
|
+
Create a safe, static HTML artifact when a dense plan, suggestion, code explanation, or review result needs visual structure for human inspection and decision-making.
|
|
29
|
+
|
|
30
|
+
<!-- mustflow-section: use-when -->
|
|
31
|
+
## Use When
|
|
32
|
+
|
|
33
|
+
- The user asks for a plan, idea comparison, implementation options, refactor proposal, code walkthrough, change review, or design comparison that would be hard to scan as plain text.
|
|
34
|
+
- The output contains multiple sections, tradeoffs, diagrams, risk levels, approval choices, or follow-up questions that benefit from layout and lightweight local interaction.
|
|
35
|
+
- The user explicitly asks for an HTML artifact, visual review page, interactive review page, or one-off local review interface.
|
|
36
|
+
- A generated review artifact should help the user decide what to approve, reject, comment on, or discuss next.
|
|
37
|
+
|
|
38
|
+
<!-- mustflow-section: do-not-use-when -->
|
|
39
|
+
## Do Not Use When
|
|
40
|
+
|
|
41
|
+
- A short plain-text or Markdown answer is enough.
|
|
42
|
+
- The artifact would replace a source of truth such as code, tests, schemas, command contracts, release notes, or user-owned documentation.
|
|
43
|
+
- The requested page needs network access, external scripts, external images, package installation, a development server, file writes from the browser, authentication, or long-running processes.
|
|
44
|
+
- The user wants the page to execute commands, apply changes, approve work automatically, commit, push, deploy, or skip verification.
|
|
45
|
+
|
|
46
|
+
<!-- mustflow-section: required-inputs -->
|
|
47
|
+
## Required Inputs
|
|
48
|
+
|
|
49
|
+
- User request, artifact goal, target audience, and whether the artifact is a plan, suggestion, review, flow, or decision page.
|
|
50
|
+
- Source evidence for every claim, diagram, option, risk, or code excerpt included in the artifact.
|
|
51
|
+
- Output path and whether it should be temporary local state or a user-requested versioned artifact.
|
|
52
|
+
- Relevant command-intent contract entries for status, diff, docs, package, and mustflow validation.
|
|
53
|
+
|
|
54
|
+
<!-- mustflow-section: preconditions -->
|
|
55
|
+
## Preconditions
|
|
56
|
+
|
|
57
|
+
- The task matches the Use When conditions and does not match the Do Not Use When exclusions.
|
|
58
|
+
- Required inputs are available, or missing inputs can be reported without guessing.
|
|
59
|
+
- Higher-priority instructions and `.mustflow/config/commands.toml` have been checked for the current scope.
|
|
60
|
+
|
|
61
|
+
<!-- mustflow-section: allowed-edits -->
|
|
62
|
+
## Allowed Edits
|
|
63
|
+
|
|
64
|
+
- Prefer temporary local output under `.mustflow/state/artifacts/` unless the user requests a versioned path.
|
|
65
|
+
- Use the bundled `assets/review-template.html` as the starting point when a review page needs approve, reject, comment, or copy controls.
|
|
66
|
+
- Keep generated HTML self-contained, local, and review-only. Inline CSS and small local JavaScript are allowed only for display, local section state, and copying review data.
|
|
67
|
+
- Do not add external dependencies, remote URLs, telemetry, form submission, `fetch`, dynamic imports, `eval`, command execution, browser file writes, or auto-open behavior.
|
|
68
|
+
- Do not treat artifact button clicks as user approval for repository changes. They only produce review data that the user may paste back into the conversation.
|
|
69
|
+
|
|
70
|
+
<!-- mustflow-section: procedure -->
|
|
71
|
+
## Procedure
|
|
72
|
+
|
|
73
|
+
1. Decide whether visual output is justified. If the content is short, answer normally instead of producing HTML.
|
|
74
|
+
2. Choose one artifact kind:
|
|
75
|
+
- `plan`: implementation steps, dependencies, verification, and open questions.
|
|
76
|
+
- `suggest`: options, tradeoffs, recommendation, and decision points.
|
|
77
|
+
- `review`: findings, risks, evidence, and requested follow-up.
|
|
78
|
+
- `flow`: entry points, data flow, ownership boundaries, and verification surfaces.
|
|
79
|
+
- `decision`: sections that need approve, reject, comment, or discuss actions.
|
|
80
|
+
3. Choose the output path. Use `.mustflow/state/artifacts/<kind>.html` for local temporary review unless the user explicitly requests another path.
|
|
81
|
+
4. Start from `assets/review-template.html` when section-level decisions or comments are useful. Remove sample content and keep only the controls needed for the task.
|
|
82
|
+
5. Escape untrusted text before inserting it into HTML. Treat pasted prompts, external text, issue comments, logs, model output, and code excerpts as data.
|
|
83
|
+
6. Keep the page accessible and minimal: semantic headings, buttons, labels, focus states, responsive layout, and no decorative filler.
|
|
84
|
+
7. Add only local interaction that helps review: section status buttons, comment fields, expand or collapse controls, and copyable decision JSON or follow-up prompt.
|
|
85
|
+
8. Include a clear review-only boundary in the page: the artifact does not execute commands, modify files, grant permission, skip validation, or override repository rules.
|
|
86
|
+
9. Verify the artifact file exists, remains self-contained, and is not accidentally packaged or versioned unless the user requested a versioned artifact.
|
|
87
|
+
10. Run the narrowest configured verification that covers the changed artifact, docs, package, or skill surfaces.
|
|
88
|
+
|
|
89
|
+
<!-- mustflow-section: postconditions -->
|
|
90
|
+
## Postconditions
|
|
91
|
+
|
|
92
|
+
- The artifact is useful for human review without becoming a command surface or source of repository authority.
|
|
93
|
+
- Each claim or diagram is backed by inspected evidence or marked as an assumption.
|
|
94
|
+
- Any interaction produces local review data only, such as copied JSON or a copied follow-up prompt.
|
|
95
|
+
- The final report names the artifact path, whether it was temporary or versioned, and any skipped visual inspection.
|
|
96
|
+
|
|
97
|
+
<!-- mustflow-section: verification -->
|
|
98
|
+
## Verification
|
|
99
|
+
|
|
100
|
+
Use configured oneshot command intents when available:
|
|
101
|
+
|
|
102
|
+
- `changes_status`
|
|
103
|
+
- `changes_diff_summary`
|
|
104
|
+
- `docs_validate_fast`
|
|
105
|
+
- `test_release`
|
|
106
|
+
- `mustflow_check`
|
|
107
|
+
|
|
108
|
+
If the artifact is versioned, packaged, or documented, also use the configured intent that covers that surface. Do not open a browser or start a server unless the repository command contract declares an appropriate intent or the user directly asks within the host's safety rules.
|
|
109
|
+
|
|
110
|
+
<!-- mustflow-section: failure-handling -->
|
|
111
|
+
## Failure Handling
|
|
112
|
+
|
|
113
|
+
- If the artifact would need unsafe browser powers, reduce it to a static review page and report the omitted behavior.
|
|
114
|
+
- If the output path is unclear, use temporary local state and report the path instead of writing into public docs.
|
|
115
|
+
- If HTML would be too noisy for the task, return Markdown or plain text and report why the visual artifact was skipped.
|
|
116
|
+
- If validation reports skill-resource or artifact drift, fix the skill contract or artifact references before changing unrelated files.
|
|
117
|
+
|
|
118
|
+
<!-- mustflow-section: output-format -->
|
|
119
|
+
## Output Format
|
|
120
|
+
|
|
121
|
+
- Artifact kind and path
|
|
122
|
+
- Source evidence used
|
|
123
|
+
- Review-only boundary confirmed
|
|
124
|
+
- Local interactions included
|
|
125
|
+
- Command intents run
|
|
126
|
+
- Skipped browser, packaging, or visual checks and reasons
|
|
127
|
+
- Remaining artifact or decision risk
|