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.
npx agentmods add skills/latestaiagents/agent-skills/codebase-context-buildernpx skills add latestaiagents/agent-skills --skill codebase-context-buildergit clone --depth 1 https://github.com/latestaiagents/agent-skillsWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00063 | $0.01848 |
| Opus 5 | $0.00032 | $0.00924 |
| Sonnet 5 | $0.00013 | $0.00370 |
| Haiku 4.5 | $0.00006 | $0.00185 |
Grade A, and why
codebase-context-builder 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 309 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codebase Context Builder
Prepare optimal context so AI assistants understand your codebase deeply.
When to Use
- Setting up a new project for AI-assisted development
- AI assistant generates code that doesn't fit your patterns
- Creating CLAUDE.md, AGENTS.md, or similar context files
- Preparing context for complex code generation tasks
- Improving AI understanding of your architecture
The Context Hierarchy
┌─────────────────────────────────────────┐
│ Level 1: Project Context (Always Load) │
│ - Tech stack, conventions, structure │
│ - CLAUDE.md / AGENTS.md files │
└─────────────────────────────────────────┘
↓
┌─────────────────────────────────────────┐
│ Level 2: Domain Context (Task-Specific) │
│ - Related files, types, interfaces │
│ - Existing patterns to follow │
└─────────────────────────────────────────┘
↓
┌─────────────────────────────────────────┐
│ Level 3: Task Context (Per-Request) │
│ - Specific requirements │
│ - Examples of expected output │
└─────────────────────────────────────────┘
Creating CLAUDE.md
Place in project root. AI assistants read this automatically.
# Project: [Name]
## Tech Stack
- **Frontend:** React 19, TypeScript 5.4, Tailwind CSS 4.0
- **Backend:** Node.js 22, Express 5, PostgreSQL 16
- **Testing:** Vitest, Playwright
- **Package Manager:** pnpm 9
## Project Structure
src/ ├── components/ # React components (PascalCase) ├── hooks/ # Custom hooks (use* prefix) ├── services/ # API clients and business logic ├── types/ # TypeScript interfaces ├── utils/ # Pure utility functions └── pages/ # Route components
## Code Conventions
### Naming
- Components: PascalCase (`UserProfile.tsx`)
- Hooks: camelCase with `use` prefix (`useAuth.ts`)
- Utils: camelCase (`formatDate.ts`)
- Types: PascalCase with `I` prefix for interfaces (`IUser`)
### Patterns
- Use functional components with hooks
- Prefer `const` arrow functions for components
- Use named exports, not default exports
- Error handling with custom `AppError` class
### Imports Order
1. External packages
2. Internal modules (absolute paths)
3. Relative imports
4. Styles
## API Conventions
- Base URL: `/api/v1`
- Auth: Bearer token in Authorization header
- Errors: `{ error: { code, message, details } }`
## Testing
- Unit tests: `*.test.ts` colocated with source
- E2E tests: `e2e/*.spec.ts`
- Run: `pnpm test` (unit), `pnpm test:e2e` (e2e)
## Common Commands
```bash
pnpm dev # Start development
pnpm build # Production build
pnpm test # Run tests
pnpm lint # Lint code
Important Files
src/services/api.ts- API client with interceptorssrc/hooks/useAuth.ts- Authentication hooksrc/types/index.ts- Shared type definitions
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.
- 2d ago First seen · 309 lines · 63 tokens per session scan A 51f11981fb04
codebase-context-builder is a skill published in the GitHub repository latestaiagents/agent-skills (5 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,848 once invoked, about $0.0003 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-31.
Other skills, from other repositories
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
agent-adaptive-coordinator
Agent skill for adaptive-coordinator - invoke with $agent-adaptive-coordinator.
agent-load-balancer
Agent skill for load-balancer - invoke with $agent-load-balancer.
agent-repo-architect
Agent skill for repo-architect - invoke with $agent-repo-architect.
agent-hierarchical-coordinator
Agent skill for hierarchical-coordinator - invoke with $agent-hierarchical-coordinator.
agent-performance-analyzer
Agent skill for performance-analyzer - invoke with $agent-performance-analyzer.