[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75Z6KQT8DVWTSH8TQGEAXVS":3,"skill-same:01M75Z6KQT8DVWTSH8TQGEAXVS":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75Z6KQT8DVWTSH8TQGEAXVS","agent-of-empires",null,"Manage Agent of Empires sessions that each own a git worktree. Use to create, list, rename, move, archive, remove, restore, or recover a session, or to lay sessions out in waves.","drmikecrowe\u002Fharnessed","drmikecrowe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F90312?v=4","01M75Z3TD9D8YVCA67X1F4HFY4","01M75Z3TDYTCR5APZRMXJ00TXG",0,"BSD-3-Clause","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fagent-of-empires\u002Fskills\u002Fagent-of-empires\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: agent-of-empires\ndescription: Manage Agent of Empires sessions that each own a git worktree. Use to create, list, rename, move, archive, remove, restore, or recover a session, or to lay sessions out in waves.\n---\n\n# agent-of-empires\n\nOne session owns one git worktree on one branch. The repository is a bare root with sibling worktrees:\n`\u003Croot>\u002F.bare`, `\u003Croot>\u002Fmain`, and one folder per session beside `main\u002F`.\n\nEvery operation goes through one script: `scripts\u002Faoe-sessions` in this skill's folder. Run it from\ninside the repository. `aoe-sessions --help` prints the full usage.\n\n## Discovery\n\nRun `aoe-sessions config` first. It prints what the script found. A flag overrides each value.\n\n| Setting | Found from | Flag |\n| --- | --- | --- |\n| harness, stack | the one `exec harnessed host-run` wrapper in `main\u002F` | `--harness`, `--stack` |\n| row kind | harnessed when a stack is found, else plain `aoe add -w` rows | `--cmd \u003Ccommand>` forces plain |\n| AOE profile | `harnessed` with a stack, else `$AGENT_OF_EMPIRES_PROFILE`, else `default` | `--profile` |\n| group | the group of the session at `main\u002F`, else the root folder's name | `--group` |\n\nIf `main\u002F` holds wrappers for several stacks, the script stops. Ask the user which stack, then pass `--stack`.\n\n## Local files\n\nA new worktree lacks main's gitignored files. `main\u002F.worktree-include` lists the ones to bring along:\n\n```text\n# one path relative to main\u002F a line; copied unless the line starts with `link `\n.claude\u002Fsettings.local.json\nlink .env\n```\n\n- `new`, `wave create`, and `recover` apply the list. They never overwrite a file the worktree has.\n- Without the file, only `.claude\u002Fsettings.local.json` is copied.\n- Copy a file that each branch can change on its own. Link a file that must stay one shared file.\n- Never list a cache or a venv. Each worktree rebuilds its own.\n\n## Sessions\n\n| Ask | Run |\n| --- | --- |\n| What is in flight? | `aoe-sessions list [\u003Cgroup>]` |\n| New session for a branch | `aoe-sessions new \u003Cbranch> [\u003Ctitle>]` |\n| Rename a session | `aoe-sessions rename \u003Ctarget> \u003Ctitle>` |\n| Move a session to another group | `aoe-sessions move \u003Ctarget> \u003Cgroup>` |\n| Pause sessions | `aoe-sessions archive \u003Ctarget>...` |\n| Resume paused sessions | `aoe-sessions unarchive \u003Ctarget>...` |\n| Is it safe to remove? | `aoe-sessions check \u003Ctarget>...` |\n| Remove sessions | `aoe-sessions remove \u003Ctarget>...` |\n| What is in the trash? | `aoe-sessions trash` |\n| Bring one back | `aoe-sessions restore \u003Cid|title>` |\n| A worktree or session is gone | `aoe-sessions recover \u003Cbranch> [\u003Ctitle>]` |\n| A moved harnessed session will not start | `aoe-sessions repair \u003Ctarget>` |\n\nA `\u003Ctarget>` is a session id, a title, a branch, or `wave-\u003Cn>`.\n\n- `new` is idempotent. If the branch already has a session, it reuses it or names the one that exists.\n- A new branch starts from `origin\u002Fmain` with no upstream. The first push sets it.\n- `rename` also moves the worktree folder, because AOE ties the folder name to the title.\n- `move` changes the group only. The folder stays.\n- `list` marks a harnessed row whose command points at a missing wrapper as `STALE COMMAND`.\n- `recover` rebuilds the worktree from the branch. It then lists the Claude conversations it can import.\n  Offer the printed `aoe session import` command. Never run it unasked: it creates new sessions.\n\n## Waves (optional)\n\nWaves are one way to lay out issue work. A wave is the group `\u003Cgroup>\u002Fwave-\u003Cn>`.\n\n| Thing | Shape | Example |\n| --- | --- | --- |\n| title | `\u003Cwave>.\u003Cslot>-\u003CISSUE>-\u003Cslug>` | `2.1-GH-83-two-plugins` |\n| branch | `\u003CISSUE>` | `GH-83` |\n| worktree | the title as a slug | `\u003Croot>\u002F2-1-gh-83-two-plugins` |\n\n| Ask | Run |\n| --- | --- |\n| Start wave 2 with these issues | `aoe-sessions wave create 2 GH-83:two-plugins GH-93:feedback` |\n| Move a session to wave 3 | `aoe-sessions wave move \u003Ctarget> 3 [\u003Cslot>]` |\n| Close the slot gaps in wave 2 | `aoe-sessions wave renumber 2` |\n| Show, archive, check, or remove a wave | pass `wave-\u003Cn>` as the target |\n\n- `wave create` is idempotent. A session already in another wave is skipped, with the command to move it.\n- `wave move` also adopts a session that has no wave yet. Its title becomes `\u003Cwave>.\u003Cslot>-\u003Ctitle>`.\n- The branch never carries the wave or slot, so a reorder never renames a branch.\n\n## Safety: non-negotiable\n\n- Run `aoe-sessions check` before every removal. Show the user each `BLOCKED` reason.\n- `remove` skips a session with uncommitted changes, commits on no remote, no upstream, or a live process\n  in its worktree. It never removes the session at `main\u002F`.\n- Pass `--allow \u003Ctitle>` only after the user says yes to that title by name in this conversation.\n- `--purge` and `--delete-branch` also need `--confirm-irreversible`. Add it only after an explicit yes.\n- Never run `aoe remove --purge`, `aoe session empty-trash`, or `aoe remove --delete-branch` directly.\n- Never edit `sessions.json` by hand. The script edits nothing in it; harnessed does, under AOE's lock.\n- Never rename a running session. `rename`, `wave move`, and `wave renumber` refuse one; stop it first.\n- `archive` skips a running session unless it gets `--allow \u003Ctitle>`.\n- The script backs up `sessions.json` before each batch of changes, and prints the backup path.\n\n```bash\n# Wrong: removes the work it was asked to protect\naoe remove GH-88 --delete-worktree --purge --force\n\n# Right: check, report, and remove only what is safe or approved by name\naoe-sessions check wave-2\naoe-sessions remove wave-2 --allow 2.1-GH-88-x   # only after \"yes, remove 2.1-GH-88-x\"\n```\n\n## Gotchas\n\n- **History follows the folder.** Claude Code files a conversation under its working folder. After a\n  rename, `\u002Fresume` in the new folder does not list the old one. Tell the user where it stays; `rename`\n  prints the old path.\n- **harnessed needs #544.** With a stack, the script needs a `harnessed` whose `host-run` has\n  `--aoe-managed-worktree`. An older one is refused before any change. Set `HARNESSED` to use another binary.\n- **harnessed uses one AOE profile.** It always registers in profile `harnessed`, so a stack forces it.\n- **Older harnessed cannot see nested groups.** Its registration then fails. The script registers each\n  row in the top-level group, then moves it, so every version works.\n- **Two row shapes exist.** Rows from before harnessed #544 store an absolute wrapper path. A rename\n  strands them. `repair` reruns harnessed, which rewrites the command in place.\n\n[reference.md](reference.md) has the verified AOE behaviour and the throwaway test harness.\n","# agent-of-empires\n\nOne session owns one git worktree on one branch. The repository is a bare root with sibling worktrees:\n`\u003Croot>\u002F.bare`, `\u003Croot>\u002Fmain`, and one folder per session beside `main\u002F`.\n\nEvery operation goes through one script: `scripts\u002Faoe-sessions` in this skill's folder. Run it from\ninside the repository. `aoe-sessions --help` prints the full usage.\n\n## Discovery\n\nRun `aoe-sessions config` first. It prints what the script found. A flag overrides each value.\n\n| Setting | Found from | Flag |\n| --- | --- | --- |\n| harness, stack | the one `exec harnessed host-run` wrapper in `main\u002F` | `--harness`, `--stack` |\n| row kind | harnessed when a stack is found, else plain `aoe add -w` rows | `--cmd \u003Ccommand>` forces plain |\n| AOE profile | `harnessed` with a stack, else `$AGENT_OF_EMPIRES_PROFILE`, else `default` | `--profile` |\n| group | the group of the session at `main\u002F`, else the root folder's name | `--group` |\n\nIf `main\u002F` holds wrappers for several stacks, the script stops. Ask the user which stack, then pass `--stack`.\n\n## Local files\n\nA new worktree lacks main's gitignored files. `main\u002F.worktree-include` lists the ones to bring along:\n\n```text\n# one path relative to main\u002F a line; copied unless the line starts with `link `\n.claude\u002Fsettings.local.json\nlink .env\n```\n\n- `new`, `wave create`, and `recover` apply the list. They never overwrite a file the worktree has.\n- Without the file, only `.claude\u002Fsettings.local.json` is copied.\n- Copy a file that each branch can change on its own. Link a file that must stay one shared file.\n- Never list a cache or a venv. Each worktree rebuilds its own.\n\n## Sessions\n\n| Ask | Run |\n| --- | --- |\n| What is in flight? | `aoe-sessions list [\u003Cgroup>]` |\n| New session for a branch | `aoe-sessions new \u003Cbranch> [\u003Ctitle>]` |\n| Rename a session | `aoe-sessions rename \u003Ctarget> \u003Ctitle>` |\n| Move a session to another group | `aoe-sessions move \u003Ctarget> \u003Cgroup>` |\n| Pause sessions | `aoe-sessions archive \u003Ctarget>...` |\n| Resume paused sessions | `aoe-sessions unarchive \u003Ctarget>...` |\n| Is it safe to remove? | `aoe-sessions check \u003Ctarget>...` |\n| Remove sessions | `aoe-sessions remove \u003Ctarget>...` |\n| What is in the trash? | `aoe-sessions trash` |\n| Bring one back | `aoe-sessions restore \u003Cid|title>` |\n| A worktree or session is gone | `aoe-sessions recover \u003Cbranch> [\u003Ctitle>]` |\n| A moved harnessed session will not start | `aoe-sessions repair \u003Ctarget>` |\n\nA `\u003Ctarget>` is a session id, a title, a branch, or `wave-\u003Cn>`.\n\n- `new` is idempotent. If the branch already has a session, it reuses it or names the one that exists.\n- A new branch starts from `origin\u002Fmain` with no upstream. The first push sets it.\n- `rename` also moves the worktree folder, because AOE ties the folder name to the title.\n- `move` changes the group only. The folder stays.\n- `list` marks a harnessed row whose command points at a missing wrapper as `STALE COMMAND`.\n- `recover` rebuilds the worktree from the branch. It then lists the Claude conversations it can import.\n  Offer the printed `aoe session import` command. Never run it unasked: it creates new sessions.\n\n## Waves (optional)\n\nWaves are one way to lay out issue work. A wave is the group `\u003Cgroup>\u002Fwave-\u003Cn>`.\n\n| Thing | Shape | Example |\n| --- | --- | --- |\n| title | `\u003Cwave>.\u003Cslot>-\u003CISSUE>-\u003Cslug>` | `2.1-GH-83-two-plugins` |\n| branch | `\u003CISSUE>` | `GH-83` |\n| worktree | the title as a slug | `\u003Croot>\u002F2-1-gh-83-two-plugins` |\n\n| Ask | Run |\n| --- | --- |\n| Start wave 2 with these issues | `aoe-sessions wave create 2 GH-83:two-plugins GH-93:feedback` |\n| Move a session to wave 3 | `aoe-sessions wave move \u003Ctarget> 3 [\u003Cslot>]` |\n| Close the slot gaps in wave 2 | `aoe-sessions wave renumber 2` |\n| Show, archive, check, or remove a wave | pass `wave-\u003Cn>` as the target |\n\n- `wave create` is idempotent. A session already in another wave is skipped, with the command to move it.\n- `wave move` also adopts a session that has no wave yet. Its title becomes `\u003Cwave>.\u003Cslot>-\u003Ctitle>`.\n- The branch never carries the wave or slot, so a reorder never renames a branch.\n\n## Safety: non-negotiable\n\n- Run `aoe-sessions check` before every removal. Show the user each `BLOCKED` reason.\n- `remove` skips a session with uncommitted changes, commits on no remote, no upstream, or a live process\n  in its worktree. It never removes the session at `main\u002F`.\n- Pass `--allow \u003Ctitle>` only after the user says yes to that title by name in this conversation.\n- `--purge` and `--delete-branch` also need `--confirm-irreversible`. Add it only after an explicit yes.\n- Never run `aoe remove --purge`, `aoe session empty-trash`, or `aoe remove --delete-branch` directly.\n- Never edit `sessions.json` by hand. The script edits nothing in it; harnessed does, under AOE's lock.\n- Never rename a running session. `rename`, `wave move`, and `wave renumber` refuse one; stop it first.\n- `archive` skips a running session unless it gets `--allow \u003Ctitle>`.\n- The script backs up `sessions.json` before each batch of changes, and prints the backup path.\n\n```bash\n# Wrong: removes the work it was asked to protect\naoe remove GH-88 --delete-worktree --purge --force\n\n# Right: check, report, and remove only what is safe or approved by name\naoe-sessions check wave-2\naoe-sessions remove wave-2 --allow 2.1-GH-88-x   # only after \"yes, remove 2.1-GH-88-x\"\n```\n\n## Gotchas\n\n- **History follows the folder.** Claude Code files a conversation under its working folder. After a\n  rename, `\u002Fresume` in the new folder does not list the old one. Tell the user where it stays; `rename`\n  prints the old path.\n- **harnessed needs #544.** With a stack, the script needs a `harnessed` whose `host-run` has\n  `--aoe-managed-worktree`. An older one is refused before any change. Set `HARNESSED` to use another binary.\n- **harnessed uses one AOE profile.** It always registers in profile `harnessed`, so a stack forces it.\n- **Older harnessed cannot see nested groups.** Its registration then fails. The script registers each\n  row in the top-level group, then moves it, so every version works.\n- **Two row shapes exist.** Rows from before harnessed #544 store an absolute wrapper path. A rename\n  strands them. `repair` reruns harnessed, which rewrites the command in place.\n\n[reference.md](reference.md) has the verified AOE behaviour and the throwaway test harness.\n",{"name":5,"description":7},"main","580ef1f7d05e79586ece387ff45e3e0e47424c9f","catalog\u002Frecipes\u002Fagent-of-empires\u002Fskills\u002Fagent-of-empires","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed","https:\u002F\u002Fdrmikecrowe.github.io\u002Fharnessed\u002F","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe","2026-11-13 22:15:04",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add drmikecrowe\u002Fharnessed --skill agent-of-empires",{"tool":36,"command":37},"bunx","bunx skills add drmikecrowe\u002Fharnessed --skill agent-of-empires",{"tool":39,"command":40},"pnpm","pnpm dlx skills add drmikecrowe\u002Fharnessed --skill agent-of-empires","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fagent-of-empires\u002Fskills\u002Fagent-of-empires\u002FSKILL.md",true,[44,50],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"reference.md","REFERENCE","参考文档",3369,"https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fagent-of-empires\u002Fskills\u002Fagent-of-empires\u002Freference.md",{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"scripts\u002Faoe-sessions","SCRIPT","脚本",33719,"https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fagent-of-empires\u002Fskills\u002Fagent-of-empires\u002Fscripts\u002Faoe-sessions",[57,64,71,77,84,91],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M75Z8044E0QMWTA23RT25EPS","foo","GH-649 fixture skill.","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Frecipes\u002Fplugin-recipe\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M75Z7YR0WSHATRWFY0C5563T","time-helper","Ask the time MCP server for the current time in any IANA timezone and convert times between timezones.","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Ftime\u002Fskills\u002Ftime-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75Z7WFANC8TKFCFCPV43V88","wrangler","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fmikes-universal-setup\u002Fskills\u002Fwrangler\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M75Z7SASE6ADBXJ26CGMFPJ7","varlock","Create and maintain `.env.schema` files in the varlock\u002F@env-spec DSL. Use when adding env var definitions, migrating from `.env.example`, running varlock commands (init, load, run, encrypt, audit), debugging missing env vars, or wiring 1Password secrets.","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fmikes-universal-setup\u002Fskills\u002Fvarlock\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M75Z7Q23PFS46ZSHTYW6Z4MF","thinking-partner","Find where the user's idea, plan, direction, or draft is wrong before they accelerate. Use on \"I've been thinking\", \"what do you think\", \"assess this\", \"review my plan\", \"am I going the right direction\", \"should I\". Not for code diffs.","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fmikes-universal-setup\u002Fskills\u002Fthinking-partner\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M75Z7N0J4JN3S5V01PNTSM25","tests-are-authority","An existing test encodes a decision already made; your change does not outrank it. Load when a test fails after your change, before editing an existing test, and before adding skip\u002Fxfail or loosening an assertion.","https:\u002F\u002Fgithub.com\u002Fdrmikecrowe\u002Fharnessed\u002Fblob\u002Fmain\u002Fcatalog\u002Frecipes\u002Fmikes-universal-setup\u002Fskills\u002Ftests-are-authority\u002FSKILL.md",[],[]]