https://github.com/helloprkr/dotai_boiler
https://github.com/helloprkr/dotai_boiler
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/helloprkr/dotai_boiler
- Owner: helloprkr
- Created: 2024-10-10T15:51:21.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T07:14:35.000Z (3 months ago)
- Last Synced: 2025-03-07T08:24:39.111Z (3 months ago)
- Language: Shell
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# π§Ώ DotAI Boiler
[](https://github.com/helloprkr/dotai_boiler)
[](./LICENSE)
[]()
[](https://github.com/helloprkr/dotai_boiler/stargazers)
[](https://github.com/helloprkr/dotai_boiler/commits/main)**A sophisticated framework for AI-assisted development workflows**
DotAI Boiler transforms your development workflow by creating a structured knowledge ecosystem that evolves with your project, ensuring AI assistants maintain deep context across sessions while enforcing consistent implementation patterns. This sophisticated framework bridges the gap between human creativity and machine precision, dramatically reducing cognitive overhead and technical debt through its comprehensive Codex system, session management tools, and standardized blueprints that adapt to your specific project requirements.
[Features](#-features) β’ [Installation](#-installation) β’ [Usage](#-usage) β’ [Architecture](#οΈ-architecture) β’ [Advanced Features](#-advanced-features) β’ [Contributing](#-contributing) β’ [License](#-license)
## π Table of Contents
- [π€ DotAI Boiler](#-dotai-boiler)
- [π Table of Contents](#-table-of-contents)
- [β¨ Features](#-features)
- [π Installation](#-installation)
- [Prerequisites](#prerequisites)
- [Basic Installation](#basic-installation)
- [Advanced Installation Options](#advanced-installation-options)
- [π Usage](#-usage)
- [AI Codex](#ai-codex)
- [Session Management](#session-management)
- [Blueprints](#blueprints)
- [Quick Start Guide](#quick-start-guide)
- [ποΈ Architecture](#οΈ-architecture)
- [π§ Advanced Features](#-advanced-features)
- [Model Context Protocol (MCP)](#model-context-protocol-mcp)
- [AI Plugins](#ai-plugins)
- [Integration Capabilities](#integration-capabilities)
- [π οΈ Customization](#οΈ-customization)
- [Creating Custom Rules](#creating-custom-rules)
- [Extending Blueprints](#extending-blueprints)
- [π₯ Contributing](#-contributing)
- [π License](#-license)
- [π Acknowledgements](#-acknowledgements)
- [π Project Status](#-project-status)## β¨ Features
- **π‘ AI Codex System**: Repository of learnings and errors to improve code quality over time
- **π€ AI Assistant Integration**: Seamless workflow with Ai/LLMs like GitHub Copilot, Claude, and ChatGPT
- **πΎ Session Management**: Maintain project context across multiple interactions with persistent memory
- **πΊοΈ Blueprints**: Comprehensive guides for implementing specific technical architectures
- **π Snippets**: Code templates for consistent implementation patterns across your project
- **π MCP Rules**: Specialized rules for AI interactions with different technologies
- **π Version Controlled AI Memory**: Track and manage AI learning across your project lifecycle
- **π Workflow Automation**: Streamline repetitive tasks with AI-powered scripts
- **π§© Plugin System**: Extend functionality with custom plugins and integrations## π Installation
### Prerequisites
- Git installed on your system
- An AI assistant of your choice (Cursor Editor, GitHub Copilot, etc.)### Basic Installation
```bash
# Clone the repository
git clone https://github.com/helloprkr/dotai_boiler.git# Navigate to the project directory
cd dotai_boiler# Initialize your project
# Copy configuration files to your project root or use as a reference
cp -r .ai/ /path/to/your/project/
```### Advanced Installation Options
For advanced users who want to customize their installation:
```bash
# Install with specific blueprints only
cp -r .ai/blueprints/supabase-drizzle/ /path/to/your/project/.ai/blueprints/# Install as a Git submodule for easier updates
git submodule add https://github.com/helloprkr/dotai_boiler.git .ai
```## π Usage
### AI Codex
The Codex system maintains a repository of learnings and errors to improve code quality:
```bash
# Review the Codex
cat .ai/codex/codex.md# Add a new learning to the Codex
echo "# Learning: Optimizing React re-renders \n\n..." > .ai/codex/learn-react-optimization.md# Reference the Codex in your commits
git commit -m "fix: Apply Codex learning on React optimization (ref: learn-react-optimization.md)"
```### Session Management
Create a "memory layer" for AI across multiple interactions:
```bash
# Start a new AI session
echo "# Session: Implementing authentication \n\n..." > .ai/session/auth-implementation.md# Update the session with new information
echo "## Database schema \n\n..." >> .ai/session/auth-implementation.md# Reference the session when working with your AI assistant
# @import .ai/session/auth-implementation.md
```### Blueprints
Implement specific technical architectures with step-by-step guides:
- **Supabase + Drizzle + Server Actions**: Comprehensive backend architecture
```bash
# View the blueprint
cat .ai/blueprints/supabase-drizzle/README.md
# Follow implementation steps
cat .ai/blueprints/supabase-drizzle/01-setup.md
```- **Flux + Replicate**: Image generation workflow
```bash
# View the blueprint
cat .ai/blueprints/flux-replicate/README.md
```- **Model Context Protocol (MCP)**: Optimized AI interactions
```bash
# View the MCP documentation
cat .ai/rules/mcp/README.md
```### Quick Start Guide
1. Initialize DotAI Boiler in your project
2. Create a session file for your current task
3. Reference appropriate blueprints for implementation
4. Use snippets for consistent code patterns
5. Document learnings in the Codex for future reference## ποΈ Architecture
```
.
βββ .ai/ # AI-assisted development tools
β βββ actions/ # Automated actions for AI workflows
β βββ blueprints/ # Architecture implementation guides
β β βββ supabase-drizzle/ # Supabase backend architecture
β β βββ flux-replicate/ # Image generation workflow
β β βββ nextjs-complete/ # Full-stack Next.js architecture
β βββ codex/ # Repository of AI learnings and errors
β β βββ codex.md # Main codex document
β β βββ learn.md # Template for new learnings
β β βββ errors/ # Documented error patterns
β βββ components/ # Reusable UI/UX components
β βββ lib/ # Library documentation and examples
β β βββ react/ # React-specific libraries
β β βββ node/ # Node.js utilities
β βββ plugins/ # Integration with external AI tools
β β βββ v0/ # v0.dev integration
β β βββ replicate/ # Replicate models integration
β βββ rules/ # Rules for AI behavior
β β βββ mcp/ # Model Context Protocol rules
β β βββ typescript/ # TypeScript-specific rules
β β βββ nextjs/ # Next.js framework rules
β βββ scripts/ # Automation scripts
β β βββ session.sh # Session management utilities
β β βββ codex.sh # Codex management utilities
β βββ session/ # Session management tools
β β βββ start-session.md # Start session template
β β βββ end-session.md # End session template
β β βββ template.md # Session template
β βββ snippets/ # Code templates
β β βββ react/ # React component templates
β β βββ nextjs/ # Next.js templates
β β βββ typescript/ # TypeScript utility templates
β βββ status/ # Session status tracking
βββ .cursor/ # Cursor editor configuration
β βββ rules/ # MCP rules for the Cursor editor
β βββ go.mcp # Go language rules
β βββ docker.mcp # Docker containerization rules
β βββ dagger.mcp # Dagger CI/CD rules
βββ README.md # Project documentation
```## π§ Advanced Features
### Model Context Protocol (MCP)
The Model Context Protocol provides specialized rules for AI interactions with different technologies:
- **Cursor MCP Rules**: Optimized for Go, Dagger, and Docker development
```
// Example Go MCP rule
@rule go_error_handling {
context: "error handling pattern in Go",
pattern: "if err != nil { return nil, err }",
explanation: "Standard Go error handling pattern"
}
```- **Docker MCP Rules**: Best practices for Docker containerization
```
// Example Docker MCP rule
@rule docker_multistage {
context: "multi-stage Docker builds",
pattern: "FROM ... AS builder\n...\nFROM ...\nCOPY --from=builder",
explanation: "Use multi-stage builds to reduce image size"
}
```### AI Plugins
- **v0.dev Integration**: Generate React components from screenshots and natural language
```bash
# Generate a component from description
cat .ai/plugins/v0/examples/navbar.md | curl -X POST https://v0.dev/api/generate
```- **Replicate Models Integration**: Access specialized AI models for various tasks
```bash
# Use Replicate for image generation
source .ai/plugins/replicate/setup.sh
replicate-run stability-ai/sdxl "A futuristic city with flying cars"
```### Integration Capabilities
- **GitHub Actions**: Automate workflows with AI-enhanced GitHub Actions
- **Hugging Face**: Connect to specialized AI models for domain-specific tasks
- **LangChain**: Build advanced AI applications with the LangChain framework## π οΈ Customization
### Creating Custom Rules
You can create custom MCP rules for your specific technology stack:
1. Create a new rule file in `.ai/rules/custom/`
2. Define your rules using the MCP syntax
3. Reference your rules in your AI sessionsExample custom rule:
```
// .ai/rules/custom/my-framework.mcp
@rule my_framework_pattern {
context: "recommended pattern for MyFramework",
pattern: "...",
explanation: "..."
}
```### Extending Blueprints
Create custom blueprints for your organization's preferred architectures:
1. Create a new directory in `.ai/blueprints/`
2. Add README.md with overview and purpose
3. Create step-by-step implementation guides
4. Include code examples and configuration templates## π₯ Contributing
We welcome contributions to improve the DotAI Boiler framework! See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request
6. Add a changelog entry with your contribution## π License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## π Acknowledgements
- [Cursor](https://cursor.sh/) - The AI-native code editor
- [OpenAI](https://openai.com/) - For advancements in AI assistance
- [Anthropic](https://www.anthropic.com/) - For Claude's helpful capabilities
- [All contributors](https://github.com/helloprkr/dotai_boiler/graphs/contributors) who have helped shape this framework## π Project Status
DotAI Boiler is in active development. We're constantly improving the framework based on real-world usage and feedback. Check the [GitHub repository](https://github.com/helloprkr/dotai_boiler) for the latest updates.
Current version: `0.6.0-beta`
---
**DotAI Boiler** β Elevating development workflows with artificial intelligence