Skip to content
Back to skills

Patch

ASecurity

Fix a defect on the smallest context footprint — one band, the affected files.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 23, 2026
ai-agentsapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 23, 2026

npx -y skills add wheslleyrimar/BuildCLI-Agents --skill patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Patch?

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

Security grade badge for Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wheslleyrimar-patch-buildcli-agents/badge)](https://www.skillsdirectory.com/skills/wheslleyrimar-patch-buildcli-agents)

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: patch
description: Fix a defect on the smallest context footprint — one band, the affected files.
---

# Patch

## Arguments

Defect description and/or file path(s). Add --trace to file a defect blueprint.

## Output

Code fix + root cause. With --trace: blueprints/defects/<slug>/brief.md and a moved .buildcli/active.
## Steps

1. Check for `--trace`. If present, file the defect blueprint first (see Trace mode).
2. Identify the affected file(s) from the description.
3. Route to a band:
   - API / service / auth / middleware → `[band:service]`
   - component / page / client state → `[band:interface]`
   - migration / model / query → `[band:store]`
   - test file → `[band:verify]`
   - pipeline / infra / env config → `[band:delivery]`
4. Load only that band: `.buildcli/runtime/bcx band <name>`. Never the whole file.
5. Read the affected file(s) and no more.
6. State the root cause in one sentence before changing anything.
7. Apply the minimal fix. Run the relevant tests.
8. Flag any cross-band follow-up.

## Trace mode (--trace)

1. Slug the description, create `blueprints/defects/<slug>/`.
2. Write `brief.md`: summary, root cause hypothesis, affected files, acceptance criterion (does not reproduce), owning band.
3. Write the path to `.buildcli/active`.
4. Fix, then update `brief.md` with the confirmed cause and the change.

## Rules

- One band. Never the whole context file.
- Do not refactor around the defect.
- Root cause unclear after reading the file → ask, do not guess in code.
- `--trace` is opt-in; skip it for trivial fixes.

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.