A collection of reusable rules and knowledge documents for AI coding assistants like Claude Code and Cursor, with comprehensive Azure DevOps workflow support.
Actionable rules for AI assistants to follow during development:
Development Workflows (Credit: @vincenthopf)
- commit.mdc - Standard commit with conventional format and emojis
- commit-fast.mdc - Fast commit workflow that auto-selects the first message
- add-to-changelog.mdc - Structured changelog updates following Keep a Changelog format
- pr-review.mdc - Multi-role pull request review checklist
Azure DevOps Workflows
- azdo-commit.mdc - Azure DevOps commit workflow with work item linking
- azdo-pull-request-review.mdc - Comprehensive PR review for Azure DevOps
- azdo-sprint-management.mdc - Complete sprint planning, tracking, and retrospectives
- azdo-pipeline-management.mdc - Azure Pipelines CI/CD management
Code Quality & Analysis
- check.mdc - Comprehensive code quality checks across different languages
- clean.mdc - Fix all formatting and linting issues
- code-analysis.mdc - Advanced multi-faceted code analysis options
Problem Solving & Implementation
- analyze-issue.mdc - GitHub issue analysis and implementation specification
- bug-fix.mdc - Complete bug-fixing workflow from issue to PR
- azdo-work-item-analysis.mdc - Azure DevOps work item analysis and specifications
- azdo-bug-fix.mdc - Complete Azure DevOps bug-fixing workflow
- implement-task.mdc - Methodical task implementation approach
- five.mdc - Five Whys root cause analysis technique
Documentation & Visualization
- create-docs.mdc - Comprehensive documentation generation
- mermaid.mdc - Mermaid diagram generation for various visualizations
Project Setup & Meta
- context-prime.mdc - Load project context comprehensively
- create-command.mdc - Guide for creating new custom commands
- continuous-improvement.mdc - Systematic approach for improving AI assistant rules
- cursor-rules-meta-guide.mdc - Guidelines for creating and maintaining Cursor rules
Automation & Integration
- mcp-inspector-debugging.mdc - Debugging MCP servers with Inspector UI
- safari-automation.mdc - Advanced Safari browser automation techniques
- screenshot-automation.mdc - AppleScript patterns for automated screenshots
Language-Specific
- modern-swift.mdc - Modern SwiftUI architecture following Apple's latest best practices (Inspired by Dimillian's "Forget MVVM")
Reference documentation and knowledge bases:
-
Swift Development
- swift-observable.mdc - Migration guide from ObservableObject to @Observable macro
- swift-observation.mdc - Swift Observation framework documentation
- swift-testing-api.mdc - Swift Testing framework API reference
- swift-testing-playbook.mdc - Comprehensive guide for migrating to Swift Testing
- swift-argument-parser.mdc - Swift Argument Parser framework documentation
- swift6-migration.mdc - Guide for migrating to Swift 6 with concurrency
-
MCP Development
- mcp-best-practices.mdc - Best practices for building Model Context Protocol servers
- mcp-releasing.mdc - Guide for releasing MCP servers as NPM packages
-
Azure DevOps
- azure-devops-cli-reference.mdc - Comprehensive Azure DevOps CLI commands and best practices
Global Claude Code configuration and automation scripts (place in ~/.claude/CLAUDE.md):
- github-issue-creation.mdc - Creating well-structured GitHub issues (Credit: @nityeshaga)
- azdo-work-item-creation.mdc - Creating well-structured Azure DevOps work items
- mcp-peekaboo-setup.mdc - Setup guide for Peekaboo vision-enabled MCP server
- terminal-title-wrapper.zsh - ZSH wrapper for dynamic terminal titles
- mcp-sync.sh - Script to sync MCP servers across Claude installations
- mcp-sync-rule.md - Documentation for MCP sync functionality
- Copy any
.mdcfile fromproject-rules/to your project's.cursor/rules/directory - Cursor will automatically apply rules based on the glob patterns in the frontmatter
- Rules with
alwaysApply: truewill be active for all files - Documentation from
docs/can be referenced or imported as needed
- Copy the content of any
.mdcfile (excluding the frontmatter) into yourCLAUDE.mdfile - Or reference the entire file using the
@importsyntax in yourCLAUDE.md - Place in your project root or
~/.claude/CLAUDE.mdfor global rules - Both project rules and documentation can be included
- Prerequisites: Install Azure CLI (
az) and configure authentication - Project Setup: Use Azure DevOps-specific rules (
azdo-*.mdc) for work item workflows - Integration: Configure Azure CLI with your organization and project settings
- Work Item Linking: Enable automatic work item state updates via git commit hooks
- Pipeline Integration: Use Azure DevOps pipeline rules for CI/CD workflows
# Install Azure CLI (if not already installed)
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Login and configure with your organization and project
az login
az extension add --name azure-devops
az devops configure --defaults organization=https://dev.azure.com/yourorg project=YourProject
# Add Azure DevOps rules to your project
cp project-rules/azdo-*.mdc /path/to/your/project/These are powerful global rules that can be placed in ~/.claude/CLAUDE.md to enhance Claude Code's capabilities across all projects. Based on strategies from "Commanding Your Claude Code Army".
Transforms feature descriptions into well-structured GitHub issues following best practices.
- Credit: @nityeshaga
- Features: Repository research, convention analysis, automatic
gh issue createintegration - Usage: Provide a feature description and repository URL
Transforms feature descriptions into well-structured Azure DevOps work items following organizational best practices.
- Features: Repository analysis, work item type selection, automatic
az boardsintegration - Usage: Provide requirements and project context
- Work Item Types: Epic, Feature, PBI/User Story, Task, Bug
Automated setup for the Peekaboo vision-enabled MCP server.
- Features: Screenshot capture with AI analysis, dual provider support (OpenAI/Ollama)
- Security: Secure API key extraction from
~/.zshrc - Requirements: Node.js 20.0+, macOS 14.0+
Dynamic terminal titles for better multi-instance organization.
- Features: Shows
~/path/to/project β Claudeformat - Implementation: ZSH wrapper function (
cly) with background title persistence - Benefits: Easy identification of multiple Claude instances
-
Create Claude configuration directory:
mkdir -p ~/.claude -
Set up global rules:
# Create or edit global CLAUDE.md nano ~/.claude/CLAUDE.md # Add desired rules from this repository
-
For terminal title management:
# Copy wrapper script cp global-rules/terminal-title-wrapper.zsh ~/.config/zsh/claude-wrapper.zsh mkdir -p ~/.config/zsh # Add claude-wrapper.zsh content # Source in ~/.zshrc echo '[[ -f ~/.config/zsh/claude-wrapper.zsh ]] && source ~/.config/zsh/claude-wrapper.zsh' >> ~/.zshrc
Feel free to contribute your own rules! Please ensure they:
- Use the
.mdcextension - Include proper YAML frontmatter with
description,globs, andalwaysApplyfields - Contain clear, actionable instructions
- Are generic enough to be reused across projects
- Are placed in the appropriate directory:
project-rules/for actionable AI assistant rulesdocs/for reference documentation
This repository uses the .mdc (Markdown with Configuration) format, which provides a unified approach that works seamlessly with both Claude Code and Cursor:
- Cursor natively supports
.mdcfiles with YAML frontmatter for rule configuration - Claude Code reads the markdown content, ignoring the frontmatter metadata
- The YAML frontmatter provides optional metadata (description, file globs, alwaysApply) that Cursor uses for intelligent rule application
- Standard markdown content ensures compatibility across different AI assistants
This unified format means you can use the same rule files in both tools without modification.
MIT License - See LICENSE for details