Repo Prompt Integration
Compliance
- Check against current global instructions in
~/.codex/AGENTS.md and linked standards docs.
Table of Contents
Overview
Guide the user to the most effective Repo Prompt integration path for their workflow, with minimal setup friction and maximal context efficiency.
Standards snapshot (March 2026)
- Prefer MCP-backed editor integration when the user wants agent-assisted coding with deterministic workspace context.
- Keep Repo Prompt positioned as a context-routing layer, not as a replacement for editing, git, or repo-native validation.
- Validate install state, workspace binding, and one smoke-test prompt before claiming the setup works.
- Always include an apply path for edits when recommending external chat or Compose workflows.
When to use
- User asks how to integrate Repo Prompt with Claude Code, Cursor, Codex, or other editors/agents.
- User asks how to use Compose vs Chat vs Apply/Pro Edit workflows.
- User asks how to optimize context (codemaps, slices, multi-root workspaces).
- User asks for a comparison between Repo Prompt and AI editors.
- User asks about rp-cli usage or MCP server setup.
- User asks for MCP/CLI tool usage patterns (window/tab routing, review workflows).
Required inputs
- Current workflow (editor-first, chat-first, CLI automation).
- Target tools (Cursor, Claude Code, Codex, ChatGPT, etc.).
- Repo scale (single repo vs multi-repo/monorepo).
- Model access (API keys vs CLI providers).
- Constraints (token budget, latency, cost, security policies).
Deliverables
- Recommended integration path (MCP editor, Compose external chat, Chat mode, or rp-cli).
- Short, ordered setup checklist (3–7 steps).
- Context strategy (full vs slices vs codemaps).
- Quick validation/smoke test steps.
- 2–3 concrete next-step options and a clear recommendation.
- MCP/CLI tooling guidance when requested (routing, safe flows, review workflows).
- If proposing /interview-me, still provide a minimal recommendation + checklist first.
Response format (required)
Always start responses with these headings (no text before them):
## When to use
## Required inputs
## Deliverables
## Out-of-scope handling
If the user asks for MCP/CLI tooling guidance, include the phrase MCP/CLI in your response.
Failure mode
If Repo Prompt, MCP connectivity, or workspace binding cannot be verified, stop at that blocker, say what was checked, and recommend the lowest-risk next setup step instead of inventing an unsupported workflow.
Constraints
- Redact secrets/PII by default.
- Redact secrets/sensitive data by default.
- Avoid adding dependencies or requiring paid features without explicit user approval.
- Do not claim features beyond the provided source notes.
- Prefer short, actionable steps over long explanations.
- When multiple options fit, give one recommendation and explain why.
- Do not ask for permission to read skill references; assume they are available. If a reference is missing, proceed with SKILL.md only and note the limitation.
Philosophy
- Context efficiency beats brute-force context dumping.
- Optimize for lowest friction that still yields reliable results.
- Use the strongest model only where it adds value (planning/review).
Empowerment
- Provide a default recommendation and 2–3 alternatives; ask the user to choose.
- Offer a fast, low-risk next step before advanced optimization.
- State explicit tradeoffs so the user can decide confidently.
- Enable confident choices: unlock the safest path first, then empower exploration if needed.
Workflow Fit Assessment (ask briefly)
- Primary workflow: editor-first, chat-first, or automation?
- Scope: single repo vs multi-root?
- Model access: API keys vs CLI providers?
- Task type: quick fix vs multi-file refactor vs planning?
- Constraints: token budget, cost sensitivity, security?
Integration Paths (choose best match)
1) MCP-Backed Editor (Recommended for agent workflows)
- Connect Repo Prompt MCP server.
- Use Context Builder for discovery; codemaps/slices for efficiency.
- Keep edits in Cursor/Claude Code; Repo Prompt supplies context/tools.
2) Compose → External Chat (Best for reasoning models)
- Build context in Compose.
- Copy prompt to ChatGPT/Claude.
- If edits returned as XML, apply via Apply/Pro Edit.
3) Chat Mode in Repo Prompt (Integrated + Pro Edit)
- Use in-app chat with selected context and diffs.
- Pro Edit for multi-file changes and review.
4) rp-cli (Automation / non-MCP agents)
- Use rp-cli to build context and export prompts.
- Suitable for shell-based agents or scripts.
Tooling Guidance (MCP/CLI quick refs)
- MCP tool map, flows, and selection hygiene:
references/repoprompt_mcp_tooling.md.
- rp-cli exec usage + window/tab routing:
references/repoprompt_cli_tooling.md.
- Diff review + review follow-up workflows:
references/repoprompt_review_workflows.md.
Context Strategy (token-efficient defaults)
- Full: files you will edit.
- Slices: large files where only sections matter.
- Codemaps: reference files and dependencies.
- Tree mode: Selected/Auto; diffs only when debugging or reviewing.
Validation
- Fail fast: stop at the first failed gate, fix, then re-run.
- Confirm Repo Prompt can open the target workspace.
- Run a small test: select 2–3 files, build prompt, and get a response.
- If MCP: verify tools list and a simple file_search.
Response Anchors (for eval stability)
- Use the exact phrases when applicable:
- "MCP-backed editor path"
- "Context Builder"
- "codemaps/slices"
- "setup checklist and validation"
- "Compose for planning or Chat for implementation with Pro Edit"
- "rp-cli path"
- "basic setup and smoke test"
Anti-patterns
- Dumping full repo context when codemaps/slices suffice.
- Choosing external chat without a clear apply workflow for edits.
- Running MCP without tab/workspace binding in multi-window setups.
- Treating Repo Prompt as a replacement for the editor instead of a context backend.
- Recommending paid features without confirming budget or constraints.
- DO NOT skip smoke tests; missing validation is a common mistake.
- Avoid generic or incorrect “one-size-fits-all” workflows; prefer context-specific choices.
- WARNING: never assume tool availability (MCP, rp-cli) without confirming install/login.
Variation
- Vary the recommendation by workflow type (editor-first vs chat-first vs automation).
- Vary the setup checklist by target tool (Cursor, Claude Code, Codex, ChatGPT web).
- Vary the context strategy by repo size and token budget.
- Customize guidance based on constraints (cost, latency, security) and use different examples.
- Avoid repetition and cookie-cutter templates; prefer context-specific, unique setups.
Examples
- “Integrate Repo Prompt with Claude Code and optimize context for a monorepo.”
- “Should I use Compose or Chat mode for a large refactor?”
- “How do I use rp-cli in my automation pipeline?”
References
Read when needed:
- references/repoprompt_source.md
- references/repoprompt_mcp_tooling.md
- references/repoprompt_cli_tooling.md
- references/repoprompt_review_workflows.md
- references/legacy-prompts/ (legacy
rp-* prompt variants consolidated under this skill)
Decision feedback protocol
See Also
| Skill |
When to use together |
| [[context7]] |
Combine with Context7 for richer library context in prompts |
| [[agents-md]] |
Use Repo Prompt context packs alongside AGENTS.md |
| [[ce-plan]] |
Ground implementation plans with Repo Prompt context |
Topic map: [[agent-ops]]
Decision feedback protocol (required):
- If post-run feedback capture is enabled for this runtime, emit a non-blocking
post_run_feedback event via request_user_input after result delivery.
- Capture:
decision (accepted|partial|rejected|deferred), outcome (good|neutral|bad|unknown), and confidence (high|medium|low).
- Persist with:
python3 utilities/skill-builder/scripts/record_skill_feedback.py --skill-path <path/to/SKILL.md> --decision <...> --outcome <...> --confidence <...> --notes "...".
- The recorder tags
subject (for example ui, code_review, backend, security) for cross-domain quality analytics.
Remember
The agent is capable of extraordinary work in this domain. Use judgment, adapt to context, and push boundaries when appropriate.
Gotchas
- None yet. Capture recurring failures here as symptom -> cause -> do instead -> check.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: repoprompt3description: Plan and troubleshoot Repo Prompt integration across editors, agents, MCP, and CLI workflows. Use when the user wants Repo Prompt configured, adopted, or compared inside an AI coding setup. Use when this capability is needed.4---56# Repo Prompt Integration78## Compliance9- Check against current global instructions in `~/.codex/AGENTS.md` and linked standards docs.1011## Table of Contents12- [Overview](#overview)13- [Standards snapshot](#standards-snapshot-march-2026)14- [Scope and triggers](#scope-and-triggers)15- [Required inputs](#required-inputs)16- [Deliverables](#deliverables)17- [Response format](#response-format-required)18- [Failure mode](#failure-mode)19- [Constraints](#constraints)20- [Philosophy](#philosophy)21- [Workflow Fit Assessment](#workflow-fit-assessment-ask-briefly)22- [Integration Paths](#integration-paths-choose-best-match)23- [Tooling Guidance](#tooling-guidance-mcpcli-quick-refs)24- [Context Strategy](#context-strategy-token-efficient-defaults)25- [Validation](#validation)26- [Anti-patterns](#anti-patterns)27- [Variation](#variation)28- [Examples](#examples)29- [References](#references)30- [Decision feedback protocol](#decision-feedback-protocol)31- [Remember](#remember)3233## Overview34Guide the user to the most effective Repo Prompt integration path for their workflow, with minimal setup friction and maximal context efficiency.3536## Standards snapshot (March 2026)37- Prefer MCP-backed editor integration when the user wants agent-assisted coding with deterministic workspace context.38- Keep Repo Prompt positioned as a context-routing layer, not as a replacement for editing, git, or repo-native validation.39- Validate install state, workspace binding, and one smoke-test prompt before claiming the setup works.40- Always include an apply path for edits when recommending external chat or Compose workflows.4142## When to use43- User asks how to integrate Repo Prompt with Claude Code, Cursor, Codex, or other editors/agents.44- User asks how to use Compose vs Chat vs Apply/Pro Edit workflows.45- User asks how to optimize context (codemaps, slices, multi-root workspaces).46- User asks for a comparison between Repo Prompt and AI editors.47- User asks about rp-cli usage or MCP server setup.48- User asks for MCP/CLI tool usage patterns (window/tab routing, review workflows).4950## Required inputs51- Current workflow (editor-first, chat-first, CLI automation).52- Target tools (Cursor, Claude Code, Codex, ChatGPT, etc.).53- Repo scale (single repo vs multi-repo/monorepo).54- Model access (API keys vs CLI providers).55- Constraints (token budget, latency, cost, security policies).5657## Deliverables58- Recommended integration path (MCP editor, Compose external chat, Chat mode, or rp-cli).59- Short, ordered setup checklist (3–7 steps).60- Context strategy (full vs slices vs codemaps).61- Quick validation/smoke test steps.62- 2–3 concrete next-step options and a clear recommendation.63- MCP/CLI tooling guidance when requested (routing, safe flows, review workflows).64- If proposing /interview-me, still provide a minimal recommendation + checklist first.6566## Response format (required)67Always start responses with these headings (no text before them):6869```70## When to use71## Required inputs72## Deliverables73## Out-of-scope handling74```7576If the user asks for MCP/CLI tooling guidance, include the phrase **MCP/CLI** in your response.7778## Failure mode79If Repo Prompt, MCP connectivity, or workspace binding cannot be verified, stop at that blocker, say what was checked, and recommend the lowest-risk next setup step instead of inventing an unsupported workflow.8081## Constraints82- Redact secrets/PII by default.83- Redact secrets/sensitive data by default.84- Avoid adding dependencies or requiring paid features without explicit user approval.85- Do not claim features beyond the provided source notes.86- Prefer short, actionable steps over long explanations.87- When multiple options fit, give one recommendation and explain why.88- Do not ask for permission to read skill references; assume they are available. If a reference is missing, proceed with SKILL.md only and note the limitation.8990## Philosophy91- Context efficiency beats brute-force context dumping.92- Optimize for lowest friction that still yields reliable results.93- Use the strongest model only where it adds value (planning/review).9495## Empowerment96- Provide a default recommendation and 2–3 alternatives; ask the user to choose.97- Offer a fast, low-risk next step before advanced optimization.98- State explicit tradeoffs so the user can decide confidently.99- Enable confident choices: unlock the safest path first, then empower exploration if needed.100101## Workflow Fit Assessment (ask briefly)102- Primary workflow: editor-first, chat-first, or automation?103- Scope: single repo vs multi-root?104- Model access: API keys vs CLI providers?105- Task type: quick fix vs multi-file refactor vs planning?106- Constraints: token budget, cost sensitivity, security?107108## Integration Paths (choose best match)109110### 1) MCP-Backed Editor (Recommended for agent workflows)111- Connect Repo Prompt MCP server.112- Use Context Builder for discovery; codemaps/slices for efficiency.113- Keep edits in Cursor/Claude Code; Repo Prompt supplies context/tools.114115### 2) Compose → External Chat (Best for reasoning models)116- Build context in Compose.117- Copy prompt to ChatGPT/Claude.118- If edits returned as XML, apply via Apply/Pro Edit.119120### 3) Chat Mode in Repo Prompt (Integrated + Pro Edit)121- Use in-app chat with selected context and diffs.122- Pro Edit for multi-file changes and review.123124### 4) rp-cli (Automation / non-MCP agents)125- Use rp-cli to build context and export prompts.126- Suitable for shell-based agents or scripts.127128## Tooling Guidance (MCP/CLI quick refs)129- MCP tool map, flows, and selection hygiene: `references/repoprompt_mcp_tooling.md`.130- rp-cli exec usage + window/tab routing: `references/repoprompt_cli_tooling.md`.131- Diff review + review follow-up workflows: `references/repoprompt_review_workflows.md`.132133## Context Strategy (token-efficient defaults)134- Full: files you will edit.135- Slices: large files where only sections matter.136- Codemaps: reference files and dependencies.137- Tree mode: Selected/Auto; diffs only when debugging or reviewing.138139## Validation140- Fail fast: stop at the first failed gate, fix, then re-run.141- Confirm Repo Prompt can open the target workspace.142- Run a small test: select 2–3 files, build prompt, and get a response.143- If MCP: verify tools list and a simple file_search.144145## Response Anchors (for eval stability)146- Use the exact phrases when applicable:147 - "MCP-backed editor path"148 - "Context Builder"149 - "codemaps/slices"150 - "setup checklist and validation"151 - "Compose for planning or Chat for implementation with Pro Edit"152 - "rp-cli path"153 - "basic setup and smoke test"154155## Anti-patterns156- Dumping full repo context when codemaps/slices suffice.157- Choosing external chat without a clear apply workflow for edits.158- Running MCP without tab/workspace binding in multi-window setups.159- Treating Repo Prompt as a replacement for the editor instead of a context backend.160- Recommending paid features without confirming budget or constraints.161- DO NOT skip smoke tests; missing validation is a common mistake.162- Avoid generic or incorrect “one-size-fits-all” workflows; prefer context-specific choices.163- WARNING: never assume tool availability (MCP, rp-cli) without confirming install/login.164165## Variation166- Vary the recommendation by workflow type (editor-first vs chat-first vs automation).167- Vary the setup checklist by target tool (Cursor, Claude Code, Codex, ChatGPT web).168- Vary the context strategy by repo size and token budget.169- Customize guidance based on constraints (cost, latency, security) and use different examples.170- Avoid repetition and cookie-cutter templates; prefer context-specific, unique setups.171172## Examples173- “Integrate Repo Prompt with Claude Code and optimize context for a monorepo.”174- “Should I use Compose or Chat mode for a large refactor?”175- “How do I use rp-cli in my automation pipeline?”176177## References178Read when needed:179- references/repoprompt_source.md180- references/repoprompt_mcp_tooling.md181- references/repoprompt_cli_tooling.md182- references/repoprompt_review_workflows.md183- references/legacy-prompts/ (legacy `rp-*` prompt variants consolidated under this skill)184185## Decision feedback protocol186187## See Also188189| Skill | When to use together |190|---|---|191| [[context7]] | Combine with Context7 for richer library context in prompts |192| [[agents-md]] | Use Repo Prompt context packs alongside AGENTS.md |193| [[ce-plan]] | Ground implementation plans with Repo Prompt context |194195**Topic map:** [[agent-ops]]196197<!-- decision-feedback-protocol:v2 -->198**Decision feedback protocol (required):**199- If post-run feedback capture is enabled for this runtime, emit a non-blocking `post_run_feedback` event via `request_user_input` after result delivery.200- Capture: `decision` (`accepted|partial|rejected|deferred`), `outcome` (`good|neutral|bad|unknown`), and `confidence` (`high|medium|low`).201- Persist with: `python3 utilities/skill-builder/scripts/record_skill_feedback.py --skill-path <path/to/SKILL.md> --decision <...> --outcome <...> --confidence <...> --notes "..."`.202- The recorder tags `subject` (for example `ui`, `code_review`, `backend`, `security`) for cross-domain quality analytics.203<!-- /decision-feedback-protocol -->204205## Remember206The agent is capable of extraordinary work in this domain. Use judgment, adapt to context, and push boundaries when appropriate.207208## Gotchas209- None yet. Capture recurring failures here as symptom -> cause -> do instead -> check.210211---212> Converted and distributed by [TomeVault](https://tomevault.io/claim/jscraik) — claim your Tome and manage your conversions.213<!-- tomevault:4.0:skill_md:2026-04-13 -->