agent-spec-intent-compiler

agent-spec-intent-compiler is a skill for Claude Code, Codex from ZhangHanDong/agent-spec. It costs 42 tokens per session (1,767 once invoked), scanned A, original, MIT.

A requirements-planning tool that turns product or issue descriptions into structured requirements and task specifications. A PRD is a document describing what a product or feature should do.

In plain words
What is it for?
It helps analyze PRDs, connect requirements to decisions and tasks, and ask targeted questions when important details are missing.
Why use it?
It helps resolve vague or conflicting requirements before they become implementation tasks.

Skill for Claude CodeCodex

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

Good fit It helps analyze PRDs, connect requirements to decisions and tasks, and ask targeted questions when important details are missing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhanghandong/agent-spec/agent-spec-intent-compiler
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 ZhangHanDong/agent-spec --skill agent-spec-intent-compiler
Clone the repo
git clone --depth 1 https://github.com/ZhangHanDong/agent-spec

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 agent-spec-intent-compiler

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-intent-compiler/github.svg)](https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-intent-compiler)
Your own site
<a href="https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-intent-compiler"><img src="https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-intent-compiler/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 agent-spec-intent-compiler

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhanghandong/agent-spec/agent-spec-intent-compiler"><img src="https://agentmods.dev/badge/skills/zhanghandong/agent-spec/agent-spec-intent-compiler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,767 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Prompt Injection · line 89
    Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.
    Fix: Audit all comments and invisible characters. Remove any instructions that direct the agent to perform unauthorized actions. Use plain, reviewable content.
How audits are shown
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.00042 $0.01767
Opus 5 $0.00021 $0.00883
Sonnet 5 $0.00008 $0.00353
Haiku 4.5 $0.00004 $0.00177

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

Security

Grade A, and why

agent-spec-intent-compiler 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 9d 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/agent-spec-intent-compiler/SKILL.md · 157 lines

How it starts

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

Agent Spec Intent Compiler

Version: 1.0.0 | Last Updated: 2026-08-14 | Tracks: agent-spec 1.4.0

Use this skill when a user wants to move from raw PRD/issue prose to governed KLL requirements and task specs.

Routing: What You Hold, Where It Goes

Before writing anything, route the artifact. This table copies knowledge/standards/operational/id-registry.md — the registry is the authority, this copy is checked against it in CI.

You hold Directory Id prefix Scaffold
A debate: should we do this, and why knowledge/proposals/ LEP- agent-spec knowledge new proposal LEP-NNN
A settled architectural ruling knowledge/decisions/ ADR- agent-spec knowledge new decision ADR-NNN
An obligation the system must satisfy knowledge/requirements/ REQ- agent-spec knowledge new requirement REQ-NNN
An executable, verifiable task contract specs/ task- agent-spec init --level task

HARD GATE: when the workspace has a knowledge/requirements/ corpus, do NOT write a task contract without satisfies: [REQ-*] — the orphan-spec lint diagnoses the jump. "This is just a small task" and "I'll link it later" are the rationalizations that produced orphan contracts before; route first, then write.

Rules

  • The CLI remains deterministic and model-free.
  • Raw source belongs in docs/.
  • Machine-consumable truth belongs in knowledge/requirements/*.md.
  • Do not silently invent missing requirements. Emit or ask clarification questions.
  • Do not treat a model inference as accepted; only human-confirmed answers may change KLL truth.
  • Every generated requirement must include ## Source Trace.
  • Open questions stay in ## Open Questions until answered by the human.
  • For agent-spec's own development, dogfood this workflow on the repository's own KLL requirement and task spec before presenting fixtures as sufficient proof.
  • Treat KLL roots as compiler trust boundaries: do not bypass unsafe-id, strict-frontmatter, kind-directory, missing-root, or symlink diagnostics.
  • Read the plan as a cross-layer DAG: requirement nodes lower to work units, work units satisfy spec nodes, and spec dependencies remain explicit edges.

Read the full file on GitHub · 157 lines

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. 9d ago First seen · 157 lines · 42 tokens per session scan A 814f38f19396

Subscribe to this mod's changes

agent-spec-intent-compiler is a skill published in the GitHub repository ZhangHanDong/agent-spec (454 stars, last pushed 10d ago), licensed MIT. It adds 42 tokens to every session and 1,767 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-30.