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.
npx agentmods add skills/redhuntlabs/wizard/building-a-spellnpx skills add redhuntlabs/wizard --skill building-a-spellgit clone --depth 1 https://github.com/redhuntlabs/wizardWrote 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.
[](https://agentmods.dev/skills/redhuntlabs/wizard/building-a-spell)<a href="https://agentmods.dev/skills/redhuntlabs/wizard/building-a-spell"><img src="https://agentmods.dev/badge/skills/redhuntlabs/wizard/building-a-spell.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00037 | $0.02306 |
| Opus 5 | $0.00018 | $0.01153 |
| Sonnet 5 | $0.00007 | $0.00461 |
| Haiku 4.5 | $0.00004 | $0.00231 |
Grade A, and why
building-a-spell 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.
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.
How it starts
The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building a Spell
What this does
Interviews the user about a task they do repeatedly, then writes a spell file (a SKILL.md) that captures it. Future sessions auto-invoke that spell whenever the trigger matches.
This skill is the meta-builder. It calls other skills (intuitive-interviewing, kind-specific builders, pressure-testing-a-spell) and dispatches the spell-tester subagent.
When to use
- User describes a task they do over and over and asks to capture it
- User says "build a workflow / skill / spell for X"
- User shows you a process and says "I want this systematized"
- User wants the AI to behave the same way every time they hit a certain trigger
What you bring (Inputs)
- A description of the task (one or two sentences is enough)
- Your domain (research, ops, writing, dev, etc.) — inferred if not stated
- Any constraints (time budget, tools available, style preferences)
What you get (Output)
A new spell file at $WIZARD_HOME/<category>/<name>/SKILL.md, validated and tested.
How it works (Steps)
This is a workflow chain. The stages below are the master flow.
Stages
Stage -1: Inference prelude (conditional)
Skip this stage entirely if no transcript was supplied (the default /build-spell flow).
If invocation came with --from-transcript <path> OR was routed through /capture-this-chat, the input includes a transcript blob plus provenance.
In that case:
- Invoke
inferring-a-spell-from-examples(passes the transcript + provenance). - The inference skill produces either:
- A
BUILDABLEoutcome → context dictionary + draftSKILL.md. Resume at Stage 2 (kind-route) with kind already set. Skip Stage 0 and Stage 1 entirely. - A
TOO-THINorTOO-BROADoutcome → halt with the inference skill's user-facing message. Do not enter Stages 0–4. - A user choice of "Re-do as interview" (bail) → resume at Stage 1 with the inferred fields as pre-filled defaults. Stage 1's batch-confirm still runs; user can accept-with-Enter or correct.
- A
What ships with it
16 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.
- examples/example-content.md 2.6 KB
- examples/example-discipline.md 4.1 KB
- interview-questions.md 3.4 KB
- workflow-shapes/brainstorm-then-cluster.md 1.1 KB
- workflow-shapes/compare-two-things.md 1.1 KB
- workflow-shapes/decision-with-alternatives.md 1.1 KB
- workflow-shapes/extract-action-items.md 1.2 KB
- workflow-shapes/learn-from-source.md 1.2 KB
- workflow-shapes/personalized-outbound-message.md 1.2 KB
- workflow-shapes/pre-meeting-prep.md 1.2 KB
- workflow-shapes/README.md 1.6 KB
- workflow-shapes/recurring-stakeholder-update.md 1.1 KB
- workflow-shapes/respond-to-feedback.md 1.4 KB
- workflow-shapes/summary-with-quotes.md 1.1 KB
- workflow-shapes/triage-incoming-list.md 1.1 KB
- workflow-shapes/verify-fact-or-claim.md 1.2 KB
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.
- 6d ago First seen · 221 lines · 37 tokens per session scan A 06a5ac2e27ca
building-a-spell is a skill published in the GitHub repository redhuntlabs/wizard (9 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 2,306 once invoked, about $0.0002 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.
Other skills, from other repositories
fastapi
FastAPI - 高性能 Python Web API 框架.
lazydocker
本技能帮助用户通过 lazydocker 的终端 UI 界面管理 Docker 容器、镜像、卷和网络,支持以下场景:.
fzf
Skill "fzf" from CN-big-cabbage/github-skill-distiller, covering fzf 通用命令行模糊查找器, 技能概述, 使用流程, 关键章节导航 and ai 助手能力.
glances
Skill "glances" from CN-big-cabbage/github-skill-distiller, covering glances 跨平台系统监控工具, 技能概述, 使用流程, 关键章节导航 and ai 助手能力.
paper-checking
论文查重系统 - 一亿字次级论文库秒级查重,支持纵向查重和横向查重.
you-get
网页媒体下载助手 - 从YouTube、Bilibili等网站下载视频、音频、图片.