Skip to main content

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 ❤️

Metadata

Release files for ai-config-gen 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ai-config-gen 0.3.0
File Interpreter ABI Platform
ai_config_gen-0.3.0-py3-none-any.whl Python 3 none any Details

Release files / ai_config_gen-0.3.0-py3-none-any.whl

Download URL ai_config_gen-0.3.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f2e7133feb0c47ed6f969faa760a18e72a65ff3965410751d3cd80b8d056aa73
BLAKE2b-256 checksum
How to use checksums
76fad9d157cda2ca3ec0005cd5d2bd86e14864f69a2078b5757b487e98aa33fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Security for ai-config-gen 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page