agentleFS
vmobifystudiovmobifystudio/app-dev-team/skills/team-protocol/SKILL.md

team-protocol

Skill5 starsChanged 8 days agoMITView on GitHub

On an app-dev-team project, use whenever one role needs something from another — a blocker, a spec question, a handoff, an escalation — and as the reference for the team ledger (docs/team/messages.jsonl), who may message whom, and the output contract. Used by every role.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never just "unclear" — name who must answer what.

    line 79
  2. Very specific:

    Never for anything reversible: the decider in docs/03-decision-rights.md decides and records it.

    line 127
  3. Distinctive:

    Never invent an answer to a question you raised.

    line 136
  4. Distinctive:

    Never relay a message by paraphrase when you can point at its ledger row.

    line 137
  5. Distinctive:

    Never send a message you have already sent.

    line 138
  6. Very specific:

    Never fyi the whole team. Address one role.

    line 139

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Team protocol

The core every role needs. Read a reference only when the situation names it:

ReadWhen
references/channel.mdsending a material message (the obligation rule), registering a formal artifact (ADR, PDR, DDR, WAIVER, INCIDENT, ASSUMPTION), querying channels, migrating a pre-log project
references/mid-sprint-qa.md§Mid-sprint Q&A — you are the /app-build orchestrator, tech-manager, or tech-lead answering the batch
references/output-contract.mdwhat a CODE / DOC profile field means, which roles use which profile, gate verdict blocks
references/anti-ping-pong.mda send was refused, or you are auditing a ledger
references/evidence-bundle.md§Evidence bundle — you write or audit a test claim (qa-engineer, test-automation-engineer, release-auditor)

The channel: docs/team/messages.jsonl

One append-only event log for the team. docs/team/messages.md is its generated view — never hand-edit it. Write with the helper; it is the only writer:

sh "${CLAUDE_PLUGIN_ROOT}/scripts/team-message.sh" \
   --from android-developer --to tech-lead --ticket APP-004 --kind question \
   --summary "Which error type for a failed toggle?" \
   --body "Spec names TodoError but the repo throws IOException. Which wins?"
  • Kinds: question · answer · handoff · blocker · fyi · escalation · decision.
  • answer and decision each close exactly one open question on that ticket, oldest first. A decision that decides nothing silently consumes a real open question — use fyi for anything that is not an answer. An answer/decision naming no artifact (--artifact) or transition is refused.
  • Every message names a ticket — or the ASCII hyphen -, and only -, for project-wide chatter (--ticket -). An em dash is read as a ticket ID and trips the pair guard.
  • --summary is one line and must stand alone. Append, never edit; correct a record by appending a later one.

Who may talk to whom

Direct messages follow the org chart; anything else goes through tech-manager.

FromMay message directly
any IC (ios-developer, android-developer, backend-developer, web-developer, monetization-engineer, test-automation-engineer)tech-lead (patterns, spec) · tech-manager (scope, blockers, board) · ux-architect (flow/state gaps) · product-designer (token/component gaps) · product-manager (what a criterion means)
code-reviewerthe ticket's owner · tech-lead · tech-manager
qa-engineerthe ticket's owner · tech-manager
tech-leadany IC · tech-manager · cto
tech-manageranyone
cpo ↔ ctoeach other · ceo
anyonetech-manager, always

An IC never messages ceo, cpo or cto. Product ambiguity goes to tech-manager, who decides whether it needs cpo — that stops every IC independently re-opening settled scope.

ICs (developers, reviewers, QA): declare, don't dispatch

An agent that can proceed will proceed; it cannot wait for an answer inside its own run. So your primary obligation is the Assumptions & open questions field of your output contract: every place the spec did not answer something and you decided anyway, with the decision and the reasoning. If you sent a message, paste its ledger row; if not, write ASSUMED, NOT RAISED. Never write that you raised something you did not — the orchestrator and the standup read that line as fact. The orchestrator files every ASSUMED, NOT RAISED as a real question for you.

Send a live question only when you can keep working on another part of the ticket meanwhile.

Ask before you block

BLOCKED costs a re-spawn. (1) Re-read the impl spec and flow doc. (2) Send one question and keep working elsewhere. (3) Only then (Need: tech-lead is answered this round, then you re-spawn):

BLOCKED: APP-NNN
Reason: <one paragraph>
Need: <who needs to answer what>

Never just "unclear" — name who must answer what.

Limits

Hard caps live in ${CLAUDE_PLUGIN_ROOT}/scripts/lib/messages.mjs (per role per round, same-pair cooldown, chain depth, per-ticket budget, duplicate question, re-opening a decided thread needs --evidence); a refusal writes nothing and states its code and remedy. Escalation after one unresolved round is mandatory: a second question while your first is unanswered is refused — escalate the first. On breaching any of them: stop messaging, write one escalation to tech-manager naming both positions in one sentence each, and move on. Table: references/anti-ping-pong.md.

Output contract

Ticket-working agents return the CODE or DOC profile, starting DONE: APP-NNN; gating roles return their own verdict block. spawn-prompt.mjs inlines the exact fields into your spawn prompt — return every one, in order. A field you omit is a gate that silently passes. Field meanings: references/output-contract.md.

Canonical paths — no other spelling is recognised

ArtifactPath
Your per-run fragmentdocs/daily/<today>-<role>-<ticket>.md
Same, for a spec-writing exec with no ticket (ceo, cpo, cto)docs/daily/<today>-<role>-spec.md
The aggregated standup (tech-manager only)docs/daily/<today>.md
The team channel (source of truth) · its generated viewdocs/team/messages.jsonl · docs/team/messages.md
A review verdictdocs/53-reviews/APP-NNN-cycle-N.md
Second / specialist verdictsdocs/53-reviews/APP-NNN-cycle-N-tech-lead.md · docs/53-reviews/APP-NNN-cycle-N-security.md · docs/53-reviews/APP-NNN-cycle-N-verification.md
Incident ledgerdocs/team/incidents.jsonl
ship-gate · journey-gate · runtime-gate recorded verdictsdocs/team/ship-gate-verdict.json · docs/team/journey-result.json · docs/team/runtime-result.json
Evidence, two dirs by writer: screenshots + human bundles · script-written gate recordsdocs/54-evidence/ · docs/team/evidence/
Journey contract · one declared P0 journeydocs/team/journeys/README.md · docs/team/journeys/<journey-id>.json
Platform, toolchain, test scopes · artifact-to-commit bindingdocs/team/project-profile.json · docs/team/release-candidates.jsonl
Run ledger · slot leases (gitignored) · schema registrydocs/team/runs.jsonl · docs/team/worktree-slots.json · docs/team/schema-registry.json
Dispatch manifestsdocs/team/capabilities.json · docs/team/risk-policy.json · docs/team/schedule.json · docs/team/context-manifest.json
HMAC actor keys — deny_all, never writable by any roledocs/team/actors.json
Per-spawn actor tokens — script-written onlydocs/team/actor-tokens.jsonl
Saved IC report (SubagentStop hook)docs/team/reports/<ticket>-<UTC>.md

Evidence

A test claim's evidence is the gates' own records — docs/team/journey-result.json (screenshots by SHA-256), docs/54-evidence/journeys/ and docs/team/evidence/, bound to a commit by evidence-check.mjs. A claim with none of them stays unverified. Nobody hand-writes a bundle; a manual pass adds free-text notes beside the record. Why: references/evidence-bundle.md.

Escalate to the user when — and only when

  • Never for anything reversible: the decider in docs/03-decision-rights.md decides and records it; cpo vs cto goes to ceo.
  • The budget ceiling is hit (money)
  • A change is destructive and irreversible (data migration, billing, a store submission)

Escalate with the question in one sentence, both options with their cost, and a recommendation.

Never

  • Never invent an answer to a question you raised. An unanswered question is reported, not guessed.
  • Never relay a message by paraphrase when you can point at its ledger row.
  • Never send a message you have already sent. Re-sending is not escalation.
  • Never fyi the whole team. Address one role.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.