agentleFS
skyil7skyil7/agent-onboarding/SKILL.md

agent-onboarding

Skill9 starsChanged 10 months agoApache-2.0View on GitHub

Initialize a repository by analyzing its structure and generating `AGENTS.md` and structured `docs/`, enabling AI coding agents (Claude Code, Codex, Cursor, etc.) to operate safely, deterministically, and with minimal human supervision.

8 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions8 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 8

    1. Nunchi-trade/agent-cli★ 521same name
    2. brightdata/skills★ 270same name
    3. forefy/.context★ 156same name
    4. PL-Coding-GmbH/Skills★ 26same name
    5. AndrewBrown-USDA/aigb-skills-usda★ 7same name
    6. zinan92/agent-core★ 1same name
    7. zinan92/skills-repo★ 1same name
    8. conjure-3301/skills★ 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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 21 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 21

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do NOT guess. If information is missing, explicitly mark TODOs.

    line 26
  2. Distinctive:

    Prefer correctness and safety over completeness.

    line 27
  3. Distinctive:

    If the given repository follows a monorepo pattern, create a subdirectory under docs/ for each project so the documentation doesn’t get …

    line 30
  4. Distinctive:

    If detection is ambiguous:

    line 50
  5. Distinctive:

    Do NOT assume defaults

    line 52
  6. Distinctive:

    If the human does not answer:

    line 66
  7. Distinctive:

    Keep AGENTS.md concise (target: 50–120 lines)

    line 94
  8. Distinctive:

    Create the following files if applicable:

    line 103
  9. Distinctive:

    Never fabricate cloud providers, CI tools, or databases

    line 118
  10. Distinctive:

    Prefer explicit “Unknown / TODO” over assumptions

    line 119
  11. Distinctive:

    If architectural decisions are inferred:

    line 124
  12. Distinctive:

    All commands copy-paste runnable OR marked TODO

    line 133
  13. Distinctive:

    No speculative tech choices

    line 135
  14. Distinctive:

    If the repository is:

    line 141
  15. Distinctive:

    If, at any point, you encounter ambiguities or actions that appear potentially risky:

    line 150
  16. Distinctive:

    always pause and request clarification from the user before proceeding.

    line 153
  17. Distinctive:

    Do not optimize for marketing or onboarding humans

    line 158
  18. Distinctive:

    Do not refactor code

    line 159
  19. Distinctive:

    Do not introduce new dependencies

    line 160
  20. Distinctive:

    Do not modify runtime behavior

    line 161
  21. Distinctive:

    Avoid destructive or unsafe operations

    line 169

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

Purpose

Initialize a repository so that AI coding agents (Claude Code, Codex, Cursor, etc.) can operate safely, deterministically, and with minimal human supervision.

This skill generates:

  • AGENTS.md (agent operational contract)
  • docs/ directory with structured technical documentation

Inputs

  • Repository to initialize.
  • Optional: short human note describing the project and instructions (1–3 sentences)

Outputs

  • AGENTS.md at repository root
  • docs/ directory with standardized markdown files

Core Principles

  • Do NOT guess. If information is missing, explicitly mark TODOs.
  • Prefer correctness and safety over completeness.
  • Optimize for agent execution, not human prose.
  • Minimize exploration cost and failure modes.
  • If the given repository follows a monorepo pattern, create a subdirectory under docs/ for each project so the documentation doesn’t get mixed together.
    • Example) docs/frontend/00_overview.md docs/frontend/adr docs/frontend/plan

Execution Steps

Step 1: Repository Inspection

  • Detect:
    • Primary language(s)
    • Framework(s)
    • Package manager
    • Test framework
    • Deployment indicators (Dockerfile, CI configs, Vercel, etc.)
  • Identify:
    • Entry points
    • Core business logic directories
    • Infrastructure-related files (DB, queues, storage)

If detection is ambiguous:

  • Record ambiguity explicitly in docs/00_overview.md
  • Do NOT assume defaults

Step 2: Confirm Ambiguities & Decisions With the Human

Request the user to provide the following information:

  • Whether Git-related commands are allowed: use freely vs use only with explicit approval
  • Language preferences:
    • Language for comments, documents and commit messages
    • Communication language: same as the user vs a specific language
  • Any other items discovered in Step 1 that are ambiguous or seem to require questions

If the human does not answer:

  • Do NOT guess.
  • Pause and ask again as needed; if you must proceed, mark missing items as “Unknown / TODO” in docs (without embedding the unanswered questions), and keep AGENTS.md conservative (minimal privileges, no destructive ops).

Step 3: Generate AGENTS.md

First, copy AGENTS.md.example, then edit it based on the information gathered so far to create AGENTS.md.

AGENTS.md MUST include:

Repository Guidelines

Project Structure & Module Organization

Documentation

Coding Style & Naming Conventions

Commit Message & PR Guidelines

Commit Message Format

Atomic Commits

Agent Operation & Safety Rules

Language Policy

User Interaction

Hard rules:

  • Keep AGENTS.md concise (target: 50–120 lines)
  • Link to docs/ instead of duplicating explanations

Step 4: Generate docs/ Structure

If the docs/ directory already exists, generate all new files inside docs/agents/ instead of docs/. Otherwise, use docs/ as the target directory.

Create the following files if applicable:

  • docs/00_overview.md
  • docs/10_architecture.md
  • docs/20_dev_env.md
  • docs/30_commands.md
  • docs/40_testing.md
  • docs/50_deploy.md
  • docs/60_observability.md
  • docs/70_security.md
  • docs/80_style_guide.md
  • docs/90_troubleshooting.md

Rules:

  • Omit files that are clearly irrelevant
  • Never fabricate cloud providers, CI tools, or databases
  • Prefer explicit “Unknown / TODO” over assumptions

Step 5: ADR Detection (Optional but Recommended)

If architectural decisions are inferred:

  • Create docs/adr/
  • Record assumptions as provisional ADRs
  • Mark them as “UNVERIFIED”

Step 6: Validation Checklist

Before finalizing:

  • All commands copy-paste runnable OR marked TODO
  • No secrets included
  • No speculative tech choices
  • AGENTS.md links resolve correctly

Failure Handling

If the repository is:

  • Empty
  • Too small to infer structure
  • Highly ambiguous

Then:

  • Generate minimal AGENTS.md
  • Generate docs/00_overview.md that clearly separates detected facts vs “Unknown / TODO” items (but do not include a question list; ask any needed questions during execution).

If, at any point, you encounter ambiguities or actions that appear potentially risky:

Then:

  • always pause and request clarification from the user before proceeding.

Non-Goals

  • Do not optimize for marketing or onboarding humans
  • Do not refactor code
  • Do not introduce new dependencies
  • Do not modify runtime behavior

Success Criteria

A coding agent can:

  • Identify where to make changes
  • Execute tests confidently
  • Avoid destructive or unsafe operations
  • Complete scoped tasks without human correction

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.