Skip to content
Back to skills

Session Start

ASecurity

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

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsgobashgit

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add ceo-of-agents/ceo-of-agents-core --skill session-start --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Session Start?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Session Start
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ceo-of-agents-session-start/badge)](https://www.skillsdirectory.com/skills/ceo-of-agents-session-start)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: session-start
description: 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.
user-invocable: false
allowed-tools: Read Grep Glob Edit Write Bash(git remote) Bash(git remote -v) Bash(git pull) Bash(git pull --ff-only) Bash(git status:*) Bash(git rev-list --count HEAD) Bash(ls:*) Bash(wc:*) Bash(date:*)
---

# 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; read `repo_paths`, ignore other keys such as `linked_paths`), 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 ("Merge the login fix"). 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.

   The policy also decides the language of the lines the CEO reads: with a pin, they are written in the policy's `language.files`, unless it sets `language.ceo_lines: chat` (`${CLAUDE_PLUGIN_ROOT}/schemas/state.md`, "Language of CEO-facing lines"). Use that language for the A items you add here and in step 3, and write them to the CEO as "you" ("Voice of CEO-facing lines", same file).

   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 and titles exactly as written. Check the clone with `git -C <path> status --porcelain`. In the status, after the holding's own pending items, add one line per org with its pending items (titles, with the owning org's code kept exactly as written in the link or in parentheses), 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; name ongoing work by its plain title and state, never as an initiative or by slug) and the pending list by title, never by code alone (each child after its parent, for example `Launch the beta (Store copy for the beta, Price for the beta)`; a `{wait}` parent is a group, not an ask; a line without a title should not exist after the migration; name it by its first words and add its title). Write each title as the chat rules say: in an app session (the system prompt has a line that starts `[ceo-of-agents] app session`) a link `[Merge the login fix](coa:item/ACME-A2)`, in a terminal session `Merge the login fix (ACME-A2)`; never ask the CEO to type a code, 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 naming the new items by title. 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.