template-generation

template-generation is a skill for Claude Code from claude-office-skills/claude-office-plugin. It costs 26 tokens per session (1,075 once invoked), scanned A, original, MIT.

A specification for generating ready-to-use management systems in spreadsheets rather than just empty tables. It defines required headings, sample data, formulas, formatting, status controls, filters, and dropdown lists.

In plain words
What is it for?
Use it to create spreadsheet trackers and management templates with totals, completion rates, status colors, validation menus, alternating rows, number formats, and filters.
Why use it?
It helps produce a usable working template with realistic content and built-in behavior from the start.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-wps-excel plugin — 26 skills, 14 commands, 8 agents, 2 MCP servers shipped together

Good fit Use it to create spreadsheet trackers and management templates with totals, completion rates, status colors, validation menus, alternating rows, number formats, and filters.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/claude-office-skills/claude-office-plugin/template-generation
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.

Any agent
npx skills add claude-office-skills/claude-office-plugin --skill template-generation
Clone the repo
git clone --depth 1 https://github.com/claude-office-skills/claude-office-plugin

Made for: Claude Code.

Or install claude-wps-excel, the plugin that ships this one along with the rest of its 26 skills, 14 commands, 8 agents, 2 MCP servers.

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-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/template-generation/github.svg)](https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/template-generation)
Your own site
<a href="https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/template-generation"><img src="https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/template-generation/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-generation

Your own site · 80×15
<a href="https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/template-generation"><img src="https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/template-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 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.00026 $0.01075
Opus 5 $0.00013 $0.00537
Sonnet 5 $0.00005 $0.00215
Haiku 4.5 $0.00003 $0.00108

Measured 11d ago against content hash 9854eb3c4da8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

template-generation 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 11d 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.

skills/bundled/template-generation/SKILL.md · 94 lines

What it actually says

核心任务:生成可直接使用的 SaaS 级管理系统

用户让你创建的不是简单表头,而是完整可用的管理系统,类似于稻壳模板商城中那种专业级 Excel 管理系统。 表格就是画布,你生成的系统需要用户能真正用起来。

管理系统/模板必须包含以下全部内容(缺一不可)

结构层

  • ✅ 系统标题行(合并居中、16pt 加粗、品牌色背景白字)
  • ✅ 副标题/统计周期行
  • ✅ 表头行(粗体、白字、深色背景、居中)

数据层(最关键!)

  • ✅ 默认生成 10-15 行真实感测试数据
  • ✅ 公式列:金额=数量×单价,合计=SUM,完成率=已完成/总数
  • ✅ 汇总行:合计/平均值/最大值等统计
  • ✅ 状态列:用不同背景色区分状态(绿=已完成、蓝=进行中、橙=待处理、红=逾期)

⚠️ 大数据量生成(>20行)必须用循环!

当用户要求生成超过 20 行数据时,绝对禁止硬编码每一行。必须用随机组合循环:

// 正确:小数组 + 随机组合循环生成 N 行
var names = ["张三","李四","王芳","赵六","刘洋"];
var depts = ["技术部","销售部","市场部","财务部"];
for (var i = 0; i < dataRows; i++) {
  var r = i + 4;
  ws.Range("A"+r).Value2 = i+1;
  ws.Range("B"+r).Value2 = names[Math.floor(Math.random()*names.length)];
  // ...
}
// 禁止:硬编码200行数组(代码会被截断!)

代码总长度必须控制在 3000 字符以内。

格式层

  • ✅ 交替行背景色(偶数行浅色)
  • ✅ 区域视觉分隔(用深浅背景色交替区分行列,禁止使用 Borders API)
  • ✅ 合理列宽(按内容设置,用 ws.Range("A:A").ColumnWidth)
  • ✅ 数字格式(金额 #,##0.00、日期 yyyy-mm-dd、百分比 0.0%、电话 @)

功能层(让用户真正能用)

  • ✅ 数据验证/下拉菜单(如状态列:已完成/进行中/待处理)使用 ws.Range().Validation.Add(3,1,1,"选项1,选项2,选项3")
  • ✅ 条件格式化状态列:不同状态不同颜色
  • ✅ 表头筛选:ws.Range("A行:Z行").AutoFilter()

参考代码模式

function CL(c){var s="";while(c>0){c--;s=String.fromCharCode(65+(c%26))+s;c=Math.floor(c/26);}return s;}

var ws = Application.ActiveSheet;
var wb = Application.ActiveWorkbook;
ws.Name = "订单管理";
ws.Range("A1:P100").Clear();

// 标题
ws.Range("A1:K1").Merge();
ws.Range("A1").Value2 = "销售订单管理系统";
ws.Range("A1").Font.Size = 16;
ws.Range("A1").Font.Bold = true;
ws.Range("A1").Font.Color = 0xFFFFFF;
ws.Range("A1").Interior.Color = 0x8B4513;
ws.Range("A1").HorizontalAlignment = -4108;
ws.Range("1:1").RowHeight = 40;

// 表头
var h = ["序号","订单编号","客户名称","联系电话","产品名称","数量","单价(元)","金额(元)","下单日期","订单状态","备注"];
ws.Range("A3:K3").Value2 = [h];
ws.Range("A3:K3").Font.Bold = true;
ws.Range("A3:K3").Font.Color = 0xFFFFFF;
ws.Range("A3:K3").Interior.Color = 0x8B4513;
ws.Range("A3:K3").HorizontalAlignment = -4108;

// 测试数据用 Range(CL(c)+r) 写入
// 交替行色、状态列条件格式、公式列、汇总行、数据验证、筛选...
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. 11d ago First seen · 94 lines · 26 tokens per session scan A 9854eb3c4da8

Subscribe to this mod's changes

template-generation is a skill published in the GitHub repository claude-office-skills/claude-office-plugin (9 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 1,075 once invoked, about $0.0001 per session on Opus 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-08-31.