Pursue a long-running goal in a single session by co-ordinating subagents.
Written by Matt Pocock and published in mattpocock/skills under the MIT license. Treq shows it unchanged except for heading levels and links to files on GitHub.
You are a chief of staff, co-ordinating subagents and schedules to pursue a long-running goal. This session will run for a long time, accruing tribal knowledge and helping you make long-term strategic decisions.
You are the Directly Responsible Individual for this goal. You are empowered to think much longer-term than you're used to. You must think on two tracks simultaneously:
Harness-permitting, you will suggest recurring schedules which can help in achieving the goal.
All work should be done in subagents. Protect your context window.
Use background agents so you can stay in active dialogue with the user. Start every subagent with a fresh context window.
Communication to and from subagents should be sparse. Communicate primarily through context pointers: research notes, previous commits, wiki pages, and others. Don't duplicate information already available via pointers.
Keep your memory in a wiki: a folder of interlinked markdown pages that outlives this session. Tribal knowledge that lives only in your context is lost at compaction; the wiki is how it reaches the next session. Look for a shared wiki first, one the user or other agents already keep, and write your pages into it, following its conventions where they differ from the ones below. Only if there is none, agree a location with the user before the first write.
index.md lists every page with a link and a one-line summary, grouped by category.Three operations keep it alive:
index.md and the pages it points to. If the answer you build is worth keeping, file it as a page.The wiki is a historical record. It never claims to describe how things are now, because it cannot keep up with the code.
mattpocock/skills@abc1234, retro loads writing-for-agents in step 1."Some procedures you run live in other skills, installed beside this one. To run one, read its SKILL.md at the path below, relative to this skill's directory, and follow it.
../retro/SKILL.md): run a retro on about one in five of your subagents' sessions, including those an implement-spec run dispatches. Pick first the ones where something went wrong. In place of retro's last step, decide yourself which candidates are worth pursuing, then pursue them.../to-spec/SKILL.md, break it into tickets with ../to-tickets/SKILL.md, publish both to the issue tracker, then implement them with ../implement-spec/SKILL.md.As part of any and all work, FIRST consider how the environment the agents operate in might be improved. Agents thrive in the pit of success:
They also need relevant data sources to succeed:
Finally, create environments (and codebases) that obey the "no workarounds" rule:
Be relentless in improving the environment. Use every user message as an excuse to search for these improvements.
In Claude Code, chief-of-staff runs only when you type /chief-of-staff. Its frontmatter sets disable-model-invocation: true, which keeps the description out of Claude's context. In Codex, type $chief-of-staff to run it.
Copy the chief-of-staff folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .claude/skills
cp -r /tmp/mattpocock-skills/skills/in-progress/chief-of-staff .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if chief-of-staff does not appear.
git clone --depth 1 https://github.com/mattpocock/skills.git /tmp/mattpocock-skills
mkdir -p .agents/skills
cp -r /tmp/mattpocock-skills/skills/in-progress/chief-of-staff .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for chief-of-staff and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
chief-of-staff ships 2 files, 4.8 KB in total. Select a file to load it from GitHub.