/universal-dev-standards:ai-instruction-standardsfrom universal-dev-standards
Creates and maintains AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/) with proper structure. Helps separate universal vs project-specific rules across AI coding tools.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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.
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?" |
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.
| 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) | ✅ |
| 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
AGENTS.mdAGENTS.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).
| Type | Contains | Example |
|---|---|---|
| Universal | Generic rules | "Run tests before committing" |
| Project-Specific | Concrete commands | "Run npm test before committing" |
# [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]
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 definitions
GEMINI.md # Main instructions
.gemini/commands/{name}.toml # Custom slash commands → /{name}
.gemini/agents/{name}.yaml # Subagent definitions
Example .gemini/commands/review.toml:
description = "Run code review checklist"
prompt = "Review the following changes: !{git diff HEAD}"
AGENTS.md # Main instructions (Git root → cwd traversal)
AGENTS.override.md # Temporary override (highest priority)
~/.codex/AGENTS.md # Global fallback
.codex/agents/ # Custom agent definitions
AGENTS.md # Primary (auto-recognized)
CLAUDE.md # Also recognized (migration compatibility)
.opencode/agents/ # Custom agent definitions
opencode.json (instructions) # Glob-pattern file references
.cursor/rules/ # MDC format rules (replaces .cursorrules)
{name}.mdc # Frontmatter: description, globs, alwaysApply
AGENTS.md # Also supported for agent context
MDC frontmatter example:
---
description: "TypeScript coding standards"
globs: ["**/*.ts", "**/*.tsx"]
alwaysApply: false
---
Migration: If you have
.cursorrules, move content to.cursor/rules/*.mdc.
.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 recognized
.windsurfrules # Project rules (team-shareable)
.windsurf/rules/*.md # MDC frontmatter structured rules
.windsurf/workflows/*.md # Reusable task sequences → /{name}
AGENTS.md # Also recognized
Workflow 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 prefixes
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 command
Best Practice: Write universal content in AGENTS.md once, then import/reference it from tool-specific files to avoid duplication.
| 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:
npm test, pytest)cli/src/, /var/www/)Node.js 18, Python 3.11)| 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 |
Before committing changes to AI instruction files:
.cursorrules migrated to .cursor/rules/*.mdcAGENTS.md covers the universal baselineCLAUDE.md, AGENTS.md, GEMINI.md, or equivalent files.cursor/, .windsurf/, .github/copilot-instructions.md, etc.)If no AI instruction file found:
AGENTS.md for cross-tool projects, CLAUDE.md for Claude Code only.gitignore if contains sensitive infoAfter /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
| 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 |
This skill is released under CC BY 4.0.
Source: universal-dev-standards
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
claude-md, agents-md, cursor-rules, ai-instructions, developer-guide
57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsPrevent AI hallucination and ensure evidence-based responses when analyzing code or making suggestions.
Use when: analyzing code, making recommendations, providing options, or when user asks about confidence/certainty.
Not for: authoring the AI instruction files themselves — use /ai-instruction-standards; reviewing a concrete diff — use /code-review.
Keywords: certainty, assumption, inference, evidence, source.
/ai-friendly-architectureDesign AI-friendly architecture with explicit patterns, layered documentation, and semantic boundaries.
Use when: structuring projects for AI collaboration, optimizing codebase for AI analysis, setting up AI context.
Not for: writing the instruction files — use /ai-instruction-standards; language-conventional directory layout — use /project-structure-guide.
Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml.
/api-designGuide API design following REST, GraphQL, and gRPC best practices.
Use when: designing APIs, reviewing endpoints, API versioning decisions.
Not for: verifying a running API against its consumers — use /contract-test; schema design behind the API — use /database.
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning.
/atdd[UDS] Reference for Acceptance Test-Driven Development: INVEST criteria, Gherkin AC format, and Three Amigos structure.
Use when: defining acceptance criteria with a product owner, running a specification workshop, checking a user story against INVEST.
Not for: executing the ATDD lifecycle or enforcing PO sign-off gates — that moved to the adoption layer (XSPEC-095); writing unit tests — use /tdd.
Keywords: ATDD, acceptance test, acceptance criteria, INVEST, specification workshop, Three Amigos, 驗收測試驅動開發, 驗收條件, 規格工作坊.
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standardsOther plugins' skills for the same job