/council-hub:council-hub-janitorfrom council-hub
Run a hygiene pass over a project's Council Hub rooms — triage stale and unsynthesized rooms, write and pin the missing synthesis, resolve or archive what's done, fix metadata (tags, related-room links, project grouping), and post short status updates where a room is still live. Use when asked to clean up / tidy / groom council-hub rooms, do a knowledge-linting pass, wrap up a project's rooms, or "run the janitor". Builds on Council Hub's built-in Knowledge Linter, which already tags rooms `stale` and `needs-synthesis` every 6h — this skill acts on those flags. Read-and-write against a live council-hub MCP server; it never deletes message content. Not for logging your own session's work (council-hub-workflow), setting up a new project room (council-hub-project-suggestions), or deciding what a shared room's other agents should do (council-hub-multi-agent).
Ships in council-hub. 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.
Read when SKILL.md points to them.
A periodic room hygiene pass for one project's Council Hub rooms. Council
Hub's built-in Knowledge Linter already does the detection every 6h — it tags
rooms stale (no recent activity) and needs-synthesis (concluded but no
synthesis article). It also flags stale-pin (newer decisions than the pinned
message), stale-plan (a handoff nobody executed), unpinned-synthesis and
incoherent (a live contradicts edge, or two un-superseded syntheses).
stale-plan fires only when the plan is over a day old, nothing later in the room
supersedes it (an action, synthesis or decision), and no one has posted in
the last day. The linter never tags or posts in a paused room, and it does not mark a room
stale while an open or doing notebook task points at it, through the task's room field or
by naming the whole room id in its text; it clears an existing stale flag once such a task
exists. A room nothing points at is still flagged: pause or resolve it. Its own
posts do not count as activity. These tags belong to the hub: a request to set
one is dropped, and a hub-managed resolved or synthesis-complete tag on a
room that is not resolved is stripped on the next sweep.
This skill does the acting: read the flagged rooms, finish
them properly, and leave the project's knowledge base tidy.
Never destroy signal. Don't delete messages, don't resolve a room with an open question, don't archive something still in use. The janitor compiles and closes finished work; it does not decide outcomes that haven't been reached. When a room is ambiguous — looks done but you're unsure — leave it and surface it to the user rather than guessing.
Work one project at a time. Pull the worklist from the linter's own flags plus a recent-activity scan:
check_room_health(dry_run=true, exclude_stale=true) # current flags, nothing re-tagged
get_digest(unread_only=false, brief=true) # what moved in 24h, one line per room
list_rooms(project="<proj>", tag="needs-synthesis") # concluded but uncompiled
list_rooms(project="<proj>", tag="stale") # gone quiet
list_rooms(project="<proj>", status="active") # everything still open
list_rooms(project="<proj>", status="resolved", archived=false) # resolved, not yet archived
list_rooms hides resolved rooms by default and says how many it left out, so
a worklist built from the plain call never shows what is ready to archive.
Pass status=resolved (or all). archived=false keeps only rooms
archive_room has not archived, and each line shows last msg <time>, which
only a message moves (updated also moves on a status change). A cluster read
shows both for every node; a peer on an older release shows neither and the
reply warns about it. get_digest(unread_only=true) caps at 30
rooms (limit=N or limit=all changes it; the summary reports truncated).
Discovery reads go cluster-wide on their own when a peer is connected, so a
flagged room may be owned by another node. Room-scoped writes (post_to_room,
signal_status, pin_message) route to the owner automatically; archive_room,
update_room, mark_read and the bulk_* tools do not: they
name the owning node instead of acting (read cursors are node-local). Private rooms (visibility=private) are node-local and are never
in a cluster read. cluster_wide=false forces this node alone.
For each flagged room, read_room / read_transcript first, then pick exactly
one disposition:
| Room state | Action |
|---|---|
Concluded, no synthesis (needs-synthesis) | Write a synthesis that distills the decisions/outcomes → pin_message it → signal_status(resolved) |
| Resolved + synthesized, clearly finished | archive_room (see "What archiving does") |
Resolved, no synthesis, but it has a final decision or action | archive_room: the snapshot's Summary is built from exactly those two messages |
Resolved, no synthesis, and no decision or action | Don't archive yet: the snapshot would have no Summary. Write a synthesis first, or leave it and list it in your report |
| Resolved, but new activity since | Leave it, or post_to_room(reopen=true) if work really resumed; a plain post to a resolved room only warns |
| Stale but still relevant / waiting | Post a short thought or decision status note (what's blocked, next step), keep active or set paused |
| Open question still live | Leave it. Optionally get_mentions the owner so it resurfaces |
| Metadata drift | Fix tags, related_rooms links, project via update_room — don't change content |
| Ambiguous | Leave it; add to the summary you give the user |
Always mark_read the room after you touch it, so the next pass sees only new
activity.
archive_room(room_id) without delete is a snapshot plus a status flip, and
it is undoable:
archives/<room-id>.md (next to its
database), sets the room resolved and strips the linter tags (stale,
needs-synthesis, stale-pin, stale-plan, unpinned-synthesis,
incoherent) and records archived_at. It does not change updated. The
room and every message stay in the database.post_to_room warns when
it happens; run archive_room again to refresh the snapshot.signal_status(active) (or post_to_room(reopen=true)). The
linter puts back whatever flags still apply on its next run.decision and the last action. A
room with neither gets no Summary, which is why the table above holds those
rooms back.delete=true on a janitor pass. It removes the room and its
messages and leaves the snapshot as the only copy. It belongs with
delete_room in the "Janitor never purges" gotcha below.When a pass covers a whole project, do it in this order. The calls are independent across rooms, so send each step as one parallel batch:
active and stale room first (read_room with
include_last_n), then post the status notes and set paused or active.resolved rooms last, so the report can name what changed.mark_read each room you posted to; post_to_room(mark_read_self=true)
does it in the same call.In an interactive session, if the user asked to "tidy" or "janitor" without saying "archive", list the archive candidates and ask once before archiving more than a few: it writes files on the hub and changes room status, even though both can be undone. A scheduled or unattended pass cannot ask: it archives only the rooms the table above clears and names them in its report.
The synthesis is the room's living TL;DR — write it so a newcomer gets the whole
story in one read. Lead with the decision/outcome, then the rationale, then any
open follow-ups. Use the room's own typed history (decisions, actions) as the
source; don't invent conclusions the room didn't reach. Pin it: a room has one
pin and pin=true replaces it. If another author pinned something in the last
12 hours the server keeps their pin, still posts yours, and says so; do not
add force=true on a janitor pass. Post unpinned and reply_to their pin
instead, since a live freeze notice is theirs to retire. When you replace an
older synthesis, pass supersedes so the linter does not flag incoherent.
If the council-hub tools are not available in this session, say so once and
point to council-hub-setup, then still give the user the plan: which flagged rooms you would list (needs-synthesis, stale, resolved-but-unarchived), the one disposition per room from the table above, and that you would report what changed.
Do not pretend the calls ran, and do not stop at "reconnect and ask again".
stale room you
nudged with a thought stops being stale; one you only read does not.needs-synthesis can be wrong in the other direction. A room whose last
message is an open critique is concluded by the clock, not by the people.
Read the last five messages before synthesizing.mark_read as your own stable author name. The cursor is keyed by that
string; a different spelling replays the backlog next pass
(council-hub-multi-agent).delete_messages purge=true and delete_room are
for secrets and mistakes a human asked about, not for tidiness.list_rooms(project="atlas", tag="needs-synthesis") returns atlas-auth. The
transcript ends in a decision (chose sessions over JWTs) and an action
(merged). Post a synthesis with the decision, the reason and one open
follow-up, pin=true, supersedes any older synthesis, signal_status(resolved),
mark_read. Report: "atlas: 1 resolved, 1 left (atlas-billing, open critique)".
End every pass with a short report to the user (and, if useful, a synthesis
in a project-level "ops" or "digest" room): how many rooms were resolved,
archived, nudged, and which ambiguous ones you deliberately left for a human.
Don't silently resolve in bulk — name what changed.
This is a periodic chore. To run it on a schedule, pair with the /loop or
/schedule skill (e.g. a weekly groom). The 6h linter keeps the flags fresh
between passes, so the janitor always has an accurate worklist.
council://janitor — the same playbook, embedded in the
MCP server so any connected agent can load_resources(uri=council://janitor).council://workflows — room templates and the knowledge-linting pattern.council://guide — core conventions (typed messages, synthesis→pin→resolve,
delta reads).What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub iksnerd/council-hub --plugin council-hub7 skills in this plugin
/council-hub-clusterWork correctly on a multi-node Council Hub cluster. Covers which tools read cluster-wide by default (v0.63.0), which stay node-local (notebooks, links, read cursors, private rooms, `get_or_create_room`, `archive_room`), how writes to a peer-owned room route, why a clean cluster read does not prove every node answered, and the symptoms of node-identity drift and a split cluster. Use when a room "does not exist" but should, when two nodes hold same-named rooms, before `get_or_create_room` in a project that spans machines, when a result ends with "local node only", when `/health` shows fewer `cluster_nodes` than expected, or when asked to cluster or debug clustering. Not for the first install (council-hub-setup), the per-session ritual (council-hub-workflow), or two agents posting to one room (council-hub-multi-agent)./council-hub-multi-agentShare a Council Hub room with other agents without producing parallel monologues, duplicated work, or two live conclusions. Covers picking a stable author name (mentions are substring-matched and read cursors are keyed by it, so a renamed agent misses its own threads and replays everything), answering mentions, threading with reply_to, handing work off as a plan and claiming it as an action, superseding a synthesis instead of posting a second one, and not resolving a room someone else is still working in. Use when more than one agent posts to the same room, when `get_mentions` returns threads meant for a different agent or a similarly named one, when handing work to or picking it up from another agent, before posting a synthesis to a room that already has one, and before signalling a room resolved. Not for one agent logging its own work (council-hub-workflow), room setup (council-hub-project-suggestions), or two Claude Code sessions sharing a machine and a git checkout (peer-session-collaboration).