Rule Smith
Description
A lightweight, repo-native agent that writes Cursor rules automatically for your project
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Rule-Smith
A lightweight, repo-native agent that writes [Cursor](https://cursor.sh) rules automatically for your project. Rule-Smith analyzes merged pull requests and generates documentation rules that help developers understand your codebase's patterns and practices.
How It Works
When a pull request is merged, Rule-Smith:
- Analyzes the PR content, including title, description, and changed files
- Uses AI to understand the significance of the changes
- Generates a Cursor rule (
.mdcfile) that documents the changes - Creates a new PR with the generated rule
For example, if you merge a PR that adds error handling to API endpoints, Rule-Smith might generate a rule like:
# .cursor/rules/implement-error-handling.mdc
---
description: "Ensure all API endpoints implement proper error handling and logging"
globs:
- "src/api/**/*.ts"
alwaysApply: true
---
# Implement Error Handling
All API endpoints should:
- Use try/catch blocks for async operations
- Log errors with appropriate severity levels
- Return standardized error responses
Features
- 🤖 Automated Documentation: Generates Cursor rules automatically when PRs are merged
- 🔍 Smart Analysis: Uses AI to understand PR context and generate meaningful rules
- 📁 Well-Formatted Rules: Creates
.mdcfiles with appropriate glob patterns - 🔄 GitHub Integration: Seamlessly integrates with GitHub Actions
- 🛠️ Manual Mode: Supports both automated and manual rule generation
Setup
Prerequisites
- Bun installed
- GitHub repository with Actions enabled
- OpenAI API key
Installation
Clone and install dependencies:
git clone https://github.com/yourusername/rule-smith.git cd rule-smith bun installCreate a `.env` file:
GITHUB_TOKEN=your_github_token OPENAI_API_KEY=your_openai_api_keyConfigure GitHub repository secrets:
GITHUB_TOKEN(automatically provided by GitHub Actions)
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11