Establish authoritative codebase guidelines, boundaries, and project goals for AI coding agents. Use when onboarding AI agents to an existing or new repository, conducting an interactive diagnostic interview with the developer, and generating standardized instruction files (AGENTS.md, CLAUDE.md, .cursorrules / .mdc, and project goals).
68
85%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
A universal operational skill for analyzing any repository, interviewing the developer to extract core goals and technical constraints, and establishing a single source of truth for all AI coding agents working in the codebase.
Reference these standards and upstream specifications when generating rule files:
AGENTS.md specification and multi-agent standards./patrickjs/awesome-cursorrules (npx ctx7@latest docs /patrickjs/awesome-cursorrules "rules format").cursor/rules/*.mdc format with frontmatter (globs, alwaysApply).CLAUDE.md repository guidelines specification..github/copilot-instructions.md configuration guide./firecrawl/llmstxt-generator (/llmstxt/)Activate this skill when:
[Phase 1: Automated Discovery]
├── Detect package manifests & runtimes
├── Scan directory tree & identify key layers
└── Check existing configs, CI workflows & linters
│
▼
[Phase 2: Interactive Developer Interview]
├── Ask targeted questions (Goals, Boundaries, Conventions)
└── Clarify ambiguous patterns & forbidden operations
│
▼
[Phase 3: Guideline Synthesis]
├── Compile authoritative AGENTS.md (Single Source of Truth)
├── Create tool bridges (CLAUDE.md, .cursor/rules, etc.)
└── Create/update PROJECT_GOALS.md for active roadmap
│
▼
[Phase 4: Verification & Agent Test]
└── Dry-run test instructions against linters and build checksBefore asking questions, the agent MUST run automated discovery to avoid asking trivial questions that can be answered from the filesystem.
Run file checks for common manifests:
package.json, pnpm-workspace.yaml, tsconfig.jsoncomposer.jsonpyproject.toml, requirements.txt, Pipfilego.modCargo.tomlGemfilepom.xml, build.gradle, build.gradle.ktsDockerfile, docker-compose.yml, wrangler.jsonc, vercel.jsonInspect scripts in package.json, Makefile, .github/workflows/, or config files:
.eslintrc*, biome.json, ruff.toml, phpstan.neon, golangci.ymlvitest.config.*, jest.config.*, phpunit.xml, pytest.iniLook for existing rules files that should be unified or migrated:
AGENTS.md / GEMINI.md / CLAUDE.md.cursorrules or .cursor/rules/*.mdc.github/copilot-instructions.md.agents/rules/ or .windsurfrulesOnce automated discovery is complete, the agent MUST present the developer with a focused questionnaire. Group the questions into 4 core sections and tailor them to the detected stack.
.env*, generated schemas, lockfiles).npm run lint && npm test && npm run build).AGENTS.md (Universal standard)CLAUDE.md (Direct bridge for Claude Code).cursor/rules/ (Modular .mdc files for Cursor).github/copilot-instructions.md (GitHub Copilot)PROJECT_GOALS.md (Dedicated roadmap and goal-tracking document)Refer to interview-framework.md for full branch logic and adaptive follow-up questions.
Synthesize the discovered data and the user's answers into high-leverage instruction documents.
AGENTS.md)Create AGENTS.md in the repository root. Ensure it includes:
pnpm test before concluding, keep functions small).dist/).To ensure all AI coding tools read the same guidelines without duplication:
For Claude Code (CLAUDE.md):
Create CLAUDE.md referencing or mirroring AGENTS.md:
# Repository Guidelines for Claude Code
> This project maintains its primary rules in [AGENTS.md](./AGENTS.md).
> Follow all rules, commands, and constraints specified in AGENTS.md.
## Quick Reference Commands
- Build: `<build_cmd>`
- Test: `<test_cmd>`
- Lint: `<lint_cmd>`For Cursor (.cursor/rules/main-guidelines.mdc):
---
description: Core repository architecture and agent rules
globs: **/*
alwaysApply: true
---
# Project Guidelines
Refer to the primary rules defined in `AGENTS.md`.
- Build: `<build_cmd>`
- Test: `<test_cmd>`
- Strictly observe all boundaries and no-touch zones.PROJECT_GOALS.md)Create a dedicated PROJECT_GOALS.md tracking active milestones:
# Project Goals & Agent Roadmap
## Current Milestone: [Milestone Name]
- [ ] Goal 1: Description and acceptance criteria
- [ ] Goal 2: Description and acceptance criteria
## Completed Milestones
- [x] Initial setup and architecture baseline
## Guidelines for AI Agents Working on Goals:
1. Always update the checkbox upon completing a goal.
2. Verify all acceptance criteria before marking a goal complete.Confirm the guidelines are operational:
AGENTS.md to ensure all listed commands actually exist and exit cleanly.AGENTS.md correspond to real paths in the repository.AGENTS.md and PROJECT_GOALS.md to the developer for final sign-off.any in TypeScript", "DO NOT touch database migration files once pushed").npm test -- --run instead of an interactive watch mode).AGENTS.md into Git so the entire team shares the same agent guidelines.87555db
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.