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.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- forefy/.contexttheir own version, first seen Sep 29, 2026
- conjure-3301/skillstheir own version, first seen Aug 17, 2026
- brightdata/skillstheir own version, first seen Jun 25, 2026
- zinan92/skills-repotheir own version, first seen Mar 15, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- brightdata/skills★ 263same name
- forefy/.context★ 151same name
- zinan92/skills-repo★ 1same name
- 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 4 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
- Distinctive: line 26
Do NOT guess. If information is missing, explicitly mark TODOs.
- Distinctive: line 27
Prefer correctness and safety over completeness.
- Distinctive: line 30
If the given repository follows a monorepo pattern, create a subdirectory under docs/ for each project so the documentation doesn’t get …
- Distinctive: line 50
If detection is ambiguous:
- Distinctive: line 52
Do NOT assume defaults
- Distinctive: line 66
If the human does not answer:
- Distinctive: line 94
Keep AGENTS.md concise (target: 50–120 lines)
- Distinctive: line 103
Create the following files if applicable:
- Distinctive: line 118
Never fabricate cloud providers, CI tools, or databases
- Distinctive: line 119
Prefer explicit “Unknown / TODO” over assumptions
- Distinctive: line 124
If architectural decisions are inferred:
- Distinctive: line 133
All commands copy-paste runnable OR marked TODO
- Distinctive: line 135
No speculative tech choices
- Distinctive: line 141
If the repository is:
- Distinctive: line 150
If, at any point, you encounter ambiguities or actions that appear potentially risky:
- Distinctive: line 153
always pause and request clarification from the user before proceeding.
- Distinctive: line 158
Do not optimize for marketing or onboarding humans
- Distinctive: line 159
Do not refactor code
- Distinctive: line 160
Do not introduce new dependencies
- Distinctive: line 161
Do not modify runtime behavior
- Distinctive: line 169
Avoid destructive or unsafe operations
“Common” is measured: kept by at least 6 in 10 of the 4 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.
Files
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.mddocs/frontend/adrdocs/frontend/plan
- Example)
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
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
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.

