Generate project-specific AGENTS.md and companion rules by analyzing a codebase. Supports full, minimal, update, and dry-run modes with package-manager detection, monorepos, backups, managed blocks, confidence scoring, and command validation.
[!WARNING] [Authorized Use Only] This skill writes or updates
AGENTS.md,.agents/rules/, optional platform instruction files, and timestamped backups in the target project. Read the detected inputs and proposed outputs first, obtain approval before changing target files, and use it only inside the user's intended project scope.
Use this skill when the user wants to:
AGENTS.md instead of generic agent rules;AGENTS.md, preview changes without writing, or update existing instructions after the stack changes.Do not use it to invent conventions without inspecting the target project, to overwrite instructions outside the user's scope, or to treat generated guidance as a substitute for human review.
Generates a tailored AGENTS.md + .agents/rules/*.md for the target project — not a template with placeholders, but a living document that matches the project's real toolchain.
From a project that uses Bun + Next.js 16 + Tailwind + Vitest + Server Actions, the skill produces:
AGENTS.md
├── Setup commands: bun install, bun dev, bun run test:run, bun doctor
├── Verification Cycle: bunx tsc --noEmit → bun run lint → bun run test:run → bun doctor
├── Conventions: "Bun always. Plain TypeScript types + guards."
└── Architecture → .agents/rules/architecture.md
.agents/rules/
├── architecture.md ← ASCII diagram with real directories, exact versions
├── frontend-patterns.md ← Component rules, state locations, trust boundaries
├── server-actions.md ← downloadVideo() flow, DownloadResult type, rate limiter
├── testing.md ← "74 tests in 5 files", vitest commands, mock patterns
├── git-workflow.md ← Conventional commits, pre-commit checks
└── sdd-workflow.md ← Preflight defaults, post-apply verification
Rules NOT generated: backend.md (no NestJS), database.md (no ORM), i18n.md (hardcoded Spanish), forms.md (manual inputs), styling.md (Tailwind in frontend rules).
Generate AGENTS.md + .agents/rules/*.md for the target project. Never guess — read the project's actual files first.
| User says | Mode | Output |
|-----------|------|--------|
| "simple AGENTS.md", "just the basics", "minimal" | Minimal | Single AGENTS.md (~30 lines, no rule files) |
| "full AGENTS.md", "with rules", "complete", or default | Full | AGENTS.md + .agents/rules/*.md |
| "update AGENTS.md", "refresh", "my stack changed" | Update | Diff existing, regenerate only what changed |
If the user asks to "preview", "show what would change", "dry-run": run all detection but do NOT write files. Show detection summary, files that would be created, skipped rules, and sample output.
package.json, non-secret config files, and directory structure before generating anything. Never open .env, .env.local, credential stores, or similarly secret-bearing files. Derive environment variable names only from .env.example placeholders and source references such as process.env.NAME, without reading or reporting values.bun.lock→bun, pnpm-lock.yaml→pnpm, package-lock.json→npm, yarn.lock→yarn. NEVER default to npm. Every command uses the detected PM.package.json.{{, TODO, add here, .... Reject if any remain..agents/backups/ with timestamp.git rev-parse --show-toplevel → project root.bun.lock→bun, pnpm-lock.yaml→pnpm, package-lock.json→npm, yarn.lock→yarn. Never default to npm.package.json (scripts, deps, workspaces). Save scripts for validation..env* files other than placeholder-only .env.example; never read secret values.assets/agents-full.md — this is the AGENTS.md structure with all sections and filling rules.AGENTS.md at project root. Wrap content in <!-- AGENTS-GENERATED-START --> / <!-- AGENTS-GENERATED-END -->.assets/ and generate the rule file in .agents/rules/..claude/ or CLAUDE.md): generate thin CLAUDE.md from assets/claude.md.assets/platform.md.assets/agents-minimal.md — 30-line agents.md standard format.AGENTS.md.[format cmd] and [lint cmd] as unexecuted candidates. Run neither automatically; execute one only after the user separately authorizes it and its exact project-controlled script body has been reviewed.{{, TODO, .... Fix any found.Return:
| Priority | File | Purpose |
|----------|------|---------|
| Required | assets/agents-full.md | Full AGENTS.md template with all 25+ sections and filling rules |
| Required | assets/agents-minimal.md | 30-line agents.md standard template |
| Full mode | assets/architecture.md | Architecture rules template |
| Full mode | assets/frontend-patterns.md | Frontend patterns template |
| Full mode | assets/server-actions.md | Server actions / backend template |
| Full mode | assets/testing.md | Testing strategy template |
| Full mode | assets/git-workflow.md | Git workflow template |
| Full mode | assets/sdd-workflow.md | SDD workflow template |
| Full mode | assets/styling.md | Styling rules template |
| Full mode | assets/forms.md | Form patterns template |
| Full mode | assets/database.md | Database rules template |
| Full mode | assets/i18n.md | i18n rules template |
| Full mode | assets/backend.md | Backend/NestJS template |
| Conditional | assets/claude.md | CLAUDE.md — only if Claude detected |
| Conditional | assets/platform.md | Multi-platform files |
| Conditional | assets/agents-nested.md | Monorepo nested AGENTS.md |
| Reference | references/decision-matrix.md | Full detection logic and edge cases |
| Reference | references/example-output/README.md | Quality benchmark |
| Reference | references/template-filling-guide.md | Placeholder filling rules |
Copy a source-pinned command for your client. You run it yourself.
Destination: .claude/skills/agents-generator · pinned to the source commit
# Run from your project root
git clone https://github.com/sickn33/agentic-awesome-skills.git .skillboard-tmp
git -C .skillboard-tmp checkout 5cf4dfeb13ea966daa1e117897689cd7991e3f44
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/plugins/agentic-awesome-skills-claude/skills/agents-generator" ".claude/skills/"
rm -rf .skillboard-tmpReview the source before running. This copies files into your project; it is not a one-click install and does not verify runtime safety.
sudo apt update && sudo apt install -y gitnpm install -g @anthropic-ai/claude-code# Run from your project root
git clone https://github.com/sickn33/agentic-awesome-skills.git .skillboard-tmp
git -C .skillboard-tmp checkout 5cf4dfeb13ea966daa1e117897689cd7991e3f44
mkdir -p ".claude/skills"
cp -r ".skillboard-tmp/plugins/agentic-awesome-skills-claude/skills/agents-generator" ".claude/skills/"
rm -rf .skillboard-tmpDestination: .claude/skills/agents-generator
Scanner static-checks@0.1.0 · commit 5cf4dfeb13ea. Static checks cannot prove runtime safety – review the source and the exact diff before installing. How checks work.
References credentials, tokens or secret files that a skill should not need.
Evidence: [redacted]· fingerprint e9cbb0224c4a3d23