Skip to content

MCP prompts

The server lists 4 prompts.

Each prompt gives the agent the steps of one workflow of the xpd skill, with the commands to run, the tools to call and the result that ends it. The server completes the package and rule arguments as it does in resource templates.

Lint a path with xpd, fix what it reports, and lint again until it is clean.

Argument Required Description
path no A file or folder inside the project root.

The agent lints, fixes, and lints again until only explained warnings are left. With path set to samples/bad.py, the prompt starts like this.

Lint samples/bad.py with xpd and fix what it finds.
1. Run `xpd check samples/bad.py --format json`.
2. Run `xpd check samples/bad.py --fix` to write the safe fixes.

Review a file, a folder or a diff against xpd's rules and the Python review skill.

Argument Required Description
target yes A path inside the project root, or a git range such as main..HEAD.
package no Look closest at this pack's rules, such as pandas.
rule no Look closest at this rule, such as chained-assignment.

The agent reviews a path or a git range with the xpd skill and xpd check.

Refactor data logic and prove with xpd equiv that the result did not change.

Argument Required Description
path yes The script to refactor, inside the project root.
goal yes What the refactor should achieve, such as "replace the row loop".

The agent refactors a script and proves with xpd equiv --since HEAD that its result did not change.

Build a scikit-learn model from a data file, save it with its contract, and prove with xpd check, xpd modeling, and xpd equiv that a new Python process predicts from the saved file.

Argument Required Description
data yes The data file, inside the project root.
target yes The column the model predicts.
task no The task in plain words, before choosing a library.

The agent builds a scikit-learn model from a data file and saves it with its contract. It chooses a library with xpd find, xpd api and the discovery_gate tool, asks the user before it adds a dependency, and proves the pipeline with xpd check, xpd modeling, and xpd equiv.