codebase-rules-generator

Analyze codebase architecture and patterns to generate Claude Code rules and CLAUDE.md files.

1|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/jarrett-au/cc-config-starter --skill codebase-rules-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codebase-rules-generator
Source: https://github.com/jarrett-au/cc-config-starter/tree/main/skills/codebase-rules-generator
Command: npx skills add https://github.com/jarrett-au/cc-config-starter --skill codebase-rules-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of analyzing a software project's structure, conventions, and patterns to generate precise and actionable rules for AI code generation, ensuring consistency and quality.

Core Features & Use Cases

  • Codebase Analysis: Deeply inspects project architecture, naming conventions, and coding patterns.
  • Rule Generation: Creates lean, targeted .claude/rules/ files and a main CLAUDE.md for AI guidance.
  • Use Case: When starting a new project or onboarding an AI assistant to an existing one, use this Skill to quickly generate a comprehensive set of rules that define how code should be written, structured, and maintained according to project-specific standards.

Quick Start

Use the codebase-rules-generator skill to analyze the current project and generate Claude Code rules.

Frequently Asked Questions about codebase-rules-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI coding guidelines from my existing codebase?

Generate AI coding guidelines by analyzing your codebase architecture and naming conventions to produce path-scoped rules. This creates targeted configuration files that guide AI assistants to maintain project-specific coding standards.

What is a CLAUDE.md file and when do I need it for project conventions?

A CLAUDE.md file provides AI coding guidelines by documenting project conventions and architecture patterns. You need it when onboarding an AI assistant to ensure generated code aligns with your project's structure and quality standards.

How do I create a .claude/rules directory for my development project?

Create a .claude/rules directory by inspecting project structure, coding patterns, and naming conventions. The generated rule files are concise and actionable, defining how code should be written and maintained across specific path scopes.

Can I use automated rule generation for an existing software project?

Yes, automated rule generation works for existing projects by deeply inspecting current architecture and development patterns. It produces comprehensive rule sets that match your established coding conventions for consistent AI-assisted development.

What's the best way to onboard an AI assistant to my codebase conventions?

The best way to onboard an AI assistant is generating comprehensive rules from your codebase. This creates a main CLAUDE.md file and path-scoped rules that explicitly define your project structure, naming conventions, and development patterns.

Why do I need path-scoped rules for AI code generation?

Path-scoped rules ensure AI code generation applies appropriate conventions to specific directories. Without them, AI assistants lack the context needed to maintain consistent architecture and quality standards across different project areas.