---
name: repo-context
description: Use repo-context-mcp tools to map, search, and pack repository context before large edits or PR review.
---

# repo-context skill

When exploring an unfamiliar codebase or preparing a change:

1. Call **`repo_map`** first to see structure and entrypoints.
2. Call **`search_code`** for symbols, error strings, or feature names.
3. Call **`pack_context`** with `focus` keywords before drafting a large patch or review.

## Rules

- Prefer `pack_context` over reading dozens of files one-by-one.
- Always set `root` if the workspace is a monorepo subdirectory.
- Keep `max_tokens` reasonable (8k–16k) for review; raise only when needed.
- Do not pack `node_modules`, secrets, or `.env` files (the server already skips common cases).

## CLI fallback (no MCP)

```bash
npx repo-context-mcp map .
npx repo-context-mcp search "TODO" .
npx repo-context-mcp pack . --focus auth --max-tokens 8000
```
