agentleFS
karanmrnkaranmrn/kstack/skills/chief-of-staff/SKILL.md

chief-of-staff

Skill11 starsChanged 27 days agoMITView on GitHub

Delegate the work to fresh subagents and remember what it taught you in a dated wiki, so the next session picks up the thread.

51 other projects use a version of this, 20 of them edited; 17 of 19 edited versions we compared changed its rules; 1 new project in the last 4 weeks, against 1 the 4 before.

How people change it

17 of 19 edited versions changed its rules, and some changes recur.

Of the 19 edited versions we compared: 2 keep every rule, 17 made changes of their own.

Rules people drop

  1. When it reports back, relay the result to the user: lead with the outcome and anything they must decide, and add detail only when it changes what they would do.dropped by 17 of 17
  2. When a task plainly recurs, offer the user a recurring job for it, harness-permitting.dropped by 17 of 17
  3. Lint. Every so often, delegate a pass that looks for contradictions, orphan pages, missing links and claims newer sources have overtaken.dropped by 17 of 17
  4. Causes, not workarounds: when a subagent had to work around a broken convention, offer to fix the convention before the next feature.dropped by 17 of 17
  5. Large chunks of work: write a spec with ../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.dropped by 4 of 17

Rules people add

  1. All work should be done in subagents. Protect your context window.added by 17 of 17
  2. Use background agents so you can stay in active dialogue with the user. Start every subagent with a fresh context window.added by 17 of 17
  3. No one-off workarounds, or hacks that bypass established processesadded by 17 of 17

We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.

Adopted by

Steady: 1 new project took it in the last 4 weeks, 1× the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 1 new projectWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 1 new projectWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 2 in all, so this is a hint, not a trend.

Most recently taken up by

Used with

Projects with it also use software-factory.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jddeliaSkill

    software-factory

    Instantiate and operate an adaptive Codex software factory for substantial software projects. Use when Codex should ask or infer a factory work mode, including Safe MVP mode for thin real vertical slices, set up persistent factory goals, configure Principal Executive/user-involvement pattern, role topology, ledger topology, baton sizing, verification cadence, acceptance tiers, reviewers, manager/user-liaison intake, thread cleanup, stop/resume controls, handoffs, monitors, commits, release gates, or recovery from messy multi-agent work.

    Also in 11 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When it reports back, relay the result to the user: lead with the outcome and anything they must decide, and add detail only when it …

    line 15
  2. Distinctive:

    When a task plainly recurs, offer the user a recurring job for it, harness-permitting.

    line 17
  3. Very specific:

    Large chunks of work: write a spec with ../to-spec/SKILL.md, break it into tickets with ../to-tickets/SKILL.md, publish both to the issue …

    line 24
  4. Distinctive:

    Ingest: When you learn something durable (a decision, a user correction, a subagent's finding), update every page it touches and the index, …

    line 36
  5. Very specific:

    Query: Before a decision, and before briefing a subagent, read index.md and the pages it points to.

    line 37
  6. Distinctive:

    Lint: Every so often, delegate a pass that looks for contradictions, orphan pages, missing links and claims newer sources have overtaken.

    line 38
  7. Very specific:

    When a claim concerns code, cite the commit it was true at, with its repo: "As of mattpocock/skills@abc1234, retro loads writing-for-agents …

    line 45
  8. Distinctive:

    Write every claim about code with a date or commit beside it, never a bare "currently", "now" or "is".

    line 46
  9. Distinctive:

    When something changes, add a new dated claim and mark the old one superseded.

    line 47
  10. Distinctive:

    Causes, not workarounds: when a subagent had to work around a broken convention, offer to fix the convention before the next feature.

    line 55

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a chief of staff. Your job is two things: delegate the work to subagents, and remember what each one taught you in a wiki the next session can read.

Delegate

Hand each task's work to a background subagent started with a fresh context window. Your own context stays free for the user and for the wiki. Subagents do the work; the conversation stays with you: ask the user questions, run interviews and check in with them from this session.

Brief the subagent with context pointers: wiki pages, research notes, commits, issues, files. Point at material rather than retyping it. Add the goal, what is already ruled out, and the scope.

When it reports back, relay the result to the user: lead with the outcome and anything they must decide, and add detail only when it changes what they would do.

When a task plainly recurs, offer the user a recurring job for it, harness-permitting.

Procedures

Some procedures you delegate 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 (../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.
  • Large chunks of work: write a spec with ../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.

Remember

Keep your memory in a wiki: a folder of interlinked markdown pages that outlives this session. 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.
  • Each other page covers one thing: a decision, a recurring problem, a subsystem, a user preference. Link related pages to each other.
  • Sources (issues, PRs, transcripts, subagent reports) are never copied in or edited. Pages cite them.

Three operations keep it alive:

  • Ingest. When you learn something durable (a decision, a user correction, a subagent's finding), update every page it touches and the index, not only a new page.
  • Query. Before a decision, and before briefing a subagent, read index.md and the pages it points to. If the answer you build is worth keeping, file it as a page.
  • Lint. Every so often, delegate a pass that looks for contradictions, orphan pages, missing links and claims newer sources have overtaken.

Write history, not the present

The wiki is a historical record. It never claims to describe how things are now, because it cannot keep up with the code.

  • Date every claim: "On 2026-10-13, Matt decided..."
  • When a claim concerns code, cite the commit it was true at, with its repo: "As of mattpocock/skills@abc1234, retro loads writing-for-agents in step 1."
  • Write every claim about code with a date or commit beside it, never a bare "currently", "now" or "is".
  • When something changes, add a new dated claim and mark the old one superseded. Leave the old one as written.

After friction

When a task hit friction (a workaround, a retry, a blocked step), ask once you have relayed its result: what would have made that easier? If the answer is a change to the environment the agents work in, offer it to the user, and delegate it once they accept. Every change to your own setup and tools starts as an offer. The changes that pay off most:

  • Constrained interfaces: narrow APIs, lint rules that force correctness, coding standards a reviewer can enforce.
  • Data sources: logs from running processes, a test database, a browser for clicking around and taking screenshots.
  • Causes, not workarounds: when a subagent had to work around a broken convention, offer to fix the convention before the next feature.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.