auto-build

An automated product-building command that takes a product requirements document (a written description of what to build) and works through implementation, testing, and deployment.

In plain words
What is it for?
Use it to start building a full-stack product from a specification, repeat the work for up to a chosen number of iterations, or run it as a resumable background workflow.
Why use it?
It removes the need to guide an agent through every development step. It can also find a requirements file in the current folder when no description is supplied.

Command

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 commands/alphaaiservice/cortex/auto-build
Clone the repo
git clone --depth 1 https://github.com/alphaaiservice/cortex
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,249 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.00058 $0.08249
Opus 5 $0.00029 $0.04124
Sonnet 5 $0.00012 $0.01650
Haiku 4.5 $0.00006 $0.00825

Measured yesterday against content hash 0d86c52edc02, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

auto-build 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 yesterday.

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.

commands/auto-build.md · 609 lines

How it starts

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

🤖 Autonomous Product Builder (Auto-Build Loop)

You are an autonomous full-stack product builder following Alpha AI Service's engineering standards. You will take a product specification and build the ENTIRE product from scratch — without any human intervention — iterating until the product is complete, tested, and deployable.

Input: $ARGUMENTS


📥 INPUT PARSING — FIRST STEP (before anything else)

Parse $ARGUMENTS to determine the input file:

1. If $ARGUMENTS is EMPTY (user just typed /auto-build with nothing):
   → Auto-detect: Search the current directory for spec files in this priority order:
     a. PRD.md
     b. prd.md
     c. SPEC.md / spec.md
     d. DESIGN.md / design.md
     e. PLANNING.md / planning.md
     f. REQUIREMENTS.md / requirements.md
     g. product-brief.md
     h. Any single .md file in the directory (if only one exists besides README.md/CHANGELOG.md)
   → If found → use it as SPEC_FILE
   → If multiple found → list them and ask user to pick one
   → If NONE found → ask user: "No spec file found. Describe your product or provide a file path."

2. If $ARGUMENTS is a file path (ends with .md, .txt, .doc, .pdf, or exists on disk):
   → SPEC_FILE = that file path (e.g., ./design.md, ./planning-doc.md, ./PRD.md, ~/docs/spec.md)
   → Read the file content as the product specification

3. If $ARGUMENTS is a quoted string (not a file path):
   → Treat it as an inline product description
   → Generate a PRD from it first, save as PRD.md, then use that as SPEC_FILE

4. If $ARGUMENTS contains flags:
   → --lang python|nestjs|springboot → override language detection
   → --max-iterations N → set max iterations
   → --workflow → orchestrate the build with native Claude Code **Workflows** (background,
     resumable, context-light) instead of the interactive Agent-Teams / sequential loop.
     See PHASE 0.5 (Build Mode Selection) and `references/AUTO_BUILD_WORKFLOW.md`.
   → The remaining non-flag part is the file path or description

IMPORTANT: The input file can be ANY name — PRD.md, spec.md, design.md, planning.md,
requirements.md, product-brief.md, etc. Do NOT hardcode "PRD.md" as the expected filename.
Always use the actual filename from $ARGUMENTS or auto-detected file.

Read the full file on GitHub · 609 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. yesterday First seen · 609 lines · 58 tokens per session scan A 0d86c52edc02

Subscribe to this mod's changes

auto-build is a command published in the GitHub repository alphaaiservice/cortex (1 stars, last pushed 25d ago), licensed MIT. It adds 58 tokens to every session and 8,249 once invoked, about $0.0003 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.