[{"data":1,"prerenderedAt":580},["ShallowReactive",2],{"navigation_docs":3,"-skills-hierarchy-roles-the-capo":246,"-skills-hierarchy-roles-the-capo-surround":575},[4,28,62,94,207,236,240],{"title":5,"path":6,"stem":7,"children":8,"order":11,"icon":27},"Getting Started","/getting-started","1.getting-started/index",[9,12,17,22],{"title":10,"path":6,"stem":7,"order":11},"What is Gangsta Agents?",1,{"title":13,"path":14,"stem":15,"order":16},"Installation","/getting-started/installation","1.getting-started/installation",2,{"title":18,"path":19,"stem":20,"order":21},"Quickstart — Your First Heist","/getting-started/quickstart","1.getting-started/quickstart",3,{"title":23,"path":24,"stem":25,"order":26},"The 1% Rule","/getting-started/the-1-percent-rule","1.getting-started/the-1-percent-rule",4,"i-lucide-rocket",{"title":29,"path":30,"stem":31,"children":32,"order":11,"icon":61},"Core Concepts","/core-concepts","2.core-concepts/index",[33,34,39,43,48,52,56],{"title":29,"path":30,"stem":31,"order":11},{"title":35,"path":36,"stem":37,"order":38},"Intent Routing","/core-concepts/intent-routing","2.core-concepts/intent-routing",5,{"title":40,"path":41,"stem":42,"order":26},"Omerta — The Five Laws","/core-concepts/omerta","2.core-concepts/omerta",{"title":44,"path":45,"stem":46,"order":47},"Spec-Driven Development","/core-concepts/spec-driven-dev","2.core-concepts/spec-driven-dev",7,{"title":49,"path":50,"stem":51,"order":16},"The Gangsta Agents Family Hierarchy","/core-concepts/the-borgata","2.core-concepts/the-borgata",{"title":53,"path":54,"stem":55,"order":21},"The Heist Pipeline","/core-concepts/the-heist","2.core-concepts/the-heist",{"title":57,"path":58,"stem":59,"order":60},"The Ledger","/core-concepts/the-ledger","2.core-concepts/the-ledger",6,"i-lucide-brain",{"title":63,"icon":64,"path":65,"stem":66,"children":67},"Heist Pipeline","i-lucide-workflow","/heist-pipeline","3.heist-pipeline",[68,70,74,78,82,86,90],{"title":53,"path":65,"stem":69,"order":11},"3.heist-pipeline/index",{"title":71,"path":72,"stem":73,"order":16},"Reconnaissance","/heist-pipeline/reconnaissance","3.heist-pipeline/1.reconnaissance",{"title":75,"path":76,"stem":77,"order":21},"The Grilling","/heist-pipeline/the-grilling","3.heist-pipeline/2.the-grilling",{"title":79,"path":80,"stem":81,"order":26},"The Sit-Down","/heist-pipeline/the-sit-down","3.heist-pipeline/3.the-sit-down",{"title":83,"path":84,"stem":85,"order":38},"Resource Development","/heist-pipeline/resource-development","3.heist-pipeline/4.resource-development",{"title":87,"path":88,"stem":89,"order":60},"Execution","/heist-pipeline/the-hit","3.heist-pipeline/5.the-hit",{"title":91,"path":92,"stem":93,"order":47},"The Delivery","/heist-pipeline/laundering","3.heist-pipeline/6.laundering",{"title":95,"icon":96,"path":97,"stem":98,"children":99},"Skills Reference","i-heroicons-bolt","/skills","4.skills",[100,102,138,173],{"title":95,"path":97,"stem":101,"order":11,"icon":96},"4.skills/index",{"title":103,"icon":104,"path":105,"stem":106,"children":107,"page":137},"Dev Skills","i-heroicons-wrench-screwdriver","/skills/dev-skills","4.skills/dev-skills",[108,113,117,121,125,129,133],{"title":109,"path":110,"stem":111,"order":112,"icon":96},"audit-review","/skills/dev-skills/audit-review","4.skills/dev-skills/audit-review",31,{"title":114,"path":115,"stem":116,"order":112,"icon":96},"drill-tdd","/skills/dev-skills/drill-tdd","4.skills/dev-skills/drill-tdd",{"title":118,"path":119,"stem":120,"order":112,"icon":96},"exit-strategy","/skills/dev-skills/exit-strategy","4.skills/dev-skills/exit-strategy",{"title":122,"path":123,"stem":124,"order":112,"icon":96},"interrogation-debugging","/skills/dev-skills/interrogation-debugging","4.skills/dev-skills/interrogation-debugging",{"title":126,"path":127,"stem":128,"order":112,"icon":96},"receiving-orders","/skills/dev-skills/receiving-orders","4.skills/dev-skills/receiving-orders",{"title":130,"path":131,"stem":132,"order":112,"icon":96},"safehouse-worktrees","/skills/dev-skills/safehouse-worktrees","4.skills/dev-skills/safehouse-worktrees",{"title":134,"path":135,"stem":136,"order":112,"icon":96},"sweep-verification","/skills/dev-skills/sweep-verification","4.skills/dev-skills/sweep-verification",false,{"title":139,"icon":140,"path":141,"stem":142,"children":143,"page":137},"Heist Phases","i-heroicons-academic-cap","/skills/heist-phases","4.skills/heist-phases",[144,149,154,158,163,168],{"title":145,"path":146,"stem":147,"order":148,"icon":96},"laundering","/skills/heist-phases/laundering","4.skills/heist-phases/laundering",21,{"title":150,"path":151,"stem":152,"order":153,"icon":96},"reconnaissance","/skills/heist-phases/reconnaissance","4.skills/heist-phases/reconnaissance",22,{"title":155,"path":156,"stem":157,"order":148,"icon":96},"resource-development","/skills/heist-phases/resource-development","4.skills/heist-phases/resource-development",{"title":159,"path":160,"stem":161,"order":162,"icon":96},"the-grilling","/skills/heist-phases/the-grilling","4.skills/heist-phases/the-grilling",23,{"title":164,"path":165,"stem":166,"order":167,"icon":96},"the-hit","/skills/heist-phases/the-hit","4.skills/heist-phases/the-hit",24,{"title":169,"path":170,"stem":171,"order":172,"icon":96},"the-sit-down","/skills/heist-phases/the-sit-down","4.skills/heist-phases/the-sit-down",26,{"title":174,"icon":175,"path":176,"stem":177,"children":178,"page":137},"Hierarchy Roles","i-heroicons-user-group","/skills/hierarchy-roles","4.skills/hierarchy-roles",[179,184,188,193,198,203],{"title":180,"path":181,"stem":182,"order":183,"icon":96},"omerta","/skills/hierarchy-roles/omerta","4.skills/hierarchy-roles/omerta",11,{"title":185,"path":186,"stem":187,"order":183,"icon":96},"the-capo","/skills/hierarchy-roles/the-capo","4.skills/hierarchy-roles/the-capo",{"title":189,"path":190,"stem":191,"order":192,"icon":96},"the-consigliere","/skills/hierarchy-roles/the-consigliere","4.skills/hierarchy-roles/the-consigliere",12,{"title":194,"path":195,"stem":196,"order":197,"icon":96},"the-ledger","/skills/hierarchy-roles/the-ledger","4.skills/hierarchy-roles/the-ledger",15,{"title":199,"path":200,"stem":201,"order":202,"icon":96},"the-underboss","/skills/hierarchy-roles/the-underboss","4.skills/hierarchy-roles/the-underboss",17,{"title":204,"path":205,"stem":206,"order":183,"icon":96},"using-gangsta","/skills/hierarchy-roles/using-gangsta","4.skills/hierarchy-roles/using-gangsta",{"title":208,"icon":209,"path":210,"stem":211,"children":212},"Advanced","i-lucide-zap","/advanced","5.advanced",[213,216,220,224,228,232],{"title":214,"path":210,"stem":215,"order":11},"Advanced Topics","5.advanced/index",{"title":217,"path":218,"stem":219,"order":38},"Artifacts Reference","/advanced/artifacts","5.advanced/artifacts",{"title":221,"path":222,"stem":223,"order":26},"Checkpoint Recovery","/advanced/checkpoint-recovery","5.advanced/checkpoint-recovery",{"title":225,"path":226,"stem":227,"order":38},"Contributing","/advanced/contributing","5.advanced/contributing",{"title":229,"path":230,"stem":231,"order":16},"Writing Custom Skills","/advanced/custom-skills","5.advanced/custom-skills",{"title":233,"path":234,"stem":235,"order":21},"Multi-Agent Patterns","/advanced/multi-agent-patterns","5.advanced/multi-agent-patterns",{"title":237,"path":238,"stem":239,"order":60},"Glossary","/glossary","6.glossary",{"title":241,"path":242,"stem":243,"order":244,"icon":245},"Changelog","/changelog","7.changelog",8,"i-lucide-scroll-text",{"id":247,"title":185,"body":248,"description":568,"extension":569,"links":570,"meta":571,"navigation":572,"path":186,"seo":573,"stem":187,"__hash__":574},"docs/4.skills/hierarchy-roles/the-capo.md",{"type":249,"value":250,"toc":561},"minimark",[251,256,261,265,269,272,314,317,321,324,452,456,459,522,526,557],[252,253,255],"h1",{"id":254},"the-capo-territory-commander-crew-lead","The Capo: Territory Commander (Crew Lead)",[257,258,260],"h2",{"id":259},"overview","Overview",[262,263,264],"p",{},"A Crew Lead is a domain-specific orchestrator that leads a crew of Workers. Each Crew Lead owns a \"territory\" — a bounded area of the codebase (e.g., frontend components, API layer, database, infrastructure). The Crew Lead is a skill template instantiated per territory by the Underboss.",[257,266,268],{"id":267},"territory-context","Territory Context",[262,270,271],{},"When the Underboss instantiates a Crew Lead, it provides territory context:",[273,274,279],"pre",{"className":275,"code":276,"language":277,"meta":278,"style":278},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","## Territory: \u003CName>\n**Domain:** \u003CWhat this territory covers>\n**Files:** \u003CGlob patterns>\n**Conventions:** \u003CFrom Constitution>\n**Workers:** \u003CParallel count>\n**Budget:** \u003CToken allocation>\n","markdown","",[280,281,282,289,294,299,304,309],"code",{"__ignoreMap":278},[283,284,286],"span",{"class":285,"line":11},"line",[283,287,288],{},"## Territory: \u003CName>\n",[283,290,291],{"class":285,"line":16},[283,292,293],{},"**Domain:** \u003CWhat this territory covers>\n",[283,295,296],{"class":285,"line":21},[283,297,298],{},"**Files:** \u003CGlob patterns>\n",[283,300,301],{"class":285,"line":26},[283,302,303],{},"**Conventions:** \u003CFrom Constitution>\n",[283,305,306],{"class":285,"line":38},[283,307,308],{},"**Workers:** \u003CParallel count>\n",[283,310,311],{"class":285,"line":60},[283,312,313],{},"**Budget:** \u003CToken allocation>\n",[262,315,316],{},"The Crew Lead operates ONLY within its territory. Files outside the territory belong to another Crew Lead.",[257,318,320],{"id":319},"worker-dispatch-protocol","Worker Dispatch Protocol",[262,322,323],{},"For each Work Package assigned to this territory:",[325,326,327,353,371,407,427],"ol",{},[328,329,330,334,335],"li",{},[331,332,333],"strong",{},"Prepare Worker Brief"," — Extract from the Work Package:",[336,337,338,341,344,347,350],"ul",{},[328,339,340],{},"The specific files to create/modify",[328,342,343],{},"The acceptance criteria",[328,345,346],{},"The verification command",[328,348,349],{},"Relevant Negative Constraints from the Constitution",[328,351,352],{},"The Contract clause being implemented",[328,354,355,358,359,362,363,366,367,370],{},[331,356,357],{},"Dispatch Worker"," — Launch a subagent with ",[280,360,361],{},"subagent_type: \"soldier\""," (do NOT use ",[280,364,365],{},"\"general\""," or ",[280,368,369],{},"\"general-purpose\""," — these are not valid in a Gangsta Agents installation) and the Worker brief. Multiple Workers can run in parallel on independent Work Packages.",[328,372,373,376,377],{},[331,374,375],{},"Receive Report"," — Each Worker returns:",[273,378,380],{"className":275,"code":379,"language":277,"meta":278,"style":278},"## Report: \u003CWP-ID>\n**Status:** success | failure | blocked\n**Changes:** \u003CList of files created/modified>\n**Tests:** \u003CTest results — pass/fail with output>\n**Notes:** \u003CAny issues encountered>\n",[280,381,382,387,392,397,402],{"__ignoreMap":278},[283,383,384],{"class":285,"line":11},[283,385,386],{},"## Report: \u003CWP-ID>\n",[283,388,389],{"class":285,"line":16},[283,390,391],{},"**Status:** success | failure | blocked\n",[283,393,394],{"class":285,"line":21},[283,395,396],{},"**Changes:** \u003CList of files created/modified>\n",[283,398,399],{"class":285,"line":26},[283,400,401],{},"**Tests:** \u003CTest results — pass/fail with output>\n",[283,403,404],{"class":285,"line":38},[283,405,406],{},"**Notes:** \u003CAny issues encountered>\n",[328,408,409,412,413],{},[331,410,411],{},"Review Report"," — Verify against the Contract:",[336,414,415,418,421,424],{},[328,416,417],{},"Do the changes satisfy the acceptance criteria?",[328,419,420],{},"Do tests pass?",[328,422,423],{},"Does the code follow territory conventions?",[328,425,426],{},"Are there any Omerta violations?",[328,428,429,432],{},[331,430,431],{},"Accept or Reject:",[336,433,434,440,446],{},[328,435,436,439],{},[331,437,438],{},"Accept"," — Mark Work Package complete, report to Underboss",[328,441,442,445],{},[331,443,444],{},"Reject with feedback"," — Send back to a fresh Worker with specific corrections",[328,447,448,451],{},[331,449,450],{},"Escalate"," — If the Contract clause is ambiguous or the Work Package is blocked, escalate to Underboss",[257,453,455],{"id":454},"status-reporting","Status Reporting",[262,457,458],{},"Report to the Underboss after each Work Package completes or fails:",[273,460,462],{"className":275,"code":461,"language":277,"meta":278,"style":278},"## Territory Status: \u003CName>\n**Completed:** \u003CN> of \u003CTotal> Work Packages\n**In Progress:** \u003CN>\n**Failed/Blocked:** \u003CN>\n**Token Usage:** \u003CUsed> of \u003CBudget>\n\n### Details\n- WP-001: ✅ Complete\n- WP-002: ✅ Complete  \n- WP-003: 🔄 In progress (Worker dispatched)\n- WP-004: ❌ Failed — escalated to Underboss\n",[280,463,464,469,474,479,484,489,495,500,505,511,517],{"__ignoreMap":278},[283,465,466],{"class":285,"line":11},[283,467,468],{},"## Territory Status: \u003CName>\n",[283,470,471],{"class":285,"line":16},[283,472,473],{},"**Completed:** \u003CN> of \u003CTotal> Work Packages\n",[283,475,476],{"class":285,"line":21},[283,477,478],{},"**In Progress:** \u003CN>\n",[283,480,481],{"class":285,"line":26},[283,482,483],{},"**Failed/Blocked:** \u003CN>\n",[283,485,486],{"class":285,"line":38},[283,487,488],{},"**Token Usage:** \u003CUsed> of \u003CBudget>\n",[283,490,491],{"class":285,"line":60},[283,492,494],{"emptyLinePlaceholder":493},true,"\n",[283,496,497],{"class":285,"line":47},[283,498,499],{},"### Details\n",[283,501,502],{"class":285,"line":244},[283,503,504],{},"- WP-001: ✅ Complete\n",[283,506,508],{"class":285,"line":507},9,[283,509,510],{},"- WP-002: ✅ Complete  \n",[283,512,514],{"class":285,"line":513},10,[283,515,516],{},"- WP-003: 🔄 In progress (Worker dispatched)\n",[283,518,519],{"class":285,"line":183},[283,520,521],{},"- WP-004: ❌ Failed — escalated to Underboss\n",[257,523,525],{"id":524},"omerta-compliance","Omerta Compliance",[336,527,530,539,545,551],{"className":528},[529],"contains-task-list",[328,531,534,538],{"className":532},[533],"task-list-item",[535,536],"input",{"disabled":493,"type":537},"checkbox"," Introduction Rule: Workers dispatched through Crew Lead only, no Worker-to-Worker communication",[328,540,542,544],{"className":541},[533],[535,543],{"disabled":493,"type":537}," Rule of Truth: Report review verifies all code claims against actual test output",[328,546,548,550],{"className":547},[533],[535,549],{"disabled":493,"type":537}," Rule of Budget: Track and report token usage per Worker dispatch",[328,552,554,556],{"className":553},[533],[535,555],{"disabled":493,"type":537}," Spec is Law: Every accepted Report traces to a Contract clause",[558,559,560],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":278,"searchDepth":16,"depth":16,"links":562},[563,564,565,566,567],{"id":259,"depth":16,"text":260},{"id":267,"depth":16,"text":268},{"id":319,"depth":16,"text":320},{"id":454,"depth":16,"text":455},{"id":524,"depth":16,"text":525},"Use when orchestrating workers within a specific domain territory — managing work package dispatch, reviewing reports against the contract, and reporting status to the underboss","md",null,{"name":185},{"order":183,"icon":96},{"title":185,"description":568},"nlicLkH6BrLby-XuXefMK95ohl00Al0qspGws1n-DDg",[576,578],{"title":180,"path":181,"stem":182,"description":577,"order":183,"icon":96,"children":-1},"Use when enforcing governance guardrails during any gangsta operation — referenced as cross-cutting concern by all skills for anti-hallucination, authorization, state durability, resource management, and spec supremacy rules",{"title":189,"path":190,"stem":191,"description":579,"order":192,"icon":96,"children":-1},"Use when needing impartial architectural advice, security audit, spec integrity review, or a second opinion — operates outside the chain of command with standing authority to invoke truth checks",1793043440019]