Agent development rules for Claude Code, Cursor, and Windsurf. Build better OpenClaw agents with AI-assisted coding.
<p align="center"> <img src="https://img.shields.io/badge/OpenClaw-Agent%20Rules-blueviolet?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJ3aGl0ZSI+PHBhdGggZD0iTTEyIDJDNi40OCAyIDIgNi40OCAyIDEyczQuNDggMTAgMTAgMTAgMTAtNC40OCAxMC0xMFMxNy41MiAyIDEyIDJ6bTAgMThjLTQuNDIgMC04LTMuNTgtOC04czMuNTgtOCA4LTggOCAzLjU4IDggOC0zLjU4IDgtOCA4eiIvPjwvc3ZnPg==" alt="openclaw-rules"> <br><br> <b>Agent development rules for AI coding assistants.</b> <br> Drop these into your project — your AI assistant will understand OpenClaw conventions,<br>SOUL.md structure, agent architecture, and deployment patterns. <br><br> <a href="#quick-start"><img src="https://img.shields.io/badge/Quick%20Start-blue?style=flat-square" alt="Quick Start"></a> <a href="#rules"><img src="https://img.shields.io/badge/9%20Rules-orange?style=flat-square" alt="9 Rules"></a> <a href="#examples"><img src="https://img.shields.io/badge/2%20Examples-green?style=flat-square" alt="2 Examples"></a> <a href="https://github.com/mergisi/openclaw-rules/blob/main/LICENSE"><img src="https://img.shields.io/github/license/mergisi/openclaw-rules?style=flat-square" alt="License"></a> <a href="https://github.com/mergisi/openclaw-rules/stargazers"><img src="https://img.shields.io/github/stars/mergisi/openclaw-rules?style=flat-square" alt="Stars"></a> </p> --- ## Quick Start **One-line install** (auto-detects your editor): ```bash curl -fsSL https://raw.githubusercontent.com/mergisi/openclaw-rules/main/install.sh | bash ``` <details> <summary><b>Manual install</b></summary> ```bash # Claude Code git clone --depth 1 https://github.com/mergisi/openclaw-rules.git .rules-tmp mkdir -p .cursor/rules && cp .rules-tmp/project-rules/*.mdc .cursor/rules/ rm -rf .rules-tmp # Cursor mkdir -p .cursor/rules && cp .rules-tmp/project-rules/*.mdc .cursor/rules/ # Windsurf mkdir -p .windsurf/rules && cp .rul
Agent that generates comprehensive documentation, API references, architecture diagrams, and developer onboarding guides from existing code.
Agent configuration for systematic bug investigation that traces issues from error logs through the codebase to root cause with suggested fixes.
Agent for integrating third-party APIs including SDK setup, type generation, error handling, retry logic, and rate limit management.
Cursor's built-in autonomous coding agent that can make multi-file edits, run terminal commands, search the codebase, and iteratively build features with minimal human intervention.
Cloud-based autonomous coding agent that runs in the background on remote sandboxed environments, handling complex multi-step tasks while you continue working.
Cursor's multi-file editing agent within Composer mode that can create, edit, and delete files across your entire project in a single conversation.