requirement-forge

requirement-forge is a skill for Claude Code, Codex from techygarg/lattice. It costs 135 tokens per session (3,022 once invoked), scanned A, original, MIT.

A collaborative interview that turns a feature idea into a structured specification. It acts like a product manager and business analyst by asking about the problem, challenging scope, and proposing choices.

In plain words
What is it for?
Use it to define a feature's goals, behavior, boundaries, and decisions before implementation, either collaboratively or in autonomous drafting mode.
Why use it?
It helps uncover missing requirements and prevents a solution from being built before the underlying user problem is clear. It also makes important trade-offs visible.

Skill for Claude CodeCodex

Part of the lattice plugin — 33 skills, 2 agents 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/techygarg/lattice/requirement-forge
Any agent
npx skills add techygarg/lattice --skill requirement-forge
Clone the repo
git clone --depth 1 https://github.com/techygarg/lattice

Made for: Claude Code, Codex.

Or install lattice, the plugin that ships this one along with the rest of its 33 skills, 2 agents.

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-forge

README.md
[![agentmods](https://agentmods.dev/badge/skills/techygarg/lattice/requirement-forge.svg)](https://agentmods.dev/skills/techygarg/lattice/requirement-forge)
Your own site
<a href="https://agentmods.dev/skills/techygarg/lattice/requirement-forge"><img src="https://agentmods.dev/badge/skills/techygarg/lattice/requirement-forge.svg" alt="Measured on agentmods" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,022 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.00135 $0.03022
Opus 5 $0.00068 $0.01511
Sonnet 5 $0.00027 $0.00604
Haiku 4.5 $0.00014 $0.00302

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

Security

Grade A, and why

requirement-forge 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 5d 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-forge/SKILL.md · 175 lines

How it starts

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

Requirement Forge

Required Skills

Read and apply in order:

  1. framework:requirement-quality — load requirement standards and enforce spec quality throughout (always)
  2. framework:collaborative-judgment — surface genuine judgment calls instead of silent assumptions (always)
  3. framework:knowledge-priming — ground feature language in actual project domain (conditional: skip if no codebase exists yet)

Mode Detection

Collaborative (default) — confirmation gate at each phase. Proposes at every decision, challenges scope, treats the user as a partner.

Autonomous — invoked when the user says "forge autonomously", "draft everything", or "autonomous mode". Steps 2–5 run without gates. After drafting, present complete output for review. framework:requirement-quality checks still run silently before each file write.

PM/BA Persona

Behave as an experienced senior PM and business analyst.

  • Ask WHY before accepting WHAT. If the user states a solution without a problem, ask what user pain it solves.
  • Challenge scope actively. Name the concern specifically: "This sounds like two features" or "A user can't complete [task] without [missing piece]."
  • Propose at every decision. Never ask an open question without a view. State your preference and let the user confirm or override.
  • Do not just listen and agree. When the user's framing is incomplete or inconsistent, say so and offer a better framing.

Workflow

Step 1: Standards and Session Check

1a — Load standards

Trigger framework:requirement-quality — it handles config resolution and loads the active standards. Do not re-implement or recite its logic here.

If no standards document is found at paths.requirement_standards: recommend requirement-forge-refiner as a one-time setup, then offer to continue with built-in defaults if the user declines.

1b — Session resume

Scan .lattice/requirements/ for existing documents.

  • Legacy format check — if index.md exists with epic sections and feature tables written directly inside it (no epics/ directory alongside), and requirements_layout is absent from .lattice/config.yaml or set to flat: tell the user "This project's requirements index uses an older Lattice layout. Run /lattice-init to check for and apply available upgrades." STOP: do not attempt migration in this molecule.
  • If index.md exists (sharded layout) → read it plus epics/*.md, inventory all feature files under features/. Classify each as: structurally incomplete (missing sections), quality-suspect (run framework:requirement-quality Anti-Pattern Scan silently — flag anything that fires), or complete.
  • If issues found → surface per file. User decides: fix now (→ re-enter Step 5 for that file), skip, or move to another (record the decision and continue the inventory).
  • If everything complete → ask what to do next, then re-enter at the right step:
    • Add features to existing epic → Step 4
    • Create new epic → Step 3
    • Update a spec → Step 5
  • If nothing exists → proceed to Step 2.

Read the full file on GitHub · 175 lines

Files

What ships with it

1 file 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. 5d ago First seen · 175 lines · 135 tokens per session scan A 979e1338d313

Subscribe to this mod's changes

requirement-forge is a skill published in the GitHub repository techygarg/lattice (185 stars, last pushed today), licensed MIT. It adds 135 tokens to every session and 3,022 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-30.

Related

Other skills, from other repositories

name-your-business

Generate, refine, compare, and when needed validate distinctive names for startups, AI products, developer tools, protocols, open-source projects, apps, product families, local businesses, services, companies, nonprofits, and other organizations. Use when asked to name or rename a business, brand, product, venture…

tamdogood/builder-essential-skills · 156 tokens

top-one-percent

Teach any topic deeply from first principles and build evidence-based paths toward exceptional capability. Use when a user asks to understand, explain, learn, or deep-dive into a topic; asks why or how something works, why it matters, how alternatives compare, or what different perspectives reveal; requests current…

tamdogood/builder-essential-skills · 111 tokens

paper-opportunity-radar

Run a cumulative daily or retrospective sweep of research papers on a chosen topic, audit their claims, methods, integrity signals, and independent support, then identify overlooked but feasible project or business opportunities in a detailed source-grounded report. Use when asked to monitor papers every day, mine…

tamdogood/builder-essential-skills · 98 tokens

repo-system-map

Analyze a software repository at the latest remote main commit and turn its implemented architecture into a citation-backed interactive isometric system map with a legend, selectable infrastructure buildings, dependency and payload flows, and plain-language learner explanations. For eligible public GitHub…

tamdogood/builder-essential-skills · 123 tokens

async-learning-teacher

Transform saved links, papers, articles, posts, videos, and reference collections into approachable AI teaching artifacts for later study. Use when a user wants to queue learning material, create a readable explanation from a source, teach a paper or post step by step, or run an interactive tutor that validates…

tamdogood/builder-essential-skills · 68 tokens

build-scenario-tests

Inspect an unfamiliar repository, turn a focused Markdown behavior scenario into a deterministic test in the repository's native test stack, run it, and preserve traceability between intent and code. Use when asked to add scenario tests, compile acceptance criteria or Given/When/Then Markdown into executable tests…

tamdogood/builder-essential-skills · 104 tokens