AI Rule Extractor

•
43
•

Extracts project-specific coding rules and domain knowledge from your codebase to guide AI agents.

The extract-rules skill is a powerful utility for Claude Code that analyzes your existing codebase, pull requests, and conversation history to identify the unique coding conventions and architectural patterns of your project. It generates structured markdown documentation that Claude automatically loads into its context, ensuring that AI-generated code respects your specific preferences and project-specific logic. This skill is essential for onboarding AI to new repositories, documenting implicit coding standards, and maintaining consistency across large-scale projects without manual documentation overhead.

Key Features

01Support for framework-specific layering (e.g., Rails models vs controllers)
0243 GitHub stars
03Automated codebase analysis for pattern and rule extraction
04Intelligent documentation compaction to optimize AI context window usage
05Incremental updates from PR reviews and chat history using --from-pr and --from-conversation
06Split output mode to separate portable principles from project-specific local patterns

Use Cases

01Onboarding an AI assistant to a legacy repository with undocumented conventions
02Standardizing architecture and domain logic across different team members using AI
03Capturing recurring PR feedback into permanent, machine-readable coding standards