close-org
Skill2 starsChanged 8 days agoMITView on GitHub
Close a ceo-of-agents org when it ends (a project stops, a company winds down) or reopen a closed one. Lists what is still open, asks the CEO to confirm and to say where each item goes, writes the closing decision record, and sets org.status to closed in org.yaml; a closed org is read-only. Reopening is a new decision record that sets it back to open. Nothing is ever deleted. Use when the CEO says to close the org, wind it down, or reopen it.
- Commits and pushes
In this repository11 other files it gives its agents.
- departmentsSkill
- draft-as-ceoSkill
- hq-versionSkill
- init-fleetSkill
- initiativesSkill
- intakeSkill
- portfolio-briefSkill
- product-reposSkill
- record-decisionSkill
- session-startSkill
- weekly-briefSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Only the chief of staff (CoS) runs this skill.
- Very specific: line 20
Every file this skill writes in the hq is written by a worker (one tier down, explicit model) from your instructions, and you read the diff.
- Distinctive: line 24
Never close on a guess. The CEO's explicit confirmation of the list in step 2 is required, in this conversation.
- Very specific: line 28
When the CEO asks to close the org (and org.status is not already closed):
- Very specific: line 52
Add its row to decisions/README.md (| NNNN | Close the org | YYYY-MM-DD | accepted |).
- Very specific: line 59
Do not touch inbox/, the product repos or any other file.
- Very specific: line 67
When the CEO asks to reopen the org and org.status is closed:
- Distinctive: line 70
If the CEO has not said why, ask in one line, and wait.
- Very specific: line 73
Commit with notice and push as in Close, step 5 (message like docs: reopen the org (decision NNNN)).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
close-org: close the org, or reopen it
Reply to the CEO in the chat language set in org.yaml (language.chat); write every file in the file language (language.files).
Only the chief of staff (CoS) runs this skill. A department never closes or reopens the org.
An org can end: a project stops, a company winds down. org.status in org.yaml is open or closed (absent means open; ${CLAUDE_PLUGIN_ROOT}/schemas/org.yaml). A closed org is read-only: the CoS answers from the hq and takes no new work until the CEO reopens it. Only a decision record changes the status, so the hq always says why and when. Record format: ${CLAUDE_PLUGIN_ROOT}/schemas/decision-record.md; state format: ${CLAUDE_PLUGIN_ROOT}/schemas/state.md.
Never delete, move or archive a file as part of closing or reopening. Git history keeps everything, and archiving stays a separate step that the CEO asks for (${CLAUDE_PLUGIN_ROOT}/schemas/document.md, section "Archiving"). The skill has no command that deletes or moves a file, and none is added.
The two record titles are fixed, so the session start can find them: Close the org and Reopen the org.
Every file this skill writes in the hq is written by a worker (one tier down, explicit model) from your instructions, and you read the diff; commits, pushes and gh writes stay with you.
Hard rule
Never close on a guess. The CEO's explicit confirmation of the list in step 2 is required, in this conversation. A question about closing, a draft or silence is not a confirmation. Nothing is preselected: every open item gets the CEO's own answer.
Close
When the CEO asks to close the org (and org.status is not already closed):
List what is still open, from the hq only, one line each, after syncing (
git remote: if it prints nothing, skip the pull and say once "No remote: pull and push skipped"; otherwisegit pull, and continue with the local copy if it fails). Readorg.yaml,company/state.md,company/decision-queue.md,initiatives/README.md(if present) and thestatus.mdof each initiative that is notdoneordropped, andls inbox/:- pending items: each line of "Waiting on the CEO", by code, children under their parent;
- open decision cards in
company/decision-queue.md, by code; - initiatives not closed (
activeorpaused), by slug; - notes in
inbox/other thanREADME.md, by file name (unprocessed handoffs).
When
reposinorg.yamlis not empty, add one line: open issues and pull requests in the product repos stay as they are; this skill writes nothing outside the hq. Reading them is optional (gh issue list -R <slug> --state open,gh pr list -R <slug> --state open, one repo per call); skip it when it is not allowed or fails, and say nothing about the failure beyond that. Do not close issues or pull requests.Ask the CEO, in one message, to confirm closing the org and to say where each open item goes, for each item or for all at once. Give exactly these three answers, with nothing preselected:
- dropped: the item is removed from the live lists; it stays in git history;
- moved elsewhere: the CEO names where (another org, a repository, a person); the CoS writes nothing outside this hq, so the record only says where;
- left as it is, frozen: the item stays where it is, unchanged, and is live again if the org is reopened.
Unprocessed
inbox/notes are not offered a choice: they are left in place, unprocessed, and the record lists them; they are never deleted. Ask for the reason too (one line) if the CEO has not given it. Then stop and wait. No confirmation, no close.Write the closing decision record (format:
${CLAUDE_PLUGIN_ROOT}/schemas/decision-record.md; next number and filename as in therecord-decisionskill, step 4):decisions/NNNN-close-the-org.md, titleClose the org,Card: none(or the card code if the CEO answered a card),Decided bythe CEO role id fromorg.yaml, date today (date +%F).- Context: why the org ends, in the CEO's words where they capture it.
- Options: close the org, or keep it open; short.
- Decision: close the org, read-only from this record on.
- Consequences: the list of what was open and where each item went (dropped, moved to
<where the CEO said>, frozen), the unprocessed inbox notes left in place, the open issues and pull requests in the product repos left as they are (only whenreposis not empty), and that nothing was deleted, moved or archived. - Links: the files and issues the list names; the reopening path ("to reopen, the CEO asks the CoS; a new record then sets the org back to open").
Add its row to
decisions/README.md(| [NNNN](NNNN-close-the-org.md) | Close the org | YYYY-MM-DD | accepted |).- Set the status.
org.yaml: addstatus: closedright after thepurpose:line underorg:; when astatus:line is already there (open), change it toclosed. Touch no other line.company/state.md: setlast_updatedto today and add one line under "Products and status":- Org closed: read-only since YYYY-MM-DD, see decisions/NNNN-close-the-org.md (as of YYYY-MM-DD)(one line, under 300 characters). Remove from "Waiting on the CEO" and "Open decisions" only the items the CEO dropped or moved: the record lists them. Frozen items stay, as they are. Do not changenext_actionornext_decision.company/decision-queue.md: remove the cards the CEO dropped or moved, the same way; keep the frozen ones. If the queue becomes empty, write_No open decisions._.- For an initiative the CEO dropped or moved, close it with the
initiativesskill (section Close, steps 1 to 3 only: do not archive it); a frozen initiative is left as it is. - Do not touch
inbox/, the product repos or any other file.
- Commit in the same turn, before you reply. The gate for
hq-commitis "notice": write one line to the CEO (what, where; for example "Committing to hq main: record 0012 closes the org, org.yaml and state.md updated."), then commit with a message likedocs: close the org (decision NNNN)and the attribution lines required by the session. The commit and the push are onehq-commitcovered by that line: then push withgit push origin HEAD, and skip the push whengit remoteis empty. - Report, briefly: the record number, how many items went where (dropped, moved, frozen), the inbox notes left unprocessed, and that the org is now read-only and that the CEO can say "reopen" at any time. Nothing was deleted.
Reopen
When the CEO asks to reopen the org and org.status is closed:
- Sync as in Close, step 1. Read
org.yaml,company/state.mdanddecisions/README.md; find the latest record titledClose the organd read it. - If the CEO has not said why, ask in one line, and wait. A reopening without the CEO's own words is not recorded.
- Write the reopening decision record:
decisions/NNNN-reopen-the-org.md, titleReopen the org,Card: none,Decided bythe CEO role id, date today. Context: why the org reopens. Options: reopen, or stay closed. Decision: reopen the org;org.statusisopenfrom this record on. Consequences: frozen items are live again, notes left ininbox/are processed at the next session start, dropped or moved items stay where the closing record put them. Links: the closing record (decisions/NNNN-close-the-org.md). Add its row todecisions/README.md. The closing record is immutable: do not edit it. - Set
org.status: openinorg.yaml(change thestatus:line only). Incompany/state.mdsetlast_updatedto today and replace theOrg closedline under "Products and status" with- Org reopened since YYYY-MM-DD, see decisions/NNNN-reopen-the-org.md (as of YYYY-MM-DD). Do not change any other line. - Commit with notice and push as in Close, step 5 (message like
docs: reopen the org (decision NNNN)). - Report briefly. The CoS takes new work again from this turn: the session after this one starts as before, and the frozen items on the pending list are live again.
Rules
- A closing or reopening record is a decision record like any other: immutable, numbered, indexed in
decisions/README.md. - The CoS writes only in this hq. Open issues, pull requests and anything outside it are listed, never changed.
- In a closed org this skill is the only one that writes, and only to reopen it. Everything else waits for the CEO to reopen.
- Public product repos receive nothing from this skill.
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
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.

