首页 / 全部技能 / 文档与知识 / theme-factory
文档与知识 · anthropics/skills

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

L2 本地 · 限定工作目录V1 已固定读写文件Dual-pass Audit
Author anthropicsGitHub anthropics/skills ↗Stars 175386License Apache-2.0(自带 LICENSE.txt;Copyright 2026 Anthropic, PBC.)Commit 41bbe19d1a
管控等级描述 skill 的能力与建议配套的管控措施,不代表质量或安全认证,也不表示可用或不可用。是否使用由用户和管理者决定。不同 agent 宿主对权限的约束各不相同,请勿假定宿主一定会提供安全兜底。第三方 skill 版权归原作者,使用风险由使用者自行承担。

1实现原理 · 为什么它能做到

机制是『先看后选再应用』的人工确认流:先展示 theme-showcase.pdf 让用户看全部 10 套主题的视觉效果,等用户明确选择后才动手。

skills/theme-factory/SKILL.md
1. **Show the theme showcase**: Display the `theme-showcase.pdf` file to allow users to see all available themes visually. Do not make any modifications to it; simply show the file for viewing.
第 2、3 步是 'Ask which theme to apply to the deck' 与 'Get explicit confirmation about the chosen theme'——设计上把『用户确认』放在应用之前,避免模型自作主张换风格。

主题本体=themes/ 目录下的纯数据 md:每主题一个文件,内容是色板 hex + 标题/正文字体配对 + 适用场景说明,没有任何代码/脚本。

skills/theme-factory/SKILL.md
Each theme is defined in the `themes/` directory with complete specifications including:
实例(arctic-frost.md):'**Ice Blue**: `#d4e4f7` - Light backgrounds and highlights'… '**Headers**: DejaVu Sans Bold' / '**Best Used For**: Healthcare presentations…'。应用=模型把这些色值/字体手动套到目标工件上(对 PPTX/HTML 等可按样式指定者有效)。

兜底能力是『按需现造主题』:10 套都不合适时,依据用户给的任意描述生成一套风格相近的新主题并先展示评审再应用。

skills/theme-factory/SKILL.md
To handle cases where none of the existing themes work for an artifact, create a custom theme.
后续步骤:'Give the theme a similar name describing what the font/color combinations represent. Use any basic description provided to choose appropriate colors/fonts. After generating the theme, show it for review and verification.'

应用动作是纯样式指令:读主题文件→把颜色与字体一致地套到 deck 各处→保证对比度与可读性→维持视觉同一性。

skills/theme-factory/SKILL.md
1. Read the corresponding theme file from the `themes/` directory 2. Apply the specified colors and fonts consistently throughout the deck
SKILL 不携带任何执行代码——它假设目标工件由其它生成流程产出,此处只负责『配色/字体规范』这一层。

2核心能力

0110 套预置专业主题(色板 hex + 字体配对 + 视觉身份 + 适用语境),跨 slides/docs/reportings/HTML 工件
02theme-showcase.pdf 可视化选型(改动前先看效果)
03主题细节数据化:每主题含色板/字体配对/最佳用途说明
04按任意输入现场生成自定义主题并评审后再应用
05应用纪律:一致套用 + 对比度/可读性检查 + 跨页维持视觉身份

4管控建议与判定依据

建议配套管控措施
面向 Agent
限定工作目录
面向管理者
保留操作记录
判定依据(文件路径与关键语句摘要)
  • 本地文件: 操作本地工程文件或工作目录工件
审计说明: 。按统一准则(只读本地自带文件、无外发):行为=读取自身 themes/ md 与 showcase.pdf 并向用户展示、随后以样式指令应用配色字体——本地读取、零脚本、零网络、零凭证、零写入。无破坏性操作,可合规使用;唯一留意点是『自定义主题』环节的模型审美判断与通用对话注入面。

5第二遍独立确认

  • [ok] 10 主题声明 vs 目录文件 — SKILL.md 列出的 10 个主题名与 themes/ 下 10 个 md 文件名一一对应,无缺失无多余。
  • [ok] showcase.pdf 存在 — theme-showcase.pdf 在 skill 根目录(二进制 PDF,~数 KB 级数据资产),SKILL 指示只展示不改。
  • [ok] 主题文件结构 — arctic-frost.md 含 Color Palette(hex)/Typography(DejaVu Sans Bold + DejaVu Sans)/Best Used For 三节,与 SKILL.md 'complete specifications' 描述一致。
  • [ok] 零脚本零网络零凭证 — 目录无代码文件;token 扫描零命中。
  • [ok] 自定义主题能力 — 'Create your Own Theme' 节原文存在:'create a custom theme…After generating the theme, show it for review'——无夸大。
  • [ok] 应用方式边界 — 应用=模型手动套样式(无代码);对 'slides, docs, reportings, HTML landing pages' 中可编程指定样式的工件成立,二进制/图片类工件不适用——属能力边界而非夸大。
  • [ok] 元数据 — 本地 HEAD==pin 41bbe19;Apache-2.0 LICENSE.txt(Copyright 2026 Anthropic, PBC.)。

6结论

  • 极轻、零依赖:主题是静态 md,任何宿主可直接用,无工具链成本。
  • 可视化选型体验:showcase.pdf 让用户在看效果后决定,而非抽象描述。
  • 与应用流程正交解耦:只提供『色彩/字体规范』,可后置到任意工件生成流程。
  • 主题带语义语境(Best Used For),降低选错风格概率;自定义主题先评审后应用。
  • 适合: 适合把统一视觉风格快速套到生成式工件(PPTX/HTML/文档)的场景;适合希望用户先可视化选型再定稿的工作流;也适合 skill 作者拿 10 个主题当『色彩/字体规范库』范本扩展自己的主题集。
    不适合: 不适合需要程序化强制套用(无人工确认)的批量场景;不适合二进制/图片类成品的换肤(无代码可套);不适合对品牌一致性要求极高、需要可审计色彩 token 注入的场景(应选带代码的主题系统)。
    Install Agent-Ready
    ① Verified Mirror 2026-09-09
    Option A · Direct DownloadDownload theme-factory.tar.gz
    sha256: e7da5a7f0cbaccf8…
    Option B · Copy Guide for Agent
    install.json
    agent 读 JSON 指南后会自动从本站下载安装,无需更多说明。
    ② Upstream GitHub
    GitHub Repo ↗
    Pinned to commit 41bbe19d1a.