create-yss-spec 2.1.11 → 2.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.agents/skills/llm-wiki/SKILL.md +60 -0
- package/template/.agents/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.agents/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.agents/skills/llm-wiki/references/compile.md +126 -0
- package/template/.agents/skills/llm-wiki/references/discover.md +41 -0
- package/template/.agents/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.agents/skills/llm-wiki/references/lint.md +54 -0
- package/template/.agents/skills/llm-wiki/references/query.md +21 -0
- package/template/.agents/skills/llm-wiki/references/schema.md +45 -0
- package/template/.agents/skills/llm-wiki/references/writing.md +35 -0
- package/template/.agents/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.agents/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.agents/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.agents/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.agents/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.agents/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.agents/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.agents/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.agents/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.agents/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.agents/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.agents/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.agents/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.agents/skills/yss-design-system/SKILL.md +9 -5
- package/template/.agents/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.agents/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.agents/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.agents/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.agents/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.agents/skills/yss-ui/SKILL.md +1 -1
- package/template/.claude/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.claude/skills/llm-wiki/SKILL.md +60 -0
- package/template/.claude/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.claude/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.claude/skills/llm-wiki/references/compile.md +126 -0
- package/template/.claude/skills/llm-wiki/references/discover.md +41 -0
- package/template/.claude/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.claude/skills/llm-wiki/references/lint.md +54 -0
- package/template/.claude/skills/llm-wiki/references/query.md +21 -0
- package/template/.claude/skills/llm-wiki/references/schema.md +45 -0
- package/template/.claude/skills/llm-wiki/references/writing.md +35 -0
- package/template/.claude/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.claude/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.claude/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.claude/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.claude/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.claude/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.claude/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.claude/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.claude/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.claude/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.claude/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.claude/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.claude/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.claude/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.claude/skills/yss-design-system/SKILL.md +9 -5
- package/template/.claude/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.claude/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.claude/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.claude/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.claude/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.claude/skills/yss-ui/SKILL.md +1 -1
- package/template/.codex/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.codex/skills/llm-wiki/SKILL.md +60 -0
- package/template/.codex/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.codex/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.codex/skills/llm-wiki/references/compile.md +126 -0
- package/template/.codex/skills/llm-wiki/references/discover.md +41 -0
- package/template/.codex/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.codex/skills/llm-wiki/references/lint.md +54 -0
- package/template/.codex/skills/llm-wiki/references/query.md +21 -0
- package/template/.codex/skills/llm-wiki/references/schema.md +45 -0
- package/template/.codex/skills/llm-wiki/references/writing.md +35 -0
- package/template/.codex/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.codex/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.codex/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.codex/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.codex/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.codex/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.codex/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.codex/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.codex/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.codex/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.codex/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.codex/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.codex/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.codex/skills/yss-design-system/SKILL.md +9 -5
- package/template/.codex/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.codex/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.codex/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.codex/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.codex/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.codex/skills/yss-ui/SKILL.md +1 -1
- package/template/.cursor/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.cursor/skills/llm-wiki/SKILL.md +60 -0
- package/template/.cursor/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.cursor/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.cursor/skills/llm-wiki/references/compile.md +126 -0
- package/template/.cursor/skills/llm-wiki/references/discover.md +41 -0
- package/template/.cursor/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.cursor/skills/llm-wiki/references/lint.md +54 -0
- package/template/.cursor/skills/llm-wiki/references/query.md +21 -0
- package/template/.cursor/skills/llm-wiki/references/schema.md +45 -0
- package/template/.cursor/skills/llm-wiki/references/writing.md +35 -0
- package/template/.cursor/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.cursor/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.cursor/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.cursor/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.cursor/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.cursor/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.cursor/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.cursor/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.cursor/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.cursor/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.cursor/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.cursor/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.cursor/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.cursor/skills/yss-design-system/SKILL.md +9 -5
- package/template/.cursor/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.cursor/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.cursor/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.cursor/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.cursor/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.cursor/skills/yss-ui/SKILL.md +1 -1
- package/template/.hermes/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.hermes/skills/llm-wiki/SKILL.md +60 -0
- package/template/.hermes/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.hermes/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.hermes/skills/llm-wiki/references/compile.md +126 -0
- package/template/.hermes/skills/llm-wiki/references/discover.md +41 -0
- package/template/.hermes/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.hermes/skills/llm-wiki/references/lint.md +54 -0
- package/template/.hermes/skills/llm-wiki/references/query.md +21 -0
- package/template/.hermes/skills/llm-wiki/references/schema.md +45 -0
- package/template/.hermes/skills/llm-wiki/references/writing.md +35 -0
- package/template/.hermes/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.hermes/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.hermes/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.hermes/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.hermes/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.hermes/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.hermes/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.hermes/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.hermes/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.hermes/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.hermes/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.hermes/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.hermes/skills/yss-design-system/SKILL.md +9 -5
- package/template/.hermes/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.hermes/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.hermes/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.hermes/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.hermes/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.hermes/skills/yss-ui/SKILL.md +1 -1
- package/template/.pi/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.pi/skills/llm-wiki/SKILL.md +60 -0
- package/template/.pi/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.pi/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.pi/skills/llm-wiki/references/compile.md +126 -0
- package/template/.pi/skills/llm-wiki/references/discover.md +41 -0
- package/template/.pi/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.pi/skills/llm-wiki/references/lint.md +54 -0
- package/template/.pi/skills/llm-wiki/references/query.md +21 -0
- package/template/.pi/skills/llm-wiki/references/schema.md +45 -0
- package/template/.pi/skills/llm-wiki/references/writing.md +35 -0
- package/template/.pi/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.pi/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.pi/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.pi/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.pi/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.pi/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.pi/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.pi/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.pi/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.pi/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.pi/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.pi/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.pi/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.pi/skills/yss-design-system/SKILL.md +9 -5
- package/template/.pi/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.pi/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.pi/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.pi/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.pi/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.pi/skills/yss-ui/SKILL.md +1 -1
- package/template/.qoder/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.qoder/skills/llm-wiki/SKILL.md +60 -0
- package/template/.qoder/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.qoder/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.qoder/skills/llm-wiki/references/compile.md +126 -0
- package/template/.qoder/skills/llm-wiki/references/discover.md +41 -0
- package/template/.qoder/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.qoder/skills/llm-wiki/references/lint.md +54 -0
- package/template/.qoder/skills/llm-wiki/references/query.md +21 -0
- package/template/.qoder/skills/llm-wiki/references/schema.md +45 -0
- package/template/.qoder/skills/llm-wiki/references/writing.md +35 -0
- package/template/.qoder/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.qoder/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.qoder/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.qoder/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.qoder/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.qoder/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.qoder/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.qoder/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.qoder/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.qoder/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.qoder/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.qoder/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.qoder/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.qoder/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.qoder/skills/yss-design-system/SKILL.md +9 -5
- package/template/.qoder/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.qoder/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.qoder/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.qoder/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.qoder/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.qoder/skills/yss-ui/SKILL.md +1 -1
- package/template/.trae/skills/high-fidelity-html-prototype/SKILL.md +1 -18
- package/template/.trae/skills/llm-wiki/SKILL.md +60 -0
- package/template/.trae/skills/llm-wiki/assets/CLAUDE.md.template +26 -0
- package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/CLAUDE.md +3 -0
- package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/index.md +5 -0
- package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki/log.md +1 -0
- package/template/.trae/skills/llm-wiki/assets/fixtures/broken-wiki/wiki//345/255/230/345/234/250/347/232/204/351/241/265.md +7 -0
- package/template/.trae/skills/llm-wiki/references/compile.md +126 -0
- package/template/.trae/skills/llm-wiki/references/discover.md +41 -0
- package/template/.trae/skills/llm-wiki/references/ingest.md +36 -0
- package/template/.trae/skills/llm-wiki/references/lint.md +54 -0
- package/template/.trae/skills/llm-wiki/references/query.md +21 -0
- package/template/.trae/skills/llm-wiki/references/schema.md +45 -0
- package/template/.trae/skills/llm-wiki/references/writing.md +35 -0
- package/template/.trae/skills/llm-wiki/scripts/advise.mjs +196 -0
- package/template/.trae/skills/llm-wiki/scripts/advise.test.mjs +91 -0
- package/template/.trae/skills/llm-wiki/scripts/extract.mjs +55 -0
- package/template/.trae/skills/llm-wiki/scripts/extract.test.mjs +34 -0
- package/template/.trae/skills/llm-wiki/scripts/inventory.mjs +174 -0
- package/template/.trae/skills/llm-wiki/scripts/inventory.test.mjs +98 -0
- package/template/.trae/skills/llm-wiki/scripts/lint-wikilinks.mjs +177 -0
- package/template/.trae/skills/llm-wiki/scripts/lint-wikilinks.test.mjs +212 -0
- package/template/.trae/skills/yss-antd-design/SKILL.md +34 -0
- package/template/.trae/skills/yss-antd-design/references/boundaries.md +30 -0
- package/template/.trae/skills/yss-antd-design/references/cli-matrix.md +38 -0
- package/template/.trae/skills/yss-antd-design/references/evidence.md +26 -0
- package/template/.trae/skills/yss-antd-design/scripts/validate-frontmatter.mjs +46 -0
- package/template/.trae/skills/yss-antd-design/scripts/validate-frontmatter.test.mjs +27 -0
- package/template/.trae/skills/yss-design-system/SKILL.md +9 -5
- package/template/.trae/skills/yss-design-system/references/design-qa-theme.md +64 -0
- package/template/.trae/skills/yss-design-system/references/design-system.md +20 -12
- package/template/.trae/skills/yss-product-lifecycle/SKILL.md +1 -1
- package/template/.trae/skills/yss-product-lifecycle/references/orchestration-contract.yaml +1 -1
- package/template/.trae/skills/yss-prototype-stage/SKILL.md +3 -1
- package/template/.trae/skills/yss-ui/SKILL.md +1 -1
- package/template/AGENTS.md +4 -2
- package/template/CLAUDE.md +13 -0
- package/template/CONTEXT.md +2 -0
- package/template/docs/agents/yss-skill-registry.yaml +12 -0
- package/template/docs/design/README.md +5 -5
- package/template/docs/design/design.md +94 -29
- package/template/docs/design/templates/prototype-evidence-template.yaml +12 -1
- package/template/docs/design/tokens/theme.json +16 -9
- package/template/docs/design/tokens/tokens.compact.json +35 -32
- package/template/docs/design/tokens/tokens.dark.json +5 -5
- package/template/docs/design/tokens/tokens.default.json +41 -32
- package/template/docs/design/tokens/variables.css +62 -37
- package/template/docs/design/tokens/variables.dark.css +5 -5
- package/template/docs/process/implementation-repo-integration.md +9 -0
- package/template/docs/user-guide//344/272/247/345/223/201/347/240/224/345/217/221/345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/346/234/200/344/275/263/345/256/236/350/267/265.md +3 -3
- package/template/skills-lock.json +37 -5
- package/template/wiki/.wiki-manifest.json +390 -0
- package/template/wiki/raw/AGENTS.md +42 -61
- package/template/wiki/raw/CONTEXT.md +27 -1
- package/template/wiki/raw/README.md +4 -1
- package/template/wiki/raw/create-yss-spec-repository-mode-contract.md +95 -0
- package/template/wiki/raw/harness-process-tailoring.md +64 -0
- package/template/wiki/raw/implementation-repo-integration.md +62 -0
- package/template/wiki/raw/issue-tracker.md +135 -0
- package/template/wiki/raw/lifecycle-registry.yaml +369 -0
- package/template/wiki/raw/maintenance-intensity.yaml +25 -0
- package/template/wiki/raw/skills-lock-names.md +92 -0
- package/template/wiki/raw/skills-maintenance.md +90 -0
- package/template/wiki/raw/spec-template.md +3 -4
- package/template/wiki/raw/triage-labels.md +15 -0
- package/template/wiki/raw/vertical-slice-ticket-template.md +14 -8
- package/template/wiki/raw/yss-skill-registry.yaml +504 -0
- package/template/wiki/wiki/Agent/345/205/245/345/217/243/350/247/204/345/210/231.md +17 -5
- package/template/wiki/wiki/CLAUDE.md +15 -11
- package/template/wiki/wiki/Fresh/351/252/214/350/257/201/344/270/216/347/213/254/347/253/213/345/256/241/346/237/245.md +15 -5
- package/template/wiki/wiki/LLM Wiki.md +30 -0
- package/template/wiki/wiki/Matt/346/212/200/350/203/275/344/275/223/347/263/273.md +17 -5
- package/template/wiki/wiki/OpenAPI/345/245/221/347/272/246.md +16 -5
- package/template/wiki/wiki/SpecDelta.md +15 -5
- package/template/wiki/wiki/Spec/345/237/272/347/272/277.md +18 -5
- package/template/wiki/wiki/Ticket/344/270/216/346/265/201/347/250/213/347/212/266/346/200/201.md +17 -5
- package/template/wiki/wiki/YSS/345/267/245/347/250/213/346/212/200/350/203/275/344/275/223/347/263/273.md +19 -5
- package/template/wiki/wiki/YSS/350/267/257/347/224/261/344/270/216/345/220/210/345/220/214/347/274/226/350/257/221.md +16 -5
- package/template/wiki/wiki/concept-table.md +9 -0
- package/template/wiki/wiki/index.md +12 -11
- package/template/wiki/wiki/log.md +27 -0
- package/template/wiki/wiki//344/272/247/345/223/201/347/240/224/345/217/221/347/224/237/345/221/275/345/221/250/346/234/237.md +15 -4
- package/template/wiki/wiki//344/272/247/345/223/201/350/256/276/350/256/241/345/275/261/345/223/215/344/270/216/345/216/237/345/236/213.md +14 -4
- package/template/wiki/wiki//344/273/223/345/272/223/350/272/253/344/273/275/344/270/216/350/267/257/347/224/261.md +15 -4
- package/template/wiki/wiki//345/210/207/347/211/207/345/256/236/347/216/260/345/220/210/345/220/214.md +17 -5
- package/template/wiki/wiki//345/236/202/347/233/264/345/210/207/347/211/207Ticket.md +19 -5
- package/template/wiki/wiki//345/244/215/347/233/230/344/270/216/346/235/203/345/250/201/350/265/204/344/272/247/344/277/256/350/256/242.md +15 -4
- package/template/wiki/wiki//345/256/236/347/216/260/344/273/223/345/272/223/344/270/216/350/267/250/344/273/223/345/272/223/345/245/221/347/272/246.md +17 -4
- package/template/wiki/wiki//345/275/261/345/223/215/351/235/242/345/210/206/350/257/212/344/270/216/346/265/201/347/250/213/350/243/201/345/211/252.md +15 -4
- package/template/wiki/wiki//346/212/200/350/203/275/346/212/225/345/275/261/344/270/216/351/224/201/345/256/232.md +18 -4
- package/template/wiki/wiki//346/235/241/344/273/266/345/274/272/345/210/266/351/227/250/347/246/201.md +13 -4
- package/template/wiki/wiki//346/250/241/346/235/277/345/217/221/345/270/203/351/227/250/347/246/201/344/270/216/351/252/214/350/257/201.md +17 -4
- package/template/wiki/wiki//346/250/241/346/235/277/346/200/273/350/247/210.md +16 -5
- package/template/wiki/wiki//346/250/241/346/235/277/347/273/264/346/212/244/346/265/201/347/250/213.md +14 -4
- package/template/yss-public-skills.json +2 -0
- package/template.snapshot.json +4 -4
- package/template/wiki/raw/create-yss-spec-contract.md +0 -59
- package/template/wiki/raw/skills-lock.json +0 -1379
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import assert from "node:assert/strict";
|
|
2
|
+
import test from "node:test";
|
|
3
|
+
import { validateFrontmatter, validateSetupBan } from "./validate-frontmatter.mjs";
|
|
4
|
+
|
|
5
|
+
const valid = `---
|
|
6
|
+
name: yss-antd-design
|
|
7
|
+
description: Use when 原型设计。不用于前端代码落地(改用 yss-ui)、安装官方 antd skill,或替代 yss-prototype-stage。
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# body
|
|
11
|
+
- 禁止 \`antd setup\`、\`npx skills add ant-design/ant-design-cli\`
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
test("accepts the required skill frontmatter", () => {
|
|
15
|
+
assert.equal(validateFrontmatter(valid), "yss-antd-design");
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("rejects missing exclusion branches in description", () => {
|
|
19
|
+
assert.throws(
|
|
20
|
+
() => validateFrontmatter("---\nname: yss-antd-design\ndescription: Use when querying antd.\n---\n"),
|
|
21
|
+
/exclude frontend landing/
|
|
22
|
+
);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
test("rejects a skill that does not forbid official setup", () => {
|
|
26
|
+
assert.throws(() => validateSetupBan("# no setup ban"), /forbid antd setup/);
|
|
27
|
+
});
|
|
@@ -13,7 +13,9 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
13
13
|
- 项目 token 快照:`docs/design/tokens/theme.json`、`docs/design/tokens/tokens.default.json`、`docs/design/tokens/tokens.dark.json`、`docs/design/tokens/tokens.compact.json`、`docs/design/tokens/variables.css`、`docs/design/tokens/variables.dark.css`。
|
|
14
14
|
- 本技能执行清单:`references/design-system.md`,用于 Agent 执行和评审,不替代 `docs/design/design.md`。
|
|
15
15
|
- 历史输入包:`/Users/zhudaoming/Downloads/Product-Design-System`,只用于追溯首次引入来源,不作为后续工程依赖。
|
|
16
|
-
-
|
|
16
|
+
- 默认亮色覆盖:项目 Ant Design 5 Less / `:root` 变量已裁定进 `docs/design/design.md` 与 token 快照;原始 Less 不是实现语言。
|
|
17
|
+
- Codex `$design-qa` 项目对照:`references/design-qa-theme.md`,不替代官方 `design-qa` 流程,也不改上游插件正文。
|
|
18
|
+
- 原型阶段合同:`yss-prototype-stage`,用于统一跨 Agent 的原型资产和浏览器验证证据。AntD 事实由 `yss-antd-design` 提供,且只用于原型设计构建。
|
|
17
19
|
|
|
18
20
|
如果只需要快速判断,先读本文件。若要写 UI 规范、实现页面、评审设计或调整 token,必须读项目内 `docs/design/design.md`;若要执行评审或实现检查,再读 `references/design-system.md`。
|
|
19
21
|
|
|
@@ -29,10 +31,11 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
29
31
|
## 核心基线
|
|
30
32
|
|
|
31
33
|
- UI 定位:中后台、数据密集、表单密集、流程密集、可扫描、低装饰。
|
|
32
|
-
- 主色:`#
|
|
33
|
-
- 默认字号:14px;主要字重:400 / 600
|
|
34
|
-
- 默认控件高度:32px。
|
|
34
|
+
- 主色:`#3371ff`(`--primary-color` / `--brand-color-primary`),用于主操作、链接、焦点、选中态和激活导航。
|
|
35
|
+
- 默认字号:14px;主要字重:400 / 600;字体栈为系统字体,不强制 `Inter`。
|
|
36
|
+
- 默认控件高度:32px;默认圆角 6px。
|
|
35
37
|
- 间距:4px 网格,优先使用 token,不写任意 magic number。
|
|
38
|
+
- 运行时换肤:短名 CSS 变量必须指向 `--brand-*`,不要再维护第二套色值。
|
|
36
39
|
- 表面层级:页面背景、内容容器、浮层三层模型。
|
|
37
40
|
- 组件语言:优先 Ant Design / YSS UI 语义,不自造同类控件。
|
|
38
41
|
- 状态完整性:loading、empty、error、readonly、disabled、no-permission、conflict、success 必须在设计或实现中可解释。
|
|
@@ -84,7 +87,8 @@ description: Use when YSS 产品设计系统与 Ant Design 企业级 UI 风格
|
|
|
84
87
|
| 前端页面实现 | `yss-ui` / `yss-page-module-development` |
|
|
85
88
|
| 表单 schema | `yss-formily` |
|
|
86
89
|
| YTable / YTree / 高度自适应 | `yss-components` / `yss-use-table-height` / `yss-use-tree-height` |
|
|
87
|
-
| Ant Design v6 组件 / token / demo 查询 |
|
|
90
|
+
| 原型阶段的 Ant Design v6 组件 / token / demo 查询 | `yss-antd-design`(只用于原型设计构建;前端落地改用 `yss-ui`) |
|
|
91
|
+
| Codex 原型交接前的视觉 QA | `design-qa`;token / 字体对照读 `references/design-qa-theme.md`,以项目覆盖为准 |
|
|
88
92
|
| API 契约 / 接入 | `yss-openapi-governance` / `api-integration` |
|
|
89
93
|
|
|
90
94
|
## 更新设计系统
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Design QA 项目主题对照
|
|
2
|
+
|
|
3
|
+
本文件给 Codex `$design-qa` 使用。官方 `design-qa` skill 仍负责截图对比流程和 `final result: passed|blocked`;本文件只提供项目视觉真相,不改上游插件正文。
|
|
4
|
+
|
|
5
|
+
## Source visual truth
|
|
6
|
+
|
|
7
|
+
- 规范:`docs/design/design.md`
|
|
8
|
+
- Token:`docs/design/tokens/theme.json`、`docs/design/tokens/tokens.default.json`、`docs/design/tokens/variables.css`
|
|
9
|
+
- 实现截图:当前原型或页面在同一 viewport / 主题 / 状态下的渲染
|
|
10
|
+
|
|
11
|
+
官方 `https://ant.design/design.md` 只是上游默认。项目覆盖与官方不同时,以项目覆盖为准。
|
|
12
|
+
|
|
13
|
+
## 必查 fidelity surface(项目覆盖)
|
|
14
|
+
|
|
15
|
+
### Colors and visual tokens
|
|
16
|
+
|
|
17
|
+
| 角色 | 必须对照 | 记为 P1 token drift |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| 主色 | `#3371ff` | `#1677ff` 或 `#3177ff` 当默认主色 |
|
|
20
|
+
| 主色 hover / active | `#4096ff` / `#0958d9` | 用算法重算替代 `:root` 显式值且未记录 |
|
|
21
|
+
| 错误色 | `#f5222d` | 官方 `#ff4d4f` 当默认错误色 |
|
|
22
|
+
| 成功 / 警告 | `#52c41a` / `#faad14` | 改成非功能色装饰 |
|
|
23
|
+
| 页面背景 | `#f0f2f5` | `#f5f5f5` 或其它灰底当默认 layout |
|
|
24
|
+
| 容器 / 浮层 | `#ffffff` | 用卡片阴影堆叠替代表面层级 |
|
|
25
|
+
| 主文本 / 次文本 | `rgba(0, 0, 0, 0.88)` / `rgba(0, 0, 0, 0.65)` | `#2e2e2e` / `#646464` 当默认文本 |
|
|
26
|
+
| 边框 / 分割线 | `#d9d9d9` / `#f0f0f0` | `#dbdbdb` / `#f1f1f1` 当默认边框 |
|
|
27
|
+
| 运行时变量 | `--primary-color` 指向 `--brand-color-primary` | 页面另写一套 Less 色值 |
|
|
28
|
+
|
|
29
|
+
`blue` 预设色板里的 `#1677ff` 不是品牌主色,不要据此判定主色漂移。
|
|
30
|
+
|
|
31
|
+
### Fonts and typography
|
|
32
|
+
|
|
33
|
+
| 角色 | 必须对照 | 记为 P1 token drift |
|
|
34
|
+
| --- | --- | --- |
|
|
35
|
+
| 默认正文字号 | 14px | 16px 营销字号当正文 |
|
|
36
|
+
| 默认控件高度 | 32px | 明显偏离 32px 且未走 compact algorithm |
|
|
37
|
+
| 字体栈 | 系统栈(`-apple-system, BlinkMacSystemFont, "Segoe UI", ...`) | 强制 `Inter` 或其它未登记品牌字体 |
|
|
38
|
+
| 字重 | 400 / 600 | 用 700+ 表达选中或激活 |
|
|
39
|
+
|
|
40
|
+
### Spacing and layout rhythm
|
|
41
|
+
|
|
42
|
+
| 角色 | 必须对照 | 记为 P1 token drift |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| 圆角 | 小控件 4px、默认 6px、容器 8px | 历史品牌 8px / 10px,或 Less 前半 4px 当全局默认 |
|
|
45
|
+
| 间距网格 | 4 / 8 / 12 / 16 / 20 / 24 / 32 / 48 | 任意 magic number 撑开中后台密度 |
|
|
46
|
+
| 顶栏 / 侧栏 | 顶栏 64px,深色侧栏 `#001529` | 未说明就改成营销式顶栏 |
|
|
47
|
+
|
|
48
|
+
### Image quality and copy
|
|
49
|
+
|
|
50
|
+
沿用官方 `design-qa` 规则。本主题不引入插画、logo 或营销文案;出现这类素材时按官方 rubric 记 finding,并同时记为偏离中后台定位。
|
|
51
|
+
|
|
52
|
+
## 判定
|
|
53
|
+
|
|
54
|
+
- 仍用官方 `#1677ff`、强制 `Inter` 或 8px 品牌圆角作为默认主题:P1。
|
|
55
|
+
- 只改局部组件、且 `prototype-evidence.yaml` 的 `theme_override` 已记录:按官方 severity 评估,不自动升 P1。
|
|
56
|
+
- 暗色模式:本轮未重派生完整暗色色板;暗色对照前若缺少新的 algorithm 派生证据,`final result: blocked`,写明 blocker。
|
|
57
|
+
|
|
58
|
+
## 报告要求
|
|
59
|
+
|
|
60
|
+
`design-qa.md` 必须写明:
|
|
61
|
+
|
|
62
|
+
- source visual truth path:`docs/design/design.md` 与对应 token 文件
|
|
63
|
+
- 已按本清单核对 Colors/tokens 与 Fonts/typography
|
|
64
|
+
- 与官方默认的差异是否被接受为项目覆盖
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
|
|
40
40
|
| Token | 值 | 用途 |
|
|
41
41
|
| --- | --- | --- |
|
|
42
|
-
| `colorPrimary` | `#
|
|
42
|
+
| `colorPrimary` | `#3371ff` | 主操作、链接、焦点、选中态 |
|
|
43
43
|
| `colorPrimaryHover` | `#4096ff` | 主色 hover |
|
|
44
44
|
| `colorPrimaryActive` | `#0958d9` | 主色 active |
|
|
45
45
|
| `colorSuccess` | `#52c41a` | 成功状态 |
|
|
46
46
|
| `colorWarning` | `#faad14` | 警告状态 |
|
|
47
|
-
| `colorError` | `#
|
|
48
|
-
| `colorInfo` | `#
|
|
49
|
-
| `colorBgLayout` | `#
|
|
47
|
+
| `colorError` | `#f5222d` | 错误状态 |
|
|
48
|
+
| `colorInfo` | `#3371ff` | 信息提示 |
|
|
49
|
+
| `colorBgLayout` | `#f0f2f5` | 页面背景 |
|
|
50
50
|
| `colorBgContainer` | `#ffffff` | 内容容器 |
|
|
51
51
|
| `colorBgElevated` | `#ffffff` | 浮层容器 |
|
|
52
|
-
| `colorText` |
|
|
53
|
-
| `colorTextSecondary` |
|
|
54
|
-
| `colorTextTertiary` | `#
|
|
55
|
-
| `colorTextQuaternary` | `#
|
|
56
|
-
| `colorBorder` | `#
|
|
57
|
-
| `colorBorderSecondary` | `#
|
|
52
|
+
| `colorText` | `rgba(0, 0, 0, 0.88)` | 主文本 |
|
|
53
|
+
| `colorTextSecondary` | `rgba(0, 0, 0, 0.65)` | 次级文本 |
|
|
54
|
+
| `colorTextTertiary` | `#8c8c8c` | 弱说明 |
|
|
55
|
+
| `colorTextQuaternary` | `#bfbfbf` | placeholder / disabled |
|
|
56
|
+
| `colorBorder` | `#d9d9d9` | 主边框 |
|
|
57
|
+
| `colorBorderSecondary` | `#f0f0f0` | 次级分割线 |
|
|
58
58
|
|
|
59
59
|
颜色规则:
|
|
60
60
|
|
|
@@ -63,7 +63,10 @@
|
|
|
63
63
|
- 预设色板只用于 Tag、图表、分类可视化,不用于重新定义主操作。
|
|
64
64
|
- 不硬编码白色、灰色、状态色;优先引用 token、CSS variables 或 Ant Design theme。
|
|
65
65
|
- semantic token 优先于色值:页面先声明背景、容器、浮层、文本、边框、状态等角色,再映射到具体 token。
|
|
66
|
+
- 运行时短名 `--primary-color`、`--text-color`、`--bg-color` 必须指向 `--brand-*`,不要再维护第二套色值。
|
|
67
|
+
- `blue` 等预设色板可以仍含官方 `#1677ff`;色板预设 ≠ 品牌主色。
|
|
66
68
|
- accessibility contrast 不足时,通过 `ConfigProvider` 的 seed token 或组件 token 调整;不要为单个页面制造不可复用的深浅色例外。
|
|
69
|
+
- Codex `$design-qa` 的 token / 字体对照读 `references/design-qa-theme.md`。
|
|
67
70
|
|
|
68
71
|
### 排版
|
|
69
72
|
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
|
|
82
85
|
- UI 默认正文 14px。
|
|
83
86
|
- UI 字重优先 400 / 600。
|
|
87
|
+
- 字体栈使用系统字体,不强制 `Inter`。
|
|
84
88
|
- 不用 700+ 粗体表达选中或激活状态。
|
|
85
89
|
- 选中状态优先使用颜色、边框、下划线、背景表达。
|
|
86
90
|
|
|
@@ -93,8 +97,12 @@
|
|
|
93
97
|
| 小控件高度 | 24px |
|
|
94
98
|
| 大控件高度 | 40px |
|
|
95
99
|
| 默认字号 | 14px |
|
|
96
|
-
|
|
|
97
|
-
|
|
|
100
|
+
| 字体栈 | 系统栈,不强制 `Inter` |
|
|
101
|
+
| 小控件圆角 | 4px |
|
|
102
|
+
| 默认控件圆角 | 6px |
|
|
103
|
+
| 大容器 / 浮层圆角 | 8px |
|
|
104
|
+
| 顶栏高度 | 64px |
|
|
105
|
+
| 深色侧栏 | `#001529` |
|
|
98
106
|
|
|
99
107
|
执行规则:
|
|
100
108
|
|
|
@@ -29,7 +29,7 @@ Matt 的 `grill-with-docs`、`to-spec`、`to-tickets`、`implement` 等保留为
|
|
|
29
29
|
| 入口分诊 | 身份、影响面、最近可信阶段 | `yss-product-lifecycle` | `yss-project.yaml` 合法且影响面可解释 |
|
|
30
30
|
| 机会调研/需求分析 | Discovery、用户/MVP/非目标/成功标准、测试 seam | `work-unit.discovery-opportunity` + `work-unit.discovery-requirements`;市场/竞品事实用 `competitive-intelligence`,技术/标准事实用 `research`;`grill-with-docs` 为兼容入口 | 未决事实已 research 或 handoff,用户确认,无 runnable blocker |
|
|
31
31
|
| Spec/功能架构 | Spec、产品总体设计、功能架构;必要时 Spec Delta | 原生 `work-unit.spec-synthesis`;`to-spec` 为兼容入口 | 初稿先为 `ready-for-human`;只有 Spec baseline 人工批准后资产才为 `approved` 并进入下游 |
|
|
32
|
-
| 原型设计 | 交互说明、低保真、状态矩阵、高保真 HTML、评审记录 | `yss-design-system` → `yss-prototype-stage` → Codex `product-design:index`(非 Codex
|
|
32
|
+
| 原型设计 | 交互说明、低保真、状态矩阵、高保真 HTML、评审记录 | `yss-design-system` → `yss-prototype-stage` → `yss-antd-design`(仅原型事实)→ Codex `product-design:index`(非 Codex 交付等价合同)。前端落地改用 `yss-ui` | `gate.prototype-reviewed`、`gate.prototype-verified`、`gate.user-confirmation` 均有证据 |
|
|
33
33
|
| 技术分析 | OpenAPI Draft/Freeze、数据架构、工程基线、架构审查 | `yss-openapi-governance` / `yss-openapi-draft-review`、`codebase-design`、`implementation-repo-onboarding`、`yss-router` | API/架构契约冻结;无 API 影响有明确记录;脚手架策略满足 |
|
|
34
34
|
| Ticket 正式化 | 功能父 Ticket、垂直切片、Slice Implementation Contract | 原生 `work-unit.ticket-decomposition`;`to-tickets` 为兼容入口;生命周期复算 | 依赖、验收、测试 seam 可执行;合同已批准、持久化且为当前版本 |
|
|
35
35
|
| 技术实现 | 前端/后端代码、TDD 证据、YSS Skill Execution Result | 原生 `work-unit.slice-implementation`;`implement` 为兼容入口;前端按 `yss-ui` + `yss-page-module-development`,后端按 `yss-router` 最小闭包,业务行为统一 `tdd` | 只写允许路径;业务行为用 `behavior-tdd`;UI 影响必须有还原计划 |
|
|
@@ -138,7 +138,7 @@ work_unit_routes:
|
|
|
138
138
|
human_gate: spec-baseline
|
|
139
139
|
work-unit.prototype-design:
|
|
140
140
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
141
|
-
skills: [yss-design-system, yss-prototype-stage, product-design:index]
|
|
141
|
+
skills: [yss-design-system, yss-prototype-stage, yss-antd-design, product-design:index]
|
|
142
142
|
human_gate: prototype-confirmation
|
|
143
143
|
work-unit.technical-analysis:
|
|
144
144
|
native: {source: yss-product-lifecycle, skill: yss-product-lifecycle, invocation_mode: model-invoked}
|
|
@@ -25,7 +25,9 @@ description: Use when a YSS feature has product-design impact on a primary flow,
|
|
|
25
25
|
|
|
26
26
|
优先级固定为:官方 `design.md` 的上游默认 → `docs/design/design.md` 与项目 token 的 `project_design` 项目覆盖 → 当前功能的语义组件映射。不得用上游默认覆盖项目 token。
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Codex `$design-qa` 仍走官方对比流程;Colors/tokens 与 Fonts/typography 必须以项目覆盖为 source visual truth。对照清单见 `yss-design-system/references/design-qa-theme.md`。仍用官方 `#1677ff`、强制 `Inter` 或历史 8px 品牌圆角当默认主题,视为项目覆盖漂移。
|
|
29
|
+
|
|
30
|
+
Ant Design v6 事实由 `yss-antd-design` 查询并回写证据,不要并列调用官方 `antd` skill,也不要在前端代码落地时继续使用它。进入实现后改走 `yss-ui`。
|
|
29
31
|
|
|
30
32
|
## 验证与回流
|
|
31
33
|
|
|
@@ -30,7 +30,7 @@ pnpm why vue @yss-ui/components @yss-ui/hooks ant-design-vue vxe-table
|
|
|
30
30
|
|
|
31
31
|
记录实际版本、lockfile、验证命令和环境阻塞。完整策略见 `references/antdv-compatibility.md`。
|
|
32
32
|
|
|
33
|
-
产品设计使用的 Ant Design v6 视觉/token 语义,不等于 Vue 生产实现 API。生产代码必须使用项目安装的 Ant Design Vue 4.x API,禁止复制 React hook、props
|
|
33
|
+
产品设计使用的 Ant Design v6 视觉/token 语义,不等于 Vue 生产实现 API。生产代码必须使用项目安装的 Ant Design Vue 4.x API,禁止复制 React hook、props 或组件写法。`yss-antd-design` 与 `@ant-design/cli` 只用于原型设计构建,进入本技能后不得再调用。
|
|
34
34
|
|
|
35
35
|
## 3. 组件选型门禁
|
|
36
36
|
|
package/template/AGENTS.md
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
| 技能清单、来源、版本、哈希和投影目标 | `skills-lock.json` |
|
|
25
25
|
| 技能分层、别名、默认可发现性和运行时入口 | `docs/agents/yss-skill-registry.yaml`(当前 `status: shadow`,不作为 Router / 生命周期运行时入口) |
|
|
26
26
|
|
|
27
|
-
README
|
|
27
|
+
README、用户指南、根目录 `CLAUDE.md` 和其他说明文档只引用或解释上述事实,不重复定义同一规则。`CLAUDE.md` 是 Claude Code 入口指针,不是第二套 Agent 规则。
|
|
28
28
|
|
|
29
29
|
## 3. 标准文档语言与规范语汇
|
|
30
30
|
|
|
@@ -67,6 +67,7 @@ README、用户指南和其他说明文档只引用或解释上述事实,不
|
|
|
67
67
|
- 无可复用工程时,先确认外部目标仓库或输出目录,再使用 `yss-ddd-scaffold-generator` / `yss-frontend-scaffold-generator`;当前仓库缺少 frontend / backend 目录不改变此路由。
|
|
68
68
|
- 脚手架只在 `scaffold_status=required` 且受控生成合同已持久化、获得生命周期批准后运行;它只产生机械骨架,业务行为回到 Router 并使用 `behavior-tdd`。
|
|
69
69
|
- 正式垂直切片必须消费已批准、已持久化且版本当前的 Slice Implementation Contract。Router 只生成草案,不批准合同、不设置 `ready-for-agent`、不宣布完成。合同 schema、Backend 子合同和证据字段以 `yss-router` references 为准。
|
|
70
|
+
- 前端测试、type-check 与构建优先使用 `pnpm`;后端校验、测试与编译优先使用项目根 `./mvnw`。不要默认 `npm` / `yarn` 或裸 `mvn`。既有仓库确实没有 pnpm 或 Maven Wrapper 时,必须记录受控例外和实际命令。登记字段见 `docs/process/implementation-repo-integration.md`。
|
|
70
71
|
- 路径越界、证据缺失、未执行验证、`drift`、`violation` 或 `new_impacts` 时停止实现并重新路由。
|
|
71
72
|
|
|
72
73
|
实现细则由已批准合同、YSS skills 和实现接入文档定义;`AGENTS.md` 只保留入口与边界。
|
|
@@ -77,11 +78,12 @@ README、用户指南和其他说明文档只引用或解释上述事实,不
|
|
|
77
78
|
|---|---|
|
|
78
79
|
| 技术事实、标准、第三方 API 或框架行为影响决策 | `research` 或等价的一手资料记录 |
|
|
79
80
|
| 竞品、市场或用户口碑事实 | `competitive-intelligence` |
|
|
80
|
-
| UI 设计、原型、组件或主题 | `yss-design-system` 后使用 `yss-prototype-stage`;Codex 再路由 `product-design:index`,其他 Agent
|
|
81
|
+
| UI 设计、原型、组件或主题 | `yss-design-system` 后使用 `yss-prototype-stage`;Codex 再路由 `product-design:index`,其他 Agent 交付等价合同资产;原型产出前后用 `yss-antd-design` 记录 Ant Design v6 事实与浏览器验证。前端代码落地改用 `yss-ui`,不要继续调用 `yss-antd-design` |
|
|
81
82
|
| Bug、测试失败或性能回退 | `diagnosing-bugs` 建立可复现反馈,再用 `tdd` |
|
|
82
83
|
| merge / rebase 冲突 | `resolving-merge-conflicts` |
|
|
83
84
|
| 架构治理、难测模块或深模块设计 | `improve-codebase-architecture` / `codebase-design` |
|
|
84
85
|
| 跨线程、跨仓库、上下文过长或原型结论回流 | `handoff` 或等价交接记录 |
|
|
86
|
+
| 本地知识库 init / refresh / rebuild,或要把研究结果落成持久 wiki | `llm-wiki`(落成持久 wiki 用 `ingest`;已映射 live 源变了用 `refresh`) |
|
|
85
87
|
|
|
86
88
|
业务行为默认按 `tdd` 使用已确认的公开 seam 逐切片实现。一次性生成、纯配置或流程文档不适用代码 TDD 时,必须记录例外理由和可执行验证方式。
|
|
87
89
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
Agent 入口、硬门禁与禁止事项以仓库根 `AGENTS.md` 为准。每个任务先读 `yss-project.yaml` 识别仓库身份,再读 `CONTEXT.md`。本文件不另定义流程规则。
|
|
4
|
+
|
|
5
|
+
## 前端 / 后端验证命令
|
|
6
|
+
|
|
7
|
+
进入 frontend 或 backend 的实现、测试或编译时:
|
|
8
|
+
|
|
9
|
+
- 前端优先使用 `pnpm` 做依赖、测试、type-check 与构建;不要默认 `npm` / `yarn`。
|
|
10
|
+
- 后端优先使用项目根 `./mvnw` 做 `validate` / `test` / `package`;不要默认裸 `mvn`。
|
|
11
|
+
- 既有仓库确实没有 pnpm 或 Maven Wrapper 时,记录受控例外和实际命令。
|
|
12
|
+
|
|
13
|
+
登记字段与跨仓约束见 `docs/process/implementation-repo-integration.md`。
|
package/template/CONTEXT.md
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
| YSS Skill Execution Result | YSS 专项 skill 完成工作单元后返回的结构化执行证据,记录合同版本、变更文件、证据文件、实际验证、延期 seam、偏离和新增影响。 | 实现者自报 `implemented` 不构成最终通过,必须由 Router、生命周期编排器和独立 Reviewer 复核。 |
|
|
35
35
|
| ADR | 架构决策记录,用于沉淀难以回滚、非显而易见且存在真实取舍的技术决策。 | 常规实现选择不要写 ADR。 |
|
|
36
36
|
| Fresh Verification | 完成前重新执行的验证证据,包括测试命令、契约校验、关键路径检查或人工审查结论。 | 不等同于“之前跑过”或实现者自述。 |
|
|
37
|
+
| 实现验证命令 | 前端测试 / 构建优先 `pnpm`,后端校验 / 测试 / 编译优先 `./mvnw`。 | 不要默认 `npm`、`yarn` 或裸 `mvn`;仓库确实缺少 pnpm 或 Maven Wrapper 时记受控例外。 |
|
|
37
38
|
| 测试质量基线 | 项目实例明确采纳的覆盖率阈值、关键流程清单和受控例外。 | 模板推荐值本身不构成可执行门禁;未定义关键流程时,不得声称其 E2E 覆盖率达到 100%。 |
|
|
38
39
|
| 主阶段 | 对相邻研发目标、工作单元和退出条件的粗粒度生命周期分组。 | 不等同于门禁编号,也不因增加门禁而自动增加主阶段。 |
|
|
39
40
|
| 生命周期门禁(条件强制门禁) | 只有当影响面命中触发条件时才必须裁决的生命周期审查点。 | 未触发时记录 `not-applicable` 及原因,不生成空文档;门禁不是产物、工作单元或证据的统称。 |
|
|
@@ -57,6 +58,7 @@
|
|
|
57
58
|
| 显式兼容入口 | 为已有用户操作习惯保留的 user-invoked 工作流入口,写入前由生命周期编排器预检,结果回交其验收。 | 不是默认路径、过时别名或可以越过门禁的第二套生命周期。 |
|
|
58
59
|
| 技能成熟度 | 描述技能从 `draft`、`verified`、`supported` 到 `deprecated` 的治理状态。 | 不等同于文件存在、已被投影或能够安装。 |
|
|
59
60
|
| 技能注册表 | 记录技能身份、别名、分层、适用影响面、成熟度、默认可发现性和 Agent 运行时入口的机器可读路由资产。 | 不替代 `skills-lock.json` 的来源、hash 和投影完整性职责。当前 `docs/agents/yss-skill-registry.yaml` 为 `shadow`,Router 与生命周期不得按其裁剪发现面。 |
|
|
61
|
+
| LLM Wiki | 由 `raw/`、`wiki/` 与 `.wiki-manifest.json` 组成的本地持久知识库。 | 不是 `research` 一次性笔记,也不替代权威源。`ingest` 只把用户点名的外源或已落盘研究笔记编进 IR,不改 live 权威文件。 |
|
|
60
62
|
| 生态发布清单 | 关联模板 schema 与 commit、CLI 版本与快照、公开技能来源与导出 hash 的跨仓发布证据。 | 不要求尚未生成的仓库 commit 互相循环引用。 |
|
|
61
63
|
| 研发管理仓库 | 承载 Spec、OpenAPI、架构、Ticket、验证、发布和复盘等研发管理资产的仓库。 | 不等同于前端 / 后端代码 monorepo。 |
|
|
62
64
|
| 实现仓库 | 承载前端、后端或其他运行时代码及其 Git、CI、MR / PR、测试命令和发布流水线的仓库。 | 不要把实现仓库的源码所有权混入研发管理仓库。 |
|
|
@@ -121,6 +121,12 @@ skills:
|
|
|
121
121
|
instance_default_discoverable: true
|
|
122
122
|
aliases: []
|
|
123
123
|
impacts: [quality]
|
|
124
|
+
- id: llm-wiki
|
|
125
|
+
layer: core
|
|
126
|
+
maturity: verified
|
|
127
|
+
instance_default_discoverable: true
|
|
128
|
+
aliases: []
|
|
129
|
+
impacts: [quality]
|
|
124
130
|
- id: lombok
|
|
125
131
|
layer: specialist
|
|
126
132
|
maturity: supported
|
|
@@ -277,6 +283,12 @@ skills:
|
|
|
277
283
|
instance_default_discoverable: false
|
|
278
284
|
aliases: []
|
|
279
285
|
impacts: [writing]
|
|
286
|
+
- id: yss-antd-design
|
|
287
|
+
layer: specialist
|
|
288
|
+
maturity: supported
|
|
289
|
+
instance_default_discoverable: false
|
|
290
|
+
aliases: []
|
|
291
|
+
impacts: [prototype]
|
|
280
292
|
- id: yss-api-integration
|
|
281
293
|
layer: specialist
|
|
282
294
|
maturity: supported
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
设计系统基线:
|
|
6
6
|
|
|
7
|
-
- `docs/design/design.md
|
|
8
|
-
- `docs/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads
|
|
7
|
+
- `docs/design/design.md`:项目设计系统说明。默认亮色覆盖来自项目 Ant Design 5 `:root` / Less 裁定(主色 `#3371ff`、系统字体、6px 圆角),不再只沿用历史 `Product-Design-System` 包;官方 `design.md` 是上游默认,项目 token 是项目覆盖,优先级以该文件为准。
|
|
8
|
+
- `docs/design/tokens/`:随仓库保存的主题、亮色 / 暗色 / 紧凑 token 和 CSS 变量快照,后续实现不得依赖本机 Downloads 目录或原始 Less。
|
|
9
9
|
|
|
10
10
|
产品原型产出默认以 `product-design:index` 为主入口。该 skill 只负责路由,实际按 Product Design plugin 规则进入 `$get-context`、`$ideate`、`$prototype`、`$image-to-code`、`$url-to-code`、`$share` 或 `$design-qa` 等 focused skill;YSS 生命周期仍负责校验低保真评审、高保真 HTML 原型、AntD CLI 校验证据、用户确认和 Spec / OpenAPI 回填。
|
|
11
11
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
- 表单、表格、弹窗、抽屉、步骤流等交互说明。
|
|
21
21
|
- loading、empty、error、readonly、disabled、no-permission、conflict 等状态矩阵。
|
|
22
22
|
- 页面字段、筛选条件、操作按钮和权限规则。
|
|
23
|
-
- 低保真原型评审通过后的 Ant Design v6 高保真可交互 HTML 原型,默认路径为 `docs/.scratch/<feature>/design/prototypes/index.html`;该产物可由系统 / Agent 自动生成,不要求用户手工提供,产出前必须使用 `antd`
|
|
23
|
+
- 低保真原型评审通过后的 Ant Design v6 高保真可交互 HTML 原型,默认路径为 `docs/.scratch/<feature>/design/prototypes/index.html`;该产物可由系统 / Agent 自动生成,不要求用户手工提供,产出前必须使用 `yss-antd-design` 查询设计语言、组件 API、demo、token 和 semantic 信息,产出后必须记录 AntD v6 校验证据并获得用户确认。前端代码落地改用 `yss-ui`。
|
|
24
24
|
|
|
25
25
|
这些资产用于反推 API 影响、契约草案、OpenAPI 请求 / 响应字段、错误结构、分页筛选、权限状态和前端验收标准。
|
|
26
26
|
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
|
|
36
36
|
推荐技能:
|
|
37
37
|
|
|
38
|
-
- `yss-design-system`:项目设计系统与 Ant Design 企业级 UI 风格基线;页面设计、原型评审、UI 实现和主题 token 落地时默认先引用。
|
|
38
|
+
- `yss-design-system`:项目设计系统与 Ant Design 企业级 UI 风格基线;页面设计、原型评审、UI 实现和主题 token 落地时默认先引用。Codex `$design-qa` 的 token / 字体对照读该技能的 `references/design-qa-theme.md`,以项目覆盖为准,不改上游 `design-qa` 插件。
|
|
39
39
|
- `yss-prototype-stage`:跨 Agent 的原型阶段合同,固定资产、证据、设计优先级与生命周期回流;Codex 的主路由为 `product-design:index`。
|
|
40
40
|
- `product-design:index`:Codex 产品原型产出的主路由;根据输入是否有 URL、截图、Figma、代码目标或视觉方向,进入 `$get-context`、`$ideate`、`$prototype`、`$image-to-code`、`$url-to-code`、`$share` 或 `$design-qa` 等 focused skill。
|
|
41
41
|
- Product Design focused skills:基于 Spec 初稿和产品总体设计 / 功能架构,产出低保真 / 高保真页面、原型、交互设计资产和可分享原型;高保真 HTML 原型默认由该路由链路产出。
|
|
42
|
-
- `antd
|
|
42
|
+
- `yss-antd-design`:仅用于原型设计构建的 Ant Design v6 事实技能;生成或修改高保真 HTML 原型前后必须留下 CLI 校验证据。前端代码落地改用 `yss-ui`。
|
|
43
43
|
- `prototype-review`:原型阶段评审门禁;未通过则不要进入 Spec 校准 / API 影响分析 / 契约草案。
|
|
44
44
|
- 兼容入口:`product-design-prototype`、`high-fidelity-html-prototype` 仅作为历史兼容或产物门禁名称保留;新的产品原型产出默认使用 `product-design:index`,已退休技能不再提供兼容路由。
|
|
45
45
|
|
|
@@ -2,20 +2,35 @@
|
|
|
2
2
|
|
|
3
3
|
## 来源与定位
|
|
4
4
|
|
|
5
|
-
本文件基于本地设计系统包 `/Users/zhudaoming/Downloads/Product-Design-System`
|
|
5
|
+
本文件基于本地设计系统包 `/Users/zhudaoming/Downloads/Product-Design-System` 首次分析整理,并在后续用项目 Ant Design 5 Less / `:root` CSS 变量覆盖默认亮色主题。自本文件落地后,项目内设计系统的权威来源为 `docs/design/design.md` 与 `docs/design/tokens/*`,外部 Downloads 目录和原始 Less 文件仅作为历史输入记录,不作为后续执行依赖,也不作为实现语言。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
关键来源:
|
|
8
8
|
|
|
9
|
-
|
|
|
9
|
+
| 来源 | 作用 | 采用结论 |
|
|
10
10
|
| --- | --- | --- |
|
|
11
|
-
| `
|
|
11
|
+
| 历史 `Product-Design-System` 包 | 首次引入 Ant Design 企业级语义、状态矩阵和验收习惯 | 保留原则、组件规则和审查清单 |
|
|
12
|
+
| 项目 Ant Design 5 Less / `:root` 变量 | 默认亮色主题、运行时切换别名、色板与布局 token | **默认主题权威**;冲突时以 `:root` 为准 |
|
|
12
13
|
| `docs/design/tokens/tokens.default.json` | 默认亮色主题派生 token | 作为实现 token 基线 |
|
|
13
|
-
| `docs/design/tokens/tokens.dark.json` | 暗色主题派生 token |
|
|
14
|
-
| `docs/design/tokens/tokens.compact.json` | 紧凑密度主题派生 token |
|
|
15
|
-
| `docs/design/tokens/variables.css` | `--brand-*`
|
|
14
|
+
| `docs/design/tokens/tokens.dark.json` | 暗色主题派生 token | 暗色仍走 `darkAlgorithm`;本轮未按新 seed 重派生完整暗色色板 |
|
|
15
|
+
| `docs/design/tokens/tokens.compact.json` | 紧凑密度主题派生 token | 共享亮色 seed,紧凑高度算法保持现状 |
|
|
16
|
+
| `docs/design/tokens/variables.css` | `--brand-*` 与运行时别名 | 前端实现时优先转换为项目 token |
|
|
16
17
|
| `docs/design/tokens/theme.json` | Ant Design `ConfigProvider` theme 配置 | React + Ant Design 项目可直接参考 |
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
同份 Less 输入存在两套互相覆盖的默认值。项目裁定如下,并已写入 token 快照:
|
|
20
|
+
|
|
21
|
+
| 项 | 采用 | 丢弃 |
|
|
22
|
+
| --- | --- | --- |
|
|
23
|
+
| 主色 | `#3371ff`(`--primary-color`) | `#3177ff` fallback、历史 `#1677ff` |
|
|
24
|
+
| 信息色 | `#3371ff` | 历史 `#1677ff` |
|
|
25
|
+
| 错误色 | `#f5222d` | 历史 `#ff4d4f` |
|
|
26
|
+
| 页面背景 | `#f0f2f5` | 历史 `#f5f5f5` |
|
|
27
|
+
| 主文本 / 次文本 | `rgba(0, 0, 0, 0.88)` / `rgba(0, 0, 0, 0.65)` | `#2e2e2e` / `#646464` |
|
|
28
|
+
| 边框 / 分割线 | `#d9d9d9` / `#f0f0f0` | `#dbdbdb` / `#f1f1f1` |
|
|
29
|
+
| 默认圆角 | `6px` | Less 前半 `4px`、历史品牌 `8px` |
|
|
30
|
+
| 字体栈 | 系统栈 | 强制 `Inter` |
|
|
31
|
+
| hover / active | `#4096ff` / `#0958d9`(`:root` 显式值) | 由新主色算法重算 |
|
|
32
|
+
|
|
33
|
+
`.m-1` / `.flex-*` 等 utility class、`::-webkit-scrollbar` 定制和原始 `.less` 文件不纳入规范正文,只可作为可选实现备注。
|
|
19
34
|
|
|
20
35
|
结论:这不是营销型视觉系统,而是面向中后台、数据密集、表单密集、流程密集产品的 Ant Design 风格企业级设计系统。项目内 UI 默认应以“清晰、确定、低装饰、可扫描、高一致性”为目标。
|
|
21
36
|
|
|
@@ -23,6 +38,10 @@
|
|
|
23
38
|
|
|
24
39
|
原型使用 Ant Design 时,`https://ant.design/design.md` 与官方 `antd` CLI 提供的是**上游默认**和组件事实;项目的 `docs/design/design.md`、`docs/design/tokens/*` 是经过确认的**项目覆盖**。当前功能只能在这两层之下完成语义组件映射。若上游默认与项目 token 不同,以项目覆盖为准,并在 `prototype-evidence.yaml` 中记录差异;不得把上游默认直接写回项目实现。
|
|
25
40
|
|
|
41
|
+
当前项目覆盖与官方默认的主要差异:主色 `#3371ff` ≠ 官方 `#1677ff`,错误色 `#f5222d` ≠ 官方 `#ff4d4f`,页面背景 `#f0f2f5`,文本使用 Ant Design 透明度阶,默认圆角 `6px`。`blue` 等预设色板仍可保留官方蓝谱;**色板预设 ≠ 品牌主色**。
|
|
42
|
+
|
|
43
|
+
Codex `$design-qa` 的 Colors/tokens 与 Fonts/typography 对照必须以本文件和 `docs/design/tokens/*` 为 source visual truth,而不是官方默认或历史 `#1677ff` / `Inter` / `8px` 品牌圆角。执行清单见 `.agents/skills/yss-design-system/references/design-qa-theme.md`。
|
|
44
|
+
|
|
26
45
|
## 设计原则
|
|
27
46
|
|
|
28
47
|
本项目采用该设计系统时,优先遵循四个原则:
|
|
@@ -40,29 +59,54 @@
|
|
|
40
59
|
|
|
41
60
|
| Token | 值 | 用途 |
|
|
42
61
|
| --- | --- | --- |
|
|
43
|
-
| `colorPrimary` | `#
|
|
62
|
+
| `colorPrimary` | `#3371ff` | 主按钮、链接、焦点、选中态、激活导航 |
|
|
44
63
|
| `colorPrimaryHover` | `#4096ff` | 主色 hover |
|
|
45
64
|
| `colorPrimaryActive` | `#0958d9` | 主色 active |
|
|
46
65
|
| `colorSuccess` | `#52c41a` | 成功状态 |
|
|
47
66
|
| `colorWarning` | `#faad14` | 警告状态 |
|
|
48
|
-
| `colorError` | `#
|
|
49
|
-
| `colorInfo` | `#
|
|
50
|
-
| `colorBgLayout` | `#
|
|
67
|
+
| `colorError` | `#f5222d` | 错误状态 |
|
|
68
|
+
| `colorInfo` | `#3371ff` | 信息提示 |
|
|
69
|
+
| `colorBgLayout` | `#f0f2f5` | 页面背景 |
|
|
51
70
|
| `colorBgContainer` | `#ffffff` | 卡片、表格、表单、面板容器 |
|
|
52
71
|
| `colorBgElevated` | `#ffffff` | 弹窗、下拉、浮层 |
|
|
53
|
-
| `colorText` |
|
|
54
|
-
| `colorTextSecondary` |
|
|
55
|
-
| `colorTextTertiary` | `#
|
|
56
|
-
| `colorTextQuaternary` | `#
|
|
57
|
-
| `colorBorder` | `#
|
|
58
|
-
| `colorBorderSecondary` | `#
|
|
72
|
+
| `colorText` | `rgba(0, 0, 0, 0.88)` | 主文本 |
|
|
73
|
+
| `colorTextSecondary` | `rgba(0, 0, 0, 0.65)` | 次级文本 |
|
|
74
|
+
| `colorTextTertiary` | `#8c8c8c` | 说明 / 弱提示 |
|
|
75
|
+
| `colorTextQuaternary` | `#bfbfbf` | placeholder / disabled |
|
|
76
|
+
| `colorBorder` | `#d9d9d9` | 主边框 |
|
|
77
|
+
| `colorBorderSecondary` | `#f0f0f0` | 次级分割线 |
|
|
59
78
|
|
|
60
79
|
颜色使用规则:
|
|
61
80
|
|
|
62
81
|
- 主色只表达全局主操作、链接、选中态和焦点态,不作为大面积背景装饰。
|
|
63
82
|
- `success`、`warning`、`error`、`info` 只用于功能状态,不与品牌强调混用。
|
|
64
|
-
- 预设色板如 `blue`、`purple`、`cyan`、`green`、`magenta`、`red`、`orange`、`yellow`、`volcano`、`geekblue`、`gold`、`lime` 主要用于 Tag
|
|
83
|
+
- 预设色板如 `blue`、`purple`、`cyan`、`green`、`magenta`、`red`、`orange`、`yellow`、`volcano`、`geekblue`、`gold`、`lime` 主要用于 Tag、图表和分类可视化;其中 `blue-6` 仍可能是官方 `#1677ff`,不得当作品牌主色。
|
|
65
84
|
- 产品代码中不要硬编码 `#ffffff`、`#fafafa` 等表面色,应引用语义 token。
|
|
85
|
+
- 主色浅阶 `primary-1` 使用 `color-mix(in srgb, var(--primary-color) 10%, transparent)`,不要对 CSS 变量调用 Less `fade()`。
|
|
86
|
+
|
|
87
|
+
### 运行时主题变量
|
|
88
|
+
|
|
89
|
+
默认亮色支持运行时切换。`:root` 中的短名别名必须指向 `--brand-*`,不要再维护第二套色值。
|
|
90
|
+
|
|
91
|
+
| 运行时别名 | 指向 | 默认值 |
|
|
92
|
+
| --- | --- | --- |
|
|
93
|
+
| `--primary-color` | `--brand-color-primary` | `#3371ff` |
|
|
94
|
+
| `--primary-color-hover` | `--brand-color-primary-hover` | `#4096ff` |
|
|
95
|
+
| `--primary-color-active` | `--brand-color-primary-active` | `#0958d9` |
|
|
96
|
+
| `--primary-1` | `color-mix(in srgb, var(--primary-color) 10%, transparent)` | 主色 10% 透明 |
|
|
97
|
+
| `--primary-7` | `--primary-color-active` | `#0958d9` |
|
|
98
|
+
| `--success-color` | `--brand-color-success` | `#52c41a` |
|
|
99
|
+
| `--warning-color` | `--brand-color-warning` | `#faad14` |
|
|
100
|
+
| `--error-color` | `--brand-color-error` | `#f5222d` |
|
|
101
|
+
| `--info-color` | `--brand-color-info` | `#3371ff` |
|
|
102
|
+
| `--text-color` | `--brand-color-text` | `rgba(0, 0, 0, 0.88)` |
|
|
103
|
+
| `--text-color-secondary` | `--brand-color-text-secondary` | `rgba(0, 0, 0, 0.65)` |
|
|
104
|
+
| `--border-color` | `--brand-color-border` | `#d9d9d9` |
|
|
105
|
+
| `--border-color-split` | `--brand-color-border-secondary` | `#f0f0f0` |
|
|
106
|
+
| `--bg-color` | `--brand-color-bg-layout` | `#f0f2f5` |
|
|
107
|
+
| `--bg-color-container` | `--brand-color-bg-container` | `#ffffff` |
|
|
108
|
+
|
|
109
|
+
切换主题时只改 `--brand-*` 或同步改短名别名;不要在页面里另写一套 Less 变量。
|
|
66
110
|
|
|
67
111
|
### 排版
|
|
68
112
|
|
|
@@ -80,7 +124,7 @@
|
|
|
80
124
|
字体栈:
|
|
81
125
|
|
|
82
126
|
```text
|
|
83
|
-
|
|
127
|
+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
|
|
84
128
|
```
|
|
85
129
|
|
|
86
130
|
排版规则:
|
|
@@ -88,6 +132,7 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
88
132
|
- 中后台产品默认正文使用 14px,以保证信息密度和可扫描性。
|
|
89
133
|
- UI 字重优先使用 400 和 600,不使用 700+ 的重粗字作为状态强调。
|
|
90
134
|
- 选中 / 激活状态优先通过颜色、边框、下划线和背景表达,不通过突然加粗制造跳动。
|
|
135
|
+
- 不把 `Inter` 或其他品牌字体写成强制默认栈;项目若要引入品牌字体,必须先更新本文件和 token 快照。
|
|
91
136
|
|
|
92
137
|
### 间距与尺寸
|
|
93
138
|
|
|
@@ -111,16 +156,32 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
111
156
|
- 表单、筛选区、工具栏、表格和详情页应优先使用密集但有节奏的布局。
|
|
112
157
|
- 不使用任意 magic number;如确需新增尺寸,应先判断是否要扩展 token。
|
|
113
158
|
|
|
159
|
+
### 布局 token
|
|
160
|
+
|
|
161
|
+
| Token | 值 | 用途 |
|
|
162
|
+
| --- | --- | --- |
|
|
163
|
+
| `layoutHeaderHeight` | `64px` | 顶栏高度 |
|
|
164
|
+
| `layoutSiderBackground` | `#001529` | 深色侧栏背景 |
|
|
165
|
+
| `layoutBodyBackground` | `#f0f2f5` | 与 `colorBgLayout` 对齐的页面背景 |
|
|
166
|
+
| `screenXS` | `480px` | 布局断点 |
|
|
167
|
+
| `screenSM` | `576px` | 布局断点 |
|
|
168
|
+
| `screenMD` | `768px` | 布局断点 |
|
|
169
|
+
| `screenLG` | `992px` | 布局断点 |
|
|
170
|
+
| `screenXL` | `1200px` | 布局断点 |
|
|
171
|
+
| `screenXXL` | `1600px` | 布局断点 |
|
|
172
|
+
|
|
173
|
+
这些断点用于栅格、隐藏工具类和布局折叠,不替换下方截图验收视口矩阵。
|
|
174
|
+
|
|
114
175
|
### 圆角
|
|
115
176
|
|
|
116
177
|
| Token | 值 | 用途 |
|
|
117
178
|
| --- | --- | --- |
|
|
118
|
-
| `borderRadiusXS` |
|
|
119
|
-
| `borderRadiusSM` |
|
|
120
|
-
| `borderRadius` |
|
|
121
|
-
| `borderRadiusLG` |
|
|
179
|
+
| `borderRadiusXS` | 2 | 极小元素 |
|
|
180
|
+
| `borderRadiusSM` | 4 | 小标签、小控件 |
|
|
181
|
+
| `borderRadius` | 6 | 默认控件圆角 |
|
|
182
|
+
| `borderRadiusLG` | 8 | 大容器 / 浮层 |
|
|
122
183
|
|
|
123
|
-
|
|
184
|
+
保持“控件圆角小于或等于容器圆角”:默认控件 `6px`,小控件 `4px`,容器 `8px`。实现时以 `docs/design/tokens/tokens.default.json` 为准。
|
|
124
185
|
|
|
125
186
|
### 动效
|
|
126
187
|
|
|
@@ -181,6 +242,8 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
181
242
|
| desktop | 1440 × 900 |
|
|
182
243
|
| wide desktop | 1920 × 1080 |
|
|
183
244
|
|
|
245
|
+
布局 CSS 断点补充:`480 / 576 / 768 / 992 / 1200 / 1600`。它们用于栅格和显示/隐藏,不替代上表截图验收尺寸。
|
|
246
|
+
|
|
184
247
|
验收规则:
|
|
185
248
|
|
|
186
249
|
- 不允许出现横向滚动,除非是明确设计的表格横向滚动容器。
|
|
@@ -195,7 +258,7 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
195
258
|
- 使用 `ConfigProvider` 注入 `docs/design/tokens/theme.json` 中的 theme 配置。
|
|
196
259
|
- 组件样式优先通过 Ant Design token、component token、CSS variables 或主题算法表达。
|
|
197
260
|
- 消息、通知、Modal 静态方法应使用 `App`、hook API 或 context holder,避免主题上下文丢失。
|
|
198
|
-
- 暗色模式使用 `darkAlgorithm` 或 `docs/design/tokens/variables.dark.css
|
|
261
|
+
- 暗色模式使用 `darkAlgorithm` 或 `docs/design/tokens/variables.dark.css`,不要手工反转颜色。本轮只同步了暗色的字体栈和圆角 seed;完整暗色色板仍是历史算法结果,启用暗色前应再派生一次。
|
|
199
262
|
- 紧凑模式使用 `compactAlgorithm` 或 `docs/design/tokens/tokens.compact.json`,不要逐组件压缩高度。
|
|
200
263
|
|
|
201
264
|
如果前端不是 Ant Design:
|
|
@@ -203,6 +266,7 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
203
266
|
- 先把 `docs/design/tokens/tokens.default.json` 转为项目设计 token,再映射到目标 UI 库。
|
|
204
267
|
- 保留组件语义和状态语义,不要只复制颜色。
|
|
205
268
|
- 尽量保持 32px 默认控件高度、14px 默认字号、4px 间距网格和三层表面模型。
|
|
269
|
+
- 运行时动态换肤使用 `--primary-color` 等短名别名,或直接改 `--brand-*`。
|
|
206
270
|
|
|
207
271
|
## 设计审查清单
|
|
208
272
|
|
|
@@ -215,12 +279,13 @@ Inter, system-ui, -apple-system, Segoe UI, Helvetica Neue, Arial, sans-serif
|
|
|
215
279
|
- 主操作是否唯一且清楚,次级操作是否降级。
|
|
216
280
|
- 是否存在硬编码颜色、任意间距、重复自造控件或与系统冲突的交互。
|
|
217
281
|
- 是否覆盖关键响应式断点。
|
|
282
|
+
- Codex `$design-qa` 是否按项目覆盖对照主色、错误色、背景、文本、圆角和字体栈。
|
|
218
283
|
|
|
219
284
|
## 后续落地 TODO
|
|
220
285
|
|
|
221
286
|
- 将 `docs/design/tokens/theme.json` 接入前端工程主题配置。
|
|
222
|
-
- 将 `docs/design/tokens/variables.css` 中的 `--brand-*`
|
|
223
|
-
-
|
|
287
|
+
- 将 `docs/design/tokens/variables.css` 中的 `--brand-*` 与运行时别名纳入项目 token 管理。
|
|
288
|
+
- 如果项目启用暗色模式,用 `darkAlgorithm` 按新 seed 重派生 `docs/design/tokens/tokens.dark.json`,并补充截图验收。
|
|
224
289
|
- 如果项目存在高密度表格 / 审批 / 运营台,补充 `docs/design/tokens/tokens.compact.json` 的适用边界。
|
|
225
290
|
|
|
226
291
|
## Ant Design v6 原型补充基线
|
|
@@ -9,7 +9,16 @@ design_baseline:
|
|
|
9
9
|
upstream_design_md_source: https://ant.design/design.md
|
|
10
10
|
upstream_design_md_record_ref: <path-to-json-output-or-summary>
|
|
11
11
|
project_override_reviewed: false
|
|
12
|
+
theme_override:
|
|
13
|
+
color_primary: "#3371ff"
|
|
14
|
+
color_error: "#f5222d"
|
|
15
|
+
color_bg_layout: "#f0f2f5"
|
|
16
|
+
border_radius: 6
|
|
17
|
+
font_family: system-stack
|
|
18
|
+
recorded: false
|
|
19
|
+
note: 与官方 #1677ff / Inter / 8px 的差异必须记录;无差异则 recorded=false 并说明沿用项目默认。
|
|
12
20
|
antd:
|
|
21
|
+
fact_skill: yss-antd-design
|
|
13
22
|
cli_command: antd
|
|
14
23
|
cli_version: <actual-cli-version>
|
|
15
24
|
target_antd_version: <project-selected-v6-version>
|
|
@@ -21,7 +30,9 @@ antd:
|
|
|
21
30
|
demo_ref: <path-to-json-output>
|
|
22
31
|
token_ref: <path-to-json-output>
|
|
23
32
|
semantic_ref: <path-to-json-output>
|
|
24
|
-
|
|
33
|
+
lint_applicable: not-applicable
|
|
34
|
+
lint_reason: html-prototype
|
|
35
|
+
lint_ref: <path-to-json-output-or-none>
|
|
25
36
|
lint_passed: false
|
|
26
37
|
browser_verification:
|
|
27
38
|
executor: <browser-or-automation-name>
|