prompt-compile

prompt-compile is a skill for Claude Code, Codex from JordanGunn/nunchuck. It costs 33 tokens per session (270 once invoked), scanned A, original, MIT.

A tool that turns a YAML file into a PROMPT.md file with a fixed structure, then has an agent improve its wording and correctness.

In plain words
What is it for?
Use it to compile prompt YAML into Markdown and check or polish the resulting prompt.
Why use it?
It makes prompt documents reproducible while still allowing a final pass to make them easier to read. Separate scripts can compile, validate, or show help for the process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compile prompt YAML into Markdown and check or polish the resulting prompt.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jordangunn/nunchuck/prompt-compile
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 JordanGunn/nunchuck --skill prompt-compile
Clone the repo
git clone --depth 1 https://github.com/JordanGunn/nunchuck

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 prompt-compile

README.md
[![agentmods](https://agentmods.dev/badge/skills/jordangunn/nunchuck/prompt-compile/github.svg)](https://agentmods.dev/skills/jordangunn/nunchuck/prompt-compile)
Your own site
<a href="https://agentmods.dev/skills/jordangunn/nunchuck/prompt-compile"><img src="https://agentmods.dev/badge/skills/jordangunn/nunchuck/prompt-compile/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 prompt-compile

Your own site · 80×15
<a href="https://agentmods.dev/skills/jordangunn/nunchuck/prompt-compile"><img src="https://agentmods.dev/badge/skills/jordangunn/nunchuck/prompt-compile.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 270 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.00033 $0.00270
Opus 5 $0.00016 $0.00135
Sonnet 5 $0.00007 $0.00054
Haiku 4.5 $0.00003 $0.00027

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

Security

Grade A, and why

prompt-compile 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 10d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/compile.ps1, scripts/compile.sh, scripts/help.sh, …), 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/prompt/prompt-compile/SKILL.md · 43 lines

What it actually says

INSTRUCTIONS

  1. Refer to metadata.references for the complete skill definition.
  2. Use individual scripts: compile.sh, validate.sh, help.sh
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. 10d ago First seen · 43 lines · 33 tokens per session scan A d3c94be2054d

Subscribe to this mod's changes

prompt-compile is a skill published in the GitHub repository JordanGunn/nunchuck (9 stars, last pushed 7mo ago), licensed MIT. It adds 33 tokens to every session and 270 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.

Related

Other skills, from other repositories

agent-platform-prompt-management

Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.

google/skills · 55 tokens

gemini-api-dev

Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best…

google-gemini/gemini-skills · 73 tokens

ml-kit-genai-prompt-api

Analyzes Android codebases to implement ML Kit GenAI Prompt API. Use this skill to send natural language requests on-device to Gemini Nano, use structured output with Prompt API, implement prefix caching, optimize the current prompt, or apply best practices.".

android/skills · 57 tokens

prompt-engineering

Master the art and science of crafting effective prompts for large language models. Covers foundational patterns, advanced techniques like chain-of-thought and role prompting, structured output formats, and practical strategies for iterative refinement.

cosmicstack-labs/mercury-agent-skills · 44 tokens

prompt-version-management

Manage prompt versions, run A/B tests across agent prompts, track performance regressions, and safely roll out prompt changes in production. Covers prompt diffing, semantic versioning, canary releases, and automated evaluation.

cosmicstack-labs/mercury-agent-skills · 47 tokens

prompt-lab

LLM prompt engineering: analyzes failure modes, generates variants (direct, few-shot, CoT), designs rubrics, produces test suites. Triggers on: "prompt engineering", "generate prompt variants", "A/B test prompts", "optimize prompt", "improve this prompt". NOT for SKILL.md files, use skill-evaluator.

Mathews-Tom/armory · 74 tokens