template-creator

template-creator is a skill for Codex from rojim666/SztuCode. It costs 82 tokens per session (2,167 once invoked), scanned A, original, MIT.

A tool for turning a reference document, presentation, spreadsheet, image, email, or Slack message into a reusable personal Codex template skill.

In plain words
What is it for?
Use it to create reusable templates from supported reference materials or update one existing personal template when asked.
Why use it?
It helps preserve the structure, tone, and visual style of a reference so similar work can be reproduced later. It also provides rules for creating or explicitly updating one personal template.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

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.

agentmods
npx agentmods add skills/rojim666/sztucode/template-creator
Any agent
npx skills add rojim666/SztuCode --skill template-creator
Clone the repo
git clone --depth 1 https://github.com/rojim666/SztuCode

Made for: Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rojim666/sztucode/template-creator.svg)](https://agentmods.dev/skills/rojim666/sztucode/template-creator)
Your own site
<a href="https://agentmods.dev/skills/rojim666/sztucode/template-creator"><img src="https://agentmods.dev/badge/skills/rojim666/sztucode/template-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,167 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00082 $0.02167
Opus 5 $0.00041 $0.01084
Sonnet 5 $0.00016 $0.00433
Haiku 4.5 $0.00008 $0.00217

Measured 6d ago against content hash 894e7bd9ae5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

template-creator 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 6d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/create-template-skill.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

packages/runtime-ts/skills/template-creator/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Template Creator

Create or update a reference-backed template. Keep the source file inside the skill so later use can reproduce its structure, voice, and visual system precisely.

Routing

  • Manage only personal skills under ${CODEX_HOME:-~/.codex}/skills.
  • Create a new template by default. Use a numbered skill name instead of overwriting an existing template.
  • Update only when the user explicitly asks to edit or update exactly one passed artifact-template skill. Treat that passed skill as the exact target; never choose a similarly named template.
  • Do not modify an installed or bundled plugin cache. If the passed template is plugin-backed, explain that this skill can update only a personal template.
  • Do not create, modify, upload, or publish a plugin. If the request also asks to share the template with a workspace, explain that this skill only manages personal templates.
  • A gallery-backed template exists only after create-template-skill.mjs succeeds. Never hand-author, rename, or copy a normal skill and report it as an artifact template.

Create workflow

  1. Require exactly one supported reference unless the user explicitly requests a batch. For a batch, complete this workflow separately for every reference:
    • Document: .docx
    • Presentation: .pptx
    • Spreadsheet: .xlsx
    • ImageGen or Product Design image: .png
    • Email or Slack message: .txt
    • When email or Slack content is pasted rather than attached, materialize the exact content as a temporary UTF-8 reference.txt without rewriting it.
  2. Infer a concise display name and intended-use description from the reference and request. Infer document, presentation, spreadsheet, and image from the file extension. For an image, set its gallery kind to imagegen when the request originates from $imagegen, or product-design when it originates from @Product Design; ask which gallery should use the template when neither or both make the intended target clear. For .txt, determine whether the user requested email or slack; ask if the intended type is ambiguous.
  3. Create preview.png before packaging:
    • DOCX: use Documents to render the reference and copy its first page PNG.
    • PPTX: use Presentations to render the reference and copy its first slide PNG.
    • XLSX: use Spreadsheets to render the used range of the first visible non-empty sheet.
    • PNG: copy the reference PNG unchanged.
    • Email or Slack: render a legible representative portion of the exact reference text on a neutral canvas. Do not paraphrase, decorate, or invent content.
  4. Visually inspect the PNG. Stop if it is blank, clipped, corrupted, or not representative of the reference.
  5. Do not create an intermediary request file or use a file-editing tool for script inputs. Set SKILL_DIR to the directory containing this SKILL.md, load the workspace dependency runtime, and pass the values directly. Before substituting real values into the command, shell-escape each value as one argument for the active shell. Never interpolate a raw path, display name, description, or skill name.

Read the full file on GitHub · 140 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 140 lines · 82 tokens per session scan A 894e7bd9ae5f

Subscribe to this mod's changes

template-creator is a skill published in the GitHub repository rojim666/SztuCode (50 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 2,167 once invoked, about $0.0004 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-30.