Skip to content
Skills Library
AI & agents · Writing

agents-generator

/agents-generator

Generate a complete, project-specific AGENTS.md compatible with the agents.md standard (60k+ open-source projects). Also generates platform-specific files (.cursorrules, Copilot instructions, GEMINI.md) for detected platforms. Use when setting up AI agent rules, creating project conventions for Claude Code, Cursor, Copilot, OpenCode, or any agent that reads AGENTS.md. Supports three modes: full (rich AGENTS.md + companion rule files + multi-platform output), minimal (single 30-line AGENTS.md following the agents.md standard), and update (diff existing, regenerate only changed). Detects monorep

Licence
MIT
Last repository change
03.08.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
23
Scripts
0
HTML comments
2
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.08.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • SKILL.md zawiera komentarze HTML (2). Nie widać ich w podglądzie Markdown, a model je czyta.

What it does and when to use it

Generate a complete, project-specific AGENTS.md compatible with the agents.md standard (60k+ open-source projects). Also generates platform-specific files (.cursorrules, Copilot instructions, GEMINI.md) for detected platforms. Use when setting up AI agent rules, creating project conventions for Claude Code, Cursor, Copilot, OpenCode, or any agent that reads AGENTS.md. Supports three modes: full (rich AGENTS.md + companion rule files + multi-platform output), minimal (single 30-line AGENTS.md following the agents.md standard), and update (diff existing, regenerate only changed). Detects monorep

Original author description

Generate a complete, project-specific AGENTS.md compatible with the agents.md standard (60k+ open-source projects). Also generates platform-specific files (.cursorrules, Copilot instructions, GEMINI.md) for detected platforms. Use when setting up AI agent rules, creating project conventions for Claude Code, Cursor, Copilot, OpenCode, or any agent that reads AGENTS.md. Supports three modes: full (rich AGENTS.md + companion rule files + multi-platform output), minimal (single 30-line AGENTS.md following the agents.md standard), and update (diff existing, regenerate only changed). Detects monorep

How it works

  1. What you get
  2. Activation Contract
  3. Hard Rules
  4. Execution Steps
  5. Output Contract
  6. References
Original SKILL.md headings · 126 lines, 889 words
SKILL.md preview
---
name: agents-generator
description: "Generate a complete, project-specific AGENTS.md compatible with the agents.md standard (60k+ open-source projects). Also generates platform-specific files (.cursorrules, Copilot instructions, GEMINI.md) for detected platforms. Use when setting up AI agent rules, creating project conventions for Claude Code, Cursor, Copilot, OpenCode, or any agent that reads AGENTS.md. Supports three modes: full (rich AGENTS.md + companion rule files + multi-platform output), minimal (single 30-line AGENTS.md following the agents.md standard), and update (diff existing, regenerate only changed). Detects monorepos for nested files. Extracts design tokens from config files. Includes confidence scoring, managed blocks, audit logging, and state memory. Every command and convention is derived from the project's real package.json, config files, and directory structure — never generic templates."
license: MIT
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

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.** Read `package.json`, all config files, and directory structure before generating anything.
- **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.
- **Auto-format and lint generated files.** Run `[format cmd]` and `[lint cmd]` on generated files only — never the whole project. These are fast, safe operations.
- **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

1. `git rev-parse --show-toplevel` → project root.
2. **Detect package manager FIRST**: check lockfiles. `bun.lock`→bun, `pnpm-lock.yaml`→pnpm, `package-lock.json`→npm, `yarn.lock`→yarn. Never default to npm.
3. Read `package.json` (scripts, deps, workspaces). Save scripts for validation.
4. Read config files and explore directory structure.
5. Select mode (ask if ambiguous).

### Full mode

1. Read `assets/agents-full.md` — this is the AGENTS.md structure with all sections and filling rules.
2. Read project files and fill every placeholder with real data. Never use generic text.
3. Generate `AGENTS.md` at project root. Wrap content in `<!-- AGENTS-GENERATED-START -->` / `<!-- AGENTS-GENERATED-END -->`.
4. For each applicable rule category, read the corresponding template from `assets/` and generate the rule file in `.agents/rules/`.
5. If Claude detected (`.claude/` or `CLAUDE.md`): generate thin `CLAUDE.md` from `assets/claude.md`.
6. If platform files detected: generate from `assets/platform.md`.

### Minimal mode

1. Read `assets/agents-minimal.md` — 30-line agents.md standard format.
2. Generate single `AGENTS.md`.

### Update mode

1. Backup existing files.
2. Re-detect project state.
3. Diff old vs new. Regenerate only changed categories.

### Post-generation

- Run `[format cmd]` on the generated files only.
- Run `[lint cmd]` on the generated files only.
- Scan for `{{`, `TODO`, `...`. Fix any found.
- Verify all commands exist in package.json scripts.
- If AGENTS.md > 300 lines, warn. If > 500, move content to rule files.
- Summarize all changes using conventional commit format before declaring done.
- Report: what was detected, generated, skipped, and confidence score.

## Output Contract

Return:
- Mode used and why
- Files created/modified
- Detection summary (all categories)
- Rules generated and skipped (with reason)
- Confidence score

## References

| 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 |
Files in this package (23)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 5 KB
  • SKILL.md 7 KB
  • assets/agents-full.md 11 KB
  • assets/agents-minimal.md 2 KB
  • assets/agents-nested.md 2 KB
  • assets/architecture.md 2 KB
  • assets/backend.md 1 KB
  • assets/claude.md 1 KB
  • assets/database.md 1 KB
  • assets/forms.md 2 KB
  • assets/frontend-patterns.md 1 KB
  • assets/git-workflow.md 2 KB
  • assets/i18n.md 2 KB
  • assets/platform.md 3 KB
  • assets/sdd-workflow.md 2 KB
  • assets/server-actions.md 1 KB
  • assets/styling.md 2 KB
  • assets/testing.md 2 KB
  • references/decision-matrix.md 18 KB
  • references/template-filling-guide.md 5 KB
  • references/example-output/README.md 6 KB

Versions

The database has no other skills named agents-generator.

Database snapshot: 13.11.2026 · package version fdc92e43fc85 (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

  • 100agents-md-starter
    Creates or upgrades a repository's AGENTS.md (read by Codex, Cursor, and other agents) and a CLAUDE.md that imports it, so Claude Code, Codex, Cursor and Gemini CLI share one set of project rules. Scans the repo to detect languages, package manager, real build/test/lint…
  • 100agent-config
    Create, update, or audit AGENTS.md (default) or CLAUDE.md agent instructions: set up, prune, add a rule, or merge CLAUDE.md or .cursorrules into one file Claude Code, Codex, and Cursor all read. Don't use for READMEs, skills, or subagents.
  • 100agents-md-checker
    Checks which instruction files (AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions) each coding agent loads from a repo, what gets cut or skipped, and whether the commands those files document still work. Use when the user asks whether Claude Code, Codex, Gemini…
  • 90cosmosmith-project-rules
    Generate or update project instruction files for Cosmosmith-governed projects. Use when the user wants AGENTS.md, CLAUDE.md, Cursor rules, Copilot instructions, OpenCode, Trae, or other editor/agent rules created from Cosmosmith conventions, or when they ask how agents should…
  • 100rulesync
    Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.
  • 100context-files
    Create or validate project context files (AGENTS.md, CLAUDE.md, GEMINI.md). Use when bootstrapping a new project, initializing agent configuration, writing a context file, or when asked to create, review, audit, or validate an existing context file. Handles codebase archaeology,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.