template-extractor

template-extractor is a skill for Claude Code, Codex from DNYoussef/context-cascade. It costs 0 tokens per session (1,764 once invoked), scanned A, original, MIT.

A tool for reverse-engineering document templates into detailed design specifications and reusable prompts for recreating them.

In plain words
What is it for?
Use it to study an existing document template and guide an AI in producing a closely matching version.
Why use it?
It removes the need to inspect a document and record its layout, styling, and structure by hand.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: names the TodoWrite tool.

Good fit Use it to study an existing document template and guide an AI in producing a closely matching version.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dnyoussef/context-cascade/template-extractor
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 DNYoussef/context-cascade --skill template-extractor
Clone the repo
git clone --depth 1 https://github.com/DNYoussef/context-cascade

Made for: Claude Code, 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-extractor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dnyoussef/context-cascade/template-extractor"><img src="https://agentmods.dev/badge/skills/dnyoussef/context-cascade/template-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,764 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.00000 $0.01764
Opus 5.5 $0.00000 $0.00706
Sonnet 5.5 $0.00000 $0.00353
Haiku 4.5 $0.00000 $0.00176

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

Security

Grade A, and why

template-extractor 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/extract_template.py), 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.

skills/foundry/template-extractor/SKILL.md · 177 lines

How it starts

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

/============================================================================/ /* TEMPLATE-EXTRACTOR SKILL :: VERILINGUA x VERIX EDITION / /============================================================================*/


name: template-extractor version: 1.0.0 description: | [assert|neutral] Reverse-engineer document templates to extract exact design specifications and generate reusable AI prompts for pixel-perfect document recreation [ground:given] [conf:0.95] [state:confirmed] category: tooling tags:

  • general author: system cognitive_frame: primary: honorific goal_analysis: first_order: "Execute template-extractor workflow" second_order: "Ensure quality and consistency" third_order: "Enable systematic tooling processes"

/----------------------------------------------------------------------------/ /* S0 META-IDENTITY / /----------------------------------------------------------------------------*/

[define|neutral] SKILL := { name: "template-extractor", category: "tooling", version: "1.0.0", layer: L1 } [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ /* S1 COGNITIVE FRAME / /----------------------------------------------------------------------------*/

[define|neutral] COGNITIVE_FRAME := { frame: "Honorific", source: "Japanese", force: "Who is the audience?" } [ground:cognitive-science] [conf:0.92] [state:confirmed]

Kanitsal Cerceve (Evidential Frame Activation)

Kaynak dogrulama modu etkin.

/----------------------------------------------------------------------------/ /* S2 TRIGGER CONDITIONS / /----------------------------------------------------------------------------*/

[define|neutral] TRIGGER_POSITIVE := { keywords: ["template-extractor", "tooling", "workflow"], context: "user needs template-extractor capability" } [ground:given] [conf:1.0] [state:confirmed]

/----------------------------------------------------------------------------/ /* S3 CORE CONTENT / /----------------------------------------------------------------------------*/

Read the full file on GitHub · 177 lines

Files

What ships with it

6 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. 1mo ago First seen · 177 lines · 0 tokens per session scan A 6af96266b3d6

Subscribe to this mod's changes

template-extractor is a skill published in the GitHub repository DNYoussef/context-cascade (32 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,764 tokens. 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.

Related

Other skills, from other repositories

kami-landing

Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.

nexu-io/open-design · 81 tokens

applying-brand-guidelines

This skill applies consistent corporate branding and styling to all generated documents including colors, fonts, layouts, and messaging.

anthropics/claude-cookbooks · 27 tokens

html-ppt-obsidian-claude-gradient

OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.

nexu-io/open-design · 53 tokens

kami

A design and typesetting guide for creating professional documents and product landing pages, such as resumes, white papers, portfolios, and slide decks.

tw93/Kami · 68 tokens

read

Fetches URLs and PDFs, then summarizes or returns clean Markdown; can also search the web through DeepSeek when built-in search is thin. Use when asked to read, fetch, quote, cite, convert, or save a URL or PDF. Not for local text files already in the repo.

tw93/Waza · 61 tokens

plan-deck-template

A reusable PowerPoint slide template for Hai Lan Travel itinerary proposals. It supplies the brand colours, fonts, icons, page layouts, and placeholders for customer, trip, route, cost, and contact details.

EverMind-AI/Raven · 61 tokens