Agent skill

Terrain Knowledge Skill

by sopaco in sopaco/deepwiki-rs

A skill your agent uses when a coding agent needs project knowledge from Terrain .terrain/ assets.

MITAuto-check passedAgent Workflows

Install Terrain Knowledge Skill

skills CLI
$ npx skills add sopaco/deepwiki-rs --skill terrain-knowledge-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sopaco/deepwiki-rs terrain-knowledge-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sopaco/deepwiki-rs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/terrain-knowledge-skill .claude/skills/terrain-knowledge-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
terrain-knowledge-skill
GitHub stars
3.1k
Token cost
~891 tokens
SKILL.md length
315 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when a coding agent needs project knowledge from Terrain .terrain/ assets.

  • Works in 4 steps: Architecture — .terrain/agent/context.md → Private domain —… → Structured meta —… → …
  • A coding agent needs project knowledge from Terrain .terrain/ assets
  • SKILL.md covers Knowledge layers (mandatory…, Knowledge freshness (mandatory…, Query workflow and Rules, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Terrain Knowledge Skill is an agent skill from sopaco/deepwiki-rs. Use when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.

Its SKILL.md is about 890 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Codebase knowledge for agents. The repository describes itself as: Turn code into clarity. Generate accurate technical docs and AI-ready context in minutes—perfectly structured for human teams and intelligent agents. The licence is MIT.

When your agent uses it

  • A coding agent needs project knowledge from Terrain .terrain/ assets
  • Tasks that involve Codebase knowledge for agents

Example prompts

  • “/terrain-knowledge-skill”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Architecture — .terrain/agent/context.md
  2. Private domain — .terrain/knowledge/**/*.md
  3. Structured meta — .terrain/agent/meta-inputs.md
  4. Source index — see repomix-context-skill

What it can do on your machine

Read from SKILL.md and the folder at commit 27dbd3e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Terrain Knowledge Skill loads about 891 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 315 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~891

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sopaco/deepwiki-rs at commit 27dbd3e, republished under its MIT licence (© sopaco). 315 words, ~891 tokens.

Download SKILL.mdSave it as .claude/skills/terrain-knowledge-skill/SKILL.md (or your agent's skills folder).
name
terrain-knowledge-skill
description
Use when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.
version
1.2.0

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:

bash
~/.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.

ScoreRule
< 50Do not rely on macro context; use repomix-context-skill
50–69Cross-check with repomix grep or codegraph-skill
≥ 70Architecture 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).

Query workflow

Task received
  → freshness check (architecture tasks)
  → Read context.md (or relevant section)
  → If business/internal terms → read knowledge/*.md
  → If symbol / call graph → codegraph-skill
  → If implementation / source → repomix-context-skill
  → If shell/git/test needed → rtk-skill (prefix with rtk)

Rules

  • Do not invent module names that contradict context.md or meta-inputs.md
  • Do not read the entire live repository tree when indexed assets exist
  • Do not load full repomix.md into context — grep slices only (rtk grep on the file is OK)
  • Prefer .terrain/ over guessing project structure

Private knowledge directory

.terrain/knowledge/ — developers add markdown here; Terrain scans on context generation.

Example files:

  • 00-glossary.md — domain terms
  • 10-internal-framework.md — internal libs
  • 20-api-usage.md — internal APIs
  • 30-scaffolding.md — project generators

Human docs (optional)

.terrain/human/ — Litho-generated docs for humans; useful for onboarding context but denser than context.md.

SkillWhen
repomix-context-skillSource code from repomix index
codegraph-skillCallers, callees, impact
rtk-skillAll verbose shell commands

© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/terrain-knowledge-skill of sopaco/deepwiki-rs.

Open the folder on GitHubat commit 27dbd3e

Used in 1 other repository

We found 5 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in sopaco/deepwiki-rs, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Terrain Knowledge Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Terrain Knowledge Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Terrain Knowledge Skill this skillsopaco/deepwiki-rs3.1k—~891Automated safety check: PassMIT
ccc Semantic Code Searchcocoindex-io/cocoindex-code2.8k—~938Automated safety check: PassApache-2.0
Context Engineeringabashev/vfs-s31069 repos~2.6kAutomated safety check: NotesApache-2.0
Repomix Codebase Packeryamadashy/repomix29k—~1.3kAutomated safety check: NotesMIT
Codebase Handbook BuilderRuhan-Wang/Harness_Handbook333—~2.2kAutomated safety check: PassApache-2.0
CodemapJordanCoin/codemap704—~1.8kAutomated safety check: PassMIT

Similar skills

  • ccc Semantic Code Search

    cocoindex-io/cocoindex-code

    Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.

    2.8k GitHub stars~938 tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Context Engineering

    abashev/vfs-s3

    Optimizes agent context setup. An agent skill from abashev/vfs-s3.

    106 GitHub starsUsed in 9 repos~2.6k tokens
    Agent WorkflowsAuto-check: notes
  • Repomix Codebase Packer

    yamadashy/repomix

    Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.

    29k GitHub stars~1.3k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check: notes
  • Codebase Handbook Builder

    Ruhan-Wang/Harness_Handbook

    Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.

    333 GitHub stars~2.2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Codemap

    JordanCoin/codemap

    Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.

    704 GitHub stars~1.8k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Agent WorkflowsAuto-check passed

More from sopaco/deepwiki-rs

  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 25 days ago
    Auto-check passed
  • Codegraph Skill

    sopaco/deepwiki-rs

    A skill your agent uses when a coding agent needs symbol relationships, callers, callees, or change impact.

    3.1k GitHub stars~1.1k tokensUpdated 25 days ago
    Auto-check passed
  • Repomix Context Skill

    sopaco/deepwiki-rs

    A skill your agent uses when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).

    3.1k GitHub stars~671 tokensUpdated 25 days ago
    Auto-check passed
  • Rtk Skill

    sopaco/deepwiki-rs

    A skill your agent uses when running shell commands that produce verbose output (git, test, build, lint, package managers, docker).

    3.1k GitHub stars~1.4k tokensUpdated 25 days ago
    Auto-check passed

Categories

Questions about Terrain Knowledge Skill

What does Terrain Knowledge Skill do?

A skill your agent uses when a coding agent needs project knowledge from Terrain .terrain/ assets. Terrain Knowledge Skill is an agent skill from sopaco/deepwiki-rs.terrain/ assets.

When should I use Terrain Knowledge Skill?

Terrain Knowledge Skill fits situations like: A coding agent needs project knowledge from Terrain .terrain/ assets; tasks that involve Codebase knowledge for agents.

How do I install Terrain Knowledge Skill in Claude Code?

Run `npx skills add sopaco/deepwiki-rs --skill terrain-knowledge-skill -a claude-code`. Or copy the skill folder (.agents/skills/terrain-knowledge-skill in sopaco/deepwiki-rs) into .claude/skills/terrain-knowledge-skill in your project. Claude Code loads it when a task matches its description.

How do I install Terrain Knowledge Skill in Codex?

Run `npx skills add sopaco/deepwiki-rs --skill terrain-knowledge-skill -a codex`. Or copy the skill folder (.agents/skills/terrain-knowledge-skill in sopaco/deepwiki-rs) into .agents/skills/terrain-knowledge-skill in your project. Codex loads it when a task matches its description.

Can I use Terrain Knowledge Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sopaco/deepwiki-rs --skill terrain-knowledge-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/terrain-knowledge-skill, .gemini/skills/terrain-knowledge-skill, .github/skills/terrain-knowledge-skill and .opencode/skills/terrain-knowledge-skill in your project.

What does Terrain Knowledge Skill need to run?

SKILL.md names no scripts, command-line tools or credentials: Terrain Knowledge Skill is instructions for the agent only.

Does Terrain Knowledge Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Terrain Knowledge Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Terrain Knowledge Skill use?

Terrain Knowledge Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Terrain Knowledge Skill use?

About 891 tokens (SKILL.md is roughly 3.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Terrain Knowledge Skill?

Skills that share tags, products or a category with Terrain Knowledge Skill: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.8k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 333 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Terrain Knowledge Skill?

sopaco (a GitHub user) maintains it in sopaco/deepwiki-rs, which has 3,115 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 14, 2026.

Source: sopaco/deepwiki-rs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.