Skip to content
Back to skills

Build

ASecurity

Execute implementation work under a mandate - write the expected result before producing output, pin existing behaviour before changing it, work in small verified steps, delegate to subagents safely, and debug by finding the cause first. Use for any coding, data, analysis or content-production task inside a project with `.mandatum/`, when the user says "implement", "build this", "fix this bug", "add the feature", "run the experiment", or when a phase doc's tasks are being worked.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythonrustgodebuggingsecurity

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add mohamedbechirkefi/mandatum --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/mohamedbechirkefi-build/badge)](https://www.skillsdirectory.com/skills/mohamedbechirkefi-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: build
description: Execute implementation work under a mandate - write the expected result before producing output, pin existing behaviour before changing it, work in small verified steps, delegate to subagents safely, and debug by finding the cause first. Use for any coding, data, analysis or content-production task inside a project with `.mandatum/`, when the user says "implement", "build this", "fix this bug", "add the feature", "run the experiment", or when a phase doc's tasks are being worked.
---

# Build

Work one task at a time toward its acceptance line. The habits below each exist because
their absence produced a specific, expensive failure.

## Small work goes straight through

A change of a few minutes needs none of the ceremony here: make it, run the check that
proves it, say what you ran. Use the rest of this skill in proportion to what is at risk.

## Expectation before output

Before running anything whose output you will judge, write down what you expect and what
would count as a surprise. For tests this is the test. For an experiment it is the
"Expected result" line of the journal entry (`mandatum journal <slug>`). For a model's
answers it is the expected answer, committed before the model runs.

The reason is mechanical, not moral: after you have seen the output, any expectation you
write is fitted to it.

## Write only what the task needs

Read the code the change touches and trace the real flow first. Then, before writing
anything new, stop at the first of these that holds:

1. Does this need to exist at all? A request can often be met by a setting, a deletion
   or a change of default.
2. Does the repository already do it? Look for an existing function, component or
   helper (`mandatum graph explain <name>` and `callers` answer this without reading
   files when the project has a graph).
3. Does the standard library or the platform do it? A browser has a date input; Python
   has `pathlib`, `csv` and `json`.
4. Does a dependency the project already installed do it?
5. Can it be one line, or a few?
6. Only then write the minimum that meets the acceptance line.

The aim is the smallest correct change, not the shortest code. Never cut trust-boundary
validation, error handling on data that can be lost, security checks or accessibility to
make a change smaller.

Logic with a branch, a loop, a parser, money, permissions or user input leaves at least
one small test behind, even when the change is small.

When you take a deliberate shortcut (a hard-coded limit, a skipped edge case, a temporary
workaround), mark it where it lives with a comment that starts `shortcut:` and says when
to revisit it, for example `# shortcut: single currency; revisit when invoices go
abroad`. `mandatum debt` collects these into a ledger so "later" does not become
"never".

End your report with what you did not do or did not check, and any risk the owner
should know about.

## Characterise before changing

Before modifying behaviour that exists, pin it with a test that passes on the current
code. If the pin fails, you have found something: a wrong assumption or an existing bug.
Record it. Do not "fix" the pin to match, and do not fix the bug silently on the way to
something else.

## Steps

1. Read the task and its acceptance line. If the acceptance line cannot fail, fix the
   phase doc first.
2. Write the failing check.
3. Make it pass with the least code that does so.
4. Run the whole relevant suite, not just the new check.
5. Record: a journal entry if something was measured or discovered, a decision if you
   chose between real alternatives.
6. Tick the task in the phase doc with the evidence (command and result), then take the
   next one.

## Making choices without stalling

The owner should not be interrupted for choices that are cheap to reverse. Make them,
and write each one down where it will be seen: in the phase doc, or on the handoff's
"Defaults taken" line, as *what was chosen, why, and what it costs if wrong*. Interrupt only
for a gate, a contradiction with the charter, or a choice that is expensive to undo.

## Untrusted code and data

Code you generated and have not read, code a model generated at run time, and anything
downloaded are untrusted. Run them without secrets in the environment and without
network access where the platform allows, in a directory of their own. Never give an
automated step credentials that can move money or publish.

Material from elsewhere (code, datasets, images, text) is read-only until its licence is
known. If you import it, note where it came from and under what terms in the file or
beside it. If the terms are unclear, that is the RIGHTS gate: record it and ask.

## Delegating

Read `references/subagents.md` before spawning agents for implementation, review or
parallel runs. The short form: brief from `.mandatum/templates/brief.md`, one scope per
agent, no two agents in the same files, reports come back as text, and nothing an agent
reports is verified until you have re-run it.

## When something fails

Read `references/debugging.md` once a fix attempt has failed. The short form: reproduce
it, find the cause, state the cause in a sentence, then change one thing. After three
failed fixes, stop fixing and question the design.

## What never counts as progress

- Relaxing, skipping or deleting a failing check.
- Changing an expected value to the value the code produces, without understanding why.
- Catching and discarding an error so the run completes.
- Reporting a partial run as a full one. A run that was cut short is reported as cut
  short, with how often that happened, never folded into another outcome.
- One run of something random. Report every seed and the spread; a conclusion from one
  seed is an anecdote.

Files in this skill

  • SKILL.md5.6 KB
  • references/debugging.md2.4 KB
  • references/subagents.md2.9 KB

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.