auto generate instruction for cursor / copilot.
interface RuleBlock {
title: string // Rule title
slug: string // URL-friendly unique identifier
content: string // Concise rule content, key points separated by commas
tags: string[] // Tags for categorization and search
importance: 'must' | 'should' | 'may' // RFC 2119 style importance level
source?: string // Original source link (optional)
author: {
name: string // Author name
url: string // Author homepage
avatar: string // Author avatar URL
}
}
Rule block design principles:
- Concise content: Each rule should express core concepts concisely
- Traceable source: Link to complete documentation through source field
- Importance levels: Use RFC 2119 style must/should/may to indicate priority
- Searchability: Use tags for multi-dimensional categorization
- detect current project and generate instruction
- support multiple AI assistants (Copilot, Cursor)
- search by keywords and add predefined instructions
- support search and add predefined instructions
- auto update rules
- support custom rules
- add fundamental programming principles (e.g., KISS, DRY, SOLID, Zen of Python)
- search rules
Key | Description | Type | Default |
---|---|---|---|
ai-rules.cursorRules |
Generate for Cursor Editor instead of GitHub Copilot | boolean |
false |
ai-rules.enableAutoDetect |
Automatically detect and prompt to create AI config files | boolean |
true |
Command | Title |
---|---|
ai-rules.searchRules |
AI Rules: Search AI Rules |
ai-rules.clearGlobalState |
AI Rules: Clear Extension State |
ai-rules.createRule |
AI Rules: Create New Rule |
ai-rules.editRule |
AI Rules: Edit Rule |
ai-rules.deleteRule |
AI Rules: Delete Rule |
ai-rules.applyRule |
AI Rules: Apply Rule |
- clone the repo and run
pnpm install
to install the dependencies. - install vscode recommended extensions.
- run
pnpm dev
to start the extension.