requirement-alignment

requirement-alignment is a skill for Claude Code, Codex from baixinghao/intent-gate. It costs 150 tokens per session (1,310 once invoked), scanned A, original, MIT.

A process for analyzing product requirements and turning them into clear technical artifacts such as state machines, sequence diagrams, decision tables, and database definitions. It resolves uncertainty through code evidence, recorded inferences, or explicit human decisions.

In plain words
What is it for?
Use it when analyzing a PRD, a requirements document, or a request to continue an interrupted analysis. It supports structured requirement review and the creation of diagrams and database schemas.
Why use it?
It exposes missing or ambiguous decisions before they become rework. Draft diagrams use named placeholders for unknowns, making every unresolved point visible and traceable.

Skill for Claude CodeCodex

Part of the intent-gate plugin — 4 skills, 1 hook, 1 MCP server shipped together

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.

agentmods
npx agentmods add skills/baixinghao/intent-gate/requirement-alignment
Any agent
npx skills add baixinghao/intent-gate --skill requirement-alignment
Clone the repo
git clone --depth 1 https://github.com/baixinghao/intent-gate

Made for: Claude Code, Codex.

Or install intent-gate, the plugin that ships this one along with the rest of its 4 skills, 1 hook, 1 MCP server.

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 requirement-alignment

README.md
[![agentmods](https://agentmods.dev/badge/skills/baixinghao/intent-gate/requirement-alignment.svg)](https://agentmods.dev/skills/baixinghao/intent-gate/requirement-alignment)
Your own site
<a href="https://agentmods.dev/skills/baixinghao/intent-gate/requirement-alignment"><img src="https://agentmods.dev/badge/skills/baixinghao/intent-gate/requirement-alignment.svg" alt="Measured on agentmods" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,310 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 $0.00150 $0.01310
Opus 5 $0.00075 $0.00655
Sonnet 5 $0.00030 $0.00262
Haiku 4.5 $0.00015 $0.00131

Measured 4d ago against content hash 17639c386c4a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

requirement-alignment 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 4d 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/requirement-alignment/SKILL.md · 104 lines

How it starts

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

Requirement Intent Alignment

Overview

Ambiguity in a requirement is resolved through a funnel that gets cheaper per level, never by silent assumption. The MCP tools are the enforcement: they reject malformed questions, refuse to settle answers without a landing point, and gate delivery on mechanical lint.

The full law is the MCP prompt doc_analysis_playbook — read it in full before starting Step 0. This skill is the map; the playbook is the territory.

Dual-layer detection — the diagram is the instrument, not a deliverable. Layer 1 (reading): sweep the PRD text for explicit ambiguities (the nine-category checklist). Layer 2 (drawing): do NOT wait for answers before drawing — hard-draw draft diagrams in the FIRST turn; every node/edge you cannot draw becomes a TBDn placeholder (state "???待确认" as TBDn / --> TBDn; never bare --> ???, lint's state-id charset eats it). Each placeholder is a gap: 🔧 technical → code evidence first, 📋 business → dispatch_question. Placeholders are cleared ONLY by code evidence or a human ruling — never by guessing. The first resolve_question is mechanically gated on the draft existing (analysis-draft.md with a mermaid block).

The Funnel

Resolve each gap at the cheapest level that can close it:

  1. Code evidence (🔧 technical gaps first) — search the codebase (codegraph search_graph / trace_path, or grep). If the code has a single ground truth, inject it and settle with resolve_question(source="code"). Zero human cost.
  2. Registered inference — no direct ground truth but a strong analogy? record_inference with an explicit evidence chain, batch-confirm with the human at session end via confirm_inferences. 🔴 Forbidden on core money flows and red-line rules — those need a human decision.
  3. Group escalation (optional, sister intent-gate-service MCP) — judgment calls whose rightful answerer sits in a DingTalk group: intent-gate-service's group_dispatch with category 📋 business / 🔧 technical, @ the right role. One question in flight at a time. Core-flow questions carry your inference as recommended option 1, so the human nods instead of drafting. Skip this level when intent-gate-service is not mounted.
  4. Dialog fallback (default) — the host asks the user directly, 3+1 options per question.

Read the full file on GitHub · 104 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. 4d ago First seen · 104 lines · 0 tokens per session scan A 17639c386c4a

Subscribe to this mod's changes

requirement-alignment is a skill published in the GitHub repository baixinghao/intent-gate (2 stars, last pushed 20d ago), licensed MIT. It adds 150 tokens to every session and 1,310 once invoked, about $0.0007 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

language-standards

Language-specific standards and idioms for Python, TypeScript, and SQL. Load when reviewing, implementing, or debugging code to apply the right conventions for the language at hand.

wsauret/flywheel · 40 tokens

inventory

Codebase inventory skill — scans the repo for a named pattern (inline SQL, fetch calls, feature flags, debug leftovers, deprecated APIs, etc.) defined by a YAML "recipe pack" and emits a structured Markdown inventory cross-referenced with framework metadata (routes, handlers). The engine is language-agnostic and…

ggemba/squad-mcp · 0 tokens

tencent-pg-inspection

Run routine health inspection for Tencent Cloud PostgreSQL by calling Tencent Cloud OpenAPI directly. This skill can use the full aligned PostgreSQL OpenAPI action set documented in @references/apireference.md. Start with evidence collection first, and require explicit confirmation before any write, fee-impacting, or…

TencentCloudCommunity/mcp-server · 68 tokens

tencent-pg-ops-troubleshooter

Troubleshoot operational issues for Tencent Cloud PostgreSQL by calling Tencent Cloud OpenAPI directly. This skill can use the full aligned PostgreSQL OpenAPI action set documented in @references/apireference.md. Start with evidence collection first, and require explicit confirmation before any write, fee-impacting…

TencentCloudCommunity/mcp-server · 72 tokens

tencent-pg-slowquery-diagnosis

Diagnose slow SQL and performance anomalies for Tencent Cloud PostgreSQL by calling Tencent Cloud OpenAPI directly. This skill can use the full aligned PostgreSQL OpenAPI action set documented in @references/apireference.md. Start with evidence collection first, and require explicit confirmation before any write…

TencentCloudCommunity/mcp-server · 75 tokens

drogon-gen-orm-crud

生成符合 drogon 约定的 ORM CRUD 代码,支持回调式和协程式,覆盖 PostgreSQL、MySQL、SQLite3。.

voidvec/drogon-claude-plugin · 41 tokens