Skip to content
Back to skills

Rule Daemon Host Tools Team Proposal

ASecurity

Host tools — read_teams and propose_team, the builder chat's save_team_change, the deferred team card, and a team run lead's card sinks. A repository rule for apps/daemon/src/v1/teams/services/team-proposal*, apps/daemon/src/v1/teams/services/team-cards*, apps/daemon/src/v1/teams/**/team-reading*, apps/daemon/src/v1/teams/**/team-chat-instructions*, apps/daemon/src/v1/agents/**/team-proposal.broker*, apps/daemon/src/v1/agents/**/team-builder.broker*, apps/daemon/src/v1/agents/**/project-chat....

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
ai-agentsgonode

Works with

  • cursor
  • cli
  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add geniro-io/geniro-app --skill rule-daemon-host-tools-team-proposal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rule Daemon Host Tools Team Proposal?

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

Security grade badge for Rule Daemon Host Tools Team Proposal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/geniro-io-rule-daemon-host-tools-team-proposal/badge)](https://www.skillsdirectory.com/skills/geniro-io-rule-daemon-host-tools-team-proposal)

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: rule-daemon-host-tools-team-proposal
description: "Host tools — read_teams and propose_team, the builder chat's save_team_change, the deferred team card, and a team run lead's card sinks. A repository rule for apps/daemon/src/v1/teams/services/team-proposal*, apps/daemon/src/v1/teams/services/team-cards*, apps/daemon/src/v1/teams/**/team-reading*, apps/daemon/src/v1/teams/**/team-chat-instructions*, apps/daemon/src/v1/agents/**/team-proposal.broker*, apps/daemon/src/v1/agents/**/team-builder.broker*, apps/daemon/src/v1/agents/**/project-chat.broker*, apps/daemon/src/v1/agents/**/project-instructions.broker*, apps/daemon/src/v1/agents/**/goal-writers.broker*, apps/daemon/src/v1/agents/**/any-team-or-project*, apps/daemon/src/v1/agents/**/host-teams*, apps/daemon/src/v1/agents/**/host-project-instructions*, apps/daemon/src/v1/mcp/tools/read-teams/**, apps/daemon/src/v1/mcp/tools/propose-team/**, apps/daemon/src/v1/mcp/tools/save-team-change/**, apps/daemon/src/v1/mcp/tools/save-project-instructions/**, apps/daemon/src/v1/mcp/tools/team-edit-args*, apps/daemon/src/v1/mcp/tools/project-block-args*; read it before editing a file there."
---
<!-- GENERATED by scripts/sync-agent-rules.mjs from .claude/rules/daemon-host-tools-team-proposal.md. DO NOT EDIT: edit the source, then run `pnpm sync:agent-rules`. -->

# Host tools — team proposals and the lead's cards

- `read_teams` / `propose_team` (`TeamProposalBroker` gates them to every chat — ordinary, a team's builder, a project's own, an analysis — and to a team run's LEAD in its own conversation, never another member and never the lead answering a call; user decisions: any of them may read and change any team or project, each behind the same card, and in a team run only the lead the user talks to may — 2026-11-12): the write is `TeamProposalService`'s in `v1/teams`, never the agent's. Every chat takes one form (`readProposeTeamArgs`): `team` whole (with `replaces`, a whole replacement), else `edits` + `replaces`, `overlay` + `overlayProjectId` and `project`, together on one card, with a required `summary` and `reason`. What a call leaves unnamed is the chat's own (`proposalTargetOf`, over the sinks): edits naming no team are a builder chat's team (`TeamBuilderBroker`, refused elsewhere), an overlay naming no project is a project chat's project or a builder chat's older binding (`ProjectChatBroker`, `TeamBuilderBroker.projectId`), and an overlay alone that names its project is that project's default team's, whichever team the chat edits. The chat's own team goes through `proposeChange`; any other through `proposeEdits`, held to `assertRunnable`. The brief of each such chat names all of this (`ANY_TEAM_OR_PROJECT`, `agents/utils/any-team-or-project.ts`).
  - A team's builder chat (`Run.editsTeamSlug`) is also offered `save_team_change`, through a `TeamBuilderBroker` sink `ChatService` registers per turn carrying that slug — the slug is never the model's. Every change goes on a `propose_team` card first (user decision: the user sees what changes, why, and the exact diff before anything is written): edits plus a required one-line `summary` and `reason`, and optionally `project` — a change to the instruction blocks of a project whose default team this is, so text moves between the team and the project on ONE card (user request: four approvals for one move were the cost of routing it through an analysis card) — or `overlay` + `overlayProjectId`, the same move into a project's overlay, which `TeamProposalService.prepareChange` applies to the file as it stands (`editTeam`, the save's own edit, schema, team and `configDir`-token checks — never `assertRunnable`, since a team is built up over several changes) into an ordinary `replace` card pinned to that file's hash; its `project` half (`TeamProposalProject`) is filled in and checked by `checkedProjectChange` — the write's own rules, the 20 000-character total among them — before the card, and pinned to the instructions revision. Approve writes it as any replacement is written (hash re-checked, backup, store save), the project's blocks first through `ProjectsService.update` (logged as the chat's change, revision-guarded) and put back when the team write fails (`writeProjectWithTeam`, as `writeWithTeam` does for an overlay); an editor save after the card went up, a moved revision, a project that left the team or was deleted makes it `not-saved` / `changed`. The builder's `save_team_change` is a check only: it always runs as a dry run and takes no `dryRun` argument. Its brief (`teams/utils/team-chat-instructions.ts`) routes every change through the card and advises no rehearsal, since a proposal refuses without raising one; the agent writes the YAML itself only to repair a file a proposal or check refused `TEAM_UNREADABLE` (it cannot be loaded — its YAML or the schema; the refusal carries the parser's first line only, since the rest quotes the file), and the turn's next check then takes the repaired file as it stands (`TeamBuilderSink.acceptsAnyVersion`). It READS its own team through `read_teams`, never with its file tools: a library team runs to 280KB, past what one tool result carries, so `slug` alone answers the whole team only while it fits a page (`PAGE_BYTES`, `teamOrOutlineText`) and its outline otherwise (every member, block and stage with each text sized, `teams/utils/team-reading.ts`); `members`, `blocks` and `stages` write those parts out with each text between `=== <path> ===` markers naming the path an edit's `path` takes, `search` answers every paragraph holding one of its words under its field's path, `full` the whole team, `overlays` the project overlays of the team it names, and `projects` the projects that run it by default — every long answer paged by `offset` on line breaks, each page naming the hash, the same in every chat. `configDir` reads as a token there too (overlay YAML through `redactOverlaySource`). `propose_team` words its listing per chat for what naming no target means there (`instructions(context)`). `isHostBuilderTeamCall` approves the builder's read and check in every mode (neither writes a change); the proposal is approved by `isHostTeamProposalCall`, its card being the gate. A builder chat also holds the analysis tools while its team has runs (`.claude/rules/daemon-thread-analysis.md` → builder chats).
  - A chat proposes a NEW team whole (`team`), and changes a library team by EDITS (`replaces` + `edits` + a required `summary` and `reason`; `team` beside a change is refused): `TeamProposalService.prepareEdits` applies them through `prepareChange`, with an overlay or project half when they carry one, then holds the result to `assertRunnable` as a whole team from a chat is held, into the same `replace` card pinned to the file's hash (`TEAM_NOT_FOUND` for a slug the library lacks). A whole `team` with `replaces` still replaces one, but its listing steers to edits: a library team runs to 280KB, past what one tool call can carry. It changes a project's overlay alone with `overlay` + `overlayProjectId` + a required `summary` and `reason`: `TeamProposalService.prepareOverlay` reads the project's default team itself (`PROJECT_GONE`, `PROJECT_HAS_NO_TEAM`) and raises the same card, through `prepareChange` with no edits. It reads the overlays first with `read_teams` `slug` + `overlays`.
  - An analysis keeps `save_team_change` and the Apply for what the user applied from its card; `propose_team` is for a change the user asks for in their own words (`.claude/rules/daemon-thread-analysis.md`). Its verdict reaches it like any chat's.
  - In an ordinary chat `read_teams` is not auto-approved (a read of the user's data outside the chat, like the history tools; a project chat's and an analysis's are, `isHostLibraryReadCall`, a builder chat's through `isHostBuilderTeamCall`) and shows every `configDir` as a token naming it (`configDirToken`, `<set:` + a short hash of the path), so neither tool hands a profile path to the provider (`read_analyzed_thread`'s team view still does). A proposal that keeps a token gets the path back from the team it replaces, matched by the token alone — never by member id or pool position, which an edit moves — and only for an agent of a CLI that profile served there; any other token refuses the proposal (`CONFIG_DIR_UNKNOWN`, `restoreConfigDirs`), never a guess. A refusal after the restore shows each path as its token (`redactConfigDirText`), and a library file's YAML error reaches the agent as its first line only (`firstLineOf`: the rest quotes the file).
  - A proposal is checked with the strict `TeamSchema` (never `TeamYamlSchema`, whose default would make an agent `approval: 'auto'`) and `TeamExecutorService.assertRunnable`; one that fails raises no card. A new team's slug (`freeDerivedSlug`, which writes nothing) and a replacement's `baseHash` are fixed when the card is raised.
  - The card is DEFERRED (`ChatService.raiseOwnedCard`): the tool answers at once and the verdict reaches the agent as the run's next message, so no CLI tool-call deadline expires it. One per run in `Run.pendingTeamProposal`, retired only by a newer proposal, an archive or the run's teardown (a new turn retires every other deferred card — a question, plan or project card — never this one: `PendingApproval.standing`), rehydrated at boot.
  - On Approve: clear the column, then write (hash re-checked BEFORE the backup, `TEAM_CHANGED` / `TEAM_EXISTS` from the store as the final guard), then the verdict row, then the message. The note the user typed is kept on the verdict row and in the message, on either button. An approval's row also carries its `outcome` (`saved` + slug, or `not-saved` + a `cause` code — `TeamProposalOutcome`, twin of the renderer's `readProposalOutcome`), because the message can wait for a turn to end and the card must not.
  - The card counts as `awaiting` only while no turn runs (`ChatService.awaitingOf`, the `ignore` of `ApprovalRegistry.awaitingFor`): every status write carries it (`writeRunStatus`'s `announce.awaiting`), so the badge follows the turns around a card that outlives them. The boot reconcile never writes it off, nor the standing question, plan or project card (`standingProposalCardId`, `readPendingQuestion`); rehydration drops a column whose card the transcript already closed, and closes one whose proposal no longer parses.
  - The card lists every `approval: 'auto'` agent (`autoAgents`, pool members included; not `acceptEdits`), worked out by the daemon; the agent's `summary` is its own capped line and its `reason` its own capped text (line breaks kept, hidden characters refused).
  - A verdict pressed while a turn runs is HELD and sent when that turn ends, however it ends (`ChatService.heldVerdicts`, in memory, released from the finalizer's `finally` and the start-failure path), and only as a turn of its own (`sendMessage`'s `ownTurn`, refused `RUN_BUSY` and held again rather than delivered into a turn). Archiving a chat closes its standing card from the column as it stands after the stop (`retireStandingCard`), and an archived chat refuses a new one (`raiseOwnedCard` throws `RUN_ARCHIVED`, re-checked after the column write; the tool answers `CARD_NOT_SHOWN`), since an archived chat refuses the verdict's message. A verdict is held, too, while a deferred question, plan or patch stands, and a chat being deleted or archived drops what it holds.

- A team run's lead (user decision 2026-11-12: only the lead, the member the user talks to) also gets `read_teams`, `propose_team`, `save_project_instructions` and `save_plugin` (`.claude/rules/plugins.md`; `TeamExecutorService.registerLeadCardSinks`, for the run's lead, re-registered each pass and dropped with the run), and is the one member that writes the run's goals (`GoalWritersBroker`, registered there for the lead on the same `offeredTo`; `goals` below): each sink carries `HostSinkOptions.offeredTo`, read live at every listing and call, which holds it to the lead in its own conversation (`conversationId` null) while a turn of that conversation runs (the pass's live conversations), so between its turns all four are refused as an idle chat's are. `save_project_instructions` and `save_plugin` are offered whatever CLI the lead or its pool members run, cursor included: their team cards are deferred, so no CLI has to hold the call open. The proposal, project and plugin cards are DEFERRED and owned by `TeamCardsService` (`v1/teams`, the team twin of `ChatService.raiseOwnedCard` & co. behind the `OwnedCardHost` interface): the row is written in the lead's flow, the card is tracked `deferred` + `standing` under the lead, the tool answers at once (its receipt names the team card's Approve or Deny, `HostProjectInstructionsOutcome.buttons`), and the verdict row is written and the verdict reaches the lead as a host wake in its own conversation (`StageWakeService.wakeLead`, key `card:<runId>:<requestId>`). `TeamProposalService` picks the host by run kind (`cardsOf`: `run.teamId`). The lead's project card stands one per run in `Run.pendingTeamProjectCard` (never `Run.pendingQuestion`, whose boot rehydration is a chat's): an identical change adopts it, another is refused (`QUESTION_ALREADY_STANDING`), the column is cleared before Apply writes through `ProjectInstructionsChangeService.write` (source `chat`, the team run's id), it is rehydrated at boot (`TeamCardsService.rehydrate`), and archiving retires it with the proposal card (`ChatService.retireStandingCard`). The executor auto-approves the lead's `propose_team` and `save_project_instructions` calls in every mode (their card is the gate); its `read_teams` and `save_plugin` stay the user's to allow outside `auto`, as in an ordinary chat.

- `run_team` (`RunTeamTool`, `ChatTeamService` in `v1/teams`; user decisions 2026-11-25): run a team from a chat without creating it, and change a running team for that run only. It rides `TeamProposalBroker`'s sinks, narrowed by `TeamProposalSink.runTeam` (`runTeamFormOf`): `start` on an ordinary chat's turn (never an analysis, a builder chat, a project's own chat or the command center — `ChatService` sets it), `change` to a team run's lead in its own conversation (`registerLeadCardSinks`). Its card is `propose_team`'s machinery: the same `Run.pendingTeamProposal` column, raised through `TeamProposalService.proposeRunTeam`, modes `run-start` / `run-change` of the `TeamProposal` union (`isRunTeamProposal`; the library-writing modes are `LibraryTeamProposal`), outcomes `started` / `not-started` / `changed` / `not-changed` on the verdict row; `carryOutVerdict` hands a run card to `ChatTeamService.carryOutVerdict`. Auto-approved like `propose_team` (`isHostTeamProposalCall` names both). Both forms list ONE description and ONE schema (`runTeamInstructions`, `runTeamSchema` over `ListedArgsSchema`: `plan` and `team` to start, `edits` to change): claude keeps the schema a chat loaded, so a schema per form left a promoted chat's lead calling the start form's. The reader of each form refuses the other's fields with a message naming the right ones. Its text routes a request to build a team for a job now ("собери команду") here and only a team to save to `propose_team` (user decision), calls it at once on a clear request and after a question or two on a vague one (user decision 2026-11-25), and calls it directly in plan mode, since the card changes nothing until Start (user decision 2026-11-25).
  - Start (`ChatTeamService.prepareStart`): the chat's own agent is the lead member `agent` (`SINGLE_AGENT_NODE`, so its `node_state` row, session and rows carry over) with the chat's agent, model, effort and profile; up to `MAX_CHAT_TEAM_MEMBERS` (12) new members, each the CLI and model the agent proposed, the chat's profile where it is the chat's CLI, and the chat's approval mode (`plan` → `ask`); `mode: lead`, trigger `agent`, no stages or blocks. Refused with no card for a CLI not installed (`TeamHealthService.missingClis`, any member), a team `checkTeam` or `assertRunnable` refuses, or `ChatService.promotionBlockers` (open monitors, background commands or sub-agents, another card, a pending question, a restart continuation; a running turn only at the press). Queued messages live in the renderer, so the card's Start is held there.
  - The press waits for the chat's turn to end (`ChatService.whenTurnEnds`), checks again, then `TeamExecutorService.promoteChat`: a compare-and-set on `teamId` null (`RunDao.promoteToTeam`) writes `teamId: chat:<runId>` (`chatTeamIdOf`, never a library slug: `SLUG_RE` refuses `:`), `teamOrigin: 'chat'`, the snapshot as both copies and the starting progress, and announces the row. A flip that does not take answers the card `not-started`. Only after it: the verdict row (`started`), letting go of the chat's kept process and kept tools (`releaseForTeam`), and `openChatTeamPass`, which starts the first pass under geniro's own row (`chatTeam.phase: 'started'`) with the plan, each agent's task and the user's note as the lead's turn; a pass that cannot start leaves a red row saying the next message starts it. A chat team is never written to the library.
  - The note's one change (user decision): after a start with a note, while the lead's turn that Start opened still runs (`applyRemarkChange`, checked off the rows since the opening row), the first `add` or `update` its `run_team` calls send is applied with no card — exactly one, whatever other tools it called first — followed, once the change took, by a system row naming it (`chatTeam.phase: 'changed'`, `remark: true`). The same call's other edits go on a card (`RemarkOutcome.rest`), as does every removal and any later change; a refused edit keeps the grant. In memory: a restart only means a card.
  - Change (`prepareChange`): edits applied to the run's own copy, pinned to its hash (`runTeamHashOf`), refused for the lead, an unknown or departed member, a member id the run had, and past 12 beside the lead on a chat team. Apply goes through `TeamExecutorService.changeRunTeam` (Teams and passes). The same for a library team's run, for that run only: never the library file, an overlay or `teamBaseSnapshot`.

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.