Skip to main content
PromptShift Official Logo
PromptShiftpromptshift.dev
1-Click Universal AI Project Bridge
Live Demo
⚑ THE 2026 STATE OF AI CODING RULESβ€’GRADE A MCP CERTIFIED

The Complete Guide to AI Coding Rules Formats

Modern software engineering teams rarely standardize on a single AI code editor. Tech leads work in Claude Code CLI, frontend engineers use Cursor, backend engineers use GitHub Copilot, and contributors use Windsurf.

This guide breaks down every major AI instruction format, explains why rules break when moving between editors, and shows how to keep your entire team synchronized with zero vendor lock-in.

01AI Rule Formats Comparison Matrix

EcosystemPrimary Config PathScoping MechanismCommon Pitfall
Cursor IDE.cursor/rules/*.mdc
.cursorrules
Glob-based (globs: "src/**/*.ts")Unquoted * in globs causes silent YAML parser failure
Anthropic Claude CodeCLAUDE.md
.claude/rules/*.md
Hierarchical markdown & XML tagsMonolithic files can bloat context and invalidate prompt cache
GitHub Copilot.github/copilot-instructions.md
.github/instructions/*.md
Repository-wide steering guidelinesDoes not read .cursorrules; requires dedicated .github path
Windsurf Cascade.windsurfrules
.windsurf/rules/*.md
Unified Cascade agent directivesPasting raw YAML frontmatter from .mdc confuses Cascade parser
Google Gemini & AntigravityGEMINI.md
AGENTS.md, .agents/rules/*.md
Agent role directives & system promptsRequires specific autonomy permission blocks
OpenAI Assistants & Custom GPTsOPENAI_SYSTEM_PROMPT.md
openai_assistant_v2.json
System prompt instructions (capped at 8k chars in web GPTs)8k character ceiling silently truncates trailing security rules

02Why Asking an LLM to Convert Rules Fails

1. Lost Negative Constraints

When an LLM summarizes a 500-line rulebook, constraints like "NEVER expose service_role" or "DO NOT use default exports" are summarized away first. PromptShift uses deterministic AST parsing to preserve 100% of negative constraints.

2. Silent YAML Parser Traps

In Cursor .mdc files, an unquoted asterisk (globs: *.tsx) starts a YAML alias anchor. Cursor silently fails and disables the rule completely. PromptShift validates and quotes every frontmatter glob.

3. Leaked API Credentials

Developers frequently paste curl snippets with real API keys into .cursorrules. PromptShift scans in RAM and automatically redacts 15+ token formats (sk-*, AKIA*, ghp_*) before writing target files.

0320 Supported Conversion Bridges

04Frequently Asked Questions

How do I convert Cursor rules (.cursorrules, .mdc) to Claude Code (CLAUDE.md)?+

You can convert your Cursor rules in 1 click at https://promptshift.dev or run `npx promptshift --to=claude` in your terminal. PromptShift parses your .cursor/rules/*.mdc files, preserves all negative constraints with 98.5% AST parity, strips YAML frontmatter, and formats a clean CLAUDE.md and .claude/mcp.json file.

How does real-time sync-on-save work with PromptShift?+

Run `npx promptshift --watch` (or `-w`) in a background terminal. PromptShift watches your rule files in real-time. Whenever you press Ctrl+S in Cursor or your editor, your other AI assistant guidelines (CLAUDE.md, copilot-instructions.md, .windsurfrules) are updated automatically in ~0.02s.

Can I use Cursor rules in GitHub Copilot or Windsurf?+

Yes. GitHub Copilot reads .github/copilot-instructions.md, while Windsurf reads .windsurfrules. PromptShift translates your Cursor rules into both formats simultaneously, ensuring all developers on your team follow identical coding standards regardless of which AI editor they use.

How does PromptShift prevent API key leaks in AI rules?+

Developers frequently paste example curl commands or .env snippets into AI rulebooks. PromptShift includes a zero-retention in-RAM secret sanitizer that detects and redacts 15+ sensitive credential formats (OpenAI, Anthropic, AWS, Stripe, GitHub, HuggingFace tokens) before any file is written to disk.

What is the Glama Grade A MCP Server for PromptShift?+

PromptShift is Grade-A verified on the official Glama MCP Registry (https://glama.ai/mcp/servers/topaisaas-dev/promptshift). It allows Claude Desktop and Cursor agents to call `promptshift_transpile`, `promptshift_sanitize_secrets`, and `promptshift_validate_ast` directly over STDIO with zero external dependencies and zero disk retention.

Sync Every AI Editor Across Your Team in 2 Seconds

Start free up to 2 files with zero signup, or unlock unlimited multi-file repositories + the 50+ Master Rules Vault ($4.99 value included free) via Polar.sh.