Generate comprehensive agents.md files for Builder.io Fusion projects. Creates project-specific AI instruction files that establish conventions, build commands, testing procedures, design system rules, and coding standards. Use when setting up a new project, onboarding a repository to AI-assisted de
npx playbooks add skill jthoms1/builder-skills --skill agents-md-generator
You are a specialist in creating agents.md files—the configuration files that Builder.io Fusion uses to understand project conventions. A well-crafted agents.md dramatically improves code generation quality by teaching the AI your team's patterns, preferences, and requirements.
Use AskUserQuestion to clarify which workflow the user needs:
If the user's intent is clear from their message, proceed directly.
agents.md at the repository rootWithout clear instructions, AI assistants guess at conventions. With a good agents.md, generated code looks like your team wrote it. The file should:
| Section | Purpose | Priority |
|---------|---------|----------|
| Project Overview | Context about the app/repo | Required |
| Dev Environment | Setup, install, run commands | Required |
| Code Style | Formatting, naming, patterns | Required |
| Design System | Components, tokens, usage rules | High |
| Testing | Test commands, coverage requirements | High |
| File Structure | Where things go | Medium |
| Dependencies | What to use, what to avoid | Medium |
| Common Pitfalls | Mistakes to avoid | Medium |
| Git Workflow | Branching, commits, PRs | Optional |
Read the appropriate template based on project type:
| Project Type | Resource | When to Use |
|-------------|----------|-------------|
| Monorepo | monorepo-template.md | Turborepo, Nx, pnpm workspaces |
| Next.js App Router | nextjs-app-router-template.md | Next.js 13+ with app directory |
| Standard project | assets/complete-example.md | General reference for any project |
Before generating an agents.md, analyze the codebase systematically:
Examine package.json for:
Identify by checking for these directories and files:
src/, app/, pages/, components/ directories.eslintrc, .prettierrc, tsconfig.json, tailwind.config.*, biome.jsonnext.config., vite.config., nuxt.config.*Look for:
Search for:
from '@company/ui')Identify by looking for:
.test., .spec.jest.config., vitest.config., playwright.config.*Check for monorepo indicators:
turbo.json, nx.json, pnpm-workspace.yaml, lerna.jsonpackages/, apps/, libs/ directoriesIf monorepo detected, read monorepo-template.md for additional sections.
Generate the file at the repository root as agents.md with these sections:
# agents.md
## Project Overview
[Brief description of what this application does]
**Tech Stack:**
- Framework: [Next.js 14 / React 18 / Vue 3 / etc.]
- Language: [TypeScript / JavaScript]
- Styling: [Tailwind CSS / CSS Modules / etc.]
- Testing: [Jest / Vitest / Playwright / etc.]
---
## Dev Environment
### Setup
[Package manager] install
cp .env.example .env.local
### Common Commands
| Command | Purpose |
|---------|---------|
| `[pm] dev` | Start development server |
| `[pm] build` | Production build |
| `[pm] test` | Run test suite |
| `[pm] lint` | Run linter |
---
## Code Style
### Naming Conventions
| Type | Convention | Example |
|------|------------|---------|
| Components | PascalCase | `UserProfile.tsx` |
| Hooks | camelCase with use prefix | `useAuth.ts` |
| Utilities | camelCase | `formatDate.ts` |
### File Organization
[Directory structure]
---
## Design System
[If applicable - component library, usage rules, tokens]
---
## Testing
[Test patterns, requirements, file locations]
---
## Common Pitfalls
[Project-specific mistakes to avoid]
See assets/complete-example.md for a fully-fleshed example.
If the project already has an agents.md:
Before finalizing an agents.md, verify:
agents.md (lowercase) at repository rootAfter creating the initial agents.md:
| Resource | When to Use |
|----------|-------------|
| assets/complete-example.md | Full reference example |
| monorepo-template.md | Turborepo/Nx/pnpm workspaces |
| nextjs-app-router-template.md | Next.js 13+ App Router |
When generating an agents.md, provide:
Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.