agents-md-generator
/agents-md-generator
Generate or update an AGENTS.md / CLAUDE.md / context file for a repo. Use when the user says "set up CLAUDE.md", "generate AGENTS.md", "write a context file for this repo", "document this codebase for AI agents", or when a fresh repo has none. Also use when an existing context file has gone stale and needs a rewrite from current source. Do NOT use for editing project-specific README or contributor docs.
- Author
- slogsdon ↗
- Repository
- skills-workflows ↗
- Licence
- MIT
- Last repository change
- 20.09.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 20.09.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Generate or update an AGENTS.md / CLAUDE.md / context file for a repo. Use when the user says "set up CLAUDE.md", "generate AGENTS.md", "write a context file for this repo", "document this codebase for AI agents", or when a fresh repo has none. Also use when an existing context file has gone stale and needs a rewrite from current source. Do NOT use for editing project-specific README or contributor docs.
Triggers from the description
Original author description
Generate or update an AGENTS.md / CLAUDE.md / context file for a repo. Use when the user says "set up CLAUDE.md", "generate AGENTS.md", "write a context file for this repo", "document this codebase for AI agents", or when a fresh repo has none. Also use when an existing context file has gone stale and needs a rewrite from current source. Do NOT use for editing project-specific README or contributor docs.
How it works
- Steps
- Critical Patterns
- Repository Structure
- API Surface
- Environment Variables
- [Test Cards / Sandbox Credentials] (if applicable)
- API Request Shape (if applicable — direct API calls only)
- Architecture Summary
- Security Notes
- SDK Versions
SKILL.md preview
--- name: agents-md-generator description: Generate or update an AGENTS.md / CLAUDE.md / context file for a repo. Use when the user says "set up CLAUDE.md", "generate AGENTS.md", "write a context file for this repo", "document this codebase for AI agents", or when a fresh repo has none. Also use when an existing context file has gone stale and needs a rewrite from current source. Do NOT use for editing project-specific README or contributor docs. --- # Skill: agents-md-generator Produces a concise, integrator-focused AGENTS.md for repos that demonstrate one concept across multiple language implementations. ## Steps ### 1. Explore the repo structure - List root-level files and directories - Identify the language implementation folders (e.g. `php/`, `java/`, `dotnet/`) - Read each language's README if present - Read the root README ### 2. Extract the core concept Answer: What is the single thing this repo teaches? Distill to one sentence: *"[verb] [what] using [how]"*. ### 3. Find the critical patterns Look for: - Non-obvious SDK/API choices that have consequences if wrong (e.g. using `Verify` vs `Charge`) - Flags or parameters that are required but easy to miss - Behaviors that activate automatically (e.g. mock mode) - Files that are canonical reference implementations For each pattern, capture the *why* — especially if getting it wrong has a real cost (penalty, security issue, data loss). This is the highest-value content in the file. ### 4. Map the files For each language, identify: - The core utility/helper file (canonical implementation) - The endpoint/controller files - The storage layer - The mock/test helpers - The frontend entry point (if present) Note specific line ranges for the most important methods (SDK config, core pattern implementation). ### 5. Extract the API surface List all REST endpoints with method, path, and one-line purpose. All languages should expose identical endpoints — confirm this or note divergence. ### 6. Capture environment and config - Required environment variables and their purpose - Config file names (`.env.sample`, `appsettings.json`, etc.) - Default behavior when config is absent ### 7. Find test credentials - Test card numbers, API keys, or credentials needed for sandbox testing - Where to get real credentials (developer portal link) ### 8. Check for direct API calls If implementations make direct HTTP calls to an external API (rather than using an SDK), capture the request shape: - Endpoint URL - Required headers (especially auth headers — format, prefix, casing) - Key body fields, particularly any with non-obvious values (e.g. numeric ISO codes instead of alpha codes) Include this as a "## API Request Shape" section only if the request structure is non-obvious and getting it wrong would cause silent failures or hard-to-debug errors. Skip it for SDK-based repos where the library handles the wire format. ### 9. Note the architecture flow Two or three bullet flows max: - How data flows in (e.g. frontend → token → backend → SDK → stored) - How payments/actions flow out ### 9. Identify security/production warnings For demo repos: note what is NOT production-ready and why (no auth, no encryption, simplified storage, etc.). ### 10. Write the AGENTS.md Use this structure, targeting 80–120 lines: ~~~markdown # [Project Name] > [One-sentence summary: verb + what + how + languages] ## Critical Patterns [2–4 numbered items. Each: bold rule, then plain-language explanation of the WHY. Tone: informational, written for someone integrating this — not a maintainer warning.] ## Repository Structure ### [Language] ([framework/runtime]) - [`path/to/File.ext`](path/to/File.ext) — [role, line refs for key methods if useful] ... [Repeat per language] ### Shared - [config files, docker-compose, etc.] ## API Surface | Method | Path | Purpose | |--------|------|---------| ... ## Environment Variables ```bash VAR_NAME=value # explanation ``` ## [Test Cards / Sandbox Credentials] (if applicable) | [Column] | [Column] | [Column] | ... ## API Request Shape (if applicable — direct API calls only) - `field.name` — [what it is, why the value is non-obvious] ... ## Architecture Summary **[Flow name]:** [step → step → step] **[Flow name]:** [step → step → step] ## Security Notes [1–3 sentences on what demo code omits for production.] ## SDK Versions - [Language]: `package-name` vX.Y+ ... ~~~ ## Output Rules - **Tone:** Written for a developer integrating this, not a maintainer guarding it. "The X file is the reference implementation — start there if adapting" not "CANONICAL — modify with caution." - **No code blocks:** Line-number refs to actual source files instead of reproducing code. - **No redundant content:** Anything derivable by reading the repo files (imports, full dependency lists) belongs in the repo, not here. - **Front-load the non-obvious:** The Critical Patterns section is the reason this file exists. If a developer could figure it out from reading the README, it doesn't belong in Critical Patterns.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · slogsdon/skills-workflows | 100 | MIT |
| buYoung/skills | 100 | MIT |
| madteacher/mad-agents-skills | 100 | MIT |
| thienanblog/awesome-ai-agent-skills | 95 | Apache-2.0 |
| pinkpixel-dev/skills-collection-1 | 90 | Apache-2.0 |
Database snapshot: 13.11.2026 · package version 99c13b32395f (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100claude-md-generator
Use when the user asks to generate or update a project's CLAUDE or AGENTS context file from a codebase scan. Writes a focused file under 100 lines containing only the non-obvious build commands, conventions, and gotchas Claude Code needs. - 100init
This skill should be used when a user asks to initialize a repository for AI agents, create or update an AGENTS.md file, scaffold agent instructions for a codebase, or improve existing agent guidance. Triggers include phrases like 'create an AGENTS.md', 'set up agent… - 100write-rules
Write this repo's agent rules file (AGENTS.md, read by Claude Code, Codex, Cursor and others) from what the repo actually does (CI workflows, scripts, configs, folder layout, git history), with a source for every line and nothing a linter already enforces. Use when the user asks… - 100agents-md-author
Bootstrap or update project AI-agent instruction files (AGENTS.md for Codex, CLAUDE.md for Claude Code, or both) from the current project's structure. Triggers on: write AGENTS.md, write CLAUDE.md, generate AGENTS.md, agent instructions, project conventions for AI, bootstrap… - 90om-create-agents-md
Write, rewrite, or refresh an AGENTS.md (repo root or one package/module) from the actual codebase — Always / Ask First / Never / Validation Commands rules, task checklists, real paths and commands. Follows a repo template when present, else a built-in default. Use for "write… - 100bootstrap-system-md
Explore a codebase and generate its first SYSTEM.md, a single tool-agnostic living reference any coding agent (Claude Code, Codex, Cursor, Aider, Gemini CLI) reads before working on the repo, or upgrade an existing SYSTEM.md to the current contract. Use when the user asks to…