Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.72 KB

agent-integration.md

File metadata and controls

26 lines (16 loc) · 1.72 KB

Agent integration

xprobe exposes four CLI commands, versioned JSON/JSONL, JSON Schemas, and one official Agent Skill. It does not call model APIs or run a daemon.

The canonical Skill lives at skills/xprobe-perf-profiling/SKILL.md. AGENTS.md, CLAUDE.md, and .cursor/rules/xprobe.mdc point to it without duplicating command lists or schema rules.

Install the Skill

The Skill follows the open Agent Skills format and works with Codex, Claude Code, Cursor, and compatible clients:

npx skills add itdevwu/xprobe

To pin a release or install non-interactively, see Installation. Keep the full directory intact so references/, examples/, and scripts/analyze_trace.py remain available.

The Skill focuses on what agents need to get right on the first try: exact stdout and JSONL artifact shapes (references/data-format.md), selector/graph syntax (references/selectors.md), composable one-off Python scripting recipes (cross-source, cross-process CLOCK_MONOTONIC alignment, wall_clock log joining, and RSI before/after diffs), and hard runtime limits.

Automated checks

just test-agent-contract
just test-skill-install

test-agent-contract verifies that the public CLI is exactly doctor, discover, validate, and measure, invokes them in JSON mode, checks all JSON Schemas, runs the analyze_trace.py fixture suite, and validates the Skill (word budget, links, no orphaned references, documented xprobe flags against --help, cited artifact fields against schemas/, valid JSON blocks, and example specs). test-skill-install runs the third-party skills CLI in isolated home directories and checks byte-for-byte copies for Codex, Claude Code, and Cursor.