@aicgen/aicgen
v1.0.5
Published
AI Config Generator - Automated AI assistant configuration for your projects
Downloads
31
Maintainers
Readme
aicgen makes your project AI-ready in seconds. Generate tailored instruction files for your AI coding assistant with an interactive CLI wizard.
✨ Features
- 🎯 Multi-Assistant Support - Claude Code, GitHub Copilot, Gemini, Antigravity, Codex
- 📚 82+ Guidelines - Organized into 12 categories (Language, Architecture, Testing, Security, etc.)
- 🎨 Interactive CLI - Professional wizard with smart defaults and back navigation
- ⚡ Hooks & Sub-Agents - Auto-generates Claude Code hooks and verification agents
- 🏗️ Architecture Aware - Supports Microservices, Modular Monoliths, Hexagonal, and more
- 📦 Zero External Dependencies - All guideline data is embedded in the binary
🚀 Quick Start
Navigate to your project and run:
aicgen initThe CLI will:
- Detect your project language and structure
- Guide you through assistant, architecture, and detail level selection
- Let you customize which guidelines to include
- Generate the appropriate config files (
.claude/,.github/,.agent/, etc.)
📦 Installation
From npm (Easiest)
# Install globally
npm install -g @aicgen/aicgen
# Or use with npx (no installation)
npx @aicgen/aicgen initFrom Homebrew (macOS)
# Add the tap
brew tap aicgen/aicgen
# Install aicgen
brew install aicgenFrom Binary (Standalone)
Download the latest installer for your platform from the releases page:
- Windows:
aicgen-setup-x64.exeinstaller - Linux (Debian/Ubuntu):
aicgen_amd64.deb - Linux (Fedora/RHEL):
aicgen_x86_64.rpm
# Windows - run the installer
aicgen-setup-x64.exe
# Linux (Debian/Ubuntu)
sudo dpkg -i aicgen_amd64.deb
# Linux (Fedora/RHEL)
sudo rpm -i aicgen_x86_64.rpmFrom Source
git clone https://github.com/aicgen/aicgen.git
cd aicgen
bun install
bun run build:binary
bun run start init📚 Guideline System
aicgen uses a modular guideline architecture with 82+ guidelines organized into 12 categories.
# View guideline statistics
aicgen statsCategories:
- Language - TypeScript, Python, Go, Rust, Java, C#, Ruby, JavaScript
- Architecture - Layered, Modular Monolith, Microservices, Event-Driven, Hexagonal
- DevOps - CI/CD, Docker, Observability (Log formats, Metrics)
- Best Practices - SOLID, DRY, Clean Code principles
- And more...
📁 Generated Outputs
For Claude Code
CLAUDE.md # Master instructions (project root)
.claude/
├── settings.json # Hooks & permissions
├── guidelines/ # Modular guidelines
│ ├── language.md
│ ├── architecture.md
│ └── ...
└── agents/ # Sub-agents
└── guideline-checker.mdFor GitHub Copilot
.github/
├── copilot-instructions.md # Master instructions
└── instructions/ # Topic-specific filesFor Gemini / Antigravity
.gemini/ # or .agent/
└── instructions.md # Consolidated system prompt🗺️ Roadmap
✅ Completed
- [x] Interactive CLI wizard with back navigation
- [x] Multi-assistant support (Claude Code, Copilot, Gemini, Antigravity, Codex)
- [x] 82+ guidelines across 12 categories
- [x] Architecture-aware configuration (Layered, Modular Monolith, Microservices, etc.)
- [x] Auto-generated hooks and sub-agents for Claude Code
- [x] Custom guideline management (add/remove)
- [x] GitHub-based guideline updates
🚧 Future Enhancements
- [ ] Custom validation hooks
- [ ] Guideline versioning and diffing
- [ ] Project-specific guideline templates
🛠️ Development
Running Tests
The project includes a comprehensive test suite with 60+ tests covering all core functionality:
# Run all tests
bun test
# Run tests with coverage report
bun test --coverage
# Run tests in watch mode
bun test --watchTest Coverage
Current test coverage: 94% (93.44% function coverage, 94.52% line coverage)
Test Suite Includes:
- ✅ GuidelineLoader tests (filtering, level selection, architecture handling)
- ✅ Tarball extraction tests (CONFIG-based prefix validation)
- ✅ AssistantFileWriter tests (all 5 assistants - Claude Code, Copilot, Gemini, Antigravity, Codex)
- ✅ File generation and path handling (cross-platform compatibility)
- ✅ Content validation and metadata inclusion
Tests are automatically excluded from builds via tsconfig.json.
Project Structure
src/
├── __tests__/ # Test suite
│ └── services/
│ ├── guideline-loader.test.ts
│ ├── tarball-extraction.test.ts
│ └── assistant-file-writer.test.ts
├── commands/ # CLI commands (init, update, quick-add)
├── services/ # Core business logic
└── config.ts # Configuration management🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
📄 License
MIT © 2025
