deepwiki-rs: Skill for Claude Code

.agents/skills/terrain-knowledge-skill/SKILL.md

terrain-knowledge-skill is a skill for Claude Code, Codex from sopaco/deepwiki-rs. It costs 36 tokens per session (905 once invoked), scanned A, original, MIT.

A guide for reading project knowledge stored in a repository's `.terrain` files. These files can describe the system structure, internal terminology, project rules, and a searchable index of source code.

In plain words
What is it for?
Use it to inspect architecture notes, private domain documentation, structured project metadata, and the source index. It is for gathering project context rather than implementing a feature by itself.
Why use it?
It helps an agent learn the project's local context before changing code or answering questions. The required reading order reduces the chance of relying on stale, incomplete, or incorrectly located information.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is sopaco/deepwiki-rs's own configuration. It tells Claude Code and Codex how to work on deepwiki-rs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything deepwiki-rs configures →

About the project

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.

sopaco/deepwiki-rs · 3,143 stars · on GitHub · deepwiki.netlify.app

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/sopaco/deepwiki-rs/main/.agents/skills/terrain-knowledge-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sopaco/deepwiki-rs

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for terrain-knowledge-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/terrain-knowledge-skill/github.svg)](https://agentmods.dev/skills/sopaco/deepwiki-rs/terrain-knowledge-skill)
Your own site
<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/terrain-knowledge-skill"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/terrain-knowledge-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.

agentmods 80×15 button for terrain-knowledge-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/sopaco/deepwiki-rs/terrain-knowledge-skill"><img src="https://agentmods.dev/badge/skills/sopaco/deepwiki-rs/terrain-knowledge-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00905
Opus 5.5 $0.00014 $0.00362
Sonnet 5.5 $0.00007 $0.00181
Haiku 4.5 $0.00004 $0.00090

Measured 1mo ago against content hash 7f90bb535b36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

terrain-knowledge-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/terrain-knowledge-skill/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terrain Knowledge Skill

Terrain stores AI knowledge assets under .terrain/ in this repository (not a global ~/.terrain/knowledge directory). The desktop app registry at ~/.terrain/registry.json only maps slugs → repo paths.

Load rtk-skill when you need to run shell commands during investigation (git, grep repomix file, tests). Resolve tools via conventional paths (~/.terrain/bin/…) with bunx/npx fallback — see rtk-skill / codegraph-skill.

Knowledge layers (mandatory order)

  1. Architecture — .terrain/agent/context.md

    • Module map, core flows, system boundaries, tech stack
    • Check .terrain/agent/context-meta.json or meta.json for asset timestamps
    • Read directly (short); no RTK needed
  2. Private domain — .terrain/knowledge/**/*.md

    • Business glossary, internal frameworks, APIs, scaffolding guides
    • Team-maintained markdown; read in filename sort order when surveying
  3. Structured meta — .terrain/agent/meta-inputs.md

    • Compiled from terrain-meta.json and knowledge/ scans
  4. Source index — see repomix-context-skill

    • Local .terrain/agent/repomix.md (gitignored; regenerate via Terrain scan)

Knowledge freshness (mandatory before architecture answers)

Before trusting context.md for module/architecture questions:

~/.terrain/bin/terrain tools freshness --project <slug>
# or: bunx @terrain-ai/cli tools freshness --project <slug>

This recomputes when stale and writes .terrain/.meta/freshness.json. Do not only read that JSON statically — it is a local cache snapshot.

Score Rule
< 50 Do not rely on macro context; use repomix-context-skill
50–69 Cross-check with repomix grep or codegraph-skill
≥ 70 Architecture context is generally reliable

On conflict: repomix source slices > codegraph > agent/context.md > human/

For symbol impact/callers, also see codegraph-skill (CodeGraph status can lie; use terrain tools codegraph-drift).

Read the full file on GitHub · 91 lines

Changes

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.

  1. 1mo ago First seen · 91 lines · 36 tokens per session scan A 7f90bb535b36

Subscribe to this mod's changes

terrain-knowledge-skill is a skill published in the GitHub repository sopaco/deepwiki-rs (3,143 stars, last pushed 1mo ago), licensed MIT. It adds 36 tokens to every session and 905 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

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…

398894496-arch/runtime36 · 85 tokens

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-io/deepseek-knowz-plugin · 59 tokens

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-io/deepseek-knowz-plugin · 41 tokens

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.

knowz-io/deepseek-knowz-plugin · 52 tokens

knowz-setup

Connect Knowz MCP and create vault routing files. Use after installing the Knowz plugin, for first-time vault mapping, or when tools are missing after setting KNOWZAPIKEY.

knowz-io/deepseek-knowz-plugin · 41 tokens

knowz-auto

Lightweight Knowz intent routing for Grok Bot and Cursor. Use when the user's message looks like a knowledge lookup, a save-worthy durable insight, or a targeted edit to an existing vault item.

knowz-io/deepseek-knowz-plugin · 44 tokens