Modh
AboutServicesWorkPlaybookResourcesBook a call
Book a call
Agent Skills/Universal/Cross-Editor AI Setup
Universalbeginner4 min

settings-2 Cross-Editor AI Setup

Ensure AI configuration works across Claude Code, Cursor, Copilot, Windsurf, and Codex. Use when creating AGENTS.md files, adding skills, setting up project rules, or discussing cross-editor compatibility. Enforces the @import convention and single-source-of-truth strategy.

Install this skill

git submodule add https://github.com/modh-labs/playbook.git .playbook

One submodule installs all 17 skills. Reference .playbook/skills/cross-editor-setup/SKILL.md from your AGENTS.md.


Cross-Editor Setup Skill

When This Skill Activates

This skill automatically activates when you:

  • Create a new AGENTS.md file in any directory
  • Create or modify a skill in .claude/skills/
  • Discuss Cursor vs Claude Code vs Copilot vs Windsurf configuration
  • Set up project rules for a new directory or package

Core Rule: AGENTS.md is the Source of Truth

Every directory that needs AI context has two files:

AGENTS.md   <- real file (source of truth, Cursor/Copilot/Codex read natively)
CLAUDE.md   <- contains "@AGENTS.md" (Claude Code resolves the import)

Why: Most AI coding agents read AGENTS.md natively (root and subdirectories). Claude Code reads CLAUDE.md and uses @ import syntax to resolve the content from AGENTS.md. One source of truth, all editors served.

Cross-Agent Compatibility

AgentConfig LocationFormatNotes
Claude Code.claude/skills/ + CLAUDE.mdYAML frontmatter + MDReads CLAUDE.md, resolves @AGENTS.md imports
Cursor.claude/skills/ (Import Agent Skills toggle)SameReads AGENTS.md natively + .cursor/rules/
GitHub Copilot.github/copilot-instructions.md + AGENTS.mdPlain MDReads AGENTS.md natively in all directories
Windsurf.windsurfrules or .windsurf/rules/Plain MDProject-level rules file or rules directory
CodexAGENTS.mdPlain MDReads AGENTS.md natively

What Goes Where

Config TypeLocationClaude CodeCursorCopilotWindsurfAction
Core project rulesAGENTS.md (root)Via @AGENTS.md in CLAUDE.mdNativeNativeCopy to .windsurfrulesEdit AGENTS.md
Directory context<dir>/AGENTS.mdVia <dir>/CLAUDE.md importNativeNativeNot supportedEdit AGENTS.md
AI skills.claude/skills/*/SKILL.mdNativeNative (toggle)Not supportedNot supportedNo duplication needed
Cursor-only rules.cursor/rules/*.mdcNot readNativeNot readNot readOnly Cursor-specific behavior
Copilot instructions.github/copilot-instructions.mdNot readNot readNativeNot readCopilot-specific overrides
Windsurf rules.windsurfrulesNot readNot readNot readNativeWindsurf-specific overrides

When Creating New Directory Context

Follow this exact sequence:

  1. Write AGENTS.md with the directory context content
  2. Create CLAUDE.md in the same directory with just one line:
    @AGENTS.md
    
  3. Verify: cat AGENTS.md shows your content, cat CLAUDE.md shows @AGENTS.md

Setting Up Each Editor

Claude Code (works out of the box)

No extra setup needed. Claude Code reads:

  • Root CLAUDE.md (which imports AGENTS.md)
  • All CLAUDE.md files in subdirectories
  • All .claude/skills/*/SKILL.md files

Cursor

One manual step for team members:

Cursor Settings > Rules > "Import Agent Skills" -- Enable this toggle.

This makes Cursor scan .claude/skills/ for all SKILL.md files and use them the same way Claude Code does. Cursor also reads AGENTS.md natively in root and subdirectories.

GitHub Copilot

  1. Create .github/copilot-instructions.md with project-wide instructions
  2. Copilot reads AGENTS.md files natively in all directories
  3. For skills, you may need to reference key rules in copilot-instructions.md since Copilot does not read .claude/skills/

Windsurf

  1. Create .windsurfrules in the project root with core project rules (copy key content from AGENTS.md)
  2. Alternatively, create .windsurf/rules/ directory with multiple rule files
  3. Windsurf does not read AGENTS.md or .claude/skills/, so critical rules must be duplicated

Codex (OpenAI)

No extra setup needed. Codex reads AGENTS.md natively. It does not read .claude/skills/, so skills are not available.

NEVER Do These

  • NEVER put content directly in CLAUDE.md — it should only contain @AGENTS.md. All content goes in AGENTS.md.
  • NEVER create AGENTS.md and CLAUDE.md with different content — that causes drift.
  • NEVER duplicate skills into .cursor/rules/ — Cursor reads .claude/skills/ natively when "Import Agent Skills" is enabled.
  • NEVER skip creating CLAUDE.md when adding an AGENTS.md — Claude Code users won't get the context.
  • NEVER maintain the same rules in 4 different formats — pick AGENTS.md as the source of truth and only duplicate to editor-specific files when that editor cannot read AGENTS.md.

Skills: Zero Duplication (Claude Code + Cursor)

Skills in .claude/skills/*/SKILL.md work in both Claude Code and Cursor. The frontmatter format is compatible:

---
name: skill-name
description: When this skill activates...
allowed-tools: Read, Grep, Glob
---

Both Claude Code and Cursor use the description field to decide when to load the skill. No transformation or conversion needed.

For editors that do not support .claude/skills/ (Copilot, Windsurf, Codex), extract the most critical rules into their respective config files. Accept that full skill parity across all editors is not practical — focus on getting the core rules right everywhere.

Maintenance Checklist

When adding a new AGENTS.md to a directory:

  • AGENTS.md contains all the content
  • CLAUDE.md exists in the same directory with only @AGENTS.md
  • Content is tested in at least one editor (Claude Code or Cursor)

When adding a new skill:

  • Created in .claude/skills/<name>/SKILL.md
  • Has YAML frontmatter with name and description
  • Verified Cursor picks it up (Settings > Rules > Import Agent Skills)

Related Skills

search-check

Code Review

Run educational code reviews against your project's quality standards. Use when reviewing PRs, checking current branch before pushing, or doing batch quality sweeps across all open PRs. Applies observability, testing, SOLID, type safety, security, business logic, and clean code checks with pass/fail verdicts. Produces actionable findings with real-world impact explanations, not just "best practice" citations.

Universal
palette

Premium UI Design Engineering

Premium UI/UX design engineering skill. Overrides default LLM design biases with tunable dials for variance, motion, and density. Enforces anti-AI-tell patterns, strict typography rules, color calibration, layout diversification, performance guardrails, and comprehensive design audit checklists. Framework-agnostic.

Universal
layout-dashboard

Internal Tools Design

Use when building or modifying admin dashboards, internal tools, ops panels, or back-office UIs. Enforces scannability, data density, tactile feedback, and dark-mode-safe patterns calibrated for daily-use operational tools.

Universal
←Back to Agent Skills