[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EW38372DH8S9FBHAC4BV0H":3,"skill-same:01M7EW38372DH8S9FBHAC4BV0H":60},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7EW38372DH8S9FBHAC4BV0H","agent-hierarchy",null,"Designs orchestrator-and-subagent hierarchies for a repository — splitting agents by exclusive write surface, pairing every producer with an independent auditor, and enforcing the split with a script that runs in CI. Use this whenever the user wants to set up, expand, audit, or fix a multi-agent or subagent structure for a codebase; asks how to divide work between agents; wants agent charters, roles, or a surface map written; or is hitting agents that collide on the same files, review their own work, or drift from their remit. Also use when sizing a roster or deciding whether a new agent is justified.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-hierarchy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-hierarchy\ndescription: Designs orchestrator-and-subagent hierarchies for a repository — splitting agents by exclusive write surface, pairing every producer with an independent auditor, and enforcing the split with a script that runs in CI. Use this whenever the user wants to set up, expand, audit, or fix a multi-agent or subagent structure for a codebase; asks how to divide work between agents; wants agent charters, roles, or a surface map written; or is hitting agents that collide on the same files, review their own work, or drift from their remit. Also use when sizing a roster or deciding whether a new agent is justified.\n---\n\n# Agent hierarchy\n\nA method for standing up an orchestrator → specialist-subagent hierarchy, extracted from a\nworking implementation of ~24 agents over a 1,500-file monorepo, machine-checked on every PR.\n\n## The whole method in one paragraph\n\nSplit agents by **write surface, not by topic**. Two classes only: **builders**, which edit\ninside exactly one exclusive surface and never commit, and **reviewers**, which are permanently\nread-only and can always run in parallel. The orchestrator — the main chat — is the sole\ncommitter. Write the surface map **before** any charters, keep it in one Markdown file, and\nenforce it with a script that runs in CI. Each row also carries an **authority** — `autonomous`,\n`proposes`, or `escalates` — which answers the separate question of whether that agent's work may\nland without a decision; most rows are `autonomous`, and gating everything makes the gate\nmeaningless. Producer and auditor are never the same agent. For\neach class of fact, exactly one file owns it and everyone else derives.\n\n## Why topic splits fail\n\n\"One agent on SEO, one on UI\" is the intuitive split and it breaks immediately: both end up\nediting `tokens.css`. Neither is wrong, and neither can be held responsible. A surface split\nhas no such overlap by construction — which is exactly what makes it checkable.\n\n## Order of operations\n\nDo not start writing charters early; the order is the method.\n\n1. **Inventory the real tree** — `git ls-files | sed 's|\u002F[^\u002F]*$||' | sort -u`. Report what is\n   actually there before proposing anything.\n2. **Propose the roster** — the smallest set where no two agents share a file. Each needs an\n   id, a class, a one-line remit, and its exact globs. An agent whose surface cannot be stated\n   in globs is not an agent; fold it in.\n3. **Write the surface map** — one Markdown file, one row per agent.\n4. **Wire the guard** — `scripts\u002Fagent-guard.mjs check` proves the map is coherent (no path\n   claimed twice, no path unowned); `agent-guard.mjs diff \u003Cagent>` proves a given diff obeyed\n   it. Both are needed: once the orchestrator commits, the authorship that `diff` checks is\n   gone, so it has to run while the work is still attributable.\n5. **Write charters last**, in the format in the playbook: why the agent exists, what it must\n   never do, the verification its surface implies, and a six-section return contract.\n\n## Rules that carry a failure behind them\n\n- **Producer and auditor are never the same agent.** An agent that reviews its own output\n  reliably approves it.\n- **The orchestrator is not one of the two classes.** It is the sole committer, and giving it\n  a surface makes it a builder that can also merge.\n- **One file owns each class of fact.** Everything else derives from it, or the two copies\n  diverge and nobody notices which is stale.\n- **Never remove a shared-core export because it looks unused.** You cannot see the consumers\n  from inside the core. Deprecate, announce, then remove.\n\n## This repository's own log\n\n`docs\u002FDECISION-LOG.md` is the live instance of the decision log described in the playbook. When a\ndecision is raised, assign it the next number immediately — before it is answered — and give it\nlettered options with an explicit recommendation. Never renumber, never reuse a number, and record\nresolutions in place rather than deleting them.\n\n## Never\n\n- Add an agent before the surface it will own exists. The map comes first, the agent second.\n- Let two agents hold a write claim on the same path. Overlap resolves itself as a race.\n- Hand-edit a generated artifact instead of the source it derives from.\n- Skip the guard because the change is small. Small changes are how surfaces drift.\n\n## References\n\n- `references\u002Fplaybook.md` — the full 415-line playbook: surface splitting, the guard, the\n  registry, the decision log, anti-patterns with their failure modes, sizing, multi-repo and\n  shared-core layouts, the charter format, and a day-one checklist.\n- `references\u002Fstarter-rosters.md` — concrete rosters for a mobile-app portfolio, a game\n  portfolio, and a shared core, with producer\u002Fauditor pairings.\n- `references\u002Fbootstrap-prompt.md` — a fill-in-the-blanks prompt for standing this up in a\n  fresh session against a target repo.\n- `scripts\u002Fagent-guard.mjs` — the executable guard. No dependencies, Node 18+.\n","# Agent hierarchy\n\nA method for standing up an orchestrator → specialist-subagent hierarchy, extracted from a\nworking implementation of ~24 agents over a 1,500-file monorepo, machine-checked on every PR.\n\n## The whole method in one paragraph\n\nSplit agents by **write surface, not by topic**. Two classes only: **builders**, which edit\ninside exactly one exclusive surface and never commit, and **reviewers**, which are permanently\nread-only and can always run in parallel. The orchestrator — the main chat — is the sole\ncommitter. Write the surface map **before** any charters, keep it in one Markdown file, and\nenforce it with a script that runs in CI. Each row also carries an **authority** — `autonomous`,\n`proposes`, or `escalates` — which answers the separate question of whether that agent's work may\nland without a decision; most rows are `autonomous`, and gating everything makes the gate\nmeaningless. Producer and auditor are never the same agent. For\neach class of fact, exactly one file owns it and everyone else derives.\n\n## Why topic splits fail\n\n\"One agent on SEO, one on UI\" is the intuitive split and it breaks immediately: both end up\nediting `tokens.css`. Neither is wrong, and neither can be held responsible. A surface split\nhas no such overlap by construction — which is exactly what makes it checkable.\n\n## Order of operations\n\nDo not start writing charters early; the order is the method.\n\n1. **Inventory the real tree** — `git ls-files | sed 's|\u002F[^\u002F]*$||' | sort -u`. Report what is\n   actually there before proposing anything.\n2. **Propose the roster** — the smallest set where no two agents share a file. Each needs an\n   id, a class, a one-line remit, and its exact globs. An agent whose surface cannot be stated\n   in globs is not an agent; fold it in.\n3. **Write the surface map** — one Markdown file, one row per agent.\n4. **Wire the guard** — `scripts\u002Fagent-guard.mjs check` proves the map is coherent (no path\n   claimed twice, no path unowned); `agent-guard.mjs diff \u003Cagent>` proves a given diff obeyed\n   it. Both are needed: once the orchestrator commits, the authorship that `diff` checks is\n   gone, so it has to run while the work is still attributable.\n5. **Write charters last**, in the format in the playbook: why the agent exists, what it must\n   never do, the verification its surface implies, and a six-section return contract.\n\n## Rules that carry a failure behind them\n\n- **Producer and auditor are never the same agent.** An agent that reviews its own output\n  reliably approves it.\n- **The orchestrator is not one of the two classes.** It is the sole committer, and giving it\n  a surface makes it a builder that can also merge.\n- **One file owns each class of fact.** Everything else derives from it, or the two copies\n  diverge and nobody notices which is stale.\n- **Never remove a shared-core export because it looks unused.** You cannot see the consumers\n  from inside the core. Deprecate, announce, then remove.\n\n## This repository's own log\n\n`docs\u002FDECISION-LOG.md` is the live instance of the decision log described in the playbook. When a\ndecision is raised, assign it the next number immediately — before it is answered — and give it\nlettered options with an explicit recommendation. Never renumber, never reuse a number, and record\nresolutions in place rather than deleting them.\n\n## Never\n\n- Add an agent before the surface it will own exists. The map comes first, the agent second.\n- Let two agents hold a write claim on the same path. Overlap resolves itself as a race.\n- Hand-edit a generated artifact instead of the source it derives from.\n- Skip the guard because the change is small. Small changes are how surfaces drift.\n\n## References\n\n- `references\u002Fplaybook.md` — the full 415-line playbook: surface splitting, the guard, the\n  registry, the decision log, anti-patterns with their failure modes, sizing, multi-repo and\n  shared-core layouts, the charter format, and a day-one checklist.\n- `references\u002Fstarter-rosters.md` — concrete rosters for a mobile-app portfolio, a game\n  portfolio, and a shared core, with producer\u002Fauditor pairings.\n- `references\u002Fbootstrap-prompt.md` — a fill-in-the-blanks prompt for standing this up in a\n  fresh session against a target repo.\n- `scripts\u002Fagent-guard.mjs` — the executable guard. No dependencies, Node 18+.\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fagent-hierarchy",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-hierarchy",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-hierarchy",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill agent-hierarchy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-hierarchy\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fbootstrap-prompt.md","REFERENCE","参考文档",4940,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-hierarchy\u002Freferences\u002Fbootstrap-prompt.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fplaybook.md",20261,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-hierarchy\u002Freferences\u002Fplaybook.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fstarter-rosters.md",5110,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fagent-hierarchy\u002Freferences\u002Fstarter-rosters.md",[61,69,74,81,88,95],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":68},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":70,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":68},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":68},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":68},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":68},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":68},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]