agentsVerified
Agent Rules for Claude Code & Cursor
Comprehensive rules and knowledge base for working better with AI coding agents like Claude Code and Cursor, maintained by Peter Steinberger.
content
# Agent Rules Rules and Knowledge to work better with agents such as Claude Code or Cursor. This repository contains curated rules for AI coding assistants organized into: ## Global Rules Rules that apply across all projects and contexts: - Code style and formatting preferences - Communication patterns with AI assistants - Error handling approaches - Documentation standards ## Project Rules Project-specific configurations: - Framework-specific guidelines - Team conventions - Architecture decisions - Testing requirements ## Documentation - Swift 6 migration guidelines - Platform-specific development patterns - Best practices for different languages ## Installation Use the provided install-project-rules.sh script to set up rules in your projects. ## Key Principles 1. Be specific about what you want 2. Provide context about your codebase 3. Set clear expectations for output format 4. Include relevant constraints upfront 5. Reference existing patterns in your code ## Rule Structure Each rule file follows a consistent format: - Clear title and purpose - Applicable contexts - Specific instructions - Examples when helpful Maintained by @steipete with contributions from the community.
claude-codecursoragentsrulesai-coding
Compatible with
cursorclaude-codewindsurfopenclaw