agentleFS
qiuskyeqiuskye/claude-skills/skills/repo-onboard/SKILL.md

repo-onboard

Skill1 starsChanged 6 months agoMITView on GitHub

Fast, token-cheap orientation report for an unfamiliar repository using a deterministic git-based pipeline (file map, hot files, entry points, activity) with strict read budgets. Use when the user says things like "explícame este repo", "onboarding", "qué hace este proyecto", "explain this repo", or "give me a tour of this codebase".

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. tsbhatia/coding-skills-for-agents★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT read whole files "to understand them".

    line 15
  2. Very specific:

    Do NOT recurse into node_modules, dist, build, vendor, .git, lockfiles.

    line 16
  3. Distinctive:

    Run the commands of Steps 1-4 before reading any file content.

    line 17
  4. Very specific:

    If the directory is not a git repo, fall back to find .

    line 19
  5. Distinctive:

    Prefer files that are both hot AND entry-point candidates.

    line 94
  6. Very specific:

    Anti-hallucination rule: every architectural claim must cite the file it comes from, e.g.

    line 112

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

repo-onboard

Produce an orientation report for the current repository in minutes, not hours. The pipeline below is deterministic and cheap: almost everything comes from git metadata and shell one-liners. You only read file contents in Step 5, and only within the stated line budgets.

Hard rules:

  • Do NOT read whole files "to understand them". Respect the budgets in Step 5.
  • Do NOT recurse into node_modules, dist, build, vendor, .git, lockfiles.
  • Run the commands of Steps 1-4 before reading any file content. Batch independent commands in parallel where possible.
  • If the directory is not a git repo, fall back to find . -type f | head -200 for Step 1, skip Steps 2 and 4, and say so in the report.

Step 1 — Map the terrain (no file reads)

git ls-files | head -200
git ls-files | sed -n -e 's#.*/##' -e 's/^[^.].*\.\([A-Za-z0-9][A-Za-z0-9]*\)$/\1/p' | sort | uniq -c | sort -rn | head -10

The sed works on the basename only (s#.*/##) and the ^[^.] guard skips dotfiles (.gitignore is no longer counted as a gitignore extension). Files with no extension (Makefile, Dockerfile, LICENSE) are intentionally omitted by this histogram — count those key files separately from the Step 1 listing when detecting the project type.

Detect the project type from key files in the listing — read only the manifests that exist, nothing else:

File presentProject typeManifest to read
package.jsonNode/JS/TSpackage.json
pyproject.tomlPythonpyproject.toml
requirements.txt onlyPython (legacy)requirements.txt
go.modGogo.mod
Cargo.tomlRustCargo.toml
pom.xml / build.gradleJava/JVMfirst 60 lines only
composer.jsonPHPcomposer.json
GemfileRubyGemfile
Dockerfile / compose*(deploy signal)first 30 lines only

Monorepos: if you see multiple manifests (e.g. packages/*/package.json), note the workspace layout but read only the root manifest.

Step 2 — Hot files (the heart of the repo)

git log --pretty=format: --name-only -200 | sort | uniq -c | sort -rn | head -15

The most-touched files are where the real work happens. Filter out noise (lockfiles, generated files, CHANGELOG) mentally. Keep the top 3 source files for Step 5.

Step 3 — Entry points (heuristics, no reads yet)

By project type, look for these in the Step 1 listing:

  • Node/TS: main/bin/exports and scripts in package.json (already read in Step 1); src/index.*, src/main.*, src/app.*, src/cli.*.
  • Python: [project.scripts] / [tool.poetry.scripts] in pyproject.toml; __main__.py, main.py, app.py, cli.py, manage.py, wsgi.py.
  • Go: main.go, cmd/*/main.go.
  • Rust: src/main.rs, src/bin/*, [[bin]] in Cargo.toml.
  • Generic: Makefile targets, docker-compose services, CI workflow names (.github/workflows/*.yml filenames only).

List candidates; do not open them unless they are also hot files.

Step 4 — Activity and people

git log --oneline -15
git shortlog -sn HEAD | head -5   # add HEAD: shortlog reads stdin without it (empty in non-interactive shells)
git log --reverse --format=%ad --date=short | head -1   # repo age (first commit)
git log -1 --format=%ad --date=short                     # last commit

This tells you: is the repo alive, who owns it, and what the team is working on right now.

Step 5 — Targeted reads (the ONLY content reads, strict budgets)

  1. README* — first 60 lines only.
  2. The 3 most relevant hot files from Step 2 — first 80 lines each. Prefer files that are both hot AND entry-point candidates.

Total budget: ~300 lines of file content for the whole pipeline. If a file is binary or generated, skip it and pick the next hot file.

Step 6 — Report (fixed sections, in the user's language)

Produce exactly these sections:

  1. Qué es — 2-3 sentences: purpose, project type, stack.
  2. Arquitectura en 5 líneas — max 5 lines describing how the pieces fit.
  3. Dónde está cada cosa — short table: concern → directory/file.
  4. Por dónde empezar a tocar — the 2-3 files a newcomer should open first (hot files + entry points), and the command to run/test the project if the manifest revealed one.
  5. Riesgos / deuda visible — only what the data shows: stale repo, single contributor (bus factor), huge hot file, no tests visible, no README, etc.

Anti-hallucination rule: every architectural claim must cite the file it comes from, e.g. "uses Express (package.json)", "auth lives in src/middleware/auth.ts (hot file, 14 commits)". If you did not see evidence for a claim in Steps 1-5, either omit it or mark it explicitly as a guess ("probablemente X — no verificado"). Never invent directories, frameworks, or behavior.

Example output

A finished Step 6 report for a small Node CLI (abridged, in the user's language):

Qué es — CLI de Node/TypeScript que convierte facturas PDF a CSV. Empaqueta con tsup y se publica como binario inv2csv (package.json).

Arquitectura en 5 líneas — src/cli.ts parsea argumentos y orquesta; src/parser/ extrae campos del PDF (hot file: parser/extract.ts, 22 commits); src/writer.ts serializa a CSV. Sin estado ni red. Tests en test/ con node:test.

Dónde está cada cosa

ConcernDónde
Entry pointsrc/cli.ts
Extracción PDFsrc/parser/
Salida CSVsrc/writer.ts

Por dónde empezar a tocar — src/cli.ts (entry point) y src/parser/extract.ts (hot file, 22 commits). Build/test: npm run build && npm test (scripts en package.json).

Riesgos / deuda visible — un solo contribuidor (bus factor 1, git shortlog); parser/extract.ts concentra casi toda la actividad y conviene vigilar su tamaño. Último commit hace 8 meses: repo poco activo.

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.