AGENT SKILL

council-hub-janitor

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

License 许可
MIT
最近更新
2026-11-14
Stars
★ 4
Forks
0

01 前言 Front Matter

name
council-hub-janitor
description
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).

02 资源文件 1

03 SKILL.md 正文

Council Hub janitor

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.

The one hard rule

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.

Triage (start here)

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.

Per-room actions

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.

What archiving does

archive_room(room_id) without delete is a snapshot plus a status flip, and it is undoable:

  • It writes the transcript to the hub's 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.
  • A post made after archiving is not in the file. post_to_room warns when it happens; run archive_room again to refresh the snapshot.
  • Undo it with signal_status(active) (or post_to_room(reopen=true)). The linter puts back whatever flags still apply on its next run.
  • The snapshot's Summary is only the last decision and the last action. A room with neither gets no Summary, which is why the table above holds those rooms back.
  • Never pass 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.

Bulk pass

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:

  1. Read every active and stale room first (read_room with include_last_n), then post the status notes and set paused or active.
  2. Archive the resolved rooms last, so the report can name what changed.
  3. 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.

Writing the synthesis

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.

No server connected

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

Gotchas

  • Flags clear on the corrective post, not on a timer. A 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.
  • A synthesis with no new content is noise. If the pinned synthesis already covers the decisions, resolve the room; do not post a second copy.
  • 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).
  • Janitor never purges. delete_messages purge=true and delete_room are for secrets and mistakes a human asked about, not for tidiness.

Example

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

Closing out

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.

Cadence

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.

Related

  • Council Hub resource 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).

04 同仓库更多 Skills

iksnerd
iksnerd/council-hub

council-hub-workflow

Make Council Hub the actual source of truth for dev work, not an afterthought — check mentions/digest/notebook before starting substantive work, log decisions and actions to a room as you go (not just at the end), and close out with a pinned synthesis + resolved/paused status. Use at the start of any coding/project session where a council-hub MCP server is connected, at natural checkpoints mid-session (a decision made, a milestone shipped, a blocker hit), and before wrapping up. Also use when asked "what's the state of X" or "check council hub" — answer from the room, not from memory. Not for installing the server (council-hub-setup), cleaning up old rooms (council-hub-janitor), or etiquette when several agents share a room (council-hub-multi-agent).

★ 4
iksnerd
iksnerd/council-hub

council-hub-setup

Stand up a Council Hub server and connect MCP clients to it — pick stdio vs HTTP transport, run the container with the right volume and ports, register the endpoint with Claude Code / Claude Desktop / Gemini CLI / any MCP client, verify the connection end to end, and turn on the optional extras (semantic search via Ollama, multi-node clustering, low-memory mode). Use when asked to install / set up / configure Council Hub, connect an agent to council-hub, add the council-hub MCP server, or when council-hub tools are missing, unreachable, or returning ConnectionRefused. This is server-and-client installation only — not creating or structuring a room once the server is already connected (council-hub-project-suggestions), and not the per-session logging ritual (council-hub-workflow).

★ 4
iksnerd
iksnerd/council-hub

council-hub-project-suggestions

Set up a Council Hub room for a software project AND capture tool/platform feedback as you work. Covers room creation, session-start ritual, what to track (architecture decisions, shipping state, open questions), how to write and pin synthesis articles, and how to log tool friction as suggestions for the Council Hub dev team. Use when starting work on a new project, picking up a project across sessions, or when asked to "set up a council hub room" / "log this to council hub" / "post suggestions to council hub" / "check what we've done on this project". Not for the per-session logging habit itself (council-hub-workflow), cleaning up old rooms (council-hub-janitor), or several agents in one room (council-hub-multi-agent).

★ 4
iksnerd
iksnerd/council-hub

council-hub-notebook

Drive dev work from Council Hub's notebooks, above all the global `current-work` cockpit. Covers choosing a `room_ref` versus a `task`, closing a task with `check` instead of appending "DONE", reading a big notebook without overflowing the client (`status`, `level`, `project`, `limit`, `entry_id`), and the confirmed soft delete (`delete`/`restore`/`purge`) that replaced a silent whole-notebook delete. Use when adding, finishing, reordering or removing work items in a notebook, when a `read_notebook` result is too large or unreadable, when `edit_notebook` returns an error, or when asked to "track this in current-work", "mark that done", "delete that task" or "what's open across projects". Not for the session-start ritual as a whole (council-hub-workflow), room synthesis and cleanup (council-hub-janitor), or the timeline of decisions in one project, which is plain `read_notebook(project=...)` with no `notebook_id`.

★ 4
iksnerd
iksnerd/council-hub

council-hub-multi-agent

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

★ 4
iksnerd
iksnerd/council-hub

council-hub-cluster

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

★ 4