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.
Generate architecture-level agent context (no code细节) for Terrain projects.
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sopaco/terrain agent-architecture-skill --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/preset_skills/agent-architecture-skill .claude/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.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/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .claude/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sopaco/terrain agent-architecture-skill --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .agents/skills && cp -r skills-src/preset_skills/agent-architecture-skill .agents/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .agents/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sopaco/terrain agent-architecture-skill --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/preset_skills/agent-architecture-skill .cursor/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .cursor/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/sopaco/terrain.git --path preset_skills/agent-architecture-skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sopaco/terrain agent-architecture-skill --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/preset_skills/agent-architecture-skill .gemini/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .gemini/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install sopaco/terrain agent-architecture-skillInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .github/skills && cp -r skills-src/preset_skills/agent-architecture-skill .github/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .github/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add sopaco/terrain --skill agent-architecture-skill -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install sopaco/terrain agent-architecture-skill --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/sopaco/terrain.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/preset_skills/agent-architecture-skill .opencode/skills/agent-architecture-skill && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "agent-architecture-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-architecture-skill into .opencode/skills/agent-architecture-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-architecture-skill", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
agent-architecture-skillGenerate architecture-level agent context (no code细节) for Terrain projects.
Agent Architecture Skill is an agent skill from sopaco/terrain. Generate architecture-level agent context (no code细节) for Terrain projects.
Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `terrain-meta.example.json`).
It sits in Agent Workflows, covering Codebase knowledge for agents. The repository describes itself as: AI-native engineering environment management that makes your codebase agent-ready. The licence is MIT.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 0746b38. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json and bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Agent Architecture Skill loads about 1.1k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 464 words of instructions outside code blocks.
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.
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.
The full file from sopaco/terrain at commit 0746b38, republished under its MIT licence (© sopaco). 464 words, ~1,105 tokens.
.claude/skills/agent-architecture-skill/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Produce agent/context.md — a dense, architecture-oriented document for Coding Agents and Ask mode.
agent/repomix.md — Ask reads via grep/read_file)human/ Litho docs)When Terrain runs context generation, return the complete markdown document as your reply;
Terrain persists it as agent/context.md. Do not write the output file yourself in that
mode — a reply that is only a completion summary will overwrite a good on-disk document.
When a prompt explicitly delegates file writing to you (no “Terrain will persist your reply”
clause), write to TERRAIN_AGENT_CONTEXT_OUTPUT or the path given in the prompt.
Required sections (Markdown ## headings), in the language specified by the
prompt's LANGUAGE directive (Chinese names below; English equivalents in
parentheses — the prompt's explicit section list takes precedence):
terrain-meta.json)Repositories may ship one or more terrain-meta.json files (repo root, .terrain/, or nested). Before generating context, Terrain programmatically collects referenced files and injects them into the LLM prompt. The bundle is also written to agent/meta-inputs.md.
See terrain-meta.example.json in this skill directory.
{
"version": 1,
"hints": {
"module_roots": ["crates/", "src/"],
"notes": "Free-form team hints"
},
"inputs": [
{ "label": "Modules doc", "type": "file", "path": "docs/architecture.md" },
{ "label": "ADRs", "type": "glob", "pattern": "docs/adr/*.md", "optional": true },
{ "label": "Glossary", "type": "inline", "content": "..." }
]
}Input types: file (path relative to repo or meta file), glob, inline. Each input may set optional and max_chars (default 3500).
grep_agent_pack for path discovery onlymodules/ stubs are deprecated — synthesis is LLM-driven from meta + repomixagent/repomix.mdgrep_agent_pack only to discover paths, never paste grep outputWhen Terrain runs context generation in ACP mode, native function tools are unavailable. Use the terrain tools CLI instead:
terrain tools pack-meta --project {slug}
terrain tools grep-pack --project {slug} --pattern "module_name"
terrain tools read-pack-file --project {slug} --file src/foo.rs --start-line 1 --end-line 80See terrain-ask-skill for the full CLI reference. Do not read the live repository filesystem.
Environment variables set by Terrain:
| Variable | Purpose |
|---|---|
TERRAIN_AGENT_ARCH_SKILL | This skill directory |
TERRAIN_AGENT_CONTEXT_OUTPUT | Write target for agent/context.md |
TERRAIN_KNOWLEDGE_ROOT | Project .terrain/ directory |
TERRAIN_PROJECT_SLUG | Project slug |
TERRAIN_REPO_PATH | Repository root |
read_agent_context(section=…)grep_agent_pack → read_agent_pack_file© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in preset_skills/agent-architecture-skill of sopaco/terrain.
Open the folder on GitHubat commit 0746b38
Agent Architecture 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Agent Architecture Skill this skillsopaco/terrain | 256 | — | ~1.1k | Automated safety check: Pass | MIT | |
| ccc Semantic Code Searchcocoindex-io/cocoindex-code | 2.7k | — | ~938 | Automated safety check: Pass | Apache-2.0 | |
| Context Engineeringabashev/vfs-s3 | 106 | 9 repos | ~2.6k | Automated safety check: Notes | Apache-2.0 | |
| Repomix Codebase Packeryamadashy/repomix | 29k | — | ~1.3k | Automated safety check: Notes | MIT | |
| Codebase Handbook BuilderRuhan-Wang/Harness_Handbook | 332 | — | ~2.2k | Automated safety check: Pass | Apache-2.0 | |
| CodemapJordanCoin/codemap | 704 | — | ~1.8k | Automated safety check: Pass | MIT |
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.
abashev/vfs-s3
Optimizes agent context setup. An agent skill from abashev/vfs-s3.
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.
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.
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.
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).
sopaco/terrain
This skill should be used when the user asks to "generate project documentation", "analyze codebase architecture", "create C4 architecture diagrams", "document a repository", "generate technical…
sopaco/terrain
A skill your agent uses when a coding agent needs project source context from Terrain agent assets.
sopaco/terrain
Terrain Ask — query knowledge via terrain CLI when Agent execution mode is ACP.
sopaco/terrain
Terrain SDD standardized workflow — requirement clarification, technical design, code generation, and code review.
Categories
Generate architecture-level agent context (no code细节) for Terrain projects. Agent Architecture Skill is an agent skill from sopaco/terrain. Generate architecture-level agent context (no code细节) for Terrain projects.
Agent Architecture Skill fits situations like: tasks that involve Codebase knowledge for agents.
Run `npx skills add sopaco/terrain --skill agent-architecture-skill -a claude-code`. Or copy the skill folder (preset_skills/agent-architecture-skill in sopaco/terrain) into .claude/skills/agent-architecture-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sopaco/terrain --skill agent-architecture-skill -a codex`. Or copy the skill folder (preset_skills/agent-architecture-skill in sopaco/terrain) into .agents/skills/agent-architecture-skill in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sopaco/terrain --skill agent-architecture-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/agent-architecture-skill, .gemini/skills/agent-architecture-skill, .github/skills/agent-architecture-skill and .opencode/skills/agent-architecture-skill in your project.
SKILL.md names no scripts, command-line tools or credentials: Agent Architecture Skill is instructions for the agent only.
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.
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.
Agent Architecture Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Agent Architecture Skill: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars), Context Engineering (abashev/vfs-s3, 106 stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars) and Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 332 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
sopaco (a GitHub user) maintains it in sopaco/terrain, which has 256 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 29, 2026.
Source: sopaco/terrain on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.