bmad-loop-sweep

bmad-loop-sweep is a skill for Claude Code, Codex from mmornati/leanproxy-mcp. It costs 82 tokens per session (1,083 once invoked), scanned A, original, MIT.

An automated, read-only workflow that reviews a deferred-work ledger, a file listing unfinished implementation tasks, against the actual codebase.

In plain words
What is it for?
Use it during a bmad-loop sweep to classify open entries or migrate an older ledger format.
Why use it?
It separates completed, blocked, skipped, bundled, and human-decision items so an orchestrator can handle unfinished work accurately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

Good fit Use it during a bmad-loop sweep to classify open entries or migrate an older ledger format.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mmornati/leanproxy-mcp/bmad-loop-sweep
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mmornati/leanproxy-mcp --skill bmad-loop-sweep
Clone the repo
git clone --depth 1 https://github.com/mmornati/leanproxy-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bmad-loop-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/mmornati/leanproxy-mcp/bmad-loop-sweep.svg)](https://agentmods.dev/skills/mmornati/leanproxy-mcp/bmad-loop-sweep)
Your own site
<a href="https://agentmods.dev/skills/mmornati/leanproxy-mcp/bmad-loop-sweep"><img src="https://agentmods.dev/badge/skills/mmornati/leanproxy-mcp/bmad-loop-sweep.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,083 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01083
Opus 5 $0.00041 $0.00541
Sonnet 5 $0.00016 $0.00217
Haiku 4.5 $0.00008 $0.00108

Measured 7d ago against content hash 26dee286d59b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

bmad-loop-sweep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/bmad-loop-sweep/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deferred-Work Sweep Triage

Goal: Classify every open entry in {implementation_artifacts}/deferred-work.md into a machine-readable triage plan the orchestrator can validate and execute.

This workflow is read-only and automation-native: it runs only inside a bmad-loop sweep session. You never edit the ledger, never edit code, never ask questions. Your sole output is the result file. (The one exception is migration mode, which edits exactly one file — the ledger.)

On Activation

Step 0: Automation Check & Mode Dispatch

Run: echo "${BMAD_LOOP_MODE:-}"

If the output is not 1, state that this skill only runs inside a bmad-loop sweep and end your turn. Otherwise read ./automation-mode.md fully — its rules and result schema govern this entire run.

If the invocation carries --migrate <manifest-path>, this is a migration session, not triage: read ./migration-mode.md and follow it instead of Steps 1–4 below.

Step 1: Locate the ledger

Read {project-root}/_bmad/bmm/config.yaml to resolve implementation_artifacts, then read {implementation_artifacts}/deferred-work.md in full. Open entries are ### DW-<n>: blocks whose status: line is open. If the ledger is missing or unreadable, escalate CRITICAL (type: missing-ledger) per automation-mode.md and end your turn.

If the invocation carries --feedback <path>, read that file FIRST — it lists the deterministic validation errors your previous attempt's result.json failed on. Fix exactly those defects in this attempt's output.

Step 2: Verify every open entry against the code

Ledger statuses are known-unreliable: entries are often resolved by later work but never marked done. For EACH open entry:

  1. Read its location: (file/component) in the current tree.
  2. Check whether the described issue still exists — read the code, grep for the symptom, check git log for commits that touched the area since the entry's origin: date.
  3. Record concrete evidence either way. "Probably fixed" is not evidence; a file:line or commit hash is.

Read the full file on GitHub · 93 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 93 lines · 82 tokens per session scan A 26dee286d59b

Subscribe to this mod's changes

bmad-loop-sweep is a skill published in the GitHub repository mmornati/leanproxy-mcp (5 stars, last pushed 7d ago), licensed MIT. It adds 82 tokens to every session and 1,083 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories