codegraph-skill
Use when a coding agent needs symbol relationships, callers, callees, or change impact. Guides CodeGraph CLI usage (not MCP).
Use when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.
$ npx -y skills add sopaco/deepwiki-rs --skill terrain-knowledge-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/terrain-knowledge-skillContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.
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 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`.
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`
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`).
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)
`.terrain/knowledge/` — developers add markdown here; Terrain scans on context generation.
Example files:
`.terrain/human/` — Litho-generated docs for humans; useful for onboarding context but denser than `context.md`.
| Skill | When | |-------|------| | `repomix-context-skill` | Source code from repomix index | | `codegraph-skill` | Callers, callees, impact | | `rtk-skill` | All verbose shell commands |
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.
Repo: sopaco/deepwiki-rs
Use when a coding agent needs symbol relationships, callers, callees, or change impact. Guides CodeGraph CLI usage (not MCP).
Use when an agent needs source code from the local repomix index under .terrain/agent/repomix.md (not committed; regenerate via Terrain scan).
Use when running shell commands that produce verbose output (git, test, build, lint, package managers, docker). Prefix with rtk to save 60-90% tokens. Terrain…
AI-powered comprehensive codebase documentation generator. Analyzes project structure, identifies architecture patterns, creates C4 model diagrams, and…