agents-generator
What it does
This agent creates a file named `AGENTS.md` and other rule files for your programming project. It analyzes your code to understand the tools you use and generates custom instructions to help other AI agents work on your project.
When to use it
- βWhen you want to create a detailed guide for AI agents about your project.
- βTo generate specific rules for technologies like testing, databases, or frameworks.
- βTo update your project's guide if you've changed tools or structure.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agents-generator/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a full `AGENTS.md` and rules for my project.β
5 new skills a week. 1 minute to read.
How it works
It first identifies the tools your project uses (like Node.js, React, etc.) and then writes an `AGENTS.md` file and rule files (`.agents/rules/`) based on that information. It ensures the instructions are specific to your project, not generic.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.mdinstead 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
| 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 |
Dry-run mode
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.
Hard Rules
- Read before writing, but never read secrets. Read
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.exampleplaceholders and source references such asprocess.env.NAME, without reading or reporting values. - Detect package manager FIRST. Check lockfiles:
bun.lockβbun,pnpm-lock.yamlβpnpm,package-lock.jsonβnpm,yarn.lockβyarn. NEVER default to npm. Every command uses the detected PM. - Generate only what applies. No backend rules for frontend-only. No database rules without ORM.
- Do not execute project scripts by default. Package-manager scripts are repository-controlled shell entry points. Detect and document candidate format/lint commands, but do not run them unless the user separately requests execution after the exact script body and invoked tooling have been reviewed.
- Validate commands. Every command in output must exist as a script key in
package.json. - No placeholders. Scan output for
{{,TODO,add here,.... Reject if any remain. - Backup first. If files exist, copy to
.agents/backups/with timestamp.
Execution Steps
Common
git rev-parse --show-toplevelβ project root.- Detect package manager FIRST: check lockfiles.
bun.lockβbun,pnpm-lock.yamlβpnpm,package-lock.jsonβnpm,yarn.lockβyarn. Never default to npm.
β¦
FAQ
What is `AGENTS.md`?
It's a file that contains instructions for AI agents on how to work on your specific project, including which tools to use and how to follow your conventions.
What are the files in `.agents/rules/`?
These are additional files that detail specific rules for parts of your project, such as testing, frontend, backend, or workflow.
Can it create rules for any technology?
It only creates rules for technologies it detects in your project. If a technology isn't present, it won't generate a rule for it.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 48k
- Ranking position
- #3689
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.