Repo Context

VerifiedSafe

Research the repository before coding: files, patterns, tests, constraints, unknowns to avoid invented architecture.

Sby Skills Guide Bot
DevelopmentBeginner
8/30/2026
Claude CodeCursorWindsurfCopilotCodex
#codebase-research#context-gathering#pre-implementation#repo-analysis#ripgrep

Recommended for

Automated summary

This skill has the agent research the repository—files, patterns, tests, constraints—before any architecture or implementation decision, then emit a structured context brief.

Strengths

  • Forces reading the real code before designing, which curbs invented architecture
  • Provides a precise output template: relevant files, patterns, validation surface, constraints, unknowns
  • Prefers rg-first searching and concrete file reads over assumptions
  • Explicitly surfaces blockers and existing validation commands before coding starts

Limitations

  • Purely procedural: no tooling or scripts, so quality depends on the agent's diligence
  • Assumes a dev-ready issue/spec exists and that a downstream $dev-architect skill is available
  • Does not run tests or builds; it only locates the validation surface
When to use it

Use it right after PM readiness and before technical design, when the work must be grounded in existing code.

When not to use it

Skip it for a quick single-file question or when no usable spec or issue exists yet.

Security analysis

Safe
Quality score90/100

The skill only instructs the agent to inspect repository files and use `rg` for searches, then summarize findings. It contains no destructive commands, credential access, network exfiltration, obfuscated payloads, or attempts to disable safety controls. The execution risk is minimal.

No concerns found

How this analysis is made

Examples

Context before auth refactor
Read the repo and produce a Codebase Context Brief for issue #412 (auth refactor): relevant files, existing patterns, test/validation commands, constraints, and open unknowns before we design anything.
Feature groundwork
Before designing anything, gather repo context for adding CSV export to the reports module — find existing export helpers, migrations, tests, and conventions, and list what's still unknown.
Constraint discovery
I have a dev-ready spec for rate limiting. Search the repo with rg for existing middleware and config, then give me the Codebase Context Brief including constraints and validation surface.

name: dev-repo-context description: >- Research the repository before coding. Use after PM readiness and before technical design to find relevant files, existing patterns, tests, APIs, migrations, constraints, prior implementations, and validation commands.

Dev: Repo Context

Read the codebase before any architecture or implementation decision. Prevent invented architecture by grounding the work in existing files and patterns.

Workflow

  1. Read the dev-ready issue/spec, acceptance criteria, constraints, and known validation expectations.
  2. Inspect repository structure, manifests, scripts, CI config, docs, tests, and likely modules.
  3. Search with rg first. Prefer concrete file reads over assumptions.
  4. Identify existing patterns, helpers, APIs, data models, feature flags, migrations, test surfaces, and project conventions.
  5. Identify risks and unknowns that must be resolved before architecture or coding.

Output

## Codebase Context Brief

### Relevant Files
- <path>: <why it matters>

### Existing Patterns
- <pattern/helper/API/convention and where it appears>

### Tests / Validation Surface
- <test file, command, build, lint, typecheck, smoke path, or missing surface>

### Constraints
- <API, migration, compatibility, performance, privacy, platform, or tooling constraint>

### Unknowns
- <question that must be resolved before architecture/coding, or "None.">

### Recommended Next Step
Usually `$dev-architect`; otherwise stop with the missing evidence.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/repo-context-mtfbwm92/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/repo-context-mtfbwm92' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/repo-context-mtfbwm92/download' --output '.skill-downloads/repo-context-mtfbwm92/SKILL.md.part' && mv '.skill-downloads/repo-context-mtfbwm92/SKILL.md.part' '.skill-downloads/repo-context-mtfbwm92/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && test -s '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/dev-repo-context' && cp -R '.skill-downloads/repo-context-mtfbwm92' '.claude/skills/dev-repo-context'

Cursor
test -f '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && test -s '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/dev-repo-context' && cp -R '.skill-downloads/repo-context-mtfbwm92' '.cursor/skills/dev-repo-context'

Codex
test -f '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && test -s '.skill-downloads/repo-context-mtfbwm92/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/dev-repo-context' && cp -R '.skill-downloads/repo-context-mtfbwm92' '.agents/skills/dev-repo-context'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/repo-context-mtfbwm92'

openskills read 'repo-context-mtfbwm92'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/repo-context-mtfbwm92/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills