agents-md-init
Skill0 starsChanged 5 months agoMITView on GitHub
Bootstraps an AGENTS.md file for a project by detecting its stack, package manager, and build/test/lint commands. Use when a repo has no AGENTS.md (or CLAUDE.md) yet and the user wants to onboard AI tools, or asks to create/generate agent instructions for the project.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- devskale/skale-skillstheir own version, first seen Oct 2, 2026
- StoneLL1/agents-md-inittheir own version, first seen Sep 19, 2026
- phntm7/skillstheir own version, first seen May 13, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- devskale/skale-skills★ 3same name
- phntm7/skills★ 1same name
- StoneLL1/agents-md-init★ 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 repository72 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- analytical-frameworksSkill
- appkit-accessibility-auditorSkill
- assess-security-controlsSkill
- audit-accessibilitySkill
- automated-security-reviewSkill
- changelogSkill
- check-ai-onboard-updatesSkill
- agents-sdkSkill
- cloudflare-email-serviceSkill
- cloudflare-oneSkill
- durable-objectsSkill
- sandbox-sdkSkill
- turnstile-spinSkill
- workers-best-practicesSkill
- wranglerSkill
- cobra-commandSkill
- competitive-intelSkill
- component-scaffoldSkill
- conduct-open-source-investigationSkill
- conduct-user-researchSkill
- conventional-commitSkill
- coordinate-data-viewsSkill
- core-data-expertSkill
- data-storytellingSkill
- datavizSkill
- debug-systematicallySkill
- define-brand-foundationSkill
- dependency-vuln-scanSkill
- design-and-build-websiteSkill
- design-product-contentSkill
- design-product-interfaceSkill
- develop-apple-platform-appSkill
- develop-test-firstSkill
- evolve-design-systemSkill
- gh-issueSkill
- gh-prSkill
- gh-releaseSkill
- identity-managementSkill
- input-sanitizationSkill
- manage-vulnerability-riskSkill
- map-attack-surfaceSkill
- market-researchSkill
- measure-product-experimentsSkill
- obsidianSkill
- pr-descriptionSkill
- preserve-web-evidenceSkill
- prisma-migrateSkill
- retrieve-technical-docsSkill
- secret-managementSkill
- secret-scanSkill
- secure-codingSkill
- security-auditSkill
- shape-product-opportunitySkill
- simplify-code-safelySkill
- swift-api-design-guidelinesSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
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 8
Create a first-draft AGENTS.md grounded in what the repository actually contains, not in guesses.
- Distinctive: line 30
Read the existing README.md for setup steps and conventions already documented.
- Distinctive: line 41
Only claim what's true: If you can't confirm a convention from config or code, leave it out rather than inventing it.
- Distinctive: line 51
Prefer editing an existing AGENTS.md over clobbering it — merge, don't overwrite.
- Distinctive: line 52
Don't include secrets, tokens, or environment-specific paths.
“Common” is measured: kept by at least 6 in 10 of the 3 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
AGENTS.md init
Create a first-draft AGENTS.md grounded in what the repository actually contains,
not in guesses.
When to use
A project has no AGENTS.md yet and the user wants to set up AI-tool onboarding, or asks you to "generate
an AGENTS.md / agent instructions" for the repo.
Steps
Detect the stack and commands — run the detector instead of assuming:
bash scripts/detect-stack.shIt reports the language/ecosystem, package manager, and the real
build/test/lintscripts it finds in manifests (package.json,pyproject.toml,Makefile,go.mod,Cargo.toml, etc.). For Apple projects it also reports Xcode projects/workspaces, SwiftPM, Tuist, Swift version files, shared schemes, and formatter/linter configuration.- Skim the structure — list top-level dirs and note what each holds (
src/,tests/,packages/…). Read the existingREADME.mdfor setup steps and conventions already documented. - Draft the project-root
AGENTS.mdwith these sections:- Overview (stack, what it is) — 1–2 sentences.
- Setup, build, test, lint — use the exact commands the detector found.
- Structure — the real directories.
- Conventions — only ones you can verify (formatter config present, lint rules, naming actually used).
- For Swift/Apple projects — the project system, shared schemes, supported platforms and deployment targets, Swift language/concurrency settings, exact destinations used by CI, generated-project ownership, and distribution/signing references. Never copy signing identities or credential values.
- Only claim what's true. If you can't confirm a convention from config or code, leave it out rather
than inventing it. A wrong
AGENTS.mdmisleads every agent that reads it. - Keep it short. It's loaded every session. Cut anything the code already makes obvious.
- Offer to wire up tools — mention that
CLAUDE.mdcan@AGENTS.md,GEMINI.mdcan symlink to it, and Codex/opencode/Cursor read it natively. (See the tool matrix /link.shin AI_ONBOARD.)
Rules
- Prefer editing an existing
AGENTS.mdover clobbering it — merge, don't overwrite. - Don't include secrets, tokens, or environment-specific paths.
- Commands must be copy-paste runnable; verify names against the manifest, don't paraphrase.
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.

