internal/skills/content/generate-agents-md/SKILL.md
Cross-tool compatibility workflow. Use when generating AGENTS.md files for compatibility with other AI coding tools, or creating tool-specific instruction files from CLAUDE.md.
npx skillsauth add ar4mirez/samuel generate-agents-mdInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extract operational content from CLAUDE.md to create a universal AGENTS.md file for cross-tool compatibility with Cursor, Codex, Copilot, and other AI agents.
This workflow extracts the Operations and Boundaries sections from CLAUDE.md to generate a minimal, universal AGENTS.md file that works across 20+ AI coding tools.
Why generate instead of symlink?
✅ Use this workflow when:
❌ Use symlink instead when:
Symlink command: ln -s CLAUDE.md AGENTS.md
AI reads CLAUDE.md and identifies:
Create AGENTS.md with AGENTS.md standard structure:
# AGENTS.md
> Auto-generated from CLAUDE.md. For full methodology, see CLAUDE.md.
> Last generated: [DATE]
## Project Overview
[Brief description - AI extracts from README or project.md if available]
## Setup Commands
[Extracted from CLAUDE.md Operations section]
## Testing
[Extracted from CLAUDE.md Operations section]
## Build & Deploy
[Extracted from CLAUDE.md Operations section]
## Code Style
[Extracted from CLAUDE.md Operations section]
## Boundaries
[Extracted from CLAUDE.md Boundaries section]
---
*For detailed guardrails, 4D methodology, and workflows, see [CLAUDE.md](./CLAUDE.md)*
./AGENTS.md# AGENTS.md
> Auto-generated from CLAUDE.md | Last updated: YYYY-MM-DD
> Full documentation: [CLAUDE.md](./CLAUDE.md)
## Project Overview
[PROJECT_NAME] - [BRIEF_DESCRIPTION]
**Tech Stack**: [PRIMARY_TECHNOLOGIES]
**Language**: [PRIMARY_LANGUAGE]
## Setup Commands
```bash
# Install dependencies
[INSTALL_COMMAND]
# Start development server
[DEV_COMMAND]
# Environment setup
cp .env.example .env
# Run all tests
[TEST_COMMAND]
# Run with coverage (target: >80% business logic)
[COVERAGE_COMMAND]
# Watch mode
[WATCH_COMMAND]
# Production build
[BUILD_COMMAND]
# Type check
[TYPECHECK_COMMAND]
# Lint
[LINT_COMMAND]
# Format code
[FORMAT_COMMAND]
# Lint and fix
[LINT_FIX_COMMAND]
Conventions:
package-lock.json, yarn.lock, Cargo.lock).env, .env.local).github/workflows/).env files (use .env.example)node_modules/, target/For detailed development guidelines, see:
This file follows the AGENTS.md standard.
---
## Customization Guide
### Project-Specific Adjustments
When generating AGENTS.md, AI should:
1. **Detect tech stack** from:
- `package.json` (Node.js)
- `requirements.txt` / `pyproject.toml` (Python)
- `go.mod` (Go)
- `Cargo.toml` (Rust)
2. **Extract actual commands** from:
- `package.json` scripts
- `Makefile`
- `justfile`
- CI/CD workflows
3. **Include project-specific boundaries** from:
- `CLAUDE.md` (if exists)
- Existing `.gitignore` patterns
### Monorepo Support
For monorepos, generate nested AGENTS.md files:
project/ ├── AGENTS.md # Root-level (general) ├── CLAUDE.md # Full methodology ├── packages/ │ ├── api/ │ │ └── AGENTS.md # API-specific commands │ └── web/ │ └── AGENTS.md # Web-specific commands
Each nested AGENTS.md should:
- Focus on that package's commands
- Reference root AGENTS.md for general guidelines
- Include package-specific boundaries
---
## Maintenance
### When to Regenerate
Regenerate AGENTS.md when:
- CLAUDE.md Operations section changes
- New build/test commands added
- Project structure changes significantly
- Tech stack updated
### Keeping in Sync
**Option A: Manual regeneration**
```bash
# Load this skill periodically when CLAUDE.md changes
.claude/skills/generate-agents-md/SKILL.md
Option B: Pre-commit hook
# .husky/pre-commit or similar
# Check if CLAUDE.md changed, regenerate AGENTS.md
Option C: CI/CD check
# .github/workflows/check-agents-md.yml
- name: Verify AGENTS.md is up to date
run: |
# Compare timestamps or checksums
Generate AGENTS.md for this project using the generate-agents-md skill
I'll analyze your project and generate an AGENTS.md file.
**Detected:**
- Tech stack: TypeScript, React, Node.js
- Package manager: npm
- Test framework: Vitest
- Linter: ESLint + Prettier
**Generated AGENTS.md:**
[Shows preview]
**Save to:** ./AGENTS.md
Approve? [Yes/No/Edit]
| File | Purpose | Audience |
|------|---------|----------|
| CLAUDE.md | Full methodology + guardrails | Claude Code |
| AGENTS.md | Operational commands | All AI tools |
CLAUDE.md (primary)CLAUDE.md not found, reads AGENTS.md (fallback)Most tools (Cursor, Codex, Copilot) read:
AGENTS.md (primary)CLAUDE.md if presentSolution: Regenerate AGENTS.md or set up sync mechanism
Solution: Ensure file is in project root, named exactly AGENTS.md
Solution: Use this skill to generate actual file instead
Solution: Generate AGENTS.md with common subset, add tool-specific comments
Remember: AGENTS.md is for operational commands. Keep it minimal and actionable. Full methodology stays in CLAUDE.md.
development
Zig language guardrails, patterns, and best practices for AI-assisted development. Use when working with Zig files (.zig), build.zig, or when the user mentions Zig. Provides comptime patterns, allocator conventions, C interop guidelines, and testing standards specific to this project's coding standards.
tools
WordPress framework guardrails, patterns, and best practices for AI-assisted development. Use when working with WordPress projects, or when the user mentions WordPress. Provides theme development, plugin architecture, REST API, blocks, and security guidelines.
tools
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs. Use when testing web apps, automating browser interactions, or debugging frontend issues.
tools
Suite of tools for creating elaborate, multi-component web applications using modern frontend technologies (React, Tailwind CSS, shadcn/ui). Use for complex projects requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX pages.