repoprompt-subagent
Delegate codebase navigation, planning, or targeted edits to a RepoPrompt sub-agent via chat_send. Use when the user says things like "spawn a RepoPrompt sub-agent", "delegate this code search/plan/re
SKILL.mdskills/repoprompt-subagent/SKILL.md
GitHubRepoPrompt Subagent
Overview
Delegate tasks to a RepoPrompt chat session with curated file context. Use this skill to prepare context, send a clear task prompt, and iterate until the delegated task is complete.
Trigger examples
- "Spawn a RepoPrompt sub-agent to find where X is defined."
- "Delegate this code search/plan/review to a sub-agent."
- "Have RepoPrompt explore the repo and report back."
- "Ask a sub-agent to draft the changes."
Workflow
- Clarify the delegated task and expected output.
- Build context with RepoPrompt tools.
- Use
get_file_treeto orient yourself. - Use
file_searchto find entry points. - Use
manage_selectionwithmode="full"for key files andmode="codemap_only"for broad scans. - Use
read_filefor targeted sections.
- Use
- Start the sub-agent with
chat_send(sometimes referred to assend_chat).- Set
new_chat: true. - Set
chat_nameandmode(plan,chat,edit,review). - Provide
selected_pathswhen you want to override current selection.
- Set
- Iterate on the same sub-agent session.
- Capture
chat_idand reuse it withchat_sendfor follow-ups. - Use
reviewmode when you need diff-focused feedback.
- Capture
Sub-agent directives to include in the prompt
- Follow
AGENTS.mdand repo conventions as canonical. - Keep scope tight; avoid unrelated refactors.
- Use RepoPrompt tools for discovery; do not assume file contents.
- Favor correctness and recoverability over cleverness.
- Call out conflicting instructions explicitly.
- Prefer more context over too little; avoid huge files unless needed.
- Ask 1-3 clarifying questions if ambiguous.
- Start with the direct answer or plan.
- Provide file path references using inline code (e.g.,
lib/kimojo/foo.ex). - Call out risks, missing tests, or open questions.
- Remember limitations: no shell commands/tests; only selected files; git diffs only in
reviewmode.
Prompt template
<task>
Describe the delegated goal in 1-3 sentences.
</task>
<context>
List constraints, important files, and expected output format.
</context>
<constraints>
- Follow AGENTS.md and repo conventions.
- Keep scope tight; avoid unrelated refactors.
- Ask clarifying questions if needed.
</constraints>
Example
<task>
Find where supported agents are defined and how the UI should mirror them.
</task>
<context>
Use RepoPrompt tools to locate the backend source of truth and relevant UI files.
</context>