Claude-skill-registry agent-protocol
Human and agent coordination protocol for repos using .agentprotocol. Use to manage TODO intake, open and archived work items, and plan/build docs with deterministic indexes.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/agent-protocol" ~/.claude/skills/majiayu000-claude-skill-registry-agent-protocol && rm -rf "$T"
manifest:
skills/data/agent-protocol/SKILL.mdsource content
Agent Protocol
Coordinate work in repos that use
.agentprotocol/. Keep work items self-contained and minimize follow-up questions.
Always load first
- Read
at the start of any session..agentprotocol/README.md - If
is missing, offer to initialize with.agentprotocol/
.bun ./skills/agent-protocol/scripts/init.ts
Core structure
: protocol contract and Active Work Index..agentprotocol/README.md
: intake queue..agentprotocol/TODO.md
: active work items..agentprotocol/open/<ID>-<slug>/
: completed or cancelled items (moved as a whole)..agentprotocol/archive/<ID>-<slug>/
Workflow
- Intake work in
..agentprotocol/TODO.md - Create a work item with
(build-only by default; addcreate.ts
for plan + build).--plan - Write or refine
if needed; keep it flexible (PRDs, user stories, specs).plan.md - Execute from
with tasks, verification, and append-only log.build.md - Archive by moving the whole directory to
..agentprotocol/archive/
Work selection
- If the user names a path or ID, use it.
- If not, suggest up to 3 candidates from the Active Work Index and TODO. The user chooses.
- Never auto-select.
plan.md
- Optional design surface. May include PRDs, user stories, acceptance criteria, constraints, and invariants.
- Frontmatter:
,id
,title
,status
,created_at
, optionalupdated_at
.refs
values:status
.draft | ready | done | cancelled
means Open Questions is empty (or risks explicitly accepted).ready
build.md
- Execution surface with tasks, verification, and append-only log.
- May exist without a plan (ad-hoc).
- Frontmatter:
,id
,status
,created_at
, optionalupdated_at
.plan_id
values:status
.todo | in_progress | blocked | done | cancelled- If
exists, include a Build File Index table listing allbuild/
(sorted by path).build/*.md
files are plain markdown by default (no required frontmatter).build/*.md
Active Work Index
contains a markdown table of all open work item directories..agentprotocol/README.md- Update with
(deterministic; avoids manual edits).bun ./skills/agent-protocol/scripts/reindex.ts - Use
to include next-action extraction when desired.--next
IDs and timestamps
is Crockford base32 encoding of UUIDv7 bytes.ID- Uppercase, fixed 26 chars, left-padded with
.0 - Alphabet:
.0123456789ABCDEFGHJKMNPQRSTVWXYZ - No zero padding in body identifiers (use
, notUS-1
).US-001
/created_at
use RFC3339 with timezone (recommend UTCupdated_at
).Z
Archiving
- When a work item is
, move the entire directory fromdone | cancelled
toopen/
.archive/ - Remove the row from the Active Work Index.
Migration
- For old
repos, followcontext/
.references/migration.md