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 skills add latestaiagents/agent-skills --skill codebase-context-buildergit clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote 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.
[](https://agentmods.dev/skills/latestaiagents/agent-skills/codebase-context-builder)<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/codebase-context-builder"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/codebase-context-builder/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.
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/codebase-context-builder"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/codebase-context-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00063 | $0.01848 |
| Opus 5.5 | $0.00025 | $0.00739 |
| Sonnet 5.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 1mo 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.
- 1mo 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 6mo ago), licensed MIT. It adds 63 tokens to every session and 1,848 once invoked, about $0.0003 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-08-31.
Other skills, from other repositories
nexent-daily-test
A procedure for running Nexent daily, full-layer tests on a self-hosted Ubuntu machine. Nexent is tested across separate layers such as unit, service, AI runtime, and browser journeys, with results and evidence kept locally.
ai-email-sequence-builder
An email-sequence helper for assessing whether a series of emails is likely to prompt action. It creates a summary, findings, recommended actions, and reusable deliverables.
ai-gws-sheets
A business-diagnosis assistant for turning spreadsheet-related input into a summary, conclusions, recommended actions, and reusable deliverables.
ai-humanizer-zh
A Chinese writing editor that detects signs of AI-generated prose and rewrites the text to sound more natural.
ai-paywall-cro
A conversion-experiment review assistant for deciding whether a proposed product or marketing change is worth testing.
ai-pricing-strategy
A pricing-strategy diagnosis assistant that examines supplied material and produces a summary, findings, recommended actions, and reusable deliverables.