codebase-orientation

codebase-orientation is a skill for Claude Code, Codex from DeevsDeevs/agent-system. It costs 33 tokens per session (652 once invoked), scanned A, original, Apache-2.0.

A guide for building a small, accurate map of an unfamiliar code area before editing it. It traces the relevant entry points, modules, callers, tests, and project rules without attempting to document the whole repository.

In plain words
What is it for?
Use it to understand where a feature or error path fits, identify the code and tests involved, and find the narrow build or test command for that area.
Why use it?
It reduces the risk of changing the wrong files or missing important relationships. A bounded exploration ends when the next safe action is clear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to understand where a feature or error path fits, identify the code and tests involved, and find the narrow build or test command for that area.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deevsdeevs/agent-system/codebase-orientation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DeevsDeevs/agent-system --skill codebase-orientation
Clone the repo
git clone --depth 1 https://github.com/DeevsDeevs/agent-system

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 codebase-orientation

README.md
[![agentmods](https://agentmods.dev/badge/skills/deevsdeevs/agent-system/codebase-orientation/github.svg)](https://agentmods.dev/skills/deevsdeevs/agent-system/codebase-orientation)
Your own site
<a href="https://agentmods.dev/skills/deevsdeevs/agent-system/codebase-orientation"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/codebase-orientation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for codebase-orientation

Your own site · 80×15
<a href="https://agentmods.dev/skills/deevsdeevs/agent-system/codebase-orientation"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/codebase-orientation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 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.
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.00033 $0.00652
Opus 5.5 $0.00013 $0.00261
Sonnet 5.5 $0.00007 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 27d ago against content hash 6ee951e8806c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

codebase-orientation 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 27d 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.

skills/codebase-orientation/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codebase Orientation

Build the smallest accurate map that makes the next action safe. Orientation, not diagnosis or architecture critique — with a concrete failing symptom, orient only far enough to find the area, then switch to diagnose.

Contract

Bound the map before exploring; ask one scope question if scope is unclear. Never map the whole repo by default.

Target: [feature/module/crate/error path]
Scope: [repo root + allowed dirs]
Question: [what the map must answer]
Stop when: [next safe action is clear]

Operating loop

  1. Find repo shape and rules: project instructions, workspace layout, entrypoints, docs, tests, scripts.
  2. Trace the relevant path from user-visible trigger or public API to the code that matters.
  3. Name core concepts: types, traits, modules, services, state, invariants.
  4. Find callers/callees — enough to understand impact, not every reference.
  5. Find validation hooks: narrow build/test/check commands and fixtures.
  6. Stop and summarize: map plus recommended next step.

Bounded searches only: rg, find, package metadata, obvious entrypoints. Source-of-truth order: source/tests/config/CI beat project docs; project docs beat chains. Mark uncertainty instead of smoothing conflicts.

Tools: read files directly, shell for bounded searches, an explore subagent only when the area spans enough files that a bounded read-only map helps (explicit cwd, paths, output shape; continue other mapping work while it runs), a small Mermaid diagram only when it beats prose, a chain save only when the map is useful future context.

Rust checklist (inspect only what is relevant)

Workspace/crate boundaries (Cargo.toml, cargo metadata --no-deps, features) · command conventions (README, AGENTS.md, Justfile, CI) · entrypoints (lib.rs, main.rs, mod.rs) · public API and module tree · key structs/enums/traits · state sharing (Arc, locks, caches, globals) · async boundaries, channels, retries, timeouts · error types and Result flow · feature flags and cfg gates · tests/fixtures and narrow commands (cargo check -p, cargo test -p <crate> <filter>). No full-workspace checks unless narrower ones are impossible.

Read the full file on GitHub · 57 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. 27d ago First seen · 57 lines · 33 tokens per session scan A 6ee951e8806c

Subscribe to this mod's changes

codebase-orientation is a skill published in the GitHub repository DeevsDeevs/agent-system (42 stars, last pushed 2d ago), licensed Apache-2.0. It adds 33 tokens to every session and 652 once invoked, about $0.0001 per session on Opus 5.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-11-05.

Related

codebase-orientation compared with skills from other repositories

codebase-orientation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebase-orientationDeevsDeevs/agent-systemSkill422d agoApache-2.0A33Claude Code, Codex
webgl-holographic-foilnexu-io/open-designSkill111ktodayApache-2.0A41Claude Code, Codex
cdf-anomalygenNVIDIA/skillsSkill4.3ktodayApache-2.0A54Claude Code, Codex
deepstream-sopNVIDIA/skillsSkill4.3ktodayApache-2.0A219Claude Code
tao-run-inference-serviceNVIDIA/skillsSkill4.3ktodayApache-2.0A92Claude Code
hsb-ip-packetizerNVIDIA/skillsSkill4.3ktodayApache-2.0A40Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code, Codex