Minimally implements a locked PLAN.md by executing a coding ladder (ponytail style) and verifying the result after human approval. Not for plan design or review.
Ships in bcc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Job: ship the shortest correct code that satisfies the active PLAN.md, then verify and progress-only 约减 the checklist.
Deep source: ponytail SKILL.md (coding ladder only — not review/audit family).
Does not: interview the user for domain design, write ADRs, adversarial-review the plan, or refine PLAN design while coding — do that in bcc-plan-spar first.
Do not write product code until this check passes.
If uncertain → ask the user (one question + recommended default). Never invent APPROVE.
| Check | Read |
|---|---|
| Global map | plans.md / progress.md (if present) — which hardpoint is current? |
| Coding brief | PLAN.md (or plan_path from session) — exists? draft? locked? checklist open items? |
| Domain | CONTEXT.md / ADRs if referenced by PLAN |
.bcc/session.json | Cross-session APPROVE — see SESSION.md |
| Chat this session | APPROVE implement / “开写” / explicit skip-gate |
human_APPROVE=yes if either:
approved_for=clean-cut and plan_sha256 equals SHA-256 of current PLAN file bytes.If session says approved but hash mismatch → PLAN changed after approve → human_APPROVE=no → ask re-APPROVE or plan-spar (do not code).
Echo:
preflight · PLAN=… · human_APPROVE=yes|no|unclear · session=… · hash=match|mismatch|none · throughline=yes|no · recommend=code|plan-spar|throughline|ask-user
| Situation | Suitable? | Do this |
|---|---|---|
No PLAN.md | No | Stop. Send to bcc-plan-spar. Ask if they meant to plan first. |
PLAN.md is _Draft — not locked_ | No | Stop. Finish bcc-plan-spar lock (or ask user to force-lock). |
| Checklist all complete / slice already shipped | Usually no | Ask: “PLAN is done. New slice (plan-spar), throughline next, or re-open checklist?” |
| PLAN topic ≠ user’s request / ≠ throughline current hardpoint | Ask | “PLAN is for X; you asked to implement Y. Switch (plan-spar), or implement X?” |
Human APPROVE implement this session or valid .bcc/session.json approve (hash match) | Yes | Proceed to ladder |
| User said “implement / clean-cut” but no chat APPROVE and no valid session approve | Ask | “PLAN is locked but not human-approved for coding. APPROVE implement, amend, or back to plan-spar?” Default recommend: confirm APPROVE once. |
| User only asked “where are we?” | No | bcc-throughline |
| User still wants alignment / more grill | No | bcc-plan-spar |
| Multi-step endeavor, no throughline, large remaining work | Warn + ask | Optional: “No plans.md cockpit — continue one-off cut, or create throughline first?” Coding may proceed if PLAN is solid and user wants speed. |
PLAN.md exists and is not an unlabeled draft.If any item fails and user did not override → do not code; ask or route.
Only then: optionally set session status=coding → read code flow → ladder → verify → 约减 PLAN → throughline writeback → on pass set session status=done, approved_for=none (consume one-shot approve per SESSION.md).
After human APPROVE, PLAN.md is a frozen contract for design content.
| Allowed during cut | Forbidden during cut |
|---|---|
| Implement within Goal / Approach / checklist / Verification | Rewrite Goal, Approach, Key decisions, Out of scope, Verification design |
Check off [ ] → [x] only after implement + verify | Add new checklist items, “improve” wording of the brief, expand scope |
| 约减 progress only: remove completed checklist rows / finished bulk that is already done | Mid-cut plan polish, second-guess architecture into the file |
Note learnings in progress.md / findings.md | Quietly change the brief so APPROVE no longer matches reality |
Conflict / plan wrong / can't meet Verification: stop coding → say the conflict in one short line → bcc-plan-spar (or user amends PLAN) → re-APPROVE. Do not “fix the plan while shipping.”
No extra user ceremony: same gates as today; agent just won't rewrite the brief while coding.
| Level | Behavior |
|---|---|
| lite | Build what PLAN asks; name a lazier alternative in one line. |
| full | Ladder enforced. Shortest correct diff. Default. |
| ultra | YAGNI extremist on the code. May mention a speculative checklist item in chat; still execute PLAN as approved unless user sends you back to plan-spar. Never edit design sections to “improve” the plan. |
Echo: bcc-clean-cut · full · PLAN.md
Off only if user says stop bcc-clean-cut / normal mode for coding style (suite may still own process).
# bcc: <ceiling>; upgrade when <condition>.Trust-boundary validation, data-loss handling, security, a11y basics, anything PLAN/user explicitly requires. Never lazy about understanding.
PLAN.md Verification + checklist.PLAN.md (progress only): check off done items; drop completed bulk; keep open checklist + unchanged Goal/Approach/decisions/Verification design. Narrative history → throughline progress.md, not a redesign of the brief.Code first. At most a few short lines: skipped / add when.
Pattern: done → skipped: X, add when Y unless user asked for a full report.
Pass (required order):
PLAN.md.progress.md (session block + tests), plans.md hardpoint status, findings.md only if global learning.approved_for=none, status=done).complete) and Gate B (not yet offered/closed) per bcc-throughline Endeavor wrap-up → one wrap-up offer (write ### Wrap-up offered first, then ask global verify / what kind / skip).Incomplete without writeback. If writeback fails, fix files before claiming success.
Fail: log error in progress.md; 3-strike then escalate; after 2 verify fails → stop cutting, require bcc-plan-spar to revise PLAN.
| How | Example |
|---|---|
| After bcc-plan-spar | User APPROVE → agent loads bcc-clean-cut |
| Skill | /bcc-clean-cut · /bcc-clean-cut ultra |
| Chat | "bcc-clean-cut", "按 PLAN 最小实现", "implement the brief" |
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/bcc-breaking-coding-chaosBCC main skill: dual-loop coding workflow (throughline → plan-spar → clean-cut) or quick status+next. Slash: /bcc-breaking-coding-chaos · chat: bcc:breaking-coding-chaos · "run BCC" · "BCC status" · "what next BCC". Needs a real idea (1:1 implement). Args: goal text, or status. May pass plan-spar review budget as rounds=N when chaining.
/bcc-plan-sparBCC align+lock+review PLAN.md for one slice (no product code). Slash: /bcc-plan-spar · chat: bcc:plan-spar · "lock PLAN" · spar the plan. Args: rounds=N (auto-review cap), review=self|subagent|cli|auto|off. Grill until clear enough (no default Q&A quota). Hand off to bcc-clean-cut after human APPROVE.
/bcc-throughlineBCC global progress cockpit (plans.md/progress.md/findings.md). Slash: /bcc-throughline · chat: bcc:throughline · "where are we" · reprioritize · resume after /clear. Not for coding or full PLAN grill.
/bcc:bcc-clean-cut slash: /bcc-clean-cut · chat: bcc:clean-cut · [lite|full|ultra]from bcc
npx claudepluginhub bo-cao/breaking-coding-chaos --plugin bccOther plugins' skills for the same job