Final guide to create an AI-Optimized Editor Setup

A comprehensive guide on setting up and using prompts effectively in various AI-assisted coding editors.

AGENTS.md

  1. Create AGENTS.md in root of your project.
  2. Symlink AGENTS.md to CLAUDE.md for claude code support
ln -s AGENTS.md CLAUDE.md

This will now support most of the editors and Claude Code also.

Slash Commands & Custom Agents

  1. Create slash commands or custom agents under .ai/agents/<name>.md. This will be your slash command or custom agent for VS Code.
  2. Use symlink to add support for all editors & Claude Code.
mkdir -p .github && ln -s ../.ai/commands .github/agents
mkdir -p .cursor && ln -s ../.ai/commands .cursor/commands
mkdir -p .claude && ln -s ../.ai/commands .claude/commands

Rules

  1. Store rules under .ai/rules/<name>.instructions.md
  2. Cursor support via symlink
ln -s ../.ai/rules .cursor/rules
  1. Copilot support by adding this setting in .vscode/settings.json
{
  "chat.instructionsFilesLocations": {
    ".ai/rules": true
  },
}
Copilot calls it instructions and requires files to have .instructions.md suffix
Claude Code doesn't support rules
You might also want to have a look at prompts.