From gangsta
Integrates territory branches via git merge, verifies with tests/lints/type checks, scans/removes internal spec IDs from code files, runs reviews, cleans up, and updates ledger for production-ready code after heist completion.
npx claudepluginhub kucherenko/gangsta --plugin gangstaThis skill uses the workspace's default tool permissions.
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.
Guides finishing development branches by verifying tests pass, running code reviews with git diffs, auditing test alignment, and presenting merge/PR/cleanup options.
Verifies implementation matches spec via rule coverage, undocumented dependencies, and architecture compliance checks. Writes verification report and drift debt after /ctdd.
Enforces evidence-based verification by running tests, lints, type checks, builds, smoke tests and capturing output before claiming code, configs, docs, or tasks are done or ready.
Share bugs, ideas, or general feedback.
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>
---