repoprompt
RepoPrompt provides a token-efficient way to explore, search, and read codebase files via CLI commands.
Install
mkdir -p .claude/skills/repoprompt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7078" && unzip -o skill.zip -d .claude/skills/repoprompt && rm skill.zipInstalls to .claude/skills/repoprompt
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use RepoPrompt CLI for token-efficient codebase explorationKey capabilities
- →Explore codebase structure using file trees and codemaps
- →Search code patterns with configurable context lines
- →Read specific line ranges or tail N lines from files
- →Manage file selections for focused analysis
- →Build AI-powered context for tasks by auto-selecting relevant files
- →Chain multiple commands for repeatable workflows
How it works
The skill uses the RepoPrompt CLI to execute commands that interact with a codebase, providing token-efficient ways to explore structure, search, and read files.
Inputs & outputs
When to use repoprompt
- →Explore codebase structure
- →Search code patterns
- →Read specific file segments
- →Get file signatures
About this skill
RepoPrompt Skill
When to Use
- Explore codebase structure (tree, codemaps)
- Search code with context lines
- Get code signatures without full file content (token-efficient)
- Read file slices (specific line ranges)
- Build context for tasks
Token Optimization
RepoPrompt is more token-efficient than raw file reads:
structure→ signatures only (not full content)read --start-line --limit→ slices instead of full filessearch --context-lines→ relevant matches with context
CLI Usage
# If installed to PATH (Settings → MCP Server → Install CLI to PATH)
rp-cli -e 'command'
# Or use the alias (configure in your shell)
repoprompt_cli -e 'command'
Commands Reference
File Tree
# Full tree
rp-cli -e 'tree'
# Folders only
rp-cli -e 'tree --mode folders'
# Selected files only
rp-cli -e 'tree --mode selected'
Code Structure (Codemaps) - TOKEN EFFICIENT
# Structure of specific paths
rp-cli -e 'structure src/auth/'
# Structure of selected files
rp-cli -e 'structure --scope selected'
# Limit results
rp-cli -e 'structure src/ --max-results 10'
Search
# Basic search
rp-cli -e 'search "pattern"'
# With context lines
rp-cli -e 'search "error" --context-lines 3'
# Filter by extension
rp-cli -e 'search "TODO" --extensions .ts,.tsx'
# Limit results
rp-cli -e 'search "function" --max-results 20'
Read Files - TOKEN EFFICIENT
# Full file
rp-cli -e 'read path/to/file.ts'
# Line range (slice)
rp-cli -e 'read path/to/file.ts --start-line 50 --limit 30'
# Last N lines (tail)
rp-cli -e 'read path/to/file.ts --start-line -20'
Selection Management
# Add files to selection
rp-cli -e 'select add src/auth/'
# Set selection (replace)
rp-cli -e 'select set src/api/ src/types/'
# Clear selection
rp-cli -e 'select clear'
# View current selection
rp-cli -e 'select get'
Workspace Context
# Get full context
rp-cli -e 'context'
# Specific includes
rp-cli -e 'context --include prompt,selection,tree'
Chain Commands
# Multiple operations
rp-cli -e 'select set src/auth/ && structure --scope selected && context'
Workspaces
# List workspaces
rp-cli -e 'workspace list'
# List tabs
rp-cli -e 'workspace tabs'
# Switch workspace
rp-cli -e 'workspace switch "ProjectName"'
AI Chat (uses RepoPrompt's models)
# Send to chat
rp-cli -e 'chat "How does the auth system work?"'
# Plan mode
rp-cli -e 'chat "Design a new feature" --mode plan'
Context Builder (AI-powered file selection)
# Auto-select relevant files for a task
rp-cli -e 'builder "implement user authentication"'
Workflow Shorthand Flags
# Quick operations without -e syntax
rp-cli --workspace MyProject --select-set src/ --export-context ~/out.md
rp-cli --chat "How does auth work?"
rp-cli --builder "implement user authentication"
Script Files (.rp)
For repeatable workflows, save commands to a script:
# daily-export.rp
workspace switch Frontend
select set src/components/
context --all > ~/exports/frontend.md
Run with:
rp-cli --exec-file ~/scripts/daily-export.rp
CLI Flags
| Flag | Purpose |
|---|---|
-e 'cmd' | Execute command(s) |
-w <id> | Target window ID |
-q | Quiet mode |
-d <cmd> | Detailed help for command |
--wait-for-server 5 | Wait for connection (scripts) |
Async Operations (tmux)
For long-running operations like builder, use the async script:
# Start context builder async
uv run python -m runtime.harness scripts/repoprompt_async.py \
--action start --task "understand the auth system"
# With workspace switch
uv run python -m runtime.harness scripts/repoprompt_async.py \
--action start --workspace "MyProject" --task "explore API patterns"
# Check status
uv run python -m runtime.harness scripts/repoprompt_async.py --action status
# Get result when done
uv run python -m runtime.harness scripts/repoprompt_async.py --action result
# Kill if needed
uv run python -m runtime.harness scripts/repoprompt_async.py --action kill
Note
Requires RepoPrompt app running with MCP Server enabled.
Prerequisites
Limitations
- →Requires the RepoPrompt app to be running
- →Requires MCP Server to be enabled
How it compares
This skill optimizes token usage by providing partial file content and structural summaries, unlike reading entire files which consumes more tokens.
Compared to similar skills
repoprompt side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| repoprompt (this skill) | 2 | 7mo | Review | Beginner |
| run-nx-generator | 5 | 3mo | Review | Intermediate |
| git-commit | 11 | 6mo | Review | Beginner |
| morph-search | 9 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by parcadei
View all by parcadei →You might also like
run-nx-generator
nrwl
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
git-commit
github
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
morph-search
parcadei
Fast codebase search via WarpGrep (20x faster than grep)
upgrading-expo
sickn33
Upgrade Expo SDK versions
continue-implementation
LibPDF-js
Continue implementing a spec from a previous session
fix-dependabot-prs
bannzai
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。