https://github.com/aicgen/aicgen
AI Config Generator
https://github.com/aicgen/aicgen
ai ai-agents antigravity best-practices claude-code codex prompt-engineering
Last synced: about 1 month ago
JSON representation
AI Config Generator
- Host: GitHub
- URL: https://github.com/aicgen/aicgen
- Owner: aicgen
- License: mit
- Created: 2025-12-04T15:37:58.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-01-01T09:51:57.000Z (about 2 months ago)
- Last Synced: 2026-01-13T13:55:28.217Z (about 1 month ago)
- Topics: ai, ai-agents, antigravity, best-practices, claude-code, codex, prompt-engineering
- Language: TypeScript
- Homepage: https://aicgen.github.io
- Size: 1.05 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
Configuration generator for AI coding assistants
---
**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:
```bash
aicgen init
```
The CLI will:
1. Detect your project language and structure
2. Guide you through assistant, architecture, and detail level selection
3. Let you customize which guidelines to include
4. Generate the appropriate config files (`.claude/`, `.github/`, `.agent/`, etc.)
---
## π¦ Installation
### From npm (Easiest)
```bash
# Install globally
npm install -g @aicgen/aicgen
# Or use with npx (no installation)
npx @aicgen/aicgen init
```
### From Homebrew (macOS)
```bash
# Add the tap
brew tap aicgen/aicgen
# Install aicgen
brew install aicgen
```
### From Binary (Standalone)
Download the latest installer for your platform from the [releases page](https://github.com/aicgen/aicgen/releases):
- **Windows**: `aicgen-setup-x64.exe` installer
- **Linux (Debian/Ubuntu)**: `aicgen_amd64.deb`
- **Linux (Fedora/RHEL)**: `aicgen_x86_64.rpm`
```bash
# 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.rpm
```
### From Source
```bash
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**.
```bash
# View guideline statistics
aicgen stats
```
**Categories:**
- **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
```text
CLAUDE.md # Master instructions (project root)
.claude/
βββ settings.json # Hooks & permissions
βββ guidelines/ # Modular guidelines
β βββ language.md
β βββ architecture.md
β βββ ...
βββ agents/ # Sub-agents
βββ guideline-checker.md
```
### For GitHub Copilot
```text
.github/
βββ copilot-instructions.md # Master instructions
βββ instructions/ # Topic-specific files
```
### For Gemini / Antigravity
```text
.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:
```bash
# Run all tests
bun test
# Run tests with coverage report
bun test --coverage
# Run tests in watch mode
bun test --watch
```
### Test 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](CONTRIBUTING.md) for details.
## π License
MIT Β© 2025