# pm-cli Documentation This directory is the public documentation home for `pm-cli`. It is organized for progressive disclosure: read the smallest page that answers the current question, then follow links only when more detail is needed. ## Optional CLI Guide Router `pm guide` is provided by the optional `guide-shell` package. Install it when local in-CLI documentation routing is useful: ```bash pm install guide-shell --project pm guide pm guide quickstart pm guide commands --depth standard pm guide sdk --depth deep --format markdown pm guide release --json ``` ## Read Path | Reader | First page | Then read | |--------|------------|-----------| | New user | [Quickstart](QUICKSTART.md) | [Command Reference](COMMANDS.md) | | New maintainer | [Onboarding](ONBOARDING.md) | [Agent Guide](AGENT_GUIDE.md), [Testing](TESTING.md), [Releasing](RELEASING.md) | | Coding agent | [Agent Guide](AGENT_GUIDE.md) | [Configuration](CONFIGURATION.md), then command help | | Maintainer | [Contributing](../CONTRIBUTING.md) | [Testing](TESTING.md), [Releasing](RELEASING.md), [Architecture](ARCHITECTURE.md) | | Package author | [Packages and Extensions](EXTENSIONS.md) | [SDK](SDK.md), [starter extension](examples/starter-extension/README.md) | | Codex user | [Codex Plugin](CODEX_PLUGIN.md) | [Agent Guide](AGENT_GUIDE.md), then [Command Reference](COMMANDS.md) | | Claude Code user | [Claude Code Plugin](CLAUDE_CODE_PLUGIN.md) | [Agent Guide](AGENT_GUIDE.md), then [Command Reference](COMMANDS.md) | | Machine client | `pm contracts --json` | [Command Reference](COMMANDS.md#machine-contracts), optionally `pm install guide-shell --project && pm guide commands` | ## Documentation Map - [Quickstart](QUICKSTART.md) - install, initialize, create, claim, link, test, close. - [Onboarding](ONBOARDING.md) - first-two-hours maintainer and contributor setup. - [Agent Guide](AGENT_GUIDE.md) - canonical agent loop, tracker linking, and token-minimal command choices. - [Command Reference](COMMANDS.md) - command families with examples and when to use each family. - [Configuration](CONFIGURATION.md) - settings, storage formats, output, search, validation, and environment variables. - [Testing](TESTING.md) - sandbox-safe local tests and linked-test orchestration. - [Architecture](ARCHITECTURE.md) - contributor internals: storage, mutation flow, search, extensions, and command contracts. - [Packages and Extensions](EXTENSIONS.md) - package install workflows, runtime extension lifecycle, and API reference. - [Extension Author Contracts](EXTENSION_AUTHOR_CONTRACTS.md) - the stability guarantees and contract surface package authors build against. - [SDK](SDK.md) - public import surfaces and typed authoring examples. - [Codex Plugin](CODEX_PLUGIN.md) - native MCP plugin install, tools, skills, and safety notes. - [Claude Code Plugin](CLAUDE_CODE_PLUGIN.md) - native Claude Code plugin architecture and install flow. - [CLI Simplification Migration](MIGRATION_CLI_SIMPLIFICATION.md) - root discovery (`--pm-path`), recovery bundles, and clear/unset semantics for automation maintainers. - [Releasing](RELEASING.md) - maintainer release checklist and failure handling. - [starter extension](examples/starter-extension/README.md) - compact extension scaffold reference. ## Guide Topic Map | Optional `pm guide` topic | Primary docs | |-----------------------------|--------------| | `quickstart` | [Quickstart](QUICKSTART.md), [Command Reference](COMMANDS.md) | | `commands` | [Command Reference](COMMANDS.md), [Configuration](CONFIGURATION.md) | | `workflows` | [Agent Guide](AGENT_GUIDE.md), [Testing](TESTING.md) | | `sdk` | [SDK](SDK.md), [Architecture](ARCHITECTURE.md) | | `extensions`, `packages` | [Packages and Extensions](EXTENSIONS.md), [starter extension](examples/starter-extension/README.md) | | `skills` | [Agent Guide](AGENT_GUIDE.md) plus `.agents/skills/*` | | `harnesses` | [Agent Guide](AGENT_GUIDE.md) plus `.agents/skills/HARNESS_COMPATIBILITY.md` | | `release` | [Releasing](RELEASING.md), [CHANGELOG](../CHANGELOG.md) | Community files: - [Contributing](../CONTRIBUTING.md) - [Security](../SECURITY.md) - [Code of Conduct](../CODE_OF_CONDUCT.md) - [Changelog](../CHANGELOG.md) - [License](../LICENSE) ## Agent Routing Rules 1. Start with [Agent Guide](AGENT_GUIDE.md) for workflow rules. 2. Use [Command Reference](COMMANDS.md) for command families, not exhaustive flag memory. 3. Use `pm --help --json` or `pm contracts --command --flags-only --json` for exact flags. 4. Use [Architecture](ARCHITECTURE.md) only when changing internals or debugging behavior. 5. Use [SDK](SDK.md) and [Packages and Extensions](EXTENSIONS.md) only when authoring or troubleshooting packages/extensions. ## Tracker References Current documentation structure work is tracked through: - [pm-u9d0](../.agents/pm/epics/pm-u9d0.toon) Legacy documentation baseline references (closed): - [pm-3042](../.agents/pm/epics/pm-3042.toon) (closed) - [pm-r9gu](../.agents/pm/features/pm-r9gu.toon) (closed) - [pm-1sb2](../.agents/pm/tasks/pm-1sb2.toon) (closed) When changing docs, link files back to the active item: ```bash pm docs --add path=docs/README.md,note="documentation index" pm comments "Docs updated; links and build verified." ``` ## Public Boundary Public docs must not link to ignored local operations artifacts, unpublished evidence logs, credentials, host-specific runbooks, or private service details. Keep those materials local and out of packaged releases. ## Maintenance Checklist - Keep links relative and GitHub-compatible. - Keep README short; move detail into focused pages. - Put a short "Agent Quick Context" near the top of deep docs. - Prefer commands that agents can copy exactly. - Use `pm` item IDs as durable references when docs explain tracked work. - Run link/search checks before closing documentation tasks.