Skip to content
Documentation
Skill

/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).

From plugin
deepwiki-rs
3.2k5 skills

Claude Code

$ npx -y skills add sopaco/deepwiki-rs --skill repomix-context-skill --agent claude-code

SKILL.md

repomix-context-skill.SKILL.md
name: repomix-context-skill
description: Use when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
version: 1.3.0

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)

1. **Read meta** — `.terrain/agent/meta.json` (`total_tokens`, `synced_at`, `top_files_by_tokens`) 2. **Search the pack** — never load the entire file:

   # <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

Or agent Grep limited to that path with tight patterns. 3. **Read slices** — extract matching `### path/to/file` sections only:

   <rtk> read .terrain/agent/repomix.md -l aggressive

Then read the specific `### file` block (line range), ≤150 lines per read. 4. **Refresh** — if `meta.json.synced_at` is 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.md` exists in git
  • `cat` / Read the entire `repomix.md` (can be 100k+ tokens)
  • Read the live repository tree when the pack covers the question
  • Skip `context.md` and 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
Read more
@sopaco
Ships withdeepwiki-rs

Litho is an AI-powered documentation generation engine that automatically analyzes your source code and generates comprehensive, professional architecture documentation in the C4 model format.

Stars on GitHub

Momentum

stars in total
3.2k
Star history of sopaco/deepwiki-rs on GitHub, a chart by star-history.com

Other skills on deepwiki-rs.

codegraph-skill

codegraph-skill

Use when a coding agent needs symbol relationships, callers, callees, or change impact. Guides CodeGraph CLI usage (not MCP).

@sopaco@sopacoInstall Skill
rtk-skill

rtk-skill

Use when running shell commands that produce verbose output (git, test, build, lint, package managers, docker). Prefix with rtk…

@sopaco@sopacoInstall Skill
smart-docs

smart-docs

AI-powered comprehensive codebase documentation generator. Analyzes project structure, identifies architecture patterns, creates…

@sopaco@sopacoInstall Skill

More skills from other plugins.

context7-cli

context7-cli

Use the ctx7 CLI to fetch library documentation and configure Context7 MCP. Activate when the user mentions "ctx7" or "context7",…

context711d64k
@upstash@upstashInstall Skill
docs-components

docs-components

Comprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source…

@reactjs@reactjsInstall Skill
codebase-wiki

codebase-wiki

How to work in a Codebase Wiki project (the `codebase-wiki` starter pack): an agent-authored, source-grounded wiki of the…

@inkeep@inkeepInstall Skill

Questions about repomix-context-skill.

Which coding agents can use repomix-context-skill?
repomix-context-skill installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.