agentleFS
Tngc93Tngc93/repo-onboarding/skills/onboard/SKILL.md

onboard

Skill0 starsChanged 34 days agoMITView on GitHub

Onboard AI coding agents to a repository. Creates or improves AGENTS.md and CLAUDE.md from what the code actually contains (commands, layout, architecture, conventions, gotchas) and verifies every command and path. Use when the user asks to onboard a repo, write, generate or improve AGENTS.md or CLAUDE.md, set a repository up for Claude Code or Codex, or when a repository has no agent guidance yet.

  • Reads credentials

165 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use soak-test, team-live-ops 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.
  • lilangMaxSkill

    soak-test

    Generate a soak test protocol for extended play sessions. Defines what to observe, measure, and log during long play sessions to surface slow leaks, fatigue effects, and edge cases that only appear after sustained play. Primarily used in Polish and Release phases.

    Also in 9 projects that use this

  • lilangMaxSkill

    team-live-ops

    Orchestrate the live-ops team for post-launch content planning: coordinates live-ops-designer, economy-designer, analytics-engineer, community-manager, writer, and narrative-director to design and plan a season, event, or live content update.

    Also in 9 projects that use this

  • HK-hubSkill

    teach-impeccable

    One-time setup that gathers design context for your project and saves it to your AI config file. Run once to establish persistent design guidelines.

    Also in 19 projects that use this

  • CoralGameSkill

    project-stage-detect

    Automatically analyze project state, detect stage, identify gaps, and recommend next steps based on existing artifacts.

    Also in 15 projects that use this

  • CoralGameSkill

    team-level

    Orchestrate level design team: level-designer + narrative-director + world-builder + art-director + systems-designer + qa-tester for complete area/level creation.

    Also in 11 projects that use this

  • +5 more from lilangMax
  • +2 more from CoralGame

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 6 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 153 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    If ${CLAUDE_PLUGIN_ROOT} was not substituted (for example in Codex), the CLI is at ../../cli/repo-onboarding.mjs relative to this file.

    line 16
  2. Very specific:

    Never edit inside the generated block.

    line 22
  3. Distinctive:

    Read, in this order, and stop when you have enough:

    line 26
  4. Very specific:

    Prefer specific and checkable (API handlers live in src/app/api/<name>/route.ts) over general advice (write clean code).

    line 45
  5. Distinctive:

    Do not repeat the generated block, the README, or what the code makes obvious.

    line 46
  6. Very specific:

    No secrets, tokens, internal URLs with credentials, or values from .env files.

    line 47
  7. Distinctive:

    Keep AGENTS.md and CLAUDE.md together under about 200 lines.

    line 48
  8. Distinctive:

    Write in the language the repository's existing docs use.

    line 49
  9. Distinctive:

    If a fact needs knowledge the code does not contain (team process, deployment approvals, who owns what), ask the user instead of guessing.

    line 50
  10. Very specific:

    Run repo-onboarding check.

    line 58
  11. Distinctive:

    If the test or lint command is quick, run it once to confirm the documented command works.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 153 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

Onboard a repository

Goal: an AGENTS.md that lets a new agent work in this repository correctly on its first try, plus a CLAUDE.md that imports it so Claude Code reads the same guidance. Every line must be true today and must change what an agent does.

The bundled CLI does the mechanical part. Run it with Node 18.17+:

node "${CLAUDE_PLUGIN_ROOT}/cli/repo-onboarding.mjs" <command>

If ${CLAUDE_PLUGIN_ROOT} was not substituted (for example in Codex), the CLI is at ../../cli/repo-onboarding.mjs relative to this file. Below, repo-onboarding means that command.

1. Generate the facts

  1. repo-onboarding init --dry-run shows what will be written. Then run repo-onboarding init.
  2. This writes a generated block (stack, commands, layout, environment variables, CI) between repo-onboarding:begin and repo-onboarding:end markers, and TODO(onboarding) placeholders for what needs judgment. If CLAUDE.md already exists, it only adds an @AGENTS.md import line, because Claude Code reads CLAUDE.md instead of AGENTS.md when both exist.
  3. Never edit inside the generated block. repo-onboarding update rewrites it.

2. Read before you write

Read, in this order, and stop when you have enough:

  • README* and any existing agent guidance: CLAUDE.md, .cursorrules, .cursor/rules/, .github/copilot-instructions.md, GEMINI.md. Reuse what is still true.
  • The entry points listed in the generated block, then the 3 to 8 files that most of the code depends on.
  • The CI workflow, the test setup and one or two existing tests.
  • git log --oneline -30 for commit style and what changes often.

3. Fill the TODO(onboarding) sections

Replace each placeholder. If a section has nothing true and useful to say, delete it rather than padding it.

  • Project: one or two sentences. What it is, who uses it.
  • Architecture: how a request, job or command flows through the code, naming real files and folders. Point to the files an agent should read first. 4 to 10 bullets.
  • Conventions: rules a linter does not enforce and that you saw in the code, for example where new endpoints go, how errors are returned, naming, how tests are structured. Write them as instructions. Do not invent rules the code does not follow.
  • Before you finish: the exact commands a change must pass, and anything else a change must include (tests, migrations, changelog, docs).
  • Gotchas: generated files that must not be edited, slow or flaky tests, required services, ordering constraints, intentional oddities.

Rules for every line:

  • Prefer specific and checkable (API handlers live in src/app/api/<name>/route.ts) over general advice (write clean code).
  • Do not repeat the generated block, the README, or what the code makes obvious.
  • No secrets, tokens, internal URLs with credentials, or values from .env files. Variable names are fine.
  • Keep AGENTS.md and CLAUDE.md together under about 200 lines. Agents load them every session.
  • Write in the language the repository's existing docs use.
  • If a fact needs knowledge the code does not contain (team process, deployment approvals, who owns what), ask the user instead of guessing.

4. Existing CLAUDE.md

If CLAUDE.md already had content, propose moving the tool-agnostic parts (commands, architecture, conventions) into AGENTS.md and keeping only Claude Code specifics in CLAUDE.md. Show the user what you would move and get a yes before deleting their text from CLAUDE.md. Adding the @AGENTS.md import does not need approval.

5. Verify

  1. Run repo-onboarding check. Fix every error and every missing-path warning in the sections you wrote.
  2. If the test or lint command is quick, run it once to confirm the documented command works. Ask first if it is slow, needs services, or touches anything outside the repository.
  3. Re-read AGENTS.md top to bottom as a new agent would. Remove anything vague.

6. Report

Tell the user in a few lines what you added, what you could not determine, and the questions only they can answer. Offer to add the drift check to CI:

- uses: Tngc93/repo-onboarding@v0.1.0

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.