agent-instructions
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when orienting in an unfamiliar codebase. Produces a map of the architecture, entry points, data flow, conventions, and the parts most likely to surprise you — before any code is changed. Trigger on "help me understand this codebase", "where do i start in this repo", "how is
Claude Code
$ npx -y skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration --agent claude-code
Codex
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a codex -y
Cursor
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a cursor -y
Gemini CLI
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a gemini-cli -y
GitHub Copilot
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a github-copilot -y
OpenCode
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a opencode -y
Windsurf
$ npx skills add nimadorostkar/Claude-Skills-collection --skill repository-exploration -a windsurf -y
name: repository-exploration description: Use when orienting in an unfamiliar codebase. Produces a map of the architecture, entry points, data flow, conventions, and the parts most likely to surprise you — before any code is changed. Trigger on "help me understand this codebase", "where do i start in this repo", "how is this project structured", "i just inherited this service". Do not use for writing the CLAUDE.md itself — see the agent-instructions skill. metadata: category: development version: 1.0.0 tags: [onboarding, codebase, exploration, architecture]
Build an accurate mental model of an unfamiliar codebase quickly, so the first change you make fits the system instead of fighting it.
1. **Read the boundaries first** — `README`, build files, CI config, `Dockerfile`, deployment manifests. These tell you what runs, how, and against what. 2. **Find the entry points** — HTTP routes, CLI commands, queue consumers, cron entries, `main` functions. Everything else is reachable from one of them. 3. **Trace one request end to end** — Pick the most representative operation and follow it from entry to data store and back. This single trace teaches you the layering, the error convention, and the persistence pattern at once. 4. **Detect the conventions** — Read three files from the same layer. What is common is the convention; what is unique is either newer, older, or a mistake. 5. **Find the churn** — `git log --format=%an --name-only` aggregated by file. High churn plus many authors marks the code that will be hardest and most important to understand. 6. **Run the tests** — What they cover tells you what the team is afraid of breaking. 7. **Write it down** — A map that lives in the repository, so nobody has to do this again.
**Churn analysis to find the load-bearing files:**
# Files changed most often in the last year, with author counts.
git log --since="1 year ago" --name-only --format="%an" \
| awk 'NF' \
| paste - - \
| sort -k2 \
| awk '{files[$2]++; authors[$2 " " $1]=1} END {for (f in files) print files[f], f}' \
| sort -rn | head -20**A useful output map:**
## Entry points
- `cmd/api/main.go` — HTTP API, 41 routes, chi router
- `cmd/worker/main.go` — consumes 4 SQS queues
- `cmd/migrate/main.go` — goose migrations
## Request path (POST /orders)
handler -> validation (go-playground/validator) -> service.OrderService
-> repo.OrderRepo (pgx) -> outbox table -> worker publishes to SQS
## Conventions
- Errors wrapped with fmt.Errorf("...: %w", err); sentinel errors in errs/
- Config via envconfig struct in internal/config; no config files
- Tests: table-driven, testcontainers for repo tests
## Risks
- internal/pricing: 3,100 lines, 9 authors, 140 commits this year, no tests
- No timeouts on the calls to the tax vendor in internal/tax/client.goA curated library of 137 production-grade skills for Claude and other AI coding agents. Every skill follows one structure, speaks with one voice, and earns its place by changing what the agent does.
Use when writing project instructions for a coding agent (CLAUDE.md, AGENTS.md, or equivalent). Covers what belongs in them, what…
Use when an agent needs state that survives a session or a context compaction. Covers what to persist, file-based memory,…
Use when automating agent behavior with lifecycle hooks. Covers hook events, deterministic enforcement of rules the model should…
Use when packaging skills, commands, hooks, and MCP servers into a distributable plugin. Covers manifest structure, bundling,…
Use when writing a new skill for an AI agent. Covers scoping, description writing for reliable triggering, progressive…
Use when reviewing or improving an existing agent skill. Covers triggering accuracy, content quality, redundancy with the base…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.