cowork-forge: Skill for Claude Code

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

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

A guide for loading project knowledge from Terrain's `.terrain/` files, including architecture notes, private domain notes, metadata, and a searchable source index. Terrain is a tool that builds these project knowledge files.

In plain words
What is it for?
Use it when an agent needs to understand the system design, internal terms, technology stack, module boundaries, or indexed source code.
Why use it?
It gives an agent a structured way to understand the project before searching implementation details, reducing the chance of reading files in the wrong order or missing important context.

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/cowork-forge's own configuration. It tells Claude Code and Codex how to work on cowork-forge 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 cowork-forge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sopaco/cowork-forge. 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/cowork-forge/main/.agents/skills/terrain-knowledge-skill/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/sopaco/cowork-forge

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/cowork-forge/terrain-knowledge-skill.svg)](https://agentmods.dev/skills/sopaco/cowork-forge/terrain-knowledge-skill)
Your own site
<a href="https://agentmods.dev/skills/sopaco/cowork-forge/terrain-knowledge-skill"><img src="https://agentmods.dev/badge/skills/sopaco/cowork-forge/terrain-knowledge-skill.svg" alt="Measured on agentmods" 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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 $0.00018 $0.00452
Sonnet 5 $0.00007 $0.00181
Haiku 4.5 $0.00004 $0.00090

Measured 8d ago against content hash 7f90bb535b36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 8d 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.

.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. 8d 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/cowork-forge (92 stars, last pushed 13d ago), licensed MIT. It adds 36 tokens to every session and 905 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

wiki

LLM Wiki — persistent markdown knowledge base that compounds across sessions (Karpathy model).

Yeachan-Heo/oh-my-claudecode · 19 tokens

remember

Review reusable project knowledge and decide what belongs in project memory, notepad, or durable docs.

Yeachan-Heo/oh-my-claudecode · 20 tokens

memory

Persistent, token-efficient project memory. When ON, maintains a .shob/memory/ folder of structured .md files so the full context of the project is NEVER lost across responses, sessions, or context compaction. Uses progressive disclosure — routes through a lightweight INDEX and loads only the files a task needs…

shobcoder/shob · 146 tokens

deja-search

Search deja before re-deriving past work: when the user refers to earlier sessions or decisions, before debugging an error, and before implementing something that may already exist. It searches this machine's own history across every AI coding tool used on it, going back further than deja itself was installed.

vshulcz/deja-vu · 57 tokens

general

Handle everyday conversation, answer questions, manage files, take notes, run scripts, and maintain persistent memory across sessions. Use when the user asks a general question, requests file operations, wants to brainstorm ideas, needs to-do tracking, asks you to remember something, or requests skill search and…

0xranx/golembot · 61 tokens

deja-history

Search the user's past AI coding sessions. Use when they say things like 'didn't we fix this before', 'what did we decide about X', or before re-debugging an error that may already be solved.

vshulcz/deja-vu · 47 tokens