An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          


aicgen logo


Configuration generator for AI coding assistants


Version
License
Bun
Tests
Coverage

---

**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