Import and use rules from other AI coding assistants (Cursor, Windsurf, Copilot, Aider) in Claude Code
npx claudepluginhub mirzaaghazadeh/claude-code-external-rulesImport and use rules from other AI coding assistants (Cursor, Windsurf, Copilot, Aider) in Claude Code
Claude Code plugins for the Slidev presentation framework
Bundled plugins for actuating and debugging the Chrome browser.
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Import and reuse your existing AI coding rules from Cursor, Windsurf, GitHub Copilot, and Aider in Claude Code.
Stop maintaining duplicate rule files for different AI tools. External Rules automatically imports your existing coding guidelines and conventions into every Claude Code conversation.
Modern development teams often use multiple AI coding assistants. Each tool has its own configuration format for coding rules and guidelines:
.cursor/rules/*.mdc files.windsurfrules.github/copilot-instructions.mdCONVENTIONS.mdMaintaining separate files with the same content is tedious and error-prone. This plugin solves that problem by allowing Claude Code to read rules from any of these sources automatically.
| Source | File Location | Format |
|---|---|---|
| Cursor | .cursor/rules/*.mdc | MDC (Markdown + frontmatter) |
| Windsurf | .windsurfrules | Plain text or Markdown |
| GitHub Copilot | .github/copilot-instructions.md | Markdown |
| Aider | CONVENTIONS.md | Markdown |
Add this marketplace to Claude Code, then install the plugin:
# Add the marketplace
/plugin marketplace add https://gitlab.com/mirzaaghazadeh/claude-code-external-rules.git
# Install the plugin
/plugin install external-rules
Install directly from this repository:
/plugin install https://github.com/mirzaaghazadeh/claude-code-external-rules.git
Clone the repository to your Claude Code plugins directory:
# Navigate to your Claude Code plugins directory
cd ~/.claude/plugins
# Clone the plugin
git clone https://github.com/mirzaaghazadeh/claude-code-external-rules.git external-rules
Restart Claude Code or reload plugins.
To auto-install for all team members, add to your project's .claude/settings.json:
{
"plugins": {
"marketplaces": [
"mirzaaghazadeh/claude-code-external-rules"
]
}
}
Configure the plugin by running the configuration command:
/external-rules
Select your sources: Choose which AI IDE rules to import when prompted.
Start coding: Your rules are now automatically included in every Claude Code conversation.
That's it! The plugin handles everything else automatically.
Configuration is stored in .claude/external-rules.local.md in your project root:
---
enabled: true
cursor: true
windsurf: false
copilot: true
aider: false
---
# External Rules Configuration
Enabled sources will be imported into Claude Code context.
Run `/external-rules` to change settings.
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | false | Master switch for the plugin |
cursor | boolean | false | Import rules from .cursor/rules/ |
windsurf | boolean | false | Import rules from .windsurfrules |
copilot | boolean | false | Import rules from .github/copilot-instructions.md |
aider | boolean | false | Import rules from CONVENTIONS.md |
Add the settings file to your .gitignore to keep configuration local:
# Claude Code local settings
.claude/*.local.md
/external-rulesConfigure which external AI IDE rules to import.