Stop writing AI config files by hand. Analyze any codebase and generate
.claude.md,.cursorrules,.windsurfrulesin one command. 55+ frameworks auto-detected. Zero dependencies.
pip install ai-config-gen
ai-config-gen /path/to/project
# ✨ Generated .claude.md, .cursorrules, .windsurfrulesEvery project needs config files that tell AI coding assistants (Claude Code, Cursor, Windsurf, GitHub Copilot) about its architecture, frameworks, and conventions. Writing these manually takes hours per project. This tool does it in seconds.
| Feature | Manual | ai-config-gen |
|---|---|---|
| Time per project | 30-120 min | < 2 sec |
| Framework coverage | What you remember | 55+ auto-detected |
| Accuracy | Error-prone | 100% file-based analysis |
| Consistency | Varies | Identical every run |
pip install ai-config-genZero external dependencies. Pure Python stdlib.
# Analyze current directory
ai-config-gen .
# Analyze specific project
ai-config-gen /path/to/project
# Generate only .claude.md
ai-config-gen . --format claude
# Generate multiple formats
ai-config-gen . --formats claude,cursor
# Verbose output
ai-config-gen . --verboseOutput: Three config files in your project root:
.claude.md— For Claude Code / Anthropic.cursorrules— For Cursor IDE.windsurfrules— For Windsurf IDE
Python: Django, Flask, FastAPI, Django REST, Tornado, Starlette, Sanic, Pyramid, Bottle, pytest, unittest, nose, hypothesis, Pandas, NumPy, Scikit-learn, TensorFlow, PyTorch, MLflow, Jupyter, Poetry, Pipenv, Setuptools
JavaScript/TypeScript: React, Next.js, Vue.js, Angular, Svelte, Remix, Astro, Nuxt, Gatsby, Ember.js, Node.js, Express.js, Koa.js, NestJS, Hapi, Socket.io
CSS/Styling: Tailwind CSS, Sass/SCSS, Stylus, LESS, Styled Components
Java/Kotlin: Spring Boot, Spring MVC, Jakarta EE, Gradle, Maven
PHP: Laravel, Symfony, CodeIgniter, WordPress
Ruby: Rails, Sinatra
Rust: Cargo, Actix, Rocket, Tokio
Go: Gin, Echo, Fiber
Testing (JS): Jest, Mocha, Cypress, Playwright
- ✅ Languages (14+ supported)
- ✅ Frameworks (50+ indicators)
- ✅ Architecture patterns (MVC, Clean Architecture, Modular, Monorepo)
- ✅ Package managers (npm, pip, cargo, composer, bundler, pub, etc.)
- ✅ Build tools (Makefile, webpack, rollup, vite, etc.)
- ✅ CI/CD (GitHub Actions, GitLab CI, Travis, CircleCI, Jenkins)
- ✅ Docker, Docker Compose
- ✅ License detection
- ✅ Coding conventions (type hints, async/await, class-based, functional)
$ ai-config-gen ./my-api
🔍 Analyzing ./my-api...
📊 Detected: Python + FastAPI + pytest + Docker + MIT
✨ Generated: .claude.md, .cursorrules, .windsurfrulesGenerated .claude.md includes:
- Project name, language, frameworks
- Architecture pattern (Clean Architecture / MVC / etc.)
- Package manager, build tools
- Testing setup, CI/CD pipeline
- Coding conventions specific to this project
$ ai-config-gen ./my-website
🔍 Analyzing ./my-website...
📊 Detected: TypeScript + Next.js + Tailwind CSS + Jest
✨ Generated: .claude.md, .cursorrules, .windsurfrulesGenerate configs with one click from the VSCode command palette:
| Marketplace | Install |
|---|---|
Download .vsix from Releases |
# Or build from source
cd vscode-extension && npm install && npm run compileUse the npm wrapper for Node.js projects:
npm install -g ai-config-gen
ai-config-gen /path/to/projectdocker build -t ai-config-gen .
docker run -p 8011:8011 ai-config-genSelf-hosted FastAPI server with rate limiting:
pip install ai-config-gen
serve-instructStarts on http://localhost:8011 with 10 req/min free tier.
| Plan | Price | Best For |
|---|---|---|
| Free | $0 | Individual developers |
| Pro | $9/mo | Teams needing API access |
| Enterprise | Custom | Self-hosted + SLA |
ai-config-gen is free and open source. If it saves you time, consider supporting the work:
Issues, PRs, and feature requests welcome. Run the test suite before submitting:
python -m pytest -v --ignore=test_projectsAll 25 tests must pass.
MIT — see LICENSE for details.