用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/aotter/mantle --skill theme命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | theme |
| description | Apply brand and visual direction in a generated Mantle project using its repo-owned theme and UI contracts. |
| metadata | {"source":"@aotter/mantle","sourcePath":"skills/theme/SKILL.md","applies_to":"mantle grammar v0.1","projection":"project, plugin"} |
Theme work is project-owned source editing. Starters may ship UI files, tokens, or recipes, but the skill contract is Core-owned.
.mantle/handoff.md and .mantle/recipes/ if present.styles/, components/, src/web/, src/theme*, and UI-library config
if present.manifests/site.yaml to understand which content shape drives the public UI.styles/globals.css is the token contract. Start a whole-site reskin with
its :root and .dark values; runtime components inherit those variables.components/ is the runtime-facing component surface when present.
src/web/ is project-owned composition; put new sections there.public/site-icon.svg and public/site-icon.png are one site identity.
Keep both listed in src/mantle/config.ts > siteDefaults.icons: PNG first as
the 64x64 compatibility rendition, then SVG as the editable any size source.
The same list drives browser favicons, Admin chrome, and MCP
serverInfo.icons; do not edit generated files under public/_mantle/.src/web/sections/; do not import the palette from
Worker or runtime code.image: { src, alt }; use
showImage: false for text-only hero/content blocks. Put non-image media in
a project-owned section.--foreground-muted and --primary, not only --foreground; keep normal
text at 4.5:1 or better.pnpm validate
pnpm typecheck
pnpm dev
If utility classes changed, rebuild styles/generated.css with the project's
build:styles, check, or dev script. Remove routes/imports for replaced
assets or styles, then visually verify light/dark contrast and responsive
behavior before calling the work done.