Skip to content

ygqygq2/turbo-ai-rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

155 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Turbo AI Rules

Turbo AI Rules Logo

πŸš€ Sync AI coding rules from external Git repositories and automatically generate configuration files for various AI tools

Visual Studio Marketplace Version VS Code Marketplace Installs OpenVSX Downloads License

English | δΈ­ζ–‡ζ–‡ζ‘£


✨ Features

  • 🌐 Multi-Source Support - Sync rules from multiple Git repositories
  • πŸ”„ Auto Sync - Schedule or manually sync rule updates
  • 🎯 Smart Adapters - Generate configs for Cursor, Copilot, Continue, and custom tools
  • 🧠 Skills Support - Full support for AI agent skills (Cursor Skills, Copilot Skills)
    • Directory structure preservation with skill.md detection
    • Automatic resource copying (images, configs, etc.)
    • Source filtering for multi-repository skills management
  • πŸ” Rule Search - Quickly find and browse rules
  • πŸ” Private Repos - Support Token authentication
  • πŸ“Š Visual Management - Tree view and status bar integration
  • 🌍 Multi-Language - UI supports English/Chinese

🎨 Enhanced UI Features

  • Welcome Page - First-launch guide with quick start steps and template library
  • Statistics Dashboard - Visual analytics with charts, metrics, and export capabilities
  • Rule Details Panel - Comprehensive rule inspector with metadata and content preview
  • Advanced Search - Multi-criteria search with history, filters, and export (JSON/CSV)
  • Rule Selection - Batch select rules via UI and sync to multiple adapters
  • Tree View - Priority icons, tooltips, context menus (edit/test/toggle/copy/export)
  • Status Bar - Multi-state indicator with progress feedback and quick actions

πŸš€ Quick Start

⚠️ Multi-root Workspace Limitation: This extension currently has limited support for multi-root workspaces. It's recommended to use it in single workspace environments. Learn more

1. Install Extension

Search for Turbo AI Rules in VS Code Extension Marketplace and install.

2. Add a Rule Source

Method 1: Via Status Bar

  • Click Turbo AI Rules status bar icon β†’ Select Add Source

Method 2: Via Command Palette

  • Press Ctrl+Shift+P (Mac: Cmd+Shift+P)
  • Type Turbo AI Rules: Add Source

Enter your Git repository information:

Repository URL: https://github.com/username/ai-rules.git
Branch:         main (optional)
Subpath:        rules (optional, e.g., rules or docs/rules)
Display Name:   My Rules (optional)
Access Token:   ghp_xxxx (for private repos only)

3. Sync Rules

After adding a source, sync is triggered automatically. You can also manually sync:

  • Command Palette: Turbo AI Rules: Sync Rules
  • Status Bar: Click Turbo AI Rules β†’ Sync Rules

4. Verify Generated Files

Check your workspace root directory:

workspace/
β”œβ”€β”€ .cursorrules  # βœ… Cursor config (generated by default)

Note: Only Cursor adapter is enabled by default. To use other AI tools, enable the corresponding adapters in settings (Command Palette: Turbo AI Rules: Manage Adapters).


πŸ“– Documentation

πŸ“˜ User Guide

πŸ› οΈ Developer Guide (Chinese)


⚑ Core Concepts

Supported AI Tools

Tool Config File Default Status Description
Cursor .cursorrules βœ… Enabled AI-first code editor
Windsurf .windsurfrules βš™οΈ Disabled Codeium AI IDE
GitHub Copilot .github/copilot-instructions.md βš™οΈ Disabled GitHub official AI pair programmer
Continue .continuerules βš™οΈ Disabled Open-source AI coding assistant (VSCode ext)
Cline .clinerules βš™οΈ Disabled Autonomous coding agent (formerly Claude Dev)
Roo-Cline .roorules βš™οΈ Disabled Enhanced fork of Cline
Aider .aider.conf.yml βš™οΈ Disabled AI pair programming in the terminal
Bolt.new .bolt/prompt βš™οΈ Disabled StackBlitz AI-powered full-stack development
Cursor Skills .cursor/skills βš™οΈ Disabled Cursor AI skills library
GitHub Copilot Skills .github/skills βš™οΈ Disabled GitHub Copilot agent skills
Custom Adapters Configurable βš™οΈ On-demand Support any AI tool with custom configuration

Rule File Format

The extension supports dual-mode parsing for flexibility and manageability:

Relaxed Mode (Default)

βœ… Compatible with existing community rule files (e.g., awesome-cursorrules) βœ… Frontmatter is optional, supports pure Markdown files βœ… Automatically extracts metadata from filename/content

Standard format (Cursor/Copilot community standard):

---
description: TypeScript best practices guide
globs: **/*.{ts,tsx}
---

# TypeScript Best Practices

Use camelCase for variables...

Pure Markdown (no frontmatter):

# TypeScript Best Practices

Use camelCase for variables...

Strict Mode (Optional)

For enterprise-level rule library management requiring precise control:

---
id: typescript-naming      # Required: kebab-case format
title: TypeScript Naming   # Required
description: TypeScript best practices guide
globs: **/*.{ts,tsx}
priority: high             # Optional: low/medium/high
tags: [typescript, naming] # Optional
---

# TypeScript Naming Conventions

Use camelCase for variables...

Enable strict mode:

{
  "turbo-ai-rules.parser.strictMode": true,
  "turbo-ai-rules.parser.requireFrontmatter": true
}

πŸ“– Detailed documentation: Rule File Format


🎯 Use Cases

  • πŸ“¦ Team Collaboration - Share coding standards across team projects
  • πŸŽ“ Learning - Apply best practices from community rule repositories
  • πŸ”„ Multi-Project - Sync same rules across multiple projects
  • πŸ› οΈ Custom Tools - Support any AI tool with custom adapters

⚠️ Known Limitations

Multi-root Workspace Support

This extension currently has limited support for multi-root workspaces (VS Code workspaces with multiple project folders).

Current Behavior:

  • βœ… Extension can be activated in multi-root workspaces
  • ⚠️ Only the first workspace folder will be used for operations
  • ⚠️ User confirmation required before sync/generate operations
  • ❌ Cannot guarantee correct behavior across all workspace folders

Recommended Usage:

  • πŸ“ Use in single workspace environments for best experience
  • πŸ”„ Open each project folder separately when using this extension

Why This Limitation?

  • Rule selection state management becomes complex in multi-root scenarios
  • Workspace context can be lost when switching between webviews and editors
  • Maintaining simplicity and reliability for the primary use case

Future Plans: We may add full multi-root workspace support in future versions based on user feedback.


🀝 Contributing

Contributions are welcome! Please read our Contributing Guide.

Ways to contribute:

  • πŸ› Report bugs via GitHub Issues
  • πŸ’‘ Suggest features
  • πŸ“ Improve documentation
  • πŸ”§ Submit pull requests

πŸ“š Resources


πŸ“„ License

This project is licensed under MIT License. See LICENSE for details.


πŸ’¬ Support


⭐ If this project helps you, please give it a Star! ⭐

Made with ❀️ by ygqygq2

About

VSCode extension for managing AI rules.

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors