agentleFS
iamgiolagaiamgiolaga/ceo-of-agents/skills/record-decision/SKILL.md

record-decision

Skill2 starsChanged 8 days agoMITView on GitHub

Record a decision the CEO took, either by answering a decision card by code (for example ACME-D3) or by deciding in chat. Creates the immutable decision record, updates the index, the queue and the pending list, handles supersession, creates or updates issues and tracker fields in registered product repos, dispatches follow-ups, and commits with notice. Use when the CEO answers a card, says "decision", or confirms a direction.

  • Commits and pushes

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use explain-code, verify and 1 more.

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.
  • zbruhnkeSkill

    explain-code

    Explain how code works in detail. Use when trying to understand unfamiliar code, complex logic, or system architecture.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    verify

    End-to-end app testing pipeline for browser-based web apps on cloud browsers via Azure Playwright Workspaces: verify the live app, author tests for working flows, heal failing tests, then re-run with video and produce one consolidated report. Three phases (app verification, test authoring, test healing) plus a scoped final sanity run; each phase emits a sub-report. Use when asked to "verify my app", "make sure my app works and has good test coverage", "do a full QA pass", "add tests where I'm missing coverage", "fix failing tests and add new ones", "smoke test before deploy", "QA my deployment", or any combined verify-and-test ask. Requires Azure CLI (`az login`) and a Playwright Workspace resource ID — bootstraps configs on first invocation. Browser-based web apps with Playwright only — not for unit/API tests, native mobile/desktop, load/perf, or full accessibility audits.

    Also in 4 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 13 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Only the chief of staff (CoS) runs this skill.

    line 15
  2. Very specific:

    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.

    line 17
  3. Very specific:

    Update decisions/README.md: add a row | NNNN | <Title> | YYYY-MM-DD | accepted | to the | # | Decision | Date | Status | index.

    line 46
  4. Distinctive:

    Update the queue and the lists:

    line 48
  5. Very specific:

    Remove the answered card from company/decision-queue.md.

    line 49
  6. Distinctive:

    If the decision changes facts (products, numbers with source and date, risks), update those sections.

    line 51
  7. Very specific:

    If the decision belongs to an initiative, add the record to the Links of its initiatives/<slug>/status.md and update its state and next …

    line 52
  8. Very specific:

    If the decision sets or changes what the org focuses on now, update "Current focus" in company/strategy.md (if present) and cite the record …

    line 53
  9. Distinctive:

    Follow-ups: for each consequence that needs work, either

    line 59
  10. Distinctive:

    If the decision touches a rule that needs a later check (gates, brand, policy), say which item will carry it.

    line 63
  11. Very specific:

    Update issues the decision changes (gh issue edit -R <slug> <number> ..., gh issue comment -R <slug> <number> --body '<text>') and close …

    line 67
  12. Very specific:

    Add each new issue to the tracker and set tracker.status_field to match the decision (gh project item-list to find an existing item.

    line 68
  13. Distinctive:

    Put every issue URL in the new record's Links before the commit (the record is immutable once committed).

    line 69
  14. Distinctive:

    If the CEO asks to undo an earlier decision, that is a new decision: record it as a new record that supersedes the old one.

    line 80

“Common” is measured: kept by at least 6 in 10 of the 13 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

record-decision

Reply to the CEO in the chat language set in org.yaml (language.chat); write every file in the file language (language.files).

Closed org: when org.status in org.yaml is closed, say that the org is closed and read-only, and stop: this skill writes nothing. Only the Reopen procedure of the close-org skill writes in a closed org.

Only the chief of staff (CoS) runs this skill. Record format: ${CLAUDE_PLUGIN_ROOT}/schemas/decision-record.md; card format: ${CLAUDE_PLUGIN_ROOT}/schemas/decision-card.md; state format: ${CLAUDE_PLUGIN_ROOT}/schemas/state.md.

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 record a decision the CEO did not take. An answer must come from the CEO in this conversation. A recommendation, a draft, or silence is not a decision. If the CEO's words are ambiguous or only partly answer the card, ask one clarifying question before writing anything. If the CEO only says "ok" to a long list, confirm which codes and options you understood.

Steps

  1. Sync. Run git remote. If it prints nothing, skip pull and push and say once: "No remote: pull and push skipped". Otherwise run git pull; if it fails, say so in one line and continue with the local copy. Skip this step if the session already synced hq.
  2. Identify the decision. Read org.yaml, company/state.md, company/decision-queue.md and decisions/README.md. Match the CEO's answer to a card by code (<ORG_ID>-D<n>) and to an option, or, for a chat decision with no card, state it in one line and confirm it. Answers to several cards in one message become one record per card.
  3. Check for existing and conflicting records: Grep decisions/ for the topic. If the new decision replaces or changes an earlier one, plan the supersession (step 7). If a card is only partly answered, keep it in the queue with the answered part noted and record only what was decided.
  4. Next number: highest NNNN in decisions/ plus 1, four digits, never reused. Filename decisions/NNNN-<kebab-slug>.md. Create it:
    # NNNN. <Title>
    - Date: YYYY-MM-DD
    - Status: accepted
    - Card: <ORG_ID>-D<n>          (or: none)
    - Decided by: <ceo role id from org.yaml>
    ## Context
    ## Options
    ## Decision
    ## Consequences
    ## Links
    Context and Options come from the card (the card's proposed_by: <dept-id|cos> or needs analysis by: <dept-id> line is not copied; name the proposer in Context if relevant; keep them short; quote the CEO only where it captures intent). Decision names the chosen option first, then the specifics. Consequences list what changes and any accepted risk. Links point to the card code, related records, issues or files. Date is today (date +%F).
  5. Update decisions/README.md: add a row | [NNNN](NNNN-<slug>.md) | <Title> | YYYY-MM-DD | accepted | to the | # | Decision | Date | Status | index.
  6. Update the queue and the lists:
    • Remove the answered card from company/decision-queue.md. If the queue becomes empty, write _No open decisions._.
    • Remove the <ORG_ID>-D<n> item from "Waiting on the CEO" in company/state.md, and its line from "Open decisions". If the D item has open children, keep its line as their parent instead: set its kind to {wait} and rewrite its text to <question> decided (decision NNNN); it goes with its last child. If the D item is itself a child and was the last child of a {wait} parent, remove that parent too, after carrying out an action the CEO approved on it (${CLAUDE_PLUGIN_ROOT}/schemas/state.md, "Parent and child items").
    • If the decision changes facts (products, numbers with source and date, risks), update those sections. A consciously accepted risk goes in Risks with a link to the record.
    • If the decision belongs to an initiative, add the record to the Links of its initiatives/<slug>/status.md and update its state and next step (the initiatives skill, section Update). If the decision closes or drops it, close it with the same skill.
    • If the decision sets or changes what the org focuses on now, update "Current focus" in company/strategy.md (if present) and cite the record (see decision NNNN). A change to company/vision.md needs a decision that says so explicitly.
    • If the decision changes gates: or accounts.forbidden_connectors in org.yaml, write the permission rules in .claude/settings.json again (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md, section "Write the rules") in the same commit (when the decision changes the tier of push-non-deploy-branch, also the clone-push rules in .claude/settings.local.json, same section); a connector removed from the forbidden list also loses its rule in permissions.deny.
    • Set last_updated to today. Do not change next_action or next_decision; codes are never reused.
  7. Supersession and amendment: records are immutable. Never edit the body of an old record. If the new record supersedes or amends an earlier one, change only the old record's status line to Status: superseded by NNNN or Status: amended by NNNN, and update that row's Status in the index. Mention the old record in the new record's Links.
  8. Follow-ups: for each consequence that needs work, either
    • add an A item to "Waiting on the CEO" when it needs the CEO (- <ORG_ID>-A<n> [urgency] {kind}: <exact action> (since YYYY-MM-DD), increment next_action; kind {do} when only the CEO can do it, {ok} for an OK after which you or a department carry it out; see ${CLAUDE_PLUGIN_ROOT}/schemas/state.md). When the decision opens two or more follow-up items, put them under the D line as children and keep the D line as their {wait} parent; a single follow-up stays a top-level line.
    • or dispatch a department, by its agent name (agent in org.yaml, or its id when agent is missing), with a self-contained brief (goal, files, constraints, definition of done, what to return; end it with: "If you spawn sub-agents, do not set a more capable model than your own"), or leave a note for it. Respect the gate table: a dispatch to a department that will push is "notice" (one line before); anything at the "ok" tier needs the CEO's explicit OK and goes in the pending list first.
    • Held work: a follow-up or an issue of step 9 that you do not route in this turn (cost, priority, capacity) gets - <ORG_ID>-A<n> [urgency] {ok}: start <issue or task>, <who would do it> (since YYYY-MM-DD) in "Waiting on the CEO", in the same turn; increment next_action. The CEO's OK starts it.
    • If the decision touches a rule that needs a later check (gates, brand, policy), say which item will carry it.
  9. Issues and tracker. Skip this step entirely when repos in org.yaml is [] or absent (an org/2 file); skip only the Project part when tracker is none or absent. These writes are free: do them, then report them. Write every GitHub write with one -R <slug> right after the subcommand and its text inline in single quotes (a ' inside is written '\''), never with --body-file or -F: Claude Code asks before each GitHub write, and its prompt then shows the repo and the whole text. That prompt is not a gate's OK and needs no A item. Exception: on a repo with protected: true in repos: (or matched by a protected owner pattern owner/*, or not registered at all) every write needs the CEO's explicit OK first: ask one narrow question naming the repo and the writes, or add one A item of kind {ok} for them, and list the intended changes in the record's Links and in the report. The hq is never protected.
    • For each consequence that is work in a registered repo, find its issue (gh issue list -R <slug> --search "<words>") or create one (gh issue create -R <slug> --title '<title>' --body '<body>') in that repo, or in the issues home (issues_home: true) when the work spans repos. The body holds acceptance criteria. Link the decision: in a private repo (or an issues home that is the hq) write <ORG_ID>-D<n> and record NNNN; in a repo with visibility: public write no internal names, codes or hq content.
    • Update issues the decision changes (gh issue edit -R <slug> <number> ..., gh issue comment -R <slug> <number> --body '<text>') and close the ones it makes obsolete, with a one-line comment saying why (gh issue close -R <slug> <number> --comment '<why>').
    • Add each new issue to the tracker and set tracker.status_field to match the decision (gh project item-list to find an existing item; gh project item-add, gh project view, gh project field-list and gh project item-edit to add and set, as in the intake skill's issue route).
    • Put every issue URL in the new record's Links before the commit (the record is immutable once committed).
    • If gh fails (not installed, not signed in, no project scope), say so, add an A item of kind {do} with the exact command for the CEO (for example gh auth refresh -s project) unless one is already open, list the intended issue changes in the report, and commit the rest.
  10. Check, then commit. The lines this run changed in company/state.md (and in a status.md) are rewritten to the current fact, never appended to, with the history that matters in the log; measure them with the check at write time (${CLAUDE_PLUGIN_ROOT}/schemas/boot-set.md, "Check at write time"; Grep and wc -c, not the script) before the commit. Commit in the same turn as the CEO's answer and the issue writes of step 9, before you reply: never wait for the end of the session or for the CEO's next answers. The gate for hq-commit is "notice": write one line to the CEO (what, where; for example "Committing to hq main: record 0007 for ACME-D3, queue and state updated."), then commit with a message like docs: record decision NNNN <slug> and the attribution lines required by the session. Do not wait for an OK. The commit and the push are one hq-commit covered by that line: then push with git push origin HEAD, and skip the push when git remote is empty.
  11. Report in chat language, briefly: record created (number and title), what moved in the queue and pending list, issues created, updated or closed and the status set (with links), follow-ups with codes, and anything superseded.

Notes

  • Same turn: a decision taken in chat is recorded and committed in the turn the CEO takes it, together with its issue writes. Several answers in one message may share one commit; answers given in different turns get one commit each. Batching stays allowed for routing follow-ups, never for recording.
  • Company with an [escalate: holding] card: the answer is recorded here only. Never write to the holding repo.
  • If the CEO asks to undo an earlier decision, that is a new decision: record it as a new record that supersedes the old one.

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.