/cos:doctorfrom cos
Health check for a Chief of Staff workspace — system, files, notebook layout and page, hooks, channel token and access, the briefs and the nightly review. Use when the user runs /cos:doctor, or says the chief of staff isn't responding, forgot something, or seems broken.
Ships in cos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only unless the user approves a fix. Report each check as ✅, ⚠️ or ❌ with a one-line fix: ❌ when it stops the agent from working (nobody can message it, no token, the channel isn't connected), ⚠️ when it works but something needs attention, ✅ when it's fine.
Lay the report out so a problem can't be missed:
If anything is ❌, start with ## ❌ Needs fixing: one line per problem, in bold, followed by
the exact fix (the command to type, or the setting to change). Put the most important first.
Then ## ⚠️ Worth a look, if anything is ⚠️.
Then ## ✅ Working, one short line per check.
End with the one next step, in bold.
If nothing is ❌ or ⚠️, say so in the first line.
Locate the plugin root as two levels above this skill's base directory (PLUGIN_ROOT).
Workspace: cos/.version exists; CLAUDE.md, cos/my-rules.md, cos/about-me.md,
.claude/settings.json, start-cos.sh, nightly.sh, update-cos.sh, open-brain.sh,
.cos/defaults.md, .cos/options.md, .cos/build-brain.sh and .cos/brain-template.html
exist; no {{
placeholders remain. Compare cos/.version with the version in
PLUGIN_ROOT/.claude-plugin/plugin.json. If they differ, or update-cos.sh is missing, the
fix is: type /exit, then run ./update-cos.sh (or, without it, re-run the installer for
this folder).
System: jq is installed; the Claude path inside start-cos.sh still exists.
Hooks: run PLUGIN_ROOT/scripts/session-start.sh with {"source":"startup"} and
CLAUDE_PROJECT_DIR set to this folder; confirm it prints state.
Channel token: .cv/.env exists, has mode 600, and contains a CV_PAT= line.
Never print the token. If missing: "Run ./start-cos.sh — it will ask for the token."
Channel access: read .cv/access.json. Its fields are exactly dmPolicy, allowFrom
(IDs) and blockedFrom; don't guess other names. Report the policy and how many people are
allowed. No file means pairing. A file with no dmPolicy means allowlist: the channel treats such
files as older than pairing.
allowlist with nobody allowed: ❌ "Nobody can message , and messages from
anyone else are dropped without a pairing code." Fix: type
/cv-channel:access policy pairing, message the agent in Carbon Voice to get a code, then
/cv-channel:access pair <code>.pairing with nobody allowed: ⚠️ "Nobody is paired yet": message the agent to get a
code, then /cv-channel:access pair <code>.pairing: ⚠️, suggest
/cv-channel:access policy allowlist.
Access commands only see this folder's allowlist in a session started by ./start-cos.sh.
If the user says messages aren't arriving and someone is allowed, the allowed ID may not be
the account they message from: under allowlist, other accounts are dropped without a
reply. Ask them to check the channel log (below) for "dropped" lines with a sender ID.
Channel log: if .cv/channel.log exists, show its last 30 lines (they hold IDs and
events, never the token or message contents) and say what they show: whether the channel
connected ("authenticated as", "first run, starting from"), messages dropped from unknown
senders ("dropped message from unknown sender ": compare the ID with allowFrom), pairing
codes, or errors. "waiting for confirm_channels" with no "authenticated as" after it means
Claude Code didn't load it as a channel: ❌, the fix is to restart with ./start-cos.sh and
choose "I am using this for local development" when Claude warns about the channel. If messages aren't getting through and
.cv/channel-log.on doesn't exist, suggest ./cv-channel-log.sh on, restarting the agent,
and sending another message.This session: check whether CV_ACCESS_PATH is set in the environment. If not, this session
wasn't started by ./start-cos.sh and isn't connected to Carbon Voice.
Nightly review: macOS — launchctl print gui/$(id -u)/com.phononx.cos.<folder-name>;
Linux — crontab -l | grep nightly.sh. Show the last 15 lines of cos/log/nightly-run.log
and flag authentication errors, or a last run more than 2 days ago.
Remote Control: report whether start-cos.sh launches with --remote-control. If it
doesn't and claude --version is 2.1.51 or later, offer to turn it on by setting the
REMOTE=(...) line in start-cos.sh to REMOTE=(--remote-control). If it does, read
orgName from claude auth status (JSON) and report it, with: "In the Claude app, make sure
you're in , or your agent won't appear under Code." If orgName is missing, say to
make sure the app is signed in to the same account as Claude Code.
Notebook: if cos/.layout is missing and cos/open-loops.md or cos/people.md exists,
the notes are still in the old layout: offer to run the cos:migrate skill. Check that the
briefs in cos/my-rules.md parse: each line under "My briefs" has at:: HH:MM and days::
(weekdays, daily, weekends, off, or days like mon, wed, fri). An older file with
only brief_time and brief_days in its front matter still works as one morning brief.
Notebook page: run ./open-brain.sh --link. It should print a http://localhost: link
(a file:// link means the notebook server isn't running, see 11); report it, and how old
brain.html was before the rebuild. If the build fails, show the error.
Briefs: list the briefs from "My briefs". Only in a session started by ./start-cos.sh
(CV_ACCESS_PATH is set): list your scheduled tasks (CronList) and report the one whose
prompt starts with "Use the cos:brief skill now", and when it runs. It should be the next
brief due; if it's missing or wrong, offer to fix it as "Scheduling" in the cos:brief skill
describes. Report the briefs sent today from cos/brief.md, and how many lines
cos/catch-up.md holds. Briefs go to the conversation in cos/.cv-thread, which is written
the first time the agent replies in Carbon Voice; if it's missing, say briefs start once the
user has messaged the agent.
Notebook server: NOTEBOOK_PORT in cos/setup.conf and .cv/notebook.key exist (never
print the key). curl -s http://localhost:<port>/health answers {"ok":true,…}. Check the
service: on a Mac, launchctl print gui/$(id -u)/com.phononx.cos.<folder name>.notebook; on
Linux, systemctl --user status cos-<folder name>-notebook.service (or the @reboot crontab
line). Show the last 15 lines of .cv/notebook-server.log. If it isn't running, ./open-brain.sh
starts it for now and ./update-cos.sh sets the service up again. On a Mac, if the log shows
it can't read the folder ("Operation not permitted"), macOS is keeping background jobs out of
it: allow it in System Settings → Privacy & Security, or move the agent's folder out of
Documents/Desktop.
Launcher: if cos/setup.conf has APP=1: on a Mac, check /Applications/<agent name>.app or ~/Applications/<agent name>.app exists and osadecompile on it mentions this folder; on Linux, check
~/.local/share/applications/cos-<folder name>.desktop points at this folder's
start-cos.sh. If it's missing or points elsewhere, the fix is ./update-cos.sh.
Size: warn if cos/now.md is over 60 lines or cos/log/transcripts/ is over 200 MB.
Onboarding: if cos/.onboarding-pending exists, say onboarding isn't finished and show its stage.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub phononx/claude-plugins --plugin cos10 skills in this plugin
/brainOpens the chief of staff's notebook page (brain.html), which shows everything it knows, or gives its link to bookmark. Use when the user runs /cos:brain, or asks to see, open or get the link to their notebook, dashboard or what their agent knows./briefThe chief of staff's briefs, sent in Carbon Voice at the times the user chose (a morning brief, a midday check-in, a Friday wrap-up…) — focus, meetings with prep offers, a catch-up on email, chat and Carbon Voice (what needs a reply, what they may have missed, what changed), what's due, and numbered follow-ups they approve by number. Also "catch me up since…", meeting prep, and "do 1 and 3" replies. Use when a scheduled task "Use the cos:brief skill now: <brief name>." fires, when the user asks for a brief, a catch-up or meeting prep, when they answer a brief with follow-up numbers, or when they change their briefs./captureFiles what matters from a conversation into the chief-of-staff notebook in cos/ — actions, things others owe, decisions, ideas to come back to, links, facts, people, projects, and the user's own rules. Use after ANY exchange where the user decides something, commits to something, asks you to track or follow up on something, changes priorities, mentions an idea, shares a link or fact worth keeping, tells you how to work, or mentions a person's or project's status — even if they don't say "remember". Also use in reconcile mode after context compaction./consolidateNightly or weekly review of the chief-of-staff notebook. Reads recent logs and transcripts, keeps now.md current and short, archives finished and stale items with the reason (never deletes), suggests moves such as promoting an idea into a project, and writes nudges for the next day. Use for scheduled headless runs, or when asked to consolidate, review, tidy, or do the weekly review./draftShapes a piece of writing with the user by voice — an email, document, deck, message or post — from scattered notes to an outline to versions, in cos/drafts/, written in their voice for that kind of writing and audience. When it's ready, asks whether to keep it or move it to the tool they use for that kind of work, remembers the answer, and links to where it went. Use when the user asks to start, add to, outline, restructure, revise, read back or finish a draft, organize their thoughts on something they're writing, or asks where a draft ended up./migrateMoves a chief-of-staff notebook from the old layout (open-loops.md, people.md, the old now.md sections, log/closed-loops.md) to the current one, without losing anything. Use when cos/.layout is missing and cos/open-loops.md or cos/people.md exists, which the start-up notes and the nightly review point out.