Skip to content
Back to skills

Modular Build

ASecurity

Writes the implementation plan as an ordered list of modules and builds them one at a time: each module has its tasks, is built test-first, gets a visual check when it has UI, and needs the user's acceptance before the next one starts. Use when a spec is approved and the user asks for the implementation plan, or asks to build an app or a large feature part by part or task by task, even if the user does not say module.

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsgo

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Mouad1/moskills --skill modular-build --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Modular Build?

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

Security grade badge for Modular Build
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mouad1-modular-build/badge)](https://www.skillsdirectory.com/skills/mouad1-modular-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
---
name: modular-build
description: "Writes the implementation plan as an ordered list of modules and builds them one at a time: each module has its tasks, is built test-first, gets a visual check when it has UI, and needs the user's acceptance before the next one starts. Use when a spec is approved and the user asks for the implementation plan, or asks to build an app or a large feature part by part or task by task, even if the user does not say module."
---

# Modular Build

Primary goal: Build one module at a time, and start the next only when the current one is proven and accepted.

A module is one run (`run-state init --id module-<name>`): its tasks are the work, its proof comes from `/gatekeeper`, and the user's acceptance closes it. This skill adds no gate of its own; it orders runs.

## Steps

1. **Split.** Use the agreed intent; run `/align-intent` first if it is unclear. Cut the work into modules that each work on their own: one screen, one service, one data layer. Order the modules so that each needs only finished ones. Agree the list with the user. Then record it under `## Modules` in `tasks/todo.md`, one line each: `module-<name>: <outcome> (run: module-<name>)`.
2. **Start one module.** `run-state init --id module-<name> --goal "<outcome>" --scope <files> --tasks "<t1>,<t2>"`. For every module after the first, add `--after module-<previous>`: the engine refuses to start it until the previous module is done. Never pass `--force` to get around that.
3. **Build it** test-first (`/tdd`). Record each check through the run: `run-state wrap --id module-<name> --task <task> --auto-complete -- <command>`. When the module has UI, add a visual check as one of its tasks. The check is a screenshot or browser test through `wrap`, or `/preview` states that the user looks at.
4. **Gate it** with `/gatekeeper` on this run. Then show the user the result and ask for acceptance. Only after they say yes: `run-state accept --id module-<name> --by <name>`.
5. **Confirm done:** `run-state done --id module-<name>` must exit 0 (every task has current proof, acceptance holds). If it lists reasons, fix those; do not move on.
6. **Next module:** mark the line in `tasks/todo.md` done, then go back to step 2. `run-state list` shows every module and whether it is done.

## Rules

- One module in progress at a time. Do not edit files in the scope of a finished module while you build the next, unless the user asks. If you must, `run-state done` on that module turns false, and that module comes first again.
- The user's acceptance is theirs: never run `accept` without their explicit yes in this conversation.
- If the user says "you decide" about the split, write it yourself and label it `Self-authored under delegation`.
- Report per module: `module-<name>: done` or `still not done` with the reasons `run-state done` printed.

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.