Template Enforcer 标志

Template Enforcer

组织
Amazon-Quick
template-enforcer

将品牌指南或样式模板应用于任意文档、演示文稿或生成内容,统一规范配色、字体、语气、Logo 位置和格式。当用户说“应用品牌指南”“严格遵循模板”“匹配这种风格”“让内容符合我们的品牌风格”“应用我们的格式规范”“为这份文档设置样式”,或提出任何使文档符合视觉或品牌规范的需求时使用。

概览

发布者Amazon-Quick
代码仓库Amazon-Quick-official-catalog
技能名称template-enforcer
星标数
50
复刻数
4
附带文件
1
许可协议MIT-0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 Amazon-Quick 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Template Enforcer AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/design/template-enforcer
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Amazon-Quick/Amazon-Quick-official-catalog.git /tmp/Amazon-Quick-official-catalog
mkdir -p .claude/skills
cp -r /tmp/Amazon-Quick-official-catalog/skills/design/template-enforcer .claude/skills/template-enforcer
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Template Enforcer,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Template Enforcer。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Template Enforcer 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Overview

Reads a brand guide or style reference, extracts design tokens (colors, fonts, spacing, tone rules, logo usage), then applies those constraints to a target document. Reports compliance violations, makes corrections according to the specified strictness level, and produces a styled output alongside a compliance report.

Workflow

<Definition - Brand Profile> A structured extraction from a brand guide containing:

  • colors: primary, secondary, accent, background, text_primary, text_secondary
  • typography: heading_font, body_font, heading_sizes (h1/h2/h3), body_size, line_height
  • tone: voice style, encouraged patterns (dos), prohibited patterns (donts), terminology preferences
  • logo: placement, minimum_size, clear_space
  • formatting: margins, paragraph_spacing, bullet_style, table_style, header_footer rules

Not all fields will be present in every brand guide. The profile contains only what was explicitly found. </Definition - Brand Profile>

<Definition - Compliance Score> Percentage of audited dimensions that pass. Calculated as: (passing_categories / total_auditable_categories) * 100. Categories: colors, typography, tone, formatting, logo, terminology. </Definition - Compliance Score>

<Workflow - Enforce Template description="End-to-end brand enforcement: parse guide, audit, correct, output." tools=[file_read, file_read_pdf, file_read_docx, file_read_pptx, run_python, file_write, open_in_session_tab] triggers=["User asks to apply brand guide", "enforce template", "match this style", "make it consistent with our brand"]

  1. [Decide] Is {{brand_guide}} a file path or a saved profile name?

    • File path: proceed to step 2.
    • Profile name: check artifacts/brand-profiles/{{brand_guide}}-profile.yaml. If found, load it and skip to step 4. If not found, ask user for the file path. Validate: One path is chosen. If fails: Ask user to clarify whether they are referencing a saved profile or providing a new file.
  2. [Agent] Parse the brand guide file using the appropriate reader (file_read_pdf for PDF, file_read_docx for DOCX, file_read for other formats). Extract all design token information into a structured brand profile per <Definition - Brand Profile>. Validate: At least one category (colors, typography, or tone) successfully extracted with concrete values. If fails: Report which categories could not be extracted and ask user to point to specific pages/sections containing the brand rules. Offer to proceed with partial rules.

  3. [Ask user] Present extracted brand profile summary. Confirm it looks correct before proceeding. Validate: User confirms or provides corrections. If fails: Adjust profile per user feedback and re-present.

  4. [Agent] Load the source document ({{source_document}}) using the appropriate reader. Preserve full structure (headings, paragraphs, tables, images, metadata). Validate: Document loads successfully and contains parseable content. If fails: Report the format issue. Ask user for an alternative format or path.

  5. [Agent] Audit the source document against the brand profile. Check each applicable dimension:

    • Color compliance: Are colors consistent with the palette? Flag off-brand colors with their locations.
    • Typography compliance: Correct fonts, sizes, and hierarchy?
    • Tone compliance: Does language match voice guidelines? Flag jargon violations or banned terminology.
    • Formatting compliance: Margins, spacing, bullet styles correct?
    • Logo compliance: Proper placement and sizing? (if applicable and detectable)
    • Terminology compliance: Preferred terms used? Banned terms present?

    Produce a compliance report table:

    CategoryStatusIssues FoundSeverity

    Calculate overall compliance score per <Definition - Compliance Score>. Validate: At least one category assessed. Report table generated. If fails: Proceed with best-effort assessment on available categories.

  6. [Decide] What is the strictness level?

    • "advisory": Save compliance report to artifacts/compliance-report-[name].md. Present to user. Skip to step 9.
    • "moderate" or "strict": Proceed to step 7. Validate: Strictness is one of the three valid values. If fails: Default to "moderate".
  7. [Agent] Apply corrections using run_python:

    • Swap off-brand colors to nearest brand-approved color.
    • Replace fonts with brand typography.
    • Adjust heading hierarchy to match brand sizes.
    • Fix spacing, margins, bullet styles.
    • Replace banned terminology with preferred alternatives.
    • (strict only) Rewrite flagged tone violations to match brand voice.
    • (strict only) Insert/reposition logo if template requires it. Validate: Corrections applied without corrupting document structure. Re-audit shows improved compliance score. If fails: Report which items could not be auto-corrected. Present them for manual review.
  8. [Agent] Generate styled output file in {{output_format}} format:

    • "same": Match the input file format.
    • "docx": Apply styles via python-pptx/openpyxl, set fonts, colors, paragraph formatting.
    • "html": Generate with inline styles matching brand tokens.
    • "pptx": Apply slide master colors, fonts, logo placement.
    • "md": Apply tone corrections and structure formatting. Save to: artifacts/styled-[original-name].[ext] Validate: Output file created, non-empty, and valid format. If fails: Fall back to markdown output with compliance notes inline.
  9. [Agent] Save compliance report to artifacts/compliance-report-[original-name].md. Open styled output (if created) and compliance report in session tabs. Present summary:

    • Compliance improved: [X]% to [Y]%
    • [N] corrections applied
    • [M] items flagged for manual review
    • Output saved: artifacts/styled-[filename].[ext] Validate: User can view the output. If fails: Provide file path and inline summary.
  10. [Ask user] "I've extracted your brand profile. Want me to save it so you can reference it by name next time without re-uploading the guide?"

    • Yes: Save to artifacts/brand-profiles/[brand-name]-profile.yaml
    • No: Done. Validate: If yes, profile file saved and readable. If fails: Provide extracted profile as inline YAML for user to save manually.

</Workflow - Enforce Template>

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Template Enforcer AI 技能有什么作用?

将品牌指南或样式模板应用于任意文档、演示文稿或生成内容,统一规范配色、字体、语气、Logo 位置和格式。当用户说“应用品牌指南”“严格遵循模板”“匹配这种风格”“让内容符合我们的品牌风格”“应用我们的格式规范”“为这份文档设置样式”,或提出任何使文档符合视觉或品牌规范的需求时使用。

为什么在 TypingMind 中使用 Template Enforcer?

因为您只需安装一次,就能搭配任何模型使用。Template Enforcer 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Template Enforcer?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/Amazon-Quick/Amazon-Quick-official-catalog/tree/main/skills/design/template-enforcer。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Template Enforcer?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Template Enforcer 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Template Enforcer 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Template Enforcer AI 技能免费吗?

是的。Amazon-Quick 已在 GitHub 上根据 MIT-0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇