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,286 @@
|
|
|
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>
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
mustflow_doc: agents.root
|
|
3
|
+
locale: zh
|
|
4
|
+
canonical: false
|
|
5
|
+
revision: 10
|
|
6
|
+
lifecycle: user-editable
|
|
7
|
+
authority: binding
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# AGENTS.md
|
|
11
|
+
|
|
12
|
+
本文件为本仓库中 LLM 编码代理的首要阅读工作规范。
|
|
13
|
+
本仓库遵循 mustflow 代理工作流,相关细节存放于 `.mustflow/` 目录下。
|
|
14
|
+
|
|
15
|
+
## 阅读顺序
|
|
16
|
+
|
|
17
|
+
1. `AGENTS.md`
|
|
18
|
+
2. `.mustflow/docs/agent-workflow.md`
|
|
19
|
+
3. `.mustflow/config/mustflow.toml`
|
|
20
|
+
4. `.mustflow/config/commands.toml`
|
|
21
|
+
5. `.mustflow/config/preferences.toml`(如存在)
|
|
22
|
+
6. `.mustflow/skills/INDEX.md`
|
|
23
|
+
7. `.mustflow/context/INDEX.md`,仅当任务涉及项目、产品、领域、UI、后端、数据、安全或运维上下文时
|
|
24
|
+
8. 对应的 `.mustflow/context/<name>.md` 文件,仅当上下文索引中选中时
|
|
25
|
+
9. 对应的 `.mustflow/skills/<name>/SKILL.md`
|
|
26
|
+
10. `REPO_MAP.md`,仅当需要更广泛的仓库导航时
|
|
27
|
+
11. 相关源代码、测试及文档文件
|
|
28
|
+
|
|
29
|
+
## 核心规则
|
|
30
|
+
|
|
31
|
+
- 不得回退用户已有修改。
|
|
32
|
+
- 不得从包管理器文件推断命令。
|
|
33
|
+
- 仅执行状态为 `configured`、生命周期为 `oneshot`,且 `run_policy` 为 `agent_allowed` 的命令定义。
|
|
34
|
+
- 优先使用 `mf run <intent>` 执行已配置的 oneshot 命令。
|
|
35
|
+
- 串行执行 `mf run` 命令意图。若某已配置意图仍在运行,尤其当该意图声明了非空的 `writes`(如 `dist/`)时,不得启动新的 `mf run`。
|
|
36
|
+
- 选择覆盖风险最小且已配置的验证意图。若命令契约提供相关测试或快速检查,应优先使用;若缺少更窄的验证意图,应报告缺口,而非默默退回到缓慢的全量测试。
|
|
37
|
+
- 不得直接启动开发服务器、watcher、浏览器界面、交互式提示或后台进程。
|
|
38
|
+
- 未经明确配置,不得启动自治循环、worker 进程、persona 系统或长时运行的 harness 进程。
|
|
39
|
+
- 任务可能长时间运行或影响敏感状态时,必须遵守 `.mustflow/config/mustflow.toml` 中的 `[budget]`、`[approval]` 和 `[isolation]` 配置。
|
|
40
|
+
- 大范围修改前,应使用 `mf doctor` 或 `mf doctor --json` 进行只读健康检查。
|
|
41
|
+
- `mf context --json` 提供机器可读的方向信息,但不能替代规则和命令规范。
|
|
42
|
+
- `.mustflow/config/preferences.toml` 中的偏好优先级低于用户直接指令及项目既有风格。
|
|
43
|
+
- 当代码、模板、schema、CLI 行为、包元数据、用户可见文档、安装输出或测试发生变更时,需在最终报告前检查 `.mustflow/config/preferences.toml` 中的 `[release.versioning]`。
|
|
44
|
+
版本文件只能按偏好修改:当 `auto_bump = true` 且 `require_user_confirmation = false` 时,自动升级版本;否则应按配置建议升级或编辑前请求确认。
|
|
45
|
+
不得假设版本来源为 `package.json`,应先定位仓库自身版本来源。
|
|
46
|
+
- `.mustflow/context/` 中的上下文文件用于说明项目方向和领域约定,应视为任务相关上下文,而非代码、测试、命令或用户指令的替代品。
|
|
47
|
+
- 若存在 `DESIGN.md`,仅在涉及 UI、视觉设计、布局、design token 或可访问性相关工作时阅读;若不存在,不得创建。
|
|
48
|
+
- 任务适用某项 skill 时,应阅读对应 skill 文档。
|
|
49
|
+
- 编辑前,应通过 `.mustflow/skills/INDEX.md` 判断是否有适用的 skill。
|
|
50
|
+
- 若新证据表明某项 skill 相关(如命令失败或文档变更),应先阅读对应 `SKILL.md`,再继续工作。
|
|
51
|
+
- skill 文档仅指导流程,不授权执行 `.mustflow/config/commands.toml` 之外的命令,也不覆盖用户、宿主、仓库或安全规则。
|
|
52
|
+
- 未经明确请求,不得修改生成文件、外部依赖或 secrets 文件。
|
|
53
|
+
- 不得将根目录下的 `config/`、`docs/` 或 `skills/` 目录视为 mustflow 文档。
|
|
54
|
+
|
|
55
|
+
## 父子规则优先级
|
|
56
|
+
|
|
57
|
+
- 离被编辑文件最近的 `AGENTS.md` 规则更具体,优先级更高。
|
|
58
|
+
- 工作流、风格、测试或命令规则冲突时,遵循子仓库的 `AGENTS.md` 和 `.mustflow/config/commands.toml`。
|
|
59
|
+
- 针对 secrets、隐私、破坏性命令和允许编辑路径的安全规则为累加,执行更严格的规则。
|
|
60
|
+
- 进入嵌套仓库时,编辑前应重新阅读该仓库的 `AGENTS.md` 和 `.mustflow/config/*.toml`。
|
|
61
|
+
- 未经明确请求,不得编辑所选子仓库之外的内容。
|
|
62
|
+
|
|
63
|
+
## 宿主专用指令兼容性
|
|
64
|
+
|
|
65
|
+
某些编码宿主可能会读取额外的宿主专用指令文件,或执行自己的审批、沙箱、检查点和命令执行策略。
|
|
66
|
+
|
|
67
|
+
应将这些宿主策略视为额外的安全和执行约束,不替代本仓库的 mustflow 命令契约。
|
|
68
|
+
|
|
69
|
+
当宿主指令与 mustflow 规则冲突时:
|
|
70
|
+
|
|
71
|
+
- 用户当前的直接指令决定任务目标,除非该指令不安全。
|
|
72
|
+
- 宿主的安全和审批门禁依然有效。
|
|
73
|
+
- 仓库工作规则来自最近的 `AGENTS.md` 和 `.mustflow/config/*.toml`。
|
|
74
|
+
- 项目验证命令必须使用已配置的 mustflow intent。
|
|
75
|
+
- 隐私、secret、破坏性命令和 Git push 规则以更严格者为准。
|
|
76
|
+
- 生成状态、摘要和缓存绝不能覆盖当前文件或当前用户指令。
|
|
77
|
+
|
|
78
|
+
若规则不明确,应停止并报告冲突,避免猜测。
|
|
79
|
+
|
|
80
|
+
## 指令刷新检查点
|
|
81
|
+
|
|
82
|
+
- 在长会话中,应于首次编辑前、当前命令意图无新鲜命令级刷新时的命令执行前、上下文压缩后、修改 `AGENTS.md` 或 `.mustflow/**` 后、切换项目根目录后,以及输出最终报告前,重新阅读 mustflow 指令。
|
|
83
|
+
- 使用 `.mustflow/config/mustflow.toml` 中的 `[refresh]` 策略决定执行 light、command、skill 或 full refresh。
|
|
84
|
+
- 不得在项目文件中存储对话轮次或会话活动,刷新状态应保存在本地缓存或宿主应用中。
|
|
85
|
+
|
|
86
|
+
详细工作流、命令策略、失败处理和安全规则请参见 `.mustflow/docs/agent-workflow.md`。
|