agentleFS
andreaswasitaandreaswasita/copilot-agents-dojo/skills/codebase-onboarding/SKILL.md

codebase-onboarding

Skill54 starsChanged 6 months agoMITView on GitHub

Maps an unfamiliar repo before touching its code.

38 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use pytorch-patterns, continuous-agent-loop and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • mryeastcodeSkill

    pytorch-patterns

    PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

    Also in 5 projects that use this

  • InfopibeSkill

    continuous-agent-loop

    Patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls.

    Also in 7 projects that use this

  • tpavanipradeepSkill

    ai-regression-testing

    Regression testing strategies for AI-assisted development. Sandbox-mode API testing without database dependencies, automated bug-check workflows, and patterns to catch AI blind spots where the same model writes and reviews code.

    Also in 5 projects that use this

  • tpavanipradeepSkill

    data-scraper-agent

    Build a fully automated AI-powered data collection agent for any public source — job boards, prices, news, GitHub, sports, anything. Scrapes on a schedule, enriches data with a free LLM (Gemini Flash), stores results in Notion/Sheets/Supabase, and learns from user feedback. Runs 100% free on GitHub Actions. Use when the user wants to monitor, collect, or track any public data automatically.

    Also in 5 projects that use this

  • InfopibeSkill

    agent-harness-construction

    Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates.

    Also in 5 projects that use this

  • xfstudioSkill

    architecture-decision-records

    Write and maintain Architecture Decision Records (ADRs) following best practices for technical decision documentation. Use when documenting significant technical decisions, reviewing past architectural choices, or establishing decision processes.

    Also in 14 projects that use this

  • +5 more from Infopibe

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 8 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 33 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before making changes to code you have not read.

    line 19
  2. Distinctive:

    When a project lacks documentation.

    line 20
  3. Distinctive:

    NOT when you already have a recent mental model of this repo — re-onboarding wastes turns.

    line 23
  4. Distinctive:

    Read access to the repository.

    line 27
  5. Very specific:

    Use glob on *, then on src/ (or the equivalent).

    line 69
  6. Very specific:

    Use glob to locate tests (/*.test.*, /test_*.py, /*_test.go).

    line 85
  7. Distinctive:

    Write a 5–10 line summary for your own use (and to brief sub-agents):

    line 89
  8. Distinctive:

    DO NOT: start editing before completing the survey.

    line 105
  9. Distinctive:

    DO NOT: ask the user what stack it is when the manifest answers the question.

    line 106
  10. Distinctive:

    DO NOT: read the repo linearly file by file.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 33 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codebase Onboarding Skill

Builds a working mental model of an unfamiliar repository before making changes: language, framework, structure, conventions, entry points, and test pattern. Does NOT exhaustively read every file — surveys strategically, then drills in where the work demands it.

When to Use

  • Working in a new or unfamiliar repository.
  • Before making changes to code you have not read.
  • When a project lacks documentation.
  • User asks you to "look at this repo" or "understand this project".
  • Briefing a sub-agent on context before delegating.
  • NOT when you already have a recent mental model of this repo — re-onboarding wastes turns.

Prerequisites

  • Read access to the repository.
  • The view, grep, and glob Copilot tools.
  • The powershell tool to inspect files outside the source tree (lockfiles, etc.).
  • Ability to run the project's test command (later, optional).

How to Run

1. Survey the top-level layout with `glob`.
2. Read manifest files (package.json, pyproject.toml, go.mod, *.csproj, pom.xml).
3. Read the README.
4. Identify the architecture pattern from directory names.
5. Open the entry point and one representative test.
6. Note conventions: naming, imports, error handling, test layout.
7. Write a short Quick Map (5–10 lines) for your future self.

Quick Reference

Survey targetToolWhy
Top-level layoutglob '*'Frames the project
Source layoutglob 'src/**' (or repo equivalent)Spots architecture pattern
Manifestsview package.json / view pyproject.tomlLanguage, framework, scripts
READMEview README.mdAuthor's intent
Entry pointview src/main.* / view cmd/main.goHow startup actually works
Testsview one representative testPattern + framework
Directory signalArchitecture clue
src/controllers/ or src/routes/MVC / route-based
src/features/ or src/modules/Feature / domain-driven
packages/ or apps/Monorepo
src/components/Component-based frontend
cmd/ and internal/Go standard layout
src/main/java/Java / Spring
Dockerfile + docker-compose.ymlContainerized service set

Procedure

Step 1: Survey the Landscape

Use glob on *, then on src/** (or the equivalent). Note top-level files. Use view on the manifest file for the stack — package.json, pyproject.toml, go.mod, *.csproj, pom.xml.

Step 2: Read the README

Open README.md with view. The author usually states the project's purpose, run instructions, and conventions in the first hundred lines.

Step 3: Identify Architecture

Match the directory layout to the table above. Note any divergence — those are the "interesting" parts.

Step 4: Read the Entry Point

Open the entry file with view: src/main.ts, src/app.py, cmd/main.go, Program.cs. Trace the startup path one level deep. You are mapping shape, not deeply auditing logic.

Step 5: Sample One Test

Use glob to locate tests (**/*.test.*, **/test_*.py, **/*_test.go). Open one with view. Note framework, fixture style, and where tests live relative to source.

Step 6: Capture the Quick Map

Write a 5–10 line summary for your own use (and to brief sub-agents):

## Quick Map: <repo-name>
- Language: TypeScript (strict mode)
- Framework: Next.js 14 (App Router)
- Tests: Vitest, co-located `*.test.ts`
- Patterns: Server Components default, Server Actions for mutations
- Entry: `src/app/layout.tsx`
- API: `src/app/api/`
- Models: `src/lib/models/`
- Build: `npm run build`. Deploy: Vercel.

Pitfalls

  • DO NOT start editing before completing the survey. You will pick the wrong directory.
  • DO NOT ask the user what stack it is when the manifest answers the question.
  • DO NOT read the repo linearly file by file. Survey strategically.
  • DO NOT impose your preferred conventions. Match the existing style even if you would do it differently.
  • DO NOT skip reading at least one existing test — tests are executable docs.

Verification

  • Quick Map written (language, framework, tests, entry, build).
  • At least one existing test file was opened with view.
  • Architecture pattern is named (MVC / monorepo / etc.).
  • Run command is identified and recorded.
  • Naming/convention rules are noted before any new file is created.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.