Skip to content
Back to skills

Build

ASecurity

Implement a spec from .brain/specs/ test-first against its numbered acceptance criteria, keeping phase and bookkeeping current. Use when the user says "build/implement the spec" or "start building <feature>". Works with the TDD and plan gates.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 24, 2026
ai-agentsgonode

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add NeamulMorshed/The-Monkey-Brain --skill build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neamulmorshed-build/badge)](https://www.skillsdirectory.com/skills/neamulmorshed-build)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Implement a spec from .brain/specs/ test-first against its numbered acceptance criteria, keeping phase and bookkeeping current. Use when the user says "build/implement the spec" or "start building <feature>". Works with the TDD and plan gates.
argument-hint: "<spec-slug>"
model: sonnet
context: fork
effort: medium
---

# /brain:build — work the spec, test-first

The spec is the contract: every AC gets a test, every milestone leaves a trace. This skill runs
as a forked Sonnet subagent (manual §5): it cannot see the conversation or ask the curator, so
read what you need from the files and return with any blocker instead of waiting.

**The brain's learned rules (active instincts) — always apply:**
!`node "${CLAUDE_SKILL_DIR}/../../hooks/scripts/instincts.js" active`

## Steps

1. **Load the contract.** Read `specs/<slug>.md`. Check gate state up front:
   `architecture` tier without `plan_approved: true` → stop and return: the curator
   must approve the plan first (the guard would block source writes anyway).
   **Build never sets `plan_approved`** — only the curator's word flips it (`/brain:plan` step 4).
   Set the spec's `phase: build` (and the `projects/` page's phase). If the spec has a
   `## Blockers` section from a previous `/brain:review`, start from those.
2. **Slice by AC.** Take criteria in dependency order; keep each slice small enough
   that one red→green cycle covers it.
3. **Red → green → refactor per slice:**
   - **Red:** write the failing test that encodes the AC *first*. For new source files
     the TDD gate enforces this — if it blocks you, that's the reminder working, not an
     obstacle to route around (`tdd: false` in the spec is the curator's opt-out, not
     yours).
   - **Green:** the minimal implementation that passes.
   - **Refactor:** clean up with the tests green.
   Run the affected suite each cycle and report results honestly — a red suite is never
   "done".
4. **Track progress in the spec:** tick ACs as their tests pass (e.g.
   `AC-1 ✅ test_login_expiry`); log deviations and discoveries in the spec's Notes;
   choices worth keeping become `decisions/` ADRs (template `decision.md`).
5. **Bookkeeping per milestone:** append `wiki/log.md`
   `## [YYYY-MM-DD] build | <feature> — AC-n…m` and commit `build: <feature> — <slice>`
   per logical step.
6. **Hand off:** all ACs green → set `phase: review` and return, naming `/brain:review` as the
   next step.

**Done when:** every AC has a passing test (or an honestly recorded exception), the
spec reflects reality, and the trail — log entries plus commits — shows how it got there.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.