agentsop-prompt-compilation

agentsop-prompt-compilation is a skill for Claude Code, Codex from agentsope/SkillAlchemy. It costs 96 tokens per session (6,958 once invoked), scanned A, original, MIT.

A readiness check for automatically improving AI prompts with optimizers such as DSPy methods. It decides whether there is a trustworthy measurement and enough examples before optimization begins.

In plain words
What is it for?
Use it before running prompt-optimization experiments to check the evaluation metric, available examples, and suitable optimization method.
Why use it?
It prevents compute being spent optimizing against a poor metric or too little data. It returns a go-or-no-go decision and recommends an optimizer, leaving implementation details to other tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/5imp1ex/Desktop/Skill-Workplace/output/dspy-sop-skill/SKILL.md.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 agentsop-prompt-compilation

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentsope/skillalchemy/agentsop-prompt-compilation.svg)](https://agentmods.dev/skills/agentsope/skillalchemy/agentsop-prompt-compilation)
Your own site
<a href="https://agentmods.dev/skills/agentsope/skillalchemy/agentsop-prompt-compilation"><img src="https://agentmods.dev/badge/skills/agentsope/skillalchemy/agentsop-prompt-compilation.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,958 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.00096 $0.06958
Opus 5 $0.00048 $0.03479
Sonnet 5 $0.00019 $0.01392
Haiku 4.5 $0.00010 $0.00696

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

Security

Grade A, and why

agentsop-prompt-compilation 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.

skills/agentsop-prompt-compilation/SKILL.md · 401 lines

How it starts

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

prompt-compilation — The Compile-Readiness Gate

"It's unproductive to launch optimization runs using a poorly designed program or a bad metric." — DSPy core team [dspy.ai/learn/optimization/overview/]

"Compile when you can measure. The optimizer maximizes your metric — garbage metric in, garbage prompt out." — this skill's operating principle (synthesized from the line above + DSPy Case C)

This is an enhancement-overlay decision skill. It answers exactly one question the broad [[dspy]] library skill buries under API surface: have you earned the right to run an optimizer yet, and which one? It produces a go / no-go gate plus an optimizer pick. It defers every implementation detail — Signature syntax, module choice, compile() calls, save/deploy — to [[dspy]] and the full workflow in [[agentsop-dspy]]. It defers metric construction to [[agentsop-metric-design]]; this skill only checks the metric exists and is validated, then uses it as the gate.

The trap it removes: people reach for MIPROv2(auto="heavy") because the API is right there, before they have a metric worth maximizing or enough data to avoid memorization. Compilation is a hyperparameter search costing hundreds-to-thousands of LM calls ($2–$40+, minutes-to-hours) [dspy.ai/faqs/]. Spending that on an un-validated metric or 8 examples is pure waste.


1. 何时激活 (When to Activate)

Activate when all three of these are plausibly true (the gate then confirms them):

  • A hand-tuned prompt has plateaued. The team has manually iterated few-shot examples / wording past the point of obvious returns. Symptom from [[agentsop-dspy]] §1: "the team manually tunes few-shot examples; a metric exists but isn't being used to drive prompt design."
  • A metric exists (or can be built). There is a metric(example, pred) -> bool|float — or one can be written and human-validated. Without this, do not activate; the optimizer has nothing to maximize.
  • Labeled examples exist. There is a dev set. The count determines which optimizer is even legal (§3, §4.2).

Read the full file on GitHub · 401 lines

Files

What ships with it

3 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 · 401 lines · 96 tokens per session scan A ecc3816152d4

Subscribe to this mod's changes

agentsop-prompt-compilation is a skill published in the GitHub repository agentsope/SkillAlchemy (366 stars, last pushed 4d ago), licensed MIT. It adds 96 tokens to every session and 6,958 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

prompt-refine

Silently restructures the user's natural-language prompt into the format the model CURRENTLY running this skill handles best, then answers. On activation it identifies which model family is executing it (Claude, GPT, Gemini, Llama, DeepSeek, Mistral, Qwen, Grok, Perplexity, Kimi, GLM, Command, Nova, or Phi) and loads…

Apeironics/prompt-refine-skill · 118 tokens

build-dotnet-agent-service

Build a local-first F# or C# Semantic Kernel agent service with explicit tools, model capability checks, evaluation fixtures, and draft-before-write promotion.

gaelic-ghost/socket · 36 tokens

prompt-evaluation-runner

Use when evaluating prompts, LLM outputs, red-team suites, or model behavior with local eval configs and safe provider/cost controls.

yeaight7/agent-powerups · 33 tokens

prompt-perturb

同じ手筋・いつもの skill ばかりで進む作業に、文脈を持たない検索者(prompt-forager agent)が外部の創造技法カタログ・プロンプト集から異角度プロンプトを取ってきて注入する多様性注入 skill。ブレインストーミングしたい、いつもと違う角度のアイデアが欲しい、発想がマンネリ・局所解に嵌っている、同じようなアプローチばかり出てくる、と感じたとき、または /prompt-perturb で使う。正解・最適解の探索には使わない(それは search-first / scout)、プロンプトの品質改善にも使わない(それは prompt-writer agent)。.

shimo4228/claude-harness · 194 tokens

prompt-decorators

Activates a structured decorator framework that modifies how Claude reasons, responds, and formats output. Trigger this skill whenever a prompt contains one or more markers prefixed with +++, such as +++Reasoning, +++StepByStep, +++Tone(style=formal), or any other +++ marker, regardless of what follows in the prompt.…

smkalami/skills · 129 tokens

vibe-creating-prompt

Judges whether a user's input suits the Vibe Creating style of video-prompt writing, and when it does, distills single-scene prompts, multi-shot descriptions, emotional imagery, or mixed input into prompts that are easier for a video model to generate from — while preserving any user-specified dialogue, voiceover…

Alisa0808/vibe-creating-skill · 187 tokens