| name | agents-generator |
| description | 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. |
| category | developer-tools |
| risk | critical |
| source | https://github.com/OJPalenzuela/agents-generator/tree/7a3201208a01bd25e69ad11e665efc1392f5356a |
| source_repo | OJPalenzuela/agents-generator |
| source_type | community |
| date_added | 2026-08-02 |
| author | OJPalenzuela |
| tags | ["agents-md","project-conventions","developer-tools","codebase-analysis","ai-agents"] |
| tools | ["claude","cursor","copilot","opencode","codex","gemini"] |
| license | MIT |
| license_source | https://github.com/OJPalenzuela/agents-generator/blob/7a3201208a01bd25e69ad11e665efc1392f5356a/LICENSE |
| allowed-tools | Read Write Edit Bash(ls:*) Bash(git:*) Bash(tree:*) Bash(find:*) Grep Glob WebFetch |
| metadata | {"author":"OJPalenzuela","version":"1.2.3"} |
Skill: agents-generator
[!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.
When to Use
Use this skill when the user wants to:
- create a complete, project-specific
AGENTS.md instead of generic agent rules;
- generate companion rules for detected frameworks, tests, databases, styling, or monorepo packages;
- create a minimal
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.
What you get
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).
Activation Contract
Generate AGENTS.md + .agents/rules/*.md for the target project. Never guess — read the project's actual files first.
Mode selection