# Protocol-tools
<!--
ref: @protocol/protocol-tools
tags: [core, meta, tools]
triggers: [using protocol-index, using protocol-fetch, validating protocol format]
trigger_prompt: When you need to discover available protocols, load specific protocol content, or ensure the correctness of protocol formats before use.
version: 7
updated_at: 2026-07-14T20:42:16.416Z
-->

Three local CLIs for working with protocol files — `protocol-index` to discover what exists, `protocol-fetch` to load content into context, `protocol-validate` to check format before committing.

### protocol-index
Reads and displays protocol metadata from all protocol files

**Usage:**
- `protocol-index --simple` - Name + description (recommended)
- `protocol-index --list` - Just protocol names
- `protocol-index --core` - Core protocols only
- `protocol-index --tag TAG` - Filter by specific tag

Loads protocol index to understand what protocols exist and how to use them. Run at session start.

### protocol-fetch
Loads protocol content into context

**Usage:**
- `protocol-fetch <names>` - Load specific protocols by name
- `protocol-fetch <file-slug>.<name>` - Load from specific file (disambiguate)
- `protocol-fetch --list` - Show all available protocols
- `protocol-fetch --file FILE` - Load entire protocol file

**Examples:**
- `protocol-fetch stepping plan develop` - Load multiple protocols
- `protocol-fetch protocol-core.stepping` - Load stepping from specific file

Retrieves protocol content for execution. Load core protocols at session start, load domain-specific protocols as needed.

### protocol-validate
Checks protocol format correctness

**Usage:**
- `protocol-validate <file>` - Validate protocol file format
- Checks H1 structure, description format, code line syntax, body completeness

Ensures protocols meet quality standards defined in the authoring format protocol.

### Integration Pattern
1. `protocol-index --simple` - Discover available protocols
2. `protocol-fetch <names>` - Load needed protocols
3. `protocol-validate <file>` - Verify custom protocols before committing

---

*Related: `@content/youtube/yifan-bth/we-are-missing-the-point-of-mcp-its-not-just-about-tools` · `@protocol/loop` · `@protocol/harvest-index` · `@protocol/ui-verification-protocol` · `@knowledge/sub-agent-patterns`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*