build

build is a command for Claude Code from claude-market/marketplace. It costs 14 tokens per session (3,791 once invoked), scanned A, original, MIT.

A build workflow that applies database and API specifications, generates code, implements handlers, and runs tests until the parts work together.

In plain words
What is it for?
Use it to apply database migrations, update OpenAPI definitions, generate type-safe code, implement business logic, run tests, and verify the integrated result.
Why use it?
It coordinates the steps between changing a schema and delivering working code, including migrations, verification, testing, and integration.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; positional $N argument.

Part of the specforge plugin — 5 commands, 3 agents shipped together

Good fit Use it to apply database migrations, update OpenAPI definitions, generate type-safe code, implement business logic, run tests, and verify the integrated result.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/claude-market/marketplace/build
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.

Clone the repo
git clone --depth 1 https://github.com/claude-market/marketplace

Made for: Claude Code.

Or install specforge, the plugin that ships this one along with the rest of its 5 commands, 3 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 build

README.md
[![agentmods](https://agentmods.dev/badge/commands/claude-market/marketplace/build/github.svg)](https://agentmods.dev/commands/claude-market/marketplace/build)
Your own site
<a href="https://agentmods.dev/commands/claude-market/marketplace/build"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/build/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 build

Your own site · 80×15
<a href="https://agentmods.dev/commands/claude-market/marketplace/build"><img src="https://agentmods.dev/badge/commands/claude-market/marketplace/build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,791 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00014 $0.03791
Opus 5 $0.00007 $0.01895
Sonnet 5 $0.00003 $0.00758
Haiku 4.5 $0.00001 $0.00379

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

Security

Grade A, and why

build scanned grade A with 1 finding 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 10d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

docker-compose exec api curl http://localhost:3000/health
specforge/commands/build.md · 652 lines

How it starts

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

SpecForge Build Orchestrator

Apply spec changes, run code generation, implement handlers, test and iterate until everything works.

Overview

The build process is orchestrated in phases:

  1. Apply Spec Changes - Update OpenAPI and database schemas
  2. Code Generation - Generate type-safe code from schemas
  3. Handler Implementation - Implement business logic in parallel
  4. Test & Iterate - Run tests, observe behavior, fix issues
  5. Integration - Wire everything together and verify

Phase 1: Apply Spec Changes

Apply Database Migrations

Read the SpecForge configuration from CLAUDE.md to identify the database plugin:

# Extract database plugin from CLAUDE.md
grep "database:" CLAUDE.md | cut -d: -f2 | tr -d ' '

Use the database plugin's migration skill:

Invoke the {database-plugin}/migrations-expert skill with:
- action: "apply-migrations"
- migrations_dir: "migrations/"
- database_url: from environment or docker-compose

Steps:

  1. List pending migrations
  2. Backup database (if production)
  3. Apply migrations in order
  4. Verify schema matches expected state
  5. Handle errors (rollback if needed)

Verify OpenAPI Spec

Use the openapi-expert skill to validate the spec:

Invoke openapi-expert skill with:
- action: "validate-spec"
- spec_path: "spec/openapi.yaml"

Validation checks:

  • Valid OpenAPI 3.x syntax
  • All $ref references resolve
  • Schemas are well-formed
  • Examples match schemas
  • No duplicate operation IDs

Phase 2: Code Generation

Run Codegen Pipeline (DB Schema → Types)

Identify the codegen plugin from CLAUDE.md:

grep "codegen:" CLAUDE.md | cut -d: -f2 | tr -d ' '

Invoke the codegen plugin's generation skill:

Use {codegen-plugin}/codegen-expert skill with:
- action: "generate-from-schema"
- schema_dir: "migrations/"
- output_dir: "{backend-path}/src/generated/db"
- database_url: from environment

This generates:

  • Type-safe database models (structs, classes, types)
  • Query functions with compile-time verification
  • Database client code
  • Schema types and enums

Read the full file on GitHub · 652 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. 10d ago First seen · 652 lines · 14 tokens per session scan A a359ff6b6e41

Subscribe to this mod's changes

build is a command published in the GitHub repository claude-market/marketplace (22 stars, last pushed 10mo ago), licensed MIT. It adds 14 tokens to every session and 3,791 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.