repomix-context-skill
БесплатноБез исполняемых скриптовНе проверенUse when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
от sopaco★ 3 179 звёзд на GitHubОб этом скилле
Repomix Context Skill
Terrain stores a local repomix index at .terrain/agent/repomix.md (gitignored, fast to regenerate).
Read architecture first via terrain-knowledge-skill → .terrain/agent/context.md.
When to use
- Implementation details after reading
context.md - Cross-file symbol search within the indexed snapshot
- Locating handlers, types, routes
Query strategy (mandatory)
- Read meta —
.terrain/agent/meta.json(total_tokens,synced_at,top_files_by_tokens) - Search the pack — never load the entire file:
Or agent Grep limited to that path with tight patterns.# <rtk> = ~/.terrain/bin/rtk or bunx @terrain-ai/rtk (see rtk-skill) <rtk> grep "struct ProjectOverview" .terrain/agent/repomix.md <rtk> grep "### src/lib/api.ts" .terrain/agent/repomix.md - Read slices — extract matching
### path/to/filesections only:
Then read the specific<rtk> read .terrain/agent/repomix.md -l aggressive### fileblock (line range), ≤150 lines per read. - Refresh — if
meta.json.synced_atis stale, ask user to run Terrain 重建源码索引 / scan
Repomix section format
Sections look like:
### src/lib/foo.ts
\`\`\`typescript
... file content ...
\`\`\`
Grep for ### relative/path to jump to a file.
Paths
| File | Purpose |
|---|---|
.terrain/agent/repomix.md |
Full indexed snapshot (local only) |
.terrain/agent/meta.json |
Pack metrics |
.terrain/agent/context.md |
Architecture (read first) |
Do not
- Commit or assume
repomix.mdexists in git cat/ Read the entirerepomix.md(can be 100k+ tokens)- Read the live repository tree when the pack covers the question
- Skip
context.mdand grep source for architecture questions
Regenerate index
If repomix.md is missing:
# bash / Git Bash — <terrain> = ~/.terrain/bin/terrain or bunx @terrain-ai/cli
if [ -x ~/.terrain/bin/terrain ] || [ -x ~/.terrain/bin/terrain.exe ]; then
~/.terrain/bin/terrain assets pack-agent .
else
bunx @terrain-ai/cli assets pack-agent .
fi
# or from repo root in Terrain UI: 重建源码索引
If neither ~/.terrain/bin/terrain nor bunx @terrain-ai/cli works, ask the user to install Terrain or run 重建源码索引 from the desktop app.
Related skills
- codegraph-skill — symbol relationships (prefer before wide repomix grep)
- rtk-skill — resolve
<rtk>prefix for grep/read on the pack file
Установить repomix-context-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл repomix-context-skill?
Use when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
Как установить скилл repomix-context-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл repomix-context-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic