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.
A skill your agent uses when a coding agent needs project source context from Terrain agent assets.
$ npx skills add sopaco/terrain --skill agent-context-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install sopaco/terrain agent-context-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-context-skill .claude/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .claude/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-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-context-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install sopaco/terrain agent-context-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-context-skill .agents/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .agents/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install sopaco/terrain agent-context-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-context-skill .cursor/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .cursor/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-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-context-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install sopaco/terrain agent-context-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-context-skill .gemini/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .gemini/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-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-context-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-context-skill .github/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .github/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-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-context-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-context-skill .opencode/skills/agent-context-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-context-skill" agent skill from https://github.com/sopaco/terrain/tree/main/preset_skills/agent-context-skill into .opencode/skills/agent-context-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "agent-context-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-context-skillA skill your agent uses when a coding agent needs project source context from Terrain agent assets.
Agent Context Skill is an agent skill from sopaco/terrain. Use when a coding agent needs project source context from Terrain agent assets. Guides Repomix pack retrieval on agent/repomix.md without loading the full pack.
Its SKILL.md is about 490 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: AI-native engineering environment management that makes your codebase agent-ready. The licence is MIT.
4 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.
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 Context Skill loads about 486 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 212 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). 212 words, ~486 tokens.
.claude/skills/agent-context-skill/SKILL.md (or your agent's skills folder).Terrain stores an indexed source snapshot at .terrain/agent/repomix.md in the repository, generated by repomix-core (pack_strategy: architecture-context).
read_agent_pack_meta: synced_at, total_tokens, top_files_by_tokens, directory_structure, repo_pathgrep_agent_pack: search for types, routes, module names, file pathsread_agent_pack_file: pull the matching ### path section (optional line range)repomix.md or read the live repo filesystem in Ask mode| Tool | Purpose |
|---|---|
read_agent_pack_meta | Pack metrics, repo path, sync time |
grep_agent_pack | Regex search with context lines in repomix.md |
read_agent_pack_file | Read one file (or line range) from the pack |
read_doc | Human Litho docs under human/ |
search_knowledge | Human + structured docs (not the agent pack) |
Repack when meta.synced_at is stale or after major refactors (UI: 重建源码索引, CLI: terrain assets pack-agent <repo>).
© sopaco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in preset_skills/agent-context-skill of sopaco/terrain.
Open the folder on GitHubat commit 0746b38
Agent Context 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 Context Skill this skillsopaco/terrain | 256 | — | ~486 | 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
Generate architecture-level agent context (no code细节) for Terrain projects.
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
A skill your agent uses when a coding agent needs project source context from Terrain agent assets. Agent Context Skill is an agent skill from sopaco/terrain. Use when a coding agent needs project source context from Terrain agent assets.
Agent Context Skill fits situations like: A coding agent needs project source context from Terrain agent assets; tasks that involve Codebase knowledge for agents.
Run `npx skills add sopaco/terrain --skill agent-context-skill -a claude-code`. Or copy the skill folder (preset_skills/agent-context-skill in sopaco/terrain) into .claude/skills/agent-context-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add sopaco/terrain --skill agent-context-skill -a codex`. Or copy the skill folder (preset_skills/agent-context-skill in sopaco/terrain) into .agents/skills/agent-context-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-context-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-context-skill, .gemini/skills/agent-context-skill, .github/skills/agent-context-skill and .opencode/skills/agent-context-skill in your project.
SKILL.md names no scripts, command-line tools or credentials: Agent Context 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 Context 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 486 tokens (SKILL.md is roughly 1.9k 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 Context 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.