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 optionWhat the agent getsRequires
Agent pluginAfter-edit warnings, 3-tool MCP server and all 4 bundled skillsClaude Code or Codex, xpd on PATH, and uv
MCP serverDiscovery gate, fix plan tools, workflow prompts, and rule/skill resourcesuv
Agent skillLean instructions for xpd audit, all 10 ledgers, and Python styleNothing

Agent plugin

Install xpd on PATH as Get started shows, then install the plugin in your client.

sh
1# Claude Code
2claude plugin marketplace add https://git.cafe/dynd/xpd.git
3claude plugin install xpd@xpd
4
5# Codex
6codex plugin marketplace add https://git.cafe/dynd/xpd.git
7codex plugin add xpd@xpd
text
1xpd 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.

toml
1[tool.xpd]
2style = "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.

sh
1npx skills add https://git.cafe/dynd/xpd.git
2mkdir -p .claude/skills/xpd && xpd skill > .claude/skills/xpd/SKILL.md
SkillPurpose
xpdEveryday 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-enhanceRunning a full xpd enhance on a codebase to the finish: dead, copied and look-alike code first, then harden, discover and optimize
xpd-lookImproving a dashboard, chart, table, or report by rendering it and fixing what the picture shows, with no rule ledger
xpd-questClarifying 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.