CommunityCoding & Developmentgithub.com

specforge

Interrogate vague requirements into a visual spec.html, then use the spec to verify code line by line and produce a report.html — two Claude Code skills

What is specforge?

Specforge is a pair of complementary Claude Code skills designed to transform ambiguous or incomplete requirements into structured, visual specifications (spec.html) and then verify the implementation against those specifications to generate a detailed verification report (report.html). The first skill, specforge-gen, prompts the user through a systematic interrogation process to clarify requirements, edge cases, and assumptions, outputting an interactive HTML specification document with checkboxes and status indicators. The second skill, specforge-verify, reads the generated spec.html, executes tests against the codebase, and produces a report.html that shows pass/fail status for each requirement. Built specifically for Claude Code (Anthropic's agentic coding tool), these skills help developers maintain traceability between requirements and implementation, reduce ambiguity, and provide clear documentation of what has been built and verified. The workflow is ideal for projects requiring rigorous requirement-to-code alignment or for teams needing an audit trail of development decisions.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add WangLiquan/specforge

Installed? Explore more Coding & Development skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does specforge do?

Interrogate vague requirements into a visual spec.html, then use the spec to verify code line by line and produce a report.html — two Claude Code skills

Overview

Specforge provides two complementary skills for Claude Code:

  1. specforge-gen — Interactively clarifies and structures vague requirements into a visual specification document (spec.html).
  2. specforge-verify — Reads the generated spec.html, verifies the codebase against each requirement item by item, and produces a verification report (report.html).

How It Works

specforge-gen

  • Prompts the user with targeted questions to disambiguate requirements.
  • Captures edge cases, assumptions, and acceptance criteria.
  • Outputs a self-contained spec.html with checkable items, status indicators (pass/fail/in-progress), and a visual summary.
  • The generated HTML is fully interactive (no external dependencies).

specforge-verify

  • Parses the existing spec.html to extract all defined requirements and acceptance criteria.
  • Runs automated checks against the codebase (e.g., unit tests, static analysis, or custom scripts).
  • Updates the spec with pass/fail status for each requirement.
  • Generates a report.html showing the final verification state.

Usage

# In Claude Code, invoke the skill by describing your intent:
> I have a vague feature request. Use specforge-gen to help me clarify it.

# After spec.html is generated, verify the implementation:
> Use specforge-verify to check the code against the spec.

Requirements

  • Claude Code installed and configured.
  • Node.js (for the HTML generation scripts, if applicable).

Example Workflow

  1. You describe a vague requirement (e.g., "add user authentication").
  2. specforge-gen asks clarifying questions: What auth methods? Password rules? Session duration?
  3. A spec.html is created with a clear list of requirements.
  4. After implementing the feature, run specforge-verify.
  5. A report.html shows which requirements passed and which failed.

Notes

  • The skill files must be placed in the appropriate skill directory for Claude Code (see Claude Code documentation).
  • Custom verification logic can be injected via an optional config file.

License

Distributed under the MIT License. See LICENSE for details.

Related Skills