Update RepoPrompt tool guidance based on MCP/CLI changes across versions. Two-phase workflow - invoke BEFORE upgrading (--pre), then AFTER upgrading (--post)...
RepoPrompt CE (rpce-cli) is the maintained target and the default for this skill. RepoPrompt Classic (rp-cli) is frozen — it no longer changes, so you only touch it for a one-shot cross-app comparison.
Two comparison modes:
rpce-cli → newer rpce-cli, run as a pre/post pair around a CE upgrade.rp-cli vs CE rpce-cli, to understand where CE's tools/flags diverge from frozen Classic.Canonical locations (use these even if your working directory differs):
~/.pi/agent/skills/repoprompt-tool-guidance-refresh/ (may be a symlink target)~/.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh~/.pi/agent/skills/repoprompt-tool-guidance-refresh/rp-tool-defs/Snapshots are namespaced per CLI so Classic and CE never collide: CE writes rpcecli-help__{VERSION}.txt / rpcecli-l__{VERSION}.txt with baseline .baseline_version__rpcecli; Classic writes rpcli-* (frozen, last captured at v2.1.29).
Run the version tracking script:
~/.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh --pre
(Defaults to CE. Equivalent if you cd into the skill dir: ./scripts/track-rp-version.sh --pre.)
The script writes a baseline snapshot under rp-tool-defs/:
.baseline_version__rpcecli — the baseline rpce-cli versionrpcecli-help__{VERSION}.txt — output of rpce-cli --helprpcecli-l__{VERSION}.txt — output of rpce-cli -lStop here. Tell the user:
✓ Baseline captured at v{VERSION}. Go update RepoPrompt CE, then re-invoke this skill.
Run the version tracking script:
~/.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh --post
On version change, the script captures a new snapshot and generates diffs under rp-tool-defs/:
rpcecli-help__{NEW_VERSION}.txt / rpcecli-l__{NEW_VERSION}.txt — new snapshotsrpcecli-help__{NEW_VERSION}.diff — changes in rpce-cli --helprpcecli-l__{NEW_VERSION}.diff — changes in rpce-cli -l (MCP tool definitions)If no changes detected in the diffs, tell the user and stop:
✓ No MCP/CLI tool changes detected. Documentation is current.
(Optional) Changelog context: Ask the user:
Paste release notes for v{NEW_VERSION} (or press Enter to skip):
If provided, write to ~/.pi/agent/skills/repoprompt-tool-guidance-refresh/references/changelog-latest.md. If skipped, proceed using diffs as ground truth.
Review diffs and identify what changed:
The rp MCP tool surface is what Pi agents actually use, and it is app-neutral, so CE tool/help changes flow here.
The MCP files live outside this skill folder:
agent/AGENTS-prefaces/rp-mcp-*.mdagent/prompts/rp-*.md (excluding *-cli.md)Using the diffs as reference, make surgical updates to bring these files into alignment with the new tool definitions.
Classic rp-cli is frozen, so its CLI docs do not need routine updates. The Classic-CLI artifacts are:
agent/AGENTS-prefaces/rp-cli-preface.md~/.pi/agent/skills/repoprompt-tool-guidance-refresh/rp-cli-prompts/rp-*-cli.mdagent/extensions/repoprompt-cli/ (deprecated)Only touch these if a cross-app comparison (Phase F) shows the guidance relies on a Classic-only behavior that CE has changed or dropped.
Stage the changed files (new snapshots/diffs under rp-tool-defs/, plus any updated docs).
Use this to understand how CE's CLI/tool surface diverges from frozen Classic — useful when migrating guidance or validating the repoprompt-mcp extension's compatibility assumptions.
Ensure a current CE snapshot exists (capture one if needed):
./scripts/track-rp-version.sh --ce --force
The frozen Classic baseline is already captured (rpcli-*, v2.1.29). To refresh it while Classic is still installed: ./scripts/track-rp-version.sh --classic --force.
Generate the cross-app diffs:
./scripts/track-rp-version.sh --compare-apps
This writes, under rp-tool-defs/:
xapp-help__rpcli-{CLASSIC}__rpcecli-{CE}.diff — --help differencesxapp-l__rpcli-{CLASSIC}__rpcecli-{CE}.diff — tool-definition differencesThese diffs are large by design (different apps). Read them to spot CE tools, flags, or parameters that differ from Classic, then update Phase C (and only if necessary, Phase D).
Only update documentation for changes that affect levers you directly use:
Ignore changes that only affect:
The diffs are the source of truth. If a changelog item has no corresponding signature in the diffs, it's not relevant to this refresh.
The preface files are included in every session's system prompt. Keep them tight:
extract_handoff and get_log both read session transcripts), pick one canonical op for the preface and omit the other. Skills and prompts can expand on the omitted op when a specific workflow needs itdesign produces) should be ≤10 tokens — just enough to route correctly