website/src/content/docs/guides/claude-code.md
title: Claude Code and other agents description: Give a coding agent xpd's MCP tools and bundled skills in Claude Code, Codex, or any compatible client. sidebar: order: 1
Install the xpd plugin in Claude Code or Codex to expose xpd's 3-tool MCP server and all 4 bundled skills in one step. Agents run xpd check, xpd audit, xpd find, xpd api, and recorded ledgers directly in the shell, and use MCP for discovery gates and fix plans.
| Setup option | What the agent gets | Requires |
|---|---|---|
| Agent plugin | After-edit warnings, 3-tool MCP server and all 4 bundled skills | Claude Code or Codex, xpd on PATH, and uv |
| MCP server | Discovery gate, fix plan tools, workflow prompts, and rule/skill resources | uv |
| Agent skill | Lean instructions for xpd audit, all 10 ledgers, and Python style | Nothing |
Agent plugin
Install xpd on PATH as Get started shows, then install the plugin in your client.
| 1 | # Claude Code |
| 2 | claude plugin marketplace add https://git.cafe/dynd/xpd.git |
| 3 | claude plugin install xpd@xpd |
| 4 | |
| 5 | # Codex |
| 6 | codex plugin marketplace add https://git.cafe/dynd/xpd.git |
| 7 | codex plugin add xpd@xpd |
| 1 | xpd repository (loaded as a plugin) |
| 2 | ├── .claude-plugin/ |
| 3 | │ ├── plugin.json plugin name and version |
| 4 | │ └── marketplace.json Claude Code marketplace listing |
| 5 | ├── .agents/plugins/marketplace.json Codex marketplace listing |
| 6 | ├── hooks/hooks.json runs xpd hook after edits |
| 7 | ├── mcp.json starts uvx xpd@<version> mcp |
| 8 | └── skills/ xpd, xpd-enhance, xpd-look, xpd-quest |
After an edit, xpd hook sends warnings and errors from the edited Python files to the agent. Clean edits produce no message. The hook requires an xpd binary with the hook command on PATH.
See xpd find for the bundled playbooks.
House style
By default, house style rules report as info. Set style = "strict" in pyproject.toml ([tool.xpd]) or ~/.config/xpd/config.toml to promote house style rules to warnings across xpd check and xpd lsp. See xpd check for settings precedence.
| 1 | [tool.xpd] |
| 2 | style = "strict" |
Agent skill
Install all bundled skills with npx skills add https://git.cafe/dynd/xpd.git, or export the version-matched core skill into a single project with xpd skill.
| 1 | npx skills add https://git.cafe/dynd/xpd.git |
| 2 | mkdir -p .claude/skills/xpd && xpd skill > .claude/skills/xpd/SKILL.md |
| Skill | Purpose |
|---|---|
xpd | Everyday xpd CLI commands plus the shared 7-step recorded ledger router for all 10 review workflows (charts, data-prep, time-series, feature-engineering, modeling, math-opt, untangle, optimize, harden, and discover) |
xpd-enhance | Running a full xpd enhance on a codebase to the finish: dead, copied and look-alike code first, then harden, discover and optimize |
xpd-look | Improving a dashboard, chart, table, or report by rendering it and fixing what the picture shows, with no rule ledger |
xpd-quest | Clarifying open-ended goals and guiding multi-workflow quests with xpd quest |
Every skill is also served as an MCP resource under skill://. See MCP resources.