A comprehensive collection of AI coding rules and workflows for Cursor IDE, designed to enhance development productivity through specialized AI agents.
This repository contains specialized AI coding rules that transform how you interact with AI in development environments. Each rule focuses on specific development tasks for more effective AI assistance.
- Choose your installation method (see Installation section below)
- Pick a rule from the categories that match your needs
- Use in Cursor with
@rule-nameto activate specific behaviors - Explore examples in the Usage section for each category
- New Project:
@spec-workflow→@6A-workflow→@ultrathink - Code Excellence:
@ultrathink→@code-expert→@linus-coding-style - AI Prompt Crafting:
@depth-method→@ai-prompts-optimization - Deep Analysis:
@first-principles-thinking→@deep-unconstrained-analysis - Documentation:
@prd-writer→@content-writer→@markdown-generator - Learning & Growth:
@chatgpt-study-mode→@human-3.0-assessment
Spec Workflow → spec-workflow.md
Systematic spec-driven development workflow that transforms feature ideas into requirements, design, and implementation plans through a 3-phase iterative process.
5-mode AI development collaboration framework (RESEARCH → INNOVATE → PLAN → EXECUTE → REFLECT) designed to prevent unauthorized code changes while maintaining structured development processes.
6A Workflow → 中文
Comprehensive 6-stage development process (Align → Architect → Atomize → Approve → Automate → Assess) for complex project management and systematic implementation.
Ultrathink → ultrathink.md
Steve Jobs-inspired philosophy for coding excellence, emphasizing elegant solutions, obsessive attention to detail, and relentless iteration to create "insanely great" software.
Code Expert → code-expert.md
Advanced development guidelines emphasizing incremental progress, test-driven development, and pragmatic code quality standards for professional software development.
Code Refactorer → code-refactorer.md
Improves existing code structure, readability, and maintainability without changing functionality through systematic analysis and risk-managed improvements.
Linus Coding Style → 中文
Embodying Linus Torvalds' philosophy for code quality, focusing on "good taste," simplicity, and eliminating special cases through better data structures.
PRD Writer → prd-writer.md
Creates comprehensive Product Requirements Documents (PRDs) with structured sections, user stories, and acceptance criteria following industry best practices.
Content Writer → content-writer.md
Content marketing and copywriting agent with dual modes (outline/write) optimized for creating engaging, informative content that explains complex topics clearly.
Message Card Designer → 中文
Specialized UI designer for creating glassmorphism-style message cards with advanced visual design principles and responsive layouts.
Markdown Generator → 中文
Professional editor that transforms plain text into well-structured, highlighted Markdown documents with clear hierarchy and emphasized key points.
Narrative Visualization → 中文
"Narrative Visualization Director" that converts speeches and presentations into immersive HTML slideshow experiences with story-driven visual design.
Lei Jun Style Speech → 中文
Speech generator mimicking Lei Jun's presentation style, featuring data-driven narratives, grand storytelling, and emotional resonance with precise quantification.
Educational AI assistant designed to guide learning through questions, hints, and collaborative discovery rather than providing direct answers.
American Buddy Language Coach → American-Buddy-Language-Coach.md
Friendly American English language coach specializing in casual conversation, slang, idioms, and cultural references for immersive language learning.
Book Recommendation Expert → Book-Recommendation-Expert.md
Personalized book recommendation system that provides detailed book analysis, benefits, and tailored suggestions across various genres and interests.
HUMAN 3.0 Assessment → [Dan-Koe-HUMAN 3.0 Self-Discovery & Metatype Test.md](Dan-Koe-HUMAN 3.0 Self-Discovery & Metatype Test.md)
Comprehensive personal development assessment framework evaluating Mind, Body, Spirit, and Vocation quadrants to identify your Metatype and provide actionable transformation strategies.
First Principles Thinking → Analyze Questions Using First Principles Thinking.md
Analyzes questions by breaking them down to fundamental truths and essential concepts, approaching problems with physicist-like rationality.
Mundell-Fleming Trilemma Analysis → Analyze the problem using the Mundell-Fleming Trilemma.md
Economic analysis framework revealing structural contradictions and trade-offs between capital mobility, fixed exchange rates, and independent monetary policy.
Deep Unconstrained Analysis → In-Depth Analysis Free from Conventional Constraints.md
Provides thorough, fundamental reasoning starting from first principles, human instincts, and real-world operating rules without conventional constraints.
Written-to-Spoken Transformation → Transform written expressions into spoken ones.md
Transforms formal written text into natural spoken language while maintaining meaning, emphasizing conversational flow over grammatical perfection.
GPT GeniusBoost → GPT-GeniusBoost.md
Advanced AI assistant designed for highly intelligent users seeking comprehensive, in-depth analysis and detailed explorations of complex topics across all domains.
DEPTH Method → best-practice.md
Prompt optimization framework using Define perspectives, Establish metrics, Provide context, Task breakdown, and Human feedback loops for superior AI outputs.
AI Prompts Optimization → AI Prompts Optimization.md
Master-level prompt optimization specialist (Lyra) using the 4-D methodology (Deconstruct, Diagnose, Develop, Deliver) to transform vague inputs into precision-crafted prompts.
Project Naming Master → Project-Naming-Master.md
Expert in creating memorable, meaningful project names using multiple languages, mythology, and creative word formation techniques.
# Create rules directory
mkdir -p .cursor/rules
# Copy specific rule files
cp spec-workflow.md .cursor/rules/
cp code-expert.md .cursor/rules/
# ... copy other rules as needed# Clone the repository
git clone https://github.com/yourusername/cursor-spec-workflow-rule.git
# Create rules directory
mkdir -p .cursor/rules
# Create symbolic links to all rules
ln -s /path/to/cursor-spec-workflow-rule/*.md .cursor/rules/# Add as submodule
git submodule add https://github.com/yourusername/cursor-spec-workflow-rule.git .cursor/ai-rules
# Create symbolic links
ln -s .cursor/ai-rules/*.md .cursor/rules/# Download specific rules directly
curl -o .cursor/rules/spec-workflow.md https://raw.githubusercontent.com/yourusername/cursor-spec-workflow-rule/main/spec-workflow.mdReference specific rules using the @ symbol in Cursor:
@spec-workflow I want to create a spec for user authentication
@riper-5-workflow Help me plan a new feature systematically
@6A-workflow I need to implement a complex system with proper architecture
@ultrathink Help me design an elegant solution for this problem
@code-expert Review this code and suggest improvements
@code-refactorer Help me clean up this messy function
@linus-coding-style Analyze this code for "good taste" and simplicity
@prd-writer Create a PRD for our new dashboard feature
@content-writer Help me write technical documentation
@markdown-generator Convert this text into well-structured Markdown
@narrative-visualization Transform this presentation into an HTML slideshow
@lei-jun-speech Create a Lei Jun-style product launch speech
@chatgpt-study-mode Help me understand this concept through guided learning
@american-buddy-language-coach Practice casual English conversation
@book-recommendation-expert Recommend books for learning software architecture
@human-3.0-assessment Assess my personal development across all life domains
@first-principles-thinking Analyze this problem from fundamental truths
@mundell-fleming-trilemma Analyze this economic policy trade-off
@deep-unconstrained-analysis Provide deep reasoning without conventional constraints
@written-to-spoken Transform this formal text into natural speech
@gpt-geniusboost Provide comprehensive analysis of this complex topic
@depth-method Optimize my prompt using the DEPTH framework
@ai-prompts-optimization Transform my vague request into a precise prompt
@project-naming-master Help me find a great name for my new project
| Rule | Category | Best For | Duration | Language |
|---|---|---|---|---|
| Spec Workflow | Development | Feature planning | Multi-session | EN |
| RIPER-5 | Development | Controlled development | Per-task | EN/CN |
| 6A Workflow | Development | Complex project management | Multi-session | CN |
| Ultrathink | Code Quality | Elegant design & excellence | Ongoing | EN |
| Code Expert | Code Quality | Professional development | Per-task | EN |
| Code Refactorer | Code Quality | Code improvement | Single session | EN |
| Linus Coding Style | Code Quality | Code quality analysis | Single session | CN |
| PRD Writer | Documentation | Product documentation | Single session | EN |
| Content Writer | Documentation | Technical writing | 1-2 sessions | EN |
| Message Card Designer | Documentation | UI design | Single session | CN |
| Markdown Generator | Documentation | Text formatting | Single session | CN |
| Narrative Visualization | Documentation | Presentation design | Single session | CN |
| Lei Jun Speech | Documentation | Product launch speeches | Single session | CN |
| ChatGPT Study Mode | Learning | Educational guidance | Per-session | EN/CN |
| American Buddy | Learning | Language learning | Ongoing | EN |
| Book Recommendation | Learning | Reading suggestions | Single session | EN |
| HUMAN 3.0 Assessment | Learning | Personal development | Multi-session | EN |
| First Principles | Thinking | Fundamental analysis | Per-query | EN |
| Mundell-Fleming | Thinking | Economic analysis | Per-query | EN |
| Deep Unconstrained | Thinking | Deep reasoning | Per-query | EN |
| Written-to-Spoken | Thinking | Language transformation | Per-query | EN |
| GPT GeniusBoost | AI Enhancement | Deep analysis | Per-query | EN |
| DEPTH Method | AI Enhancement | Prompt optimization | Per-query | EN |
| AI Prompts Optimization | AI Enhancement | Prompt refinement | Per-query | EN |
| Project Naming Master | Tools | Project naming | Single session | EN |
- Fork the repository
- Create a feature branch
- Follow the established rule format with YAML frontmatter
- Submit a pull request
This project is open source and available under the MIT License.