requirement-alignment

requirement-alignment is a skill for Claude Code from baixinghao/intent-gate. It costs 0 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 Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/baixinghao/intent-gate/requirement-alignment
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 baixinghao/intent-gate --skill requirement-alignment
Clone the repo
git clone --depth 1 https://github.com/baixinghao/intent-gate

Made for: Claude Code.

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/github.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/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 requirement-alignment

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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. 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.00000 $0.01310
Opus 5.5 $0.00000 $0.00524
Sonnet 5.5 $0.00000 $0.00262
Haiku 4.5 $0.00000 $0.00131

Measured 23d ago against content hash d2914e5707fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 23d 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 eleven-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. 23d ago Changed d2914e5707fe
  2. 2mo 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 (3 stars, last pushed 12d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,310 tokens. 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

requirement-alignment compared with skills from other repositories

requirement-alignment next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
requirement-alignmentbaixinghao/intent-gateSkill312d agoMITA0Claude Code
drogon-gen-orm-modelvoidvec/drogon-claude-pluginSkill11mo agoMITA46Claude Code
drogon-gen-orm-crudvoidvec/drogon-claude-pluginSkill11mo agoMITA56Claude Code
drogon-gen-db-configvoidvec/drogon-claude-pluginSkill11mo agoMITA47Claude Code
drogon-gen-redis-configvoidvec/drogon-claude-pluginSkill11mo agoMITA47Claude Code
tencent-pg-inspectionTencentCloudCommunity/mcp-serverSkill323mo agoApache-2.0A68Claude Code, Codex
tencent-pg-ops-troubleshooterTencentCloudCommunity/mcp-serverSkill323mo agoApache-2.0A72Claude Code, Codex