generate-agents-md
Generate AGENTS.md
Generate an AGENTS.md file containing essential information for AI agents working in this repository.
What to Include
The AGENTS.md file should be ~20 lines and contain:
- Build/lint/test commands - Especially how to run a single test
- Architecture overview - Important subprojects, internal APIs, databases
- Code style guidelines - Imports, conventions, formatting, types, naming, error handling
Process
- First check if AGENTS.md or AGENT.md already exists - if so, update it instead of overwriting
- Check for existing rules files to incorporate:
.cursor/rules/or.cursorrulesCLAUDE.md.windsurfrules.clinerules.goosehints.github/copilot-instructions.md
- Analyze the codebase structure:
- Look at package.json, Cargo.toml, pyproject.toml, etc.
- Identify test frameworks and commands
- Find lint/format configuration files
- Map out the directory structure
- Write concise AGENTS.md (~20 lines)
Output
Save the generated file as AGENTS.md in the repository root.
Example Structure
# Agent Guidelines
## Commands
- Build: `npm run build`
- Test: `npm test` (single: `npm test -- file.test.ts`)
- Lint: `npm run lint`
## Architecture
- Monorepo with packages in `/packages/`
- Main API in `/packages/api/`
- Database: PostgreSQL with Prisma
## Style
- TypeScript with strict mode
- ESLint + Prettier
- Named exports preferred
- Use `logger` from `@/utils` not console
More from pc-style/pc-skills
blog-post
Create pcstyle.dev developer blog posts in the dual-author (ME MYSELF + MY AI AGENT) format, including MDX structure, custom components, and API/CLI publishing steps.
4code-review
Run automated code review using cubic review with amp review fallback. Use when the user wants to review code changes, check PR quality, analyze code for issues, or run automated code review tools.
4load-handoff
Load a handoff file and proceed with the specified tasks. Use when starting a new session with a HANDOFF.md file present, or when the user asks to continue from a handoff. Reads the handoff context and immediately begins executing the next steps.
3explore-codebase
Fast codebase exploration using Opencode's Explore agent for quick recognition of project structure, file patterns, and code organization. Use when you need to understand a codebase quickly, map out architecture, find files by patterns, or answer questions about code structure. Triggers on requests like "explore this codebase", "understand the project structure", "map out the architecture", or when quick file discovery is needed.
3git-push-origin
Push local branch to origin (GitHub) to initialize it remotely. Use when the user has created a local branch and wants to push it to GitHub for the first time, or when setting up a new branch on the remote repository.
3create-handoff
Create a handoff message to continue work in a new AI session. Use when the user wants to save context for later, create a handoff document, or prepare work for continuation in a fresh session. Captures relevant files, context, and goals so the next session can start immediately without rediscovering the codebase.
3