[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M759TAF6WFP3VRFW7BZ0GKEA":3,"skill-same:01M759TAF6WFP3VRFW7BZ0GKEA":51},{"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":29,"commitSha":30,"skillDirectory":31,"forksCount":28,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M759TAF6WFP3VRFW7BZ0GKEA","director-core",null,"The canonical director-core protocol — the one loop every autonomous campaign runs (plan → dispatch through gates → analyze → record), the session-ledger discovery rule both mode cards quote verbatim, the four core clauses (ledger discipline, cast pattern, compaction honesty, anti-gaming), and the copilot\u002Fresearch\u002Fdevelop posture model (modes renamed from autoresearch\u002Fautodev — old ids read-resolve, spec-20260907-011500 D1). Use when authoring or binding a mode card, a gate pack, or a campaign layer that consumes them.","harmoniqs\u002Famicode","harmoniqs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F199011497?v=4","01M759PQCJ9Y093EC5HC3344DW","Harmoniqs","01M759PQD5S85W68FZKV3XD1X0",7,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Fskills\u002Fdirector-core\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: director-core\ndescription: The canonical director-core protocol — the one loop every autonomous campaign runs (plan → dispatch through gates → analyze → record), the session-ledger discovery rule both mode cards quote verbatim, the four core clauses (ledger discipline, cast pattern, compaction honesty, anti-gaming), and the copilot\u002Fresearch\u002Fdevelop posture model (modes renamed from autoresearch\u002Fautodev — old ids read-resolve, spec-20260907-011500 D1). Use when authoring or binding a mode card, a gate pack, or a campaign layer that consumes them.\nagents: [orchestrator]\nsurface: public\nsource: amicode\nrevision: 2\n---\n\n# Director core — the canonical loop protocol\n\nOne director, one loop, every campaign. This skill is the engine-neutral core\nthat mode cards bind; engine mechanics live in the cards, never here. It\nextends the research protocol's spine — ledger discipline, cast pattern,\ncompaction honesty, anti-gaming — with the loop abstraction that makes that\nspine mode-general. The research skill remains the research-mode\ninstantiation; this file is the shared spine both modes embed, not a copy of\neither protocol.\n\n## The loop, stated once\n\nAny campaign is one loop: **plan → dispatch through gates → analyze → record.**\n\n- **Plan** — pick the next unit of work from the campaign's queue and write\n  its brief: a spec, an issue, a slice — whatever the mode's pack names.\n- **Dispatch through gates** — cast the work to a role, then run the pack's\n  gates over what comes back. The gates are a mode's entire personality.\n- **Analyze** — ground the result in raw artifacts and derive what it\n  changes: verdicts, ledger deltas, next seeds.\n- **Record** — commit the ledger update; a loop's output is ledger state. The\n  update includes the campaign's skill delta (findings filed, skills touched,\n  proposals pending). Briefs may carry the front-line findings rule:\n  skill-reality conflicts are findings, not workarounds.\n\nThe differences between campaigns live entirely in the phase graph and the\ngates — never in the loop, the memory, or the director.\n\n**Gate packs.** A mode binds a gate pack **iff it is autonomous**. A gate pack\nis typed data, not prose: `phases[]`, each phase carrying `gates[]` of\n`{ name, kind: mechanical|human|derived, owner, procedure }`, plus `roles[]`;\none `closing_artifact`; and `handoffs[]`. Gates are named, owned, and\nprocedural so a campaign layer can consume the pack mechanically. The packs\nthemselves are committed data; this core defines the shape and the\nbinding rule, not the packs.\n\n## The ledger discovery rule (generated region)\n\nThe delimited region below is the load-bearing export of this skill: the\nmode registry's generator emits it, the mode cards embed it verbatim inside\ntheir spine markers, and parity is asserted post-stage against the registry\nsource. It is self-contained — quote it byte-identical or not at all. **The\nregion is generated, never hand-edited**: a hotfix that would touch it goes\nthrough the registry generator instead; the stamp inside the region\nclassifies mismatches, and a regenerate-and-compare always detects a hand\nedit.\n\n\u003C!-- AMICO-GENERATED: region=ledger-discovery-rule generator=v1 begin -->\n```text\nLEDGER DISCOVERY RULE v1\n\nPath convention — the session ledger lives in the personal vault at\nsessions\u002Fsession-\u003CYYYYMMDD>-\u003Cslug>.md: one ledger per campaign, created at\nkickoff before any work.\n\nRe-read-first discipline — the first action after any mode switch or any\ncompaction is to re-read the ledger from disk, never from memory, and to\naudit any context summary against it. A mode switch re-binds the director's\nposture only: the ledger itself is never rewritten by a switch, and the same\nledger serves every posture the campaign runs.\n```\n\u003C!-- AMICO-GENERATED: region=ledger-discovery-rule end -->\n\n## Postures — one director, three postures\n\nA **mode** is a posture of the one director, never a new session:\n\n| Posture | Gate pack | Shape |\n| --- | --- | --- |\n| **copilot** — the zeroth | none (packless) | interactive: answers, designs, runs what the human asks — no autonomous loop, no campaign, no session ledger |\n| **research** | the research pack | hypothesis queue → deliberate spec → experiment → gates → analyzer |\n| **develop** | the dev pack | issue DAG → TDD slices → CI\u002Freview → landed delta |\n\nA mode switch re-binds the posture and re-reads the ledger (the discovery\nrule above); the session ledger survives every switch. A mode may still\nanswer out-of-posture asks, then return to its loop.\n\n## The four core clauses\n\n### 1 — Ledger discipline\n\nThe ledger is the campaign's database: nine fixed sections, in order —\n\n1. Objective & standing directives\n2. The campaign's verdict table — hypotheses → verdict → evidence in\n   research; issues\u002Fslices → status in dev\n3. Active work: every in-flight item, including uncommitted file state and\n   every in-flight cast (role, session id, spec or issue ref, expected\n   artifacts)\n4. Blocked & reasons\n5. Next queue\n6. Checkout topology (this campaign's rows in the checkout registry)\n7. Gotchas & methodology\n8. Loop log — append-only, one row per loop\n9. Compaction log — append-only, one row per compaction\n\n**Update triggers — all of them:** kickoff; every loop boundary; immediately\nbefore casting any subagent; immediately before any manual compaction; at\npause or handoff. The director is the sole ledger writer.\n\n**The session todo list is a derived view of the ledger, never a second\nrecord.** At every loop boundary the director REWRITES the session's todo\nlist to mirror ledger §3 (active work) and §5 (next queue) — items whose\nloops closed are cleared, not carried into the next loop's face. A todo\nlist that disagrees with §3 is lying about what is active: treat a stale\ntodo list as a lying §3 and rewrite it at the boundary.\n\n### 2 — Cast pattern\n\nWork is cast to subagents, one role per cast, roles drawn from the pack.\nRoles that must not mutate state are read-only by permission, not by\npromise; a role that writes is bounded to its assignment and never touches\nthe ledger. **Receipts are the currency of dispatch:** every cast lands a\nrecorded row — a receipt where an enforcing harness is present, a ledger row\ncarrying the same protocol-level fields where one is not. Briefs point at\nfiles (ledger, notes, specs), never paste prose: a subagent with a fresh\ncontext and a vague brief rediscovers everything the hard way.\n\n### 3 — Compaction honesty\n\n**The context window is a cache; the vault is the database.** Load-bearing\nstate lives in vault notes; the window holds only the working set. The\ndirector cannot observe its own context usage, and auto-compaction fires\nwith no phase awareness — so the protocol does not try to time compaction;\nit makes any compaction safe at any moment: the ledger is current before\nevery cast, with in-flight casts recorded alongside their artifact\ndestinations; subagent work products are files, so a parent compaction\ncannot destroy in-flight work; and after every compaction, re-read the\nledger and audit the summary against it (the discovery rule).\n\n### 4 — Anti-gaming\n\nVerdicts are derived from commands, never self-reported: the director runs\nthe gates itself — test suites, verification commands — and no LLM,\nincluding the director, judges a fidelity or CI claim; LLM judgment is\nconfined to drafting criteria and interpreting results, adversarially\nreviewed. Raw artifacts are the evidence; prose is not. Promotion of any\nresult — to catalog, to status, to a merge of non-green work — is\nhuman-only, always.\n\n## What this core does not carry\n\nEngine bindings (agent cards, dispatch mechanics, permission tooling) live\nin the mode cards, engine-side. The research loop's specifics — the spec\ngate's review budget, the checkout registry, the probe\u002Fexperiment boundary —\nstay with the research skill; the dev walk's — branch and draft-PR\nlifecycle, worktree binding — stay with the develop and implement-issue\nskills. This file carries only what every campaign shares: the loop, the\nledger, the cast, the clauses, the postures.\n","# Director core — the canonical loop protocol\n\nOne director, one loop, every campaign. This skill is the engine-neutral core\nthat mode cards bind; engine mechanics live in the cards, never here. It\nextends the research protocol's spine — ledger discipline, cast pattern,\ncompaction honesty, anti-gaming — with the loop abstraction that makes that\nspine mode-general. The research skill remains the research-mode\ninstantiation; this file is the shared spine both modes embed, not a copy of\neither protocol.\n\n## The loop, stated once\n\nAny campaign is one loop: **plan → dispatch through gates → analyze → record.**\n\n- **Plan** — pick the next unit of work from the campaign's queue and write\n  its brief: a spec, an issue, a slice — whatever the mode's pack names.\n- **Dispatch through gates** — cast the work to a role, then run the pack's\n  gates over what comes back. The gates are a mode's entire personality.\n- **Analyze** — ground the result in raw artifacts and derive what it\n  changes: verdicts, ledger deltas, next seeds.\n- **Record** — commit the ledger update; a loop's output is ledger state. The\n  update includes the campaign's skill delta (findings filed, skills touched,\n  proposals pending). Briefs may carry the front-line findings rule:\n  skill-reality conflicts are findings, not workarounds.\n\nThe differences between campaigns live entirely in the phase graph and the\ngates — never in the loop, the memory, or the director.\n\n**Gate packs.** A mode binds a gate pack **iff it is autonomous**. A gate pack\nis typed data, not prose: `phases[]`, each phase carrying `gates[]` of\n`{ name, kind: mechanical|human|derived, owner, procedure }`, plus `roles[]`;\none `closing_artifact`; and `handoffs[]`. Gates are named, owned, and\nprocedural so a campaign layer can consume the pack mechanically. The packs\nthemselves are committed data; this core defines the shape and the\nbinding rule, not the packs.\n\n## The ledger discovery rule (generated region)\n\nThe delimited region below is the load-bearing export of this skill: the\nmode registry's generator emits it, the mode cards embed it verbatim inside\ntheir spine markers, and parity is asserted post-stage against the registry\nsource. It is self-contained — quote it byte-identical or not at all. **The\nregion is generated, never hand-edited**: a hotfix that would touch it goes\nthrough the registry generator instead; the stamp inside the region\nclassifies mismatches, and a regenerate-and-compare always detects a hand\nedit.\n\n\u003C!-- AMICO-GENERATED: region=ledger-discovery-rule generator=v1 begin -->\n```text\nLEDGER DISCOVERY RULE v1\n\nPath convention — the session ledger lives in the personal vault at\nsessions\u002Fsession-\u003CYYYYMMDD>-\u003Cslug>.md: one ledger per campaign, created at\nkickoff before any work.\n\nRe-read-first discipline — the first action after any mode switch or any\ncompaction is to re-read the ledger from disk, never from memory, and to\naudit any context summary against it. A mode switch re-binds the director's\nposture only: the ledger itself is never rewritten by a switch, and the same\nledger serves every posture the campaign runs.\n```\n\u003C!-- AMICO-GENERATED: region=ledger-discovery-rule end -->\n\n## Postures — one director, three postures\n\nA **mode** is a posture of the one director, never a new session:\n\n| Posture | Gate pack | Shape |\n| --- | --- | --- |\n| **copilot** — the zeroth | none (packless) | interactive: answers, designs, runs what the human asks — no autonomous loop, no campaign, no session ledger |\n| **research** | the research pack | hypothesis queue → deliberate spec → experiment → gates → analyzer |\n| **develop** | the dev pack | issue DAG → TDD slices → CI\u002Freview → landed delta |\n\nA mode switch re-binds the posture and re-reads the ledger (the discovery\nrule above); the session ledger survives every switch. A mode may still\nanswer out-of-posture asks, then return to its loop.\n\n## The four core clauses\n\n### 1 — Ledger discipline\n\nThe ledger is the campaign's database: nine fixed sections, in order —\n\n1. Objective & standing directives\n2. The campaign's verdict table — hypotheses → verdict → evidence in\n   research; issues\u002Fslices → status in dev\n3. Active work: every in-flight item, including uncommitted file state and\n   every in-flight cast (role, session id, spec or issue ref, expected\n   artifacts)\n4. Blocked & reasons\n5. Next queue\n6. Checkout topology (this campaign's rows in the checkout registry)\n7. Gotchas & methodology\n8. Loop log — append-only, one row per loop\n9. Compaction log — append-only, one row per compaction\n\n**Update triggers — all of them:** kickoff; every loop boundary; immediately\nbefore casting any subagent; immediately before any manual compaction; at\npause or handoff. The director is the sole ledger writer.\n\n**The session todo list is a derived view of the ledger, never a second\nrecord.** At every loop boundary the director REWRITES the session's todo\nlist to mirror ledger §3 (active work) and §5 (next queue) — items whose\nloops closed are cleared, not carried into the next loop's face. A todo\nlist that disagrees with §3 is lying about what is active: treat a stale\ntodo list as a lying §3 and rewrite it at the boundary.\n\n### 2 — Cast pattern\n\nWork is cast to subagents, one role per cast, roles drawn from the pack.\nRoles that must not mutate state are read-only by permission, not by\npromise; a role that writes is bounded to its assignment and never touches\nthe ledger. **Receipts are the currency of dispatch:** every cast lands a\nrecorded row — a receipt where an enforcing harness is present, a ledger row\ncarrying the same protocol-level fields where one is not. Briefs point at\nfiles (ledger, notes, specs), never paste prose: a subagent with a fresh\ncontext and a vague brief rediscovers everything the hard way.\n\n### 3 — Compaction honesty\n\n**The context window is a cache; the vault is the database.** Load-bearing\nstate lives in vault notes; the window holds only the working set. The\ndirector cannot observe its own context usage, and auto-compaction fires\nwith no phase awareness — so the protocol does not try to time compaction;\nit makes any compaction safe at any moment: the ledger is current before\nevery cast, with in-flight casts recorded alongside their artifact\ndestinations; subagent work products are files, so a parent compaction\ncannot destroy in-flight work; and after every compaction, re-read the\nledger and audit the summary against it (the discovery rule).\n\n### 4 — Anti-gaming\n\nVerdicts are derived from commands, never self-reported: the director runs\nthe gates itself — test suites, verification commands — and no LLM,\nincluding the director, judges a fidelity or CI claim; LLM judgment is\nconfined to drafting criteria and interpreting results, adversarially\nreviewed. Raw artifacts are the evidence; prose is not. Promotion of any\nresult — to catalog, to status, to a merge of non-green work — is\nhuman-only, always.\n\n## What this core does not carry\n\nEngine bindings (agent cards, dispatch mechanics, permission tooling) live\nin the mode cards, engine-side. The research loop's specifics — the spec\ngate's review budget, the checkout registry, the probe\u002Fexperiment boundary —\nstay with the research skill; the dev walk's — branch and draft-PR\nlifecycle, worktree binding — stay with the develop and implement-issue\nskills. This file carries only what every campaign shares: the loop, the\nledger, the cast, the clauses, the postures.\n",{"name":5,"agents":24,"source":26,"surface":27,"revision":28,"description":7},[25],"orchestrator","amicode","public",2,"main","bf84fdd4c1494800695bd5881702b3118dbf98be","packages\u002Fextension\u002Fskills\u002Fdirector-core","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode","https:\u002F\u002Fgithub.com\u002Fharmoniqs","harmoniqs.ai","research tools, for researchers, by reseachers","2026-11-12 14:46:24",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add harmoniqs\u002Famicode --skill director-core",{"tool":43,"command":44},"bunx","bunx skills add harmoniqs\u002Famicode --skill director-core",{"tool":46,"command":47},"pnpm","pnpm dlx skills add harmoniqs\u002Famicode --skill director-core","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Fskills\u002Fdirector-core\u002FSKILL.md",true,[],[52,59,66,72,79,86],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M759XGHEQRJ1GWZTPRFF9Z1W","malformed","Frontmatter that parses as YAML but is missing the required name field.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fmalformed\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M759XDVQ1PYPMT876X8J21TQ","duplicated","Second skill carrying the duplicated frontmatter name.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdup-two\u002FSKILL.md",[],[],{"skillNo":67,"name":61,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M759XBZYBHF38JDWSRHAC6E1","First skill carrying the duplicated frontmatter name.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdup-one\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M759XAQBSP29BKTTXR1WF2D7","drifted","A skill whose API claims have drifted from the fixture packages.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fdrifted\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M759X8CNBPVK98C6M45D0QMB","clean","A clean skill whose every extracted claim resolves against the fixture packages.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fclean\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M759X73H6N2G0VDH8CJ5TF11","broken-paths","A skill with a broken relative link and a broken cited package path.","https:\u002F\u002Fgithub.com\u002Fharmoniqs\u002Famicode\u002Fblob\u002Fmain\u002Fpackages\u002Fextension\u002Ftest\u002Ffixtures\u002Fskill-drift\u002Fskills\u002Fbroken-paths\u002FSKILL.md",[],[]]