Skip to main content

Analyze any codebase and generate optimized config files for AI coding assistants (.claude.md, .cursorrules, .windsurfrules)

Project description

ai-config-gen

Analyze any codebase → Generate optimized AI coding assistant config files

One command. Three config formats. Zero guesswork.

pip install ai-config-gen
ai-config-gen .

Generates .claude.md, .cursorrules, .windsurfrules tailored to your codebase's actual architecture, frameworks, and conventions.

Why?

AI coding assistants (Claude Code, Cursor, Windsurf) need configuration files to understand your project. Writing these manually is tedious. ai-config-gen does it automatically by analyzing:

  • Language & tech stack (Python, TypeScript, Rust, Go, etc.)
  • Frameworks (Django, React, FastAPI, Next.js, Rails, etc.)
  • Architecture (MVC, Clean Architecture, Modular, Monorepo, etc.)
  • Conventions (type hints, async/await, class vs function-oriented)
  • Package managers (pip, npm, cargo, composer, etc.)
  • CI/CD (GitHub Actions, GitLab CI, etc.)
  • Docker, testing, license

Installation

pip install ai-config-gen

Usage

# Auto-detect & generate all configs for current directory
ai-config-gen .

# Generate for a specific project
ai-config-gen /path/to/project

# Only generate .claude.md
ai-config-gen --format claude

# Generate multiple formats
ai-config-gen --formats claude,cursor

# Preview without writing files
ai-config-gen --dry-run

# See detailed analysis
ai-config-gen --verbose

# Save to custom directory
ai-config-gen -o ./output-dir

Output Formats

Format File Target
claude .claude.md Claude Code / Anthropic
cursor .cursorrules Cursor IDE
windsurf .windsurfrules Windsurf IDE

Example

$ ai-config-gen /path/to/my-python-app --verbose

============================================================
Project Analysis: my-python-app
============================================================
  Language:    Python
  Files:       42
  Lines:       3,847
  Frameworks:  FastAPI, pytest
  Package Mgr: pip/uv/poetry
  Has Git:     True
  Has Docker:  True
  Has CI/CD:   True (GitHub Actions)
  License:     MIT
  Patterns:    Modular structure (src), API/REST structure
  Conventions: Python with type hints, Heavy async/await usage
============================================================

Generated: /path/to/my-python-app/.claude.md
Generated: /path/to/my-python-app/.cursorrules
Generated: /path/to/my-python-app/.windsurfrules

What Gets Generated

The tool creates config files that tell AI assistants:

  • What language and frameworks you use
  • How to run your tests and build
  • What architectural patterns to respect
  • What coding conventions to follow
  • Where to find entry points and key files
  • How to run Docker, CI/CD, etc.

Supported Languages

Python, JavaScript, TypeScript, Rust, Go, Java, Kotlin, Ruby, PHP, C#, C++, Swift

License

MIT

Support

Find this useful? Become a Sponsor ❤️

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_config_gen-0.3.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file ai_config_gen-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ai_config_gen-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for ai_config_gen-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f2e7133feb0c47ed6f969faa760a18e72a65ff3965410751d3cd80b8d056aa73
MD5 42c13cdcf18af4ecd8081a320b1cb41b
BLAKE2b-256 76fad9d157cda2ca3ec0005cd5d2bd86e14864f69a2078b5757b487e98aa33fa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page