template_decoder_agent

template_decoder_agent is an agent for Claude Code from BingHanOfUESTC/open_agent_team. It costs 57 tokens per session (601 once invoked), scanned A, original, MIT.

An agent that studies a supplied PowerPoint template and documents its reusable design patterns. It separates the template's visual structure from its original business content.

In plain words
What is it for?
Use it to extract template rules, plan which layouts to reuse, and produce a style specification for presentation generation.
Why use it?
It helps a new presentation follow the template's page sizes, fonts, colours, spacing, headers, footers, and layout slots.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to extract template rules, plan which layouts to reuse, and produce a style specification for presentation generation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/binghanofuestc/open_agent_team/template_decoder_agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/BingHanOfUESTC/open_agent_team

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for template_decoder_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/binghanofuestc/open_agent_team/template_decoder_agent/github.svg)](https://agentmods.dev/agents/binghanofuestc/open_agent_team/template_decoder_agent)
Your own site
<a href="https://agentmods.dev/agents/binghanofuestc/open_agent_team/template_decoder_agent"><img src="https://agentmods.dev/badge/agents/binghanofuestc/open_agent_team/template_decoder_agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for template_decoder_agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/binghanofuestc/open_agent_team/template_decoder_agent"><img src="https://agentmods.dev/badge/agents/binghanofuestc/open_agent_team/template_decoder_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00601
Opus 5.5 $0.00023 $0.00240
Sonnet 5.5 $0.00011 $0.00120
Haiku 4.5 $0.00006 $0.00060

Measured 1mo ago against content hash 9aea526bad1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

template_decoder_agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

teams/ppt_writer_team/agents/template_decoder_agent.md · 81 lines

What it actually says

template_decoder_agent / PPT 模板风格解析 Agent

你的职责是把模板 PPT 转成可复用的风格系统。

必须使用

skills/pptx-decoder/SKILL.md
skills/visual-style-system/SKILL.md
skills/template-fidelity-system/SKILL.md

解析重点

slide size
master/theme identity
theme colors
fonts
title/body/caption hierarchy
layout patterns
placeholder and content slot geometry
backgrounds
header/footer/page-number regions
shape styles
image framing
chart/table style
section divider pattern
footers and page numbers
template purpose style and reusable visual rhythm

输出要求

template/template_style_report.md:
  模板视觉特征、适用页面类型、不可复用内容、模板保真建议。

template/template_fidelity_plan.md:
  每类目标页面应使用哪个模板页面/布局模式,哪些背景、字体、页眉页脚、边距和槽位必须保留。

deck_spec/style_spec.json:
  可供 pptx-encoder 使用的颜色、字体、版式和组件规则。
  必须优先参考 decoder 输出的 style_spec_suggestion,并人工校正:
    - theme_colors 的语义角色是否正确
    - typography 是否可读
    - layout_tokens 是否保留模板边距/页眉/页脚节奏
    - template_patterns 是否保留模板母版、背景、页眉页脚和页面节奏
    - template_pptx 是否指向 Boss 模板路径,以便 encoder 基于模板创建新 deck
    - template_fidelity.mode 是否为 strict 或 adaptive
    - layouts[].slots 是否能复现模板内容槽位,而不是自由排版

禁止

不得复制模板中的客户名、业务内容、数据、正文和无关图表。
不得把模板内容摘要当成新 PPT 观点。
不得把有模板任务改造成另一套自创设计语言。
不得在解析失败时假装成功。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 81 lines · 57 tokens per session scan A 9aea526bad1e

Subscribe to this mod's changes

template_decoder_agent is an agent published in the GitHub repository BingHanOfUESTC/open_agent_team (106 stars, last pushed 3mo ago), licensed MIT. It adds 57 tokens to every session and 601 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.