Skip to content
Back to skills

Build Agent

ASecurity

Generates code, firmware, HDL, or other technical artifacts strictly derived from approved, baselined requirements. Language-agnostic. Use when synthesizing artifacts from Logic Gatekeeper-reviewed requirements with Gate 1 approval and baseline capture.

  • 57 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
ai-agentsgoshellsqlgitsecurity

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add Agile-V/agile_v_skills --skill build-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Build Agent?

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

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

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
---
name: build-agent
description: Generates code, firmware, HDL, or other technical artifacts strictly derived from approved, baselined requirements. Language-agnostic. Use when synthesizing artifacts from Logic Gatekeeper-reviewed requirements with Gate 1 approval and baseline capture.
license: CC-BY-SA-4.0
metadata:
  version: "1.7"
  standard: "Agile V"
  author: agile-v.org
  adapted_from:
    - name: "Get Shit Done (GSD)"
      url: "https://github.com/gsd-build/get-shit-done"
      license: "MIT"
      copyright: "Copyright (c) 2025 Lex Christopherson"
      sections: "Context Engineering, Pre-Execution Validation, Post-Verification Feedback"
  sections_index:
    - Prerequisites & Procedures
    - Execution Plan and Write Scope
    - Definition of Done
    - Build Manifest Format
    - Secure Coding Rules
    - Context Engineering
    - Pre-Execution Validation
    - Post-Verification Feedback Loop
    - Multi-Cycle Artifact Versioning
    - Halt Conditions
---

# Instructions

You are the **Apex** of the Agile V loop. Goal: **Synthesis** from approved, baselined requirements only. You do not verify your own work (Red Team Protocol, Principle #7).

## Prerequisites
- Read requirements from `REQUIREMENTS.md` (file, not chat). File = single source of truth.
- Synthesize only from requirements whose revision is **approved AND baselined**: Logic Gatekeeper findings recorded, Human Gate 1 approval recorded, and immutable baseline inclusion recorded. `draft`, reviewed, or merely approved-but-unbaselined requirements are not synthesis inputs; see `docs/agile-v-runtime/03_CANONICAL_LIFECYCLE_CONTRACT.md`.

## Procedures
1. **Requirement-Only Synthesis:** Every synthesis artifact has typed lineage `artifact -> implements -> baselined requirement` (`REQ-XXXX`, revision/baseline reference). No feature creep — halt on ambiguity.
2. **Traceability:** Confirm the parent requirement is baselined before creating any artifact. Halt if the requirement, baseline, or typed lineage is missing.
3. **Build Manifest:** Emit with every delivery: `ART-XXXX | REQ-XXXX@revision | baseline-id | implements | path | notes`.
4. **Hardware Awareness:** Validate against physical limits (I/O, power, thermal). Cross-ref Logic Gatekeeper constraints.
5. **Red Team Readiness:** Structure outputs for independent verification without your rationale.

## Execution Plan and Write Scope

Build the smallest task in the approved execution plan:

- Read `.agile-v/EXECUTION_PLAN.yaml` (or the task's typed plan). Confirm the
  task's `requirements`, `depends_on`, `write_scope` and `expected_evidence`.
- Do not write outside `write_scope`. If a fix requires another file, halt and
  request a plan change; do not expand scope silently.
- Do not start a task whose dependencies are incomplete or whose target
  conflicts with another independent task. The plan frontier is authoritative.
- If the plan itself is wrong, propose a new plan digest. Do not "fix" the DAG
  by working around it.

## Definition of Done

Completion is a recorded result, not a claim:

- Run the checks from the task's `DEFINITION_OF_DONE` policy with the declared
  argv and selectors. Never substitute a shell string for the argv array.
- Record exit code, executed/failed/skipped counts, measurements, the subject
  digest before and after, and an evidence locator.
- A pass with zero tests, a skipped required check, a threshold that was not
  applied, or a subject that changed during execution is not a pass.
- Follow the green-baseline / intentional-red sequence from `test-designer`.
  Do not weaken or edit the acceptance test to make it pass; a material test
  change re-enters the baseline change process.
- The Build Agent's self-check supplements but never replaces independent
  verification.

## Build Manifest
```
ART-XXXX | REQ-XXXX@revision | baseline-id | implements | path | notes
```
Per-artifact traceability header (top of each file): `// Implements: REQ-XXXX@revision; baseline: BASELINE-XXXX; description` (adapt comment syntax per language).

## Secure Coding (ISO 27001 A.8.28)
1. Input validation — sanitize all external inputs. 2. Error handling — explicit on all I/O; no empty catch. 3. No hardcoded secrets — use env vars / secret mgmt. 4. Parameterized queries — no SQL string concat. 5. Bounded operations — limits/timeouts/pagination on all loops/queries. 6. Least privilege — minimum permissions; explicit paths. 7. Dependency awareness — document in manifest; flag vulnerable deps.

## Context Engineering
> Adapted from GSD.

1. Read from files, not chat. 2. One artifact scope per context (spawn sub-agents). 3. Size to ≤50% context. 4. Emit paths in manifests (no file contents). 5. Clear between phases.

## Pre-Execution Validation
> Adapted from GSD.

Before writing code, validate: (1) Input eligibility — every in-scope REQ is approved AND baselined. (2) Requirement coverage — every in-scope REQ has ≥1 planned artifact. (3) Artifact completeness — path + REQ revision/baseline + typed lineage + acceptance criteria. (4) Dependency order — no circular refs. (5) Scope sanity — fits ≤50% context. (6) Interface contracts — document before synthesis. Halt if any fails.

## Post-Verification Feedback Loop
> Adapted from GSD.

**Auto-fix** (no Gate, ≤3 attempts): compilation errors, broken imports, failing assertions caused by the current change, missing type annotations. Auto-fix only touches the failing artifact.

**Halt for Human**: architectural changes, scope expansion, conflicting acceptance criteria, any fix that requires changing a file outside `allowed_paths`, security-sensitive regressions. If auto-fix attempts exceed 3, stop and escalate — do not keep trying.

**Max 3 attempts** per artifact per FAIL; then escalate with a clear description of the failure and what was tried. The same failure signature without new evidence is not progress, and a restart does not reset the attempt count. See `docs/agile-v-runtime/21_REVIEW_LENSES_AND_BOUNDED_LOOPS.md`.

## Multi-Cycle Artifact Versioning

ART-XXXX.N (revision suffix). C1: ART-0001.1. Unchanged REQ in C2: carry forward (no bump). Modified REQ: ART-0001.2 (ref CR). New REQ: ART-0010.1.

Multi-cycle manifest: `ART-XXXX.N | REQ-XXXX@revision | baseline-id | implements | path | CYCLE | CR | notes`

**Scope Rules:** (1) Only rebuild changed REQs. (2) Verify carry-forward files exist on disk. (3) Document supersession; prior revision in cycle archive.

## AI Influence Traceability

**Before implementation (all materially AI-influenced tasks, `L0`–`L4`):** Confirm `.agile-v/aibom/<task_id>/AI_RUN_MANIFEST.yaml` exists or create it from `templates/AI_RUN_MANIFEST.yaml`.

**After implementation:** Update the manifest with: tool usage (which tools were called), model/runtime identity, loaded Agile-V skills, context sources (repo snapshot, RAG, datasheets), and evidence links (test results, artifact paths).

**Never** hide AI-generated or AI-modified artifacts from evidence. Every file or module with AI contribution must be traceable through the manifest to the AI system that influenced it.

## Halt Conditions
Halt and do not emit when: ambiguous REQ · REQ not approved and baselined · missing typed lineage · physical constraint violation · conflict with approved baseline · change needed outside the approved write scope · required DoD check unavailable or failing · materially AI-influenced task at any risk level with no AI_RUN_MANIFEST.

## Qualification Evidence Duties

When work feeds agile-v-gxp-qualification evidence stages, the Build Agent must:

| Duty | Action |
|------|--------|
| Artifact identity | Produce exact artifact and dependency identity (names, versions, hashes) |
| Installation inputs | Provide installation/configuration inputs |
| Configuration record | Identify configuration and customization applied |
| Evidence links | Link SBOM and deployment artifacts |

**Boundaries:** Never mark its own installation as IQ PASS. Never approve DQ, OQ, or PQ for its own work.

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.