terrain-knowledge-skill
БесплатноБез исполняемых скриптовНе проверенUse when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.
от sopaco★ 3 179 звёзд на 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)
Architecture —
.terrain/agent/context.md- Module map, core flows, system boundaries, tech stack
- Check
.terrain/agent/context-meta.jsonormeta.jsonfor asset timestamps - Read directly (short); no RTK needed
Private domain —
.terrain/knowledge/**/*.md- Business glossary, internal frameworks, APIs, scaffolding guides
- Team-maintained markdown; read in filename sort order when surveying
Structured meta —
.terrain/agent/meta-inputs.md- Compiled from
terrain-meta.jsonandknowledge/scans
- Compiled from
Source index — see
repomix-context-skill- Local
.terrain/agent/repomix.md(gitignored; regenerate via Terrain scan)
- Local
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).
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.mdormeta-inputs.md - Do not read the entire live repository tree when indexed assets exist
- Do not load full
repomix.mdinto context — grep slices only (rtk grepon 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 terms10-internal-framework.md— internal libs20-api-usage.md— internal APIs30-scaffolding.md— project generators
Human docs (optional)
.terrain/human/ — Litho-generated docs for humans; useful for onboarding context but denser than context.md.
Related skills
| Skill | When |
|---|---|
repomix-context-skill |
Source code from repomix index |
codegraph-skill |
Callers, callees, impact |
rtk-skill |
All verbose shell commands |
Установить terrain-knowledge-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл terrain-knowledge-skill?
Use when a coding agent needs project knowledge from Terrain .terrain/ assets. Guides layered reading of context, private knowledge, and repomix index.
Как установить скилл terrain-knowledge-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл terrain-knowledge-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic