ai-instruction-standards
Skill4 starsChanged 31 days agoMITView on GitHub
Create and maintain AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/, etc.) with proper structure. Use when: creating AI instruction files, separating universal vs project-specific rules, configuring AI tools. Not for: shaping the codebase so AI can navigate it — use /ai-friendly-architecture; enforcing evidence-based answers — use /ai-collaboration-standards. Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AsiaOstrich/universal-dev-standardsword for word, first seen Nov 4, 2026
Other versions1 project uses a version of this.
Word for word · 1
- AsiaOstrich/universal-dev-standards★ 84100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository55 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-coverageSkill
- adrSkill
- ai-collaboration-standardsSkill
- ai-friendly-architectureSkill
- api-designSkill
- atddSkill
- auditSkill
- bddSkill
- brainstormSkill
- changelogSkill
- checkinSkill
- ci-cdSkill
- code-reviewSkill
- commitSkill
- contract-testSkill
- databaseSkill
- deploySkill
- methodologySkill
- dev-workflowSkill
- docgenSkill
- documentation-guideSkill
- durableSkill
- e2eSkill
- error-code-guideSkill
- git-workflow-guideSkill
- incidentSkill
- journey-test-assistantSkill
- knowledge-graphSkill
- logging-guideSkill
- metricsSkill
- migrateSkill
- observabilitySkill
- orchestrateSkill
- planSkill
- prSkill
- discoverSkill
- project-structure-guideSkill
- pushSkill
- refactorSkill
- releaseSkill
- requirementSkill
- retrospectiveSkill
- reverseSkill
- runbookSkill
- securitySkill
- scanSkill
- skill-builderSkill
- sloSkill
- spec-deriveSkill
- sddSkill
- sweepSkill
- tddSkill
- coverageSkill
- testing-guideSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Applicability: All AI coding tools
- Distinctive: line 72
Recommendation: Use AGENTS.md as the universal baseline for cross-tool projects, then add tool-specific files for advanced features …
- Distinctive: line 208
When a project uses multiple AI tools:
- Distinctive: line 227
Best Practice: Write universal content in AGENTS.md once, then import/reference it from tool-specific files to avoid duplication.
- Distinctive: line 261
Before committing changes to AI instruction files:
- Distinctive: line 276
Check for existing CLAUDE.md, AGENTS.md, GEMINI.md, or equivalent files
- Distinctive: line 279
If not found, suggest creating structured AI instruction file
- Distinctive: line 283
If no AI instruction file found:
- Distinctive: line 285
Ask: "This project doesn't have an AI instruction file.
- Very specific: line 289
Add to .gitignore if contains sensitive info
- Very specific: line 295
After /ai-instruction-standards completes, suggest:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI Instruction File Standards Guide
Language: English | 繁體中文
Version: 2.0.0 Last Updated: 2026-04-28 Applicability: All AI coding tools
Core Standard: This skill implements AI Instruction File Standards. For comprehensive methodology documentation, refer to the core standard.
AI Skills Hierarchy | AI 技能層級
This skill is part of a three-layer AI collaboration system:
| Layer | Skill | Question it Answers |
| Behavior (Immediate) | /ai-collaboration | "How should AI respond accurately?" |
| Configuration (Session) | /ai-instruction-standards (this) | "What to write in CLAUDE.md / AGENTS.md?" |
| Architecture (Long-term) | /ai-friendly-architecture | "How to structure code for AI?" |
Purpose
This skill helps create and maintain AI instruction files with proper separation between universal standards and project-specific configurations, across all major AI coding tools.
Quick Reference
Supported AI Tools (2026-04-28)
CLI / Agent Tools (Terminal)
| Tool | Primary File | Workflow Mechanism | MCP |
| Claude Code | CLAUDE.md + .claude/rules/*.md | Skills (.claude/skills/ → /{name}) | ✅ |
| Gemini CLI | GEMINI.md | .gemini/commands/*.toml → /{name} | ✅ |
| OpenAI Codex CLI | AGENTS.md (+ AGENTS.override.md) | Team commands; /review built-in | ✅ |
| OpenCode | AGENTS.md (CLAUDE.md compatible) | Built-in only (/init /undo /share) | ✅ |
AI-native IDE / Editor Integration
| Tool | Primary File | Workflow Mechanism | MCP |
| Cursor | .cursor/rules/*.mdc ⚠️ | @-mentions; /multitask | ✅ |
| GitHub Copilot | .github/copilot-instructions.md | .github/prompts/*.prompt.md → /{name} | ✅ |
| Windsurf | .windsurfrules / .windsurf/rules/*.md | .windsurf/workflows/*.md → /{name} | ✅ |
| Cline | .clinerules | None | ✅ |
⚠️ Cursor:
.cursorrulesis deprecated — migrate to.cursor/rules/*.mdc
Cross-Tool Universal Standard: AGENTS.md
AGENTS.md is the emerging de-facto cross-tool instruction standard:
Supported by: Gemini CLI, OpenAI Codex CLI, OpenCode, GitHub Copilot, Windsurf, Cursor
Not supported by: Claude Code (uses CLAUDE.md), Cline (uses .clinerules)
Recommendation: Use AGENTS.md as the universal baseline for cross-tool projects, then add tool-specific files for advanced features (Skills, Workflows, Prompts).
Core Principle: Universal vs Project-Specific
| Type | Contains | Example |
| Universal | Generic rules | "Run tests before committing" |
| Project-Specific | Concrete commands | "Run npm test before committing" |
Recommended Layout
# [Project Name] - AI Instructions
## Universal Standards
<!-- Rules applicable to ANY project -->
- Commit message format
- Code review checklist
- Testing standards
- Anti-hallucination rules
---
## Project-Specific Configuration
<!-- Unique to THIS project -->
### Tech Stack
[Your technologies here]
### Quick Commands
[Your build/test/deploy commands]
### File Structure
[Your project structure]Tool-Specific Setup Guides
Claude Code
CLAUDE.md # Main instructions (hierarchical: global → project → subdir)
.claude/rules/ # Glob-scoped additional rules
.claude/skills/{name}/SKILL.md # Custom slash commands → /{name}
.claude/agents/{name}.md # Subagent definitionsGemini CLI
GEMINI.md # Main instructions
.gemini/commands/{name}.toml # Custom slash commands → /{name}
.gemini/agents/{name}.yaml # Subagent definitionsExample .gemini/commands/review.toml:
description = "Run code review checklist"
prompt = "Review the following changes: !{git diff HEAD}"OpenAI Codex CLI
AGENTS.md # Main instructions (Git root → cwd traversal)
AGENTS.override.md # Temporary override (highest priority)
~/.codex/AGENTS.md # Global fallback
.codex/agents/ # Custom agent definitionsOpenCode
AGENTS.md # Primary (auto-recognized)
CLAUDE.md # Also recognized (migration compatibility)
.opencode/agents/ # Custom agent definitions
opencode.json (instructions) # Glob-pattern file referencesCursor
.cursor/rules/ # MDC format rules (replaces .cursorrules)
{name}.mdc # Frontmatter: description, globs, alwaysApply
AGENTS.md # Also supported for agent contextMDC frontmatter example:
---
description: "TypeScript coding standards"
globs: ["**/*.ts", "**/*.tsx"]
alwaysApply: false
---Migration: If you have
.cursorrules, move content to.cursor/rules/*.mdc.
GitHub Copilot
.github/copilot-instructions.md # Always-on, all chats
.github/instructions/*.instructions.md # File-glob scoped (applyTo frontmatter)
.github/prompts/*.prompt.md # Reusable templates → /{name} slash commands
.github/agents/*.agent.md # Custom agents with tool access control
AGENTS.md # Also recognizedWindsurf
.windsurfrules # Project rules (team-shareable)
.windsurf/rules/*.md # MDC frontmatter structured rules
.windsurf/workflows/*.md # Reusable task sequences → /{name}
AGENTS.md # Also recognizedWorkflow example (.windsurf/workflows/review.md):
Run a code review:
1. Run `git diff HEAD`
2. Check for BLOCKING issues (security, correctness)
3. Check for IMPORTANT issues (design, tests)
4. Output findings with BLOCKING/IMPORTANT/SUGGESTION prefixesMulti-Tool Project Configuration
When a project uses multiple AI tools:
project/
├── AGENTS.md # Universal baseline (cross-tool)
├── CLAUDE.md # Claude Code (extends AGENTS.md)
├── GEMINI.md # Gemini CLI
├── .cursor/rules/
│ └── standards.mdc # Cursor
├── .windsurf/
│ └── workflows/ # Windsurf workflows
│ ├── review.md
│ └── checkin.md
└── .github/
├── copilot-instructions.md # Copilot always-on
└── prompts/
└── review.prompt.md # Copilot slash commandBest Practice: Write universal content in AGENTS.md once, then import/reference it from tool-specific files to avoid duplication.
Content Guidelines
Universal Content (Keep Generic)
| Category | Good Examples |
| Commit Standards | "Follow Conventional Commits format" |
| Code Review | "Use BLOCKING, IMPORTANT, SUGGESTION prefixes" |
| Testing | "Maintain 80% coverage minimum" |
| AI Behavior | "Always read code before analyzing" |
Avoid in Universal Sections:
- Specific commands (
npm test,pytest) - Hardcoded paths (
cli/src/,/var/www/) - Version numbers (
Node.js 18,Python 3.11) - Project names and URLs
Project-Specific Content
| Category | Examples |
| Tech Stack | Node.js 18, React 18, PostgreSQL 15 |
| Commands | npm run lint, ./scripts/deploy.sh |
| File Structure | src/, cli/, tests/ |
| Team Conventions | Traditional Chinese comments |
Maintenance Checklist
Before committing changes to AI instruction files:
- Universal sections contain no project-specific paths, commands, or versions
- Project-specific sections are clearly marked
- Cross-references to standards documents are correct
- Format matches existing sections
- If using Cursor:
.cursorrulesmigrated to.cursor/rules/*.mdc - If multi-tool project:
AGENTS.mdcovers the universal baseline
Configuration Detection
Detection Order
- Check for existing
CLAUDE.md,AGENTS.md,GEMINI.md, or equivalent files - Detect which AI tools are in use (check for
.cursor/,.windsurf/,.github/copilot-instructions.md, etc.) - Analyze content structure for universal/project-specific separation
- If not found, suggest creating structured AI instruction file
First-Time Setup
If no AI instruction file found:
- Ask: "This project doesn't have an AI instruction file. Which AI tools do you use?"
- Recommend
AGENTS.mdfor cross-tool projects,CLAUDE.mdfor Claude Code only - Determine project type and tech stack
- Generate template with appropriate sections
- Add to
.gitignoreif contains sensitive info
Next Steps Guidance
After /ai-instruction-standards completes, suggest:
- Create or update project's
CLAUDE.md/AGENTS.md⭐ Recommended — Apply standards immediately- Run
/ai-friendly-architectureto optimize AI collaboration at the architecture level- Run
/ai-collaborationto review AI behavior guidelines
Related Standards
- AI Instruction File Standards - Core standard
- Documentation Writing Standards - Writing guidelines
- Anti-Hallucination Guidelines - AI accuracy rules
- AI-Friendly Architecture - Context optimization
Version History
| Version | Date | Changes |
| 2.0.0 | 2026-04-28 | Add Gemini CLI, OpenAI Codex CLI; update Cursor (MDC format, deprecated .cursorrules); update OpenCode (AGENTS.md primary); update Copilot (multiple file types); update Windsurf (Workflows); add AGENTS.md cross-tool standard section |
| 1.0.0 | 2026-01-25 | Initial release |
License
This skill is released under CC BY 4.0.
Source: universal-dev-standards
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

