Litho is a Rust-based AI documentation generator that analyzes a codebase and produces architecture documentation in the C4 model format. Developers, architects, and technical leads use it to create and maintain diagrams and code-level documentation, while the catalogue provides skills for working with the project.
Borrowing it
Nothing to install: this file belongs to sopaco/deepwiki-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sopaco/deepwiki-rs/main/.agents/skills/repomix-context-skill/SKILL.mdgit clone --depth 1 https://github.com/sopaco/deepwiki-rsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sopaco/deepwiki-rs/repomix-context-skill)<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/repomix-context-skill"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/repomix-context-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/repomix-context-skill"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/repomix-context-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00753 |
| Opus 5.5 | $0.00016 | $0.00301 |
| Sonnet 5.5 | $0.00008 | $0.00151 |
| Haiku 4.5 | $0.00004 | $0.00075 |
Grade A, and why
repomix-context-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
1 near-identical copy found in the catalogue:
- repomix-context-skill — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on 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: 重建源码索引
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 85 lines · 40 tokens per session scan A 30a8386e6991
repomix-context-skill is a skill published in the GitHub repository sopaco/deepwiki-rs (3,143 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 753 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.
Other skills, from other repositories
ai4j-app-builder
Use this skill when helping users build applications with AI4J in their own Java or Spring Boot projects, including first chat, streaming, tool/function calls, MCP, RAG, memory, Agent runtime, Coding Agent CLI embedding, FlowGram integration, provider configuration, dependency selection, and troubleshooting. It guides…
krouter-obsidian
KRouter Obsidian — route knowledge-dependent tasks to the smallest current evidence set in an Obsidian vault using deterministic local search. Use when a request depends on durable user preferences, prior corrections or superseded claims, long-term project history or results, reusable methods or evidence, or the…
ov-memory-doctor
Diagnose and fix the OpenViking memory plugin on this machine: the plugin install (enablement, hooks, MCP server), the client configuration (ovcli.conf / ov.conf / OPENVIKING env) and the connection to the OpenViking server (reachability, 401/403, /mcp). Use whenever memory "isn't working": no block, empty recall…
knowz-amend
Apply a targeted server-side edit to an existing Knowz vault item without retyping the whole entry. Use when the user describes a delta — fix a typo, add a line, change a tag, append a caveat — to knowledge that already exists in a vault.
knowz-save
Capture decisions, patterns, conventions, workarounds, and durable learnings to Knowz vaults. Use when the user shares an insight worth keeping or explicitly asks to save knowledge.
knowz-flush
Flush idempotent queued knowledge operations (create, amend, update) from the project-root knowz-pending.md queue. Use when MCP is back after a failed save/amend, or when the user asks to replay pending captures.