بنقرة واحدة
laundering
// Use when all territories report completion after the hit — handles integration, verification, consigliere final review, cleanup, and ledger updates to produce clean production-ready code
// Use when all territories report completion after the hit — handles integration, verification, consigliere final review, cleanup, and ledger updates to produce clean production-ready code
Use when receiving code review feedback — processes orders with technical rigor, not blind obedience or performative agreement
Use when beginning a new heist — deploys associates to survey the target codebase, existing tests, dependencies, documentation, and the ledger to produce a reconnaissance dossier for the don's review
Use when starting feature work that needs isolation from the current workspace — sets up a secure safehouse with git worktrees for clean operational bases
Use when the execution plan is approved and it is time for parallel execution — dispatches workers through crew leads to implement work packages with TDD enforcement, report collection, and escalation protocols
Use when starting any conversation — establishes how to find and use Gangsta skills, enforces the 1% invocation rule, maps platform tools, and routes the Don's intent through the Gangsta Agents Family hierarchy
Use when the contract is signed and work packages need to be created — decomposes the contract into bite-sized tasks, sets up git isolation, allocates territories and token budgets, producing the execution plan
| name | laundering |
| description | Use when all territories report completion after the hit — handles integration, verification, consigliere final review, cleanup, and ledger updates to produce clean production-ready code |
A successful Heist is only complete when the "loot" is refined into its final, legitimate form. Laundering handles integration, verification, cleanup, and institutional memory updates.
Invoked after all Crew Leads report territory completion and the Don approves (The Hit complete).
Merge all territory branches/worktrees into the Heist branch:
# If using worktrees per territory
git merge territory/<name> --no-ff
Resolve any conflicts. If conflicts are non-trivial, escalate to the Underboss for a mini-Grilling.
Run the full verification suite:
# Run all tests
<project test command>
# Run linter
<project lint command>
# Run type checker (if applicable)
<project type check command>
All checks must pass. If any fail:
Use gangsta:sweep-verification — every claim of passing must be backed by fresh command output.
Identifier Scan (Blocking Gate): Scan all project files outside docs/gangsta/ for Gangsta-internal spec identifiers using the pattern \b(FR|NFR|WP)-\d+\b (matches FR-001, NFR-042, WP-007, FR-1, etc.).
grep -rn --include="*.md" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.rb" --include="*.java" --include="*.txt" -E "\b(FR|NFR|WP)-[0-9]+" . --exclude-dir=docs/gangsta
Invoke gangsta:the-consigliere for an architectural audit of the integrated code:
If the Consigliere raises CRITICAL concerns: fix before proceeding. If CONCERNS: present to Don for decision. If APPROVE: proceed.
For an independent code-level review alongside the Consigliere's architectural assessment, dispatch gangsta:audit-review.
Remove operational artifacts:
Do NOT remove:
docs/gangsta/<heist-name>/specs/YYYY-MM-DD-contract.md)docs/gangsta/<heist-name>/plans/YYYY-MM-DD-execution-plan.md)docs/gangsta/<heist-name>/recon/YYYY-MM-DD-recon-dossier.md)Autonomous Mode: When invoked under gangsta:autonomous-mode, see § Per-Phase Interaction Schemas → Laundering in that skill. Ledger entries written under autonomous mode use frontmatter signed-by: don-proxy, status: pending-don-confirmation, heist: <feature>; the human Don's later /gangsta:go flips status to confirmed, and /gangsta:abort relocates the entry. Otherwise this skill operates as written.
Invoke gangsta:the-ledger to record the Heist's lessons:
Insights — For each notable solution or pattern discovered:
docs/gangsta/insights/YYYY-MM-DD-<topic>.mdFails — For each failure, regression, or mistake encountered:
docs/gangsta/fails/YYYY-MM-DD-<topic>.mdAsk the Don:
"The Heist is nearly complete. Were there any insights or failures you want to record in the Ledger?"
Present to the Don:
"Laundering complete for Heist ''.
- All tests pass
- Consigliere verdict: [verdict]
- Ledger updated: [N] insights, [N] fails
- Code is clean and ready for production
Do you declare this Heist complete?"
The Don may:
---
heist: <heist-name>
phase: laundering
status: completed
timestamp: <ISO 8601>
next-action: Heist complete. Merge to main or archive.
artifacts:
- docs/gangsta/<heist-name>/specs/YYYY-MM-DD-contract.md
- docs/gangsta/<heist-name>/plans/YYYY-MM-DD-execution-plan.md
- docs/gangsta/<heist-name>/recon/YYYY-MM-DD-recon-dossier.md
- <all code files created/modified>
---