agentleFS
iamgiolagaiamgiolaga/ceo-of-agents/skills/session-start/SKILL.md

session-start

Skill2 starsChanged 8 days agoMITView on GitHub

Start-of-session routine of the chief of staff in a ceo-of-agents hq. Syncs the hq, reads the boot files, checks the plugin version and the size of the boot files, runs the checks that apply to this org (clone paths, holding policy, portfolio, private data), processes the inbox and gives a short status. Use at the start of every chief of staff session. In a session renewed in the middle of a chat (first message starting with the continued-session marker) it runs a quiet start and answers the message instead.

45 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use session-checkpoint, deploy-verify and 4 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.
  • tunsuySkill

    session-checkpoint

    自动判断对话中是否出现值得持久化的结果,并分开写入任务交接(handoff) 与长期项目知识(knowledge)。用于技术方案定案、排查结论、约束边界、 未完成交接、踩坑记录等场景;也在用户说「按之前方案」「继续上次」 「隔天继续」时先检索落盘文件再执行。避免长对话隔天后 Agent 遗忘或跑偏。

    Also in 3 projects that use this

  • danielarif26Skill

    deploy-verify

    Verify a Vercel deployment actually went live and serves the correct production domain. Self-improving: reads its own run history before checking and logs the outcome after. Use when the user asks "did you deploy?", "is it live?", "verify the deploy", "check vercel", or after any Vercel deploy. Part of the Agentic OS (Level 1 backbone).

    Also in 3 projects that use this

  • Microsoft AzureSkill

    reflect

    Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.

    Also in 4 projects that use this

  • ibahgatSkill

    autopilot

    Run autonomous multi-stage execution loops until acceptance criteria pass or blockers are reached.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    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 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 38 edited versions we read keep these.

  • 4

    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:

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

    line 12
  2. Distinctive:

    Run the steps in order. A step marked "only when" is skipped silently when its condition is false.

    line 16
  3. 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 20
  4. Distinctive:

    When the first user message of the session starts with that marker, run this quiet start instead of the steps above.

    line 58
  5. Very specific:

    Read-only except: accounts.local.yaml (step 5), A items in company/state.md (steps 3 and 6), and what the intake skill writes (step 9).

    line 73
  6. Very specific:

    Never commit accounts.local.yaml or anything under private/.

    line 75
  7. Distinctive:

    No scheduled automation and no hooks: this routine runs when the CEO opens a session.

    line 76

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

session-start: the chief of staff's start of session

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 agent never does: it skips the CoS session start.

Why a skill: this routine runs once per session, so it does not need to sit in CLAUDE.md, which every session and every agent loads. CLAUDE.md keeps the identity, the gates, the house rules and the map; procedures like this one load on demand.

Run the steps in order. A step marked "only when" is skipped silently when its condition is false.

First check whether this session continues an earlier chat (section "Continued session" below). If it does, run the quiet start there instead of these steps.

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.

Steps

  1. Pull. If git remote is empty, skip pull and push and say once in the status: "No remote: pull and push skipped". Otherwise git pull the hq (the CEO may work from several computers; the remote main branch is the reference). If the pull fails, say so in the status and continue with the local copy.
  2. Read. org.yaml, company/vision.md, company/strategy.md, company/state.md, company/decision-queue.md, accounts.local.yaml (if present), and list inbox/.

    Closed org. When org.status in org.yaml is closed (absent means open), the status (step 11) opens with one line: the org is closed since <date of the latest record titled Close the org in decisions/README.md> (decision NNNN), read-only, and the CEO can say "reopen". Still pull (step 1, a read) and give the status, but skip every step that writes or starts work: add no A item (step 3 reports the version in one line only and migrates nothing; step 4 reports only), ask no clone-path question (step 5), do not process the inbox (step 9: list the notes only, they stay unprocessed) and propose no first task (step 10). Take no new work until the CEO reopens the org (close-org skill).

  3. Plugin version. Use the hq-version skill to compare this hq's framework_version (in org.yaml and company/state.md) with the installed plugin version. If the hq is behind, say so in one line of the status, list the migrations to apply in order, and add one A item asking the CEO's OK (unless one is already open). Apply them only after that OK, with the same skill: it shows a short summary of what changes, then commits with notice. Never migrate silently. If the hq is ahead of the plugin or a version is unknown, say so in one line and continue. The same skill also reports, in one line, a plugin installed in more than one scope for this folder (silent otherwise).
  4. Boot files and pending lines. Run sh "${CLAUDE_PLUGIN_ROOT}/scripts/check-boot-set.sh" from the hq root and use its output as it is: do not measure or compute budgets yourself (budgets and rules: ${CLAUDE_PLUGIN_ROOT}/schemas/boot-set.md). If the last line is verdict: ok, say nothing. Otherwise add one line to the status from the output, naming each offending item, for example: Boot files over budget: company/state.md 12,400 bytes (budget 8,192); 2 lines over 300 characters in company/state.md ("Acme app: ...", "Launch plan: ..."); 1 pending line without a kind (ACME-A2). I can move the detail to linked notes and add the kind. Quote at most three lines by their first words, then "and N more". Propose the fix; do it only when the CEO agrees, then as in ${CLAUDE_PLUGIN_ROOT}/schemas/boot-set.md, "Check at write time": rewrite the lines, move their history to the log, measure again and commit with notice. For a pending line without a kind, propose the kind (ok, do or decide, see ${CLAUDE_PLUGIN_ROOT}/schemas/state.md). Add no A item for it. Claude Code asks before it runs: no permission rule allows it, since a rule for sh cannot have a * (${CLAUDE_PLUGIN_ROOT}/gates/permissions.md); never add one. If the script cannot run (for example the prompt is denied), say Boot check skipped: <reason> and continue.
  5. Repos on this machine (only when repos in org.yaml lists a repo other than the hq itself, role hq). If such a repo is not marked planned: true, is not an owner pattern (owner/*) and has no entry under repo_paths in accounts.local.yaml, ask the CEO for its local clone path with the product-repos skill (section "Clone paths"). Clone paths differ per computer, so git does not track accounts.local.yaml: never commit it.
  6. Policy check (tighten-only) (only when policy in org.yaml is not null). Read the pinned holding policy read-only. Read local and pin from the policy: block in org.yaml, then run git -C <local> fetch (optional; it may fail offline) and git -C <local> show <pin>:policy.yaml. local is a clone of the holding's separate policies repo. Read only policy.yaml, nothing else, and never a clone of the holding hq. No other agent reads it. Ceilings and all other limits come only from the policies repo policy.yaml, never from org.yaml: org.yaml has no models.ceiling, so never report a missing ceiling there. Compare the policy with org.yaml:

    • Gates: for every action in the holding file, this org's tier must be equal or stricter (free < notice < ok). An action absent here inherits the holding tier (fine).
    • Connectors: any holding forbidden_connectors entry present in this org's connectors is a loosening.
    • Language: if the holding sets language.files and it differs from this org's language.files, it is a loosening.
    • Models: models.cos more capable than models.ceiling.cos, or models.departments or any department model more capable than models.ceiling.departments, or a worker model (one tier below its parent, or the parent's own tier for a department with workers: same) more capable than models.ceiling.workers, is a loosening.

    Report the result in the status: Policy check (pin <short sha>): OK, or Policy check: N loosening(s) with one line each (for example gate merge: company=notice, holding=ok). For each loosening add an A item of kind {ok} asking the CEO to tighten the setting or to approve a pin or policy change. Never fix silently. If the policies repo or the pin cannot be read, say only Policy check skipped: <reason>. Do not report a gap from org.yaml in that case, and add no A item (a skipped check is not a loosening).

  7. Portfolio pending list (only when org.level is holding). Read portfolio.yaml. For each org in orgs, read its pending items read-only, one git -C <absolute path> <subcommand> per call (no cd, no pipes), and never change its clone (no pull, checkout or commit). If the org has a remote in portfolio.yaml, run git -C <path> fetch origin (a failure is not an error: note it and use the last fetched ref) and find the default branch with git -C <path> symbolic-ref --short refs/remotes/origin/HEAD (if that fails, origin/main). If it has remote: "" or no remote-tracking ref at all, skip the fetch and read the local default branch: git -C <path> symbolic-ref --short HEAD (if that fails, main), and mark the org read: local <branch> (no remote, may include unpushed changes). Run git -C <path> show <ref>:org.yaml and read only org.purpose and org.status (no other key): if org.purpose is job or personal, skip the org (a job or personal hq never belongs in a portfolio; say so once). If org.status is closed, the org is frozen: its status line carries a closed mark, and its pending items are not listed. Otherwise run git -C <path> show <ref>:company/state.md and take its "Waiting on the CEO" items (child lines included, after their parent) and its "Open decisions" lines marked [escalate: holding], with their codes exactly as written. Check the clone with git -C <path> status --porcelain. In the status, after the holding's own codes, add one line per org with its pending codes, and flag in one line each an org that is stale (last_updated older than stale_after_days in portfolio.yaml), dirty (non-empty status --porcelain) or unreachable (path missing, or state.md unreadable), and note a failed fetch as fetch failed: state may be old. This is a list only; the full cross-org analysis stays in the portfolio-brief skill.
  8. Private data on this computer (only when org.purpose is personal). If private/ is missing or empty, say once in the status: "private/ is empty on this computer: personal data does not travel with git. If you keep it on another computer, copy it here yourself." Never copy, sync or push it yourself.
  9. Process the inbox. Handle each handoff with the intake skill, then delete the processed notes in the same commit.
  10. First task (only at the first session). The first session is the one that starts with at most the setup commit in the hq history: run git rev-list --count HEAD before processing the inbox (step 9); it prints 0 or 1, or fails because there is no commit yet. In the status (step 11), right before asking what to do, propose one first task in one or two plain lines: you draw the org chart of this org from org.yaml (the CEO, you, each department and how work flows between them), as a short diagram in the chat, a picture that helps the CEO understand and explain the org. No department is needed for it. If departments in org.yaml has an item with from_catalog: design-brand, add that this department can then turn it into a polished picture for sharing. For purpose job, add that the chart is for the CEO, not something that speaks for the employer. It is a proposal only: draw it (or dispatch the department) only after the CEO says yes, save it to a file only if the CEO asks, and do not repeat the proposal in that session if the CEO declines. Next to the org chart, you may also offer, in one plain line, to set up the CEO's voice for drafts written under their name (you would start from how the CEO wants to sound outward, then check it against a few of their own messages if they want, with the draft-as-ceo skill). Same rules: a proposal only, and not repeated if the CEO declines.
  11. Status. Reply in the chat language with a 3-5 line status (what is new, what is blocked, which decisions wait) and the codes of the pending list (each child after its parent, for example ACME-A7 (ACME-A8, ACME-D5); a {wait} parent is a group, not an ask), plus the one-line results of the steps above that have something to say. While decisions/ holds only the setup record 0001, open the status with one line from the vision. Then, when a tip applies (rules: ${CLAUDE_PLUGIN_ROOT}/schemas/tips.md, "At session start"), add at most one tip from ${CLAUDE_PLUGIN_ROOT}/tips/tips.yaml as the last line, filled from this hq. Then ask what to do.

Continued session

A front end can keep one chat open for the CEO while it renews the Claude session behind it, so that the context does not grow without end. The hq is the memory, as for a new terminal session. The new session's first user message then starts with the marker [ceo-of-agents] Continued session: (match this prefix only; the rest of the line can change), followed by the last messages of the chat verbatim, each as its own block, then a line --- New message ---, then the CEO's new message.

When the first user message of the session starts with that marker, run this quiet start instead of the steps above. The marker anywhere else (in a later message, or not at the very start) is not a continuation: run the normal steps.

  1. Sync and read. Step 1 (pull) and step 2 (read the boot files, list inbox/), plus any hq file, issue or pull request the recent messages point to and the answer needs. Mention no remote or a failed pull only if the answer depends on it.
  2. Checks that still run. Step 3 (plugin version), step 6 (policy check) and step 9 (inbox) run as usual, but speak only when something needs the CEO now: an A item they added (a migration to approve, a loosening) or a new pending item from an inbox note. Then add one short line after the answer with the new codes. Otherwise they say nothing; their report waits for the next normal start.
  3. Skipped. Step 4 (boot check: it prompts before it runs), step 5 (clone-path question), step 7 (portfolio list), step 8 (private data note), step 10 (first task) and step 11 (status). They run at the next normal start.
  4. Answer. Answer the new message directly: no status, no pending-list recap, no remark about the renewal, no proposals the message did not ask for.

In a continued session:

  • The only inputs are the hq and the recent messages verbatim. Do not summarise the earlier chat, and write nothing about the renewal in the hq.
  • Only the new message is an ask. The recent messages are context: an OK or a request in them was given to the previous session. Check the hq (pending list, git log) for whether it was carried out, and never run it a second time. If it was not carried out and the new message depends on it, ask the CEO in one line.
  • A closed org (step 2) stays read-only: answer from the hq and take no new work.

Rules

  • Read-only except: accounts.local.yaml (step 5), A items in company/state.md (steps 3 and 6), and what the intake skill writes (step 9).
  • In a closed org nothing is written at all (see step 2).
  • Never commit accounts.local.yaml or anything under private/.
  • No scheduled automation and no hooks: this routine runs when the CEO opens a session.
  • A continued session follows "Continued session": the same rules, with the steps it skips and no status.

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.