AI-Assisted Monorepo Development Workflow
Blueprint for building multi-platform applications using OpenCode + OMO + OpenSpec + Superpowers
Projects β’ Tech Stack β’ Features β’ Quick Start β’ Architecture β’ AI Workflow
This repository demonstrates an AI-assisted development workflow for building multi-platform applications as a monorepo containing:
- Mobile App β Cross-platform React Native app for end-users
- Web Dashboard β Next.js admin panel
- REST API β Go backend with Clean Architecture
- API Collection β Bruno API testing collection (YAML-based, git-friendly)
The workflow itself β powered by OpenCode, OMO agent orchestration, OpenSpec change management, and Superpowers skills β is the main artifact. Fork this repo to bootstrap your own AI-driven development pipeline.
| Project | Technology | Description |
|---|---|---|
{project-name}-mobile |
React Native + TypeScript | Mobile app for iOS/Android with role-based access |
{project-name}-frontend |
Next.js + Tailwind CSS | Web admin dashboard |
{project-name}-backend |
Go + Gin + GORM | REST API with Clean Architecture |
{project-name}-bruno |
Bruno (YAML) | API testing collection |
{project-name}-regional |
Go | Regional data service |
| Component | Technology |
|---|---|
| Language | Go |
| Framework | Gin |
| ORM | GORM |
| Database | PostgreSQL |
| Cache | Redis |
| Search | Typesense |
| Auth | JWT (golang-jwt) |
| Push | Firebase FCM |
| Storage | AWS S3 / DigitalOcean Spaces / SeaweedFS |
| Component | Technology |
|---|---|
| Framework | React Native CLI |
| Language | TypeScript |
| UI | React Native Paper |
| State | Jotai (client) + TanStack Query (server) |
| Navigation | React Navigation |
| Forms | React Hook Form + Zod |
| Storage | MMKV |
| Maps | React Native Maps |
| Camera | Vision Camera |
| Component | Technology |
|---|---|
| Framework | Next.js |
| Language | TypeScript |
| Styling | Tailwind CSS |
| Components | shadcn/ui (Radix UI) |
| State | Redux Toolkit + RTK Query |
| Forms | React Hook Form + Zod |
| Charts | Chart.js |
| Testing | Jest + Playwright |
| Capability | Tooling | Benefit |
|---|---|---|
| Intent-Based Planning | Prometheus agent + OpenSpec propose | Specs written before code |
| Parallel Research | Explore + Librarian agents | 3-5 parallel codebase searches |
| Skill-Guided Execution | Superpowers (TDD, debugging, etc.) | Repeatable quality |
| Evidence-Based Verification | Build + test + manual QA | No claims without proof |
| Change Audit Trail | OpenSpec archive | Every change documented |
| Token Optimization | RTK + OMNI + Caveman stack | 60-90% context savings |
| Role | Agent | Responsibility |
|---|---|---|
| Orchestrator | Sisyphus | Decompose, delegate, verify β never executes directly |
| Strategic Planner | Prometheus | Interview, explore, produce detailed plans |
| Master Executor | Atlas | Execute verified plans with checkpoints |
| Research | Explore / Librarian | Codebase grep, external reference search |
| Reviewer | Momus / Metis / Oracle | Plan validation, code review, gap analysis |
| Deep Worker | Hephaestus | End-to-end for architectural work |
- Node.js >= 18
- Go >= 1.25
- PostgreSQL >= 14
- Redis >= 7
- Docker (optional, for local services)
- OpenCode (or Claude Code) β AI coding agent
- OpenSpec CLI β change management
git clone <repository-url>
cd {project-name}# OpenCode
npm install -g @opencode/cli
# OpenSpec
npm install -g openspec
# Verify
opencode --version
openspec --version# Bootstrap AI workflow configuration
# Modify .agents/skills/ and .agents/rules/ for your project
# See AGENTS.md for full setup guidecd {project-name}-backend
# Copy environment
cp env.example .env
# Install dependencies
go mod download
# Run with Docker Compose (PostgreSQL + Redis + Typesense)
docker-compose -f docker-compose.local.yml up -d
# Run migrations
./scripts/migrate-local.sh
# Run seeders
./scripts/seeder-local.sh
# Start server
./scripts/run-local.shcd {project-name}-mobile
# Install dependencies
yarn install
# iOS setup (macOS only)
cd ios && bundle exec pod install && cd ..
# Create environment
cp .env.example .env
# Start Metro
yarn start
# Run on Android
yarn android
# Run on iOS
yarn ioscd {project-name}-frontend
# Install dependencies
npm install
# Create environment
cp .env.development .env.local
# Run development server
npm run dev# Install Bruno
brew install --cask bruno # macOS
# Open collection
bruno open {project-name}-brunoβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β cmd/ β
β βββ server/ # Main API server β
β βββ migrator/ # Database migrations β
β βββ seeder/ # Database seeders β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β internal/ β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β handler/ β β service/ β β repository/ β β
β β (HTTP) ββββ (Business) ββββ (Data) β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β β β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β dto/ β β domain/ β β middleware/ β β
β β (Requests) β β (Models) β β (Auth/RBAC)β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
src/
βββ core/ # Infrastructure & shared code
β βββ libs/ # Third-party setups
β βββ services/ # API services
β βββ states/ # Jotai + TanStack Query
β βββ styles/ # Design tokens
β
βββ features/ # Domain modules
βββ auth/ # Authentication
βββ main-module/ # Primary domain
βββ billing/ # Finance
βββ ... # Feature modules
app/
βββ (auth)/ # Auth routes (no sidebar)
βββ dashboard/ # Role-based dashboard
βββ module-one/ # Module group
βββ module-two/ # Module group
βββ ... # Feature modules
Interactive API docs available at:
http://localhost:8080/swagger/index.html
| Version | Base Path | Purpose |
|---|---|---|
| v1 | /api/v1/* |
Web dashboard endpoints |
| Mobile v1 | /api/mobile/v1/* |
Mobile-optimized endpoints |
| Document | Location | Description |
|---|---|---|
| Backend README | {project-name}-backend/README.md |
Backend development guide |
| Mobile README | {project-name}-mobile/README.md |
Mobile development guide |
| Frontend README | {project-name}-frontend/README.md |
Web dashboard guide |
| Bruno README | {project-name}-bruno/README.md |
API testing guide |
AGENTS.mdβ Main AI agent guidelines.agents/rules/β Coding rules and constraints.agents/skills/β Specialized development skills
This project uses an AI-driven development workflow powered by OpenCode + OMO + OpenSpec + Superpowers:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI WORKFLOW STACK β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β User ββββββ Sisyphus ββββββ Plan β β
β β Request β β (Orchestrator) β Agent β β
β βββββββββββββββ βββββββββββββββ ββββββββ¬βββββββ β
β β β β
β βΌ βΌ β
β βββββββββββββββββββββββββββββββββββββ β
β β Intent Classification β β
β β Skill Loading (mandatory) β β
β βββββββββββββββββββββββββββββββββββββ β
β β β
β βββββββββββββββββΌββββββββββββββββ β
β βΌ βΌ βΌ β
β ββββββββββββ ββββββββββββ ββββββββββββ β
β β Research β β Plan β β Execute β β
β β (explore)β β (Prometheus)β β(Sisyphus-β β
β β(librarian)β β β β Junior) β β
β ββββββββββββ ββββββ¬ββββββ ββββββ¬ββββββ β
β β β β
β βΌ βΌ β
β ββββββββββββββββββββββββββββββββββββββββ β
β β Parallel Task Delegation β β
β β category + skills per task β β
β ββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββ β
β β Evidence-Based Verification β β
β β Build β Test β Manual QA β β
β ββββββββββββββββββββββββββββββββββββββββ β
β β β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββ β
β β OpenSpec Archive β β
β β Change finalized & documented β β
β ββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
| Step | Tool | Purpose |
|---|---|---|
| 1. Propose | /opsx:propose (OpenSpec) |
Structured change proposal with specs, design, task decomposition |
| 2. Explore | task(subagent_type="explore") |
Parallel codebase research (3-5 agents) |
| 3. Plan | task(subagent_type="plan") (Prometheus) |
Task decomposition with dependency graph |
| 4. Apply | /opsx:apply (OpenSpec) |
Delegated execution via category + skills |
| 5. Verify | verification-before-completion skill |
Build + test + manual QA evidence |
| 6. Archive | /opsx:archive (OpenSpec) |
Change finalized with audit trail |
- OpenSpec Example β Full change proposal with specs, design, tasks, and execution log
- Superpowers Example β Complete workflow output from proposal to archive
Three-layer optimization keeps context efficient:
| Layer | Tool | Savings |
|---|---|---|
| RTK | rtk <cmd> |
60-90% on CLI I/O |
| OMNI | Output filtering | Strips noise, keeps signal |
| Caveman | Compressed prose | ~75% on AI communication |
cd {project-name}-backend
# Run server
./scripts/run-local.sh
# Run migrations
./scripts/migrate-local.sh
# Run seeders
./scripts/seeder-local.sh
# Build binary
go build -o server ./cmd/servercd {project-name}-mobile
# Start Metro
yarn start
# Run Android
yarn android
# Run iOS
yarn ios
# Build APK
yarn build:apk
# Lint
yarn lintcd {project-name}-frontend
# Dev server
npm run dev
# Build
npm run build
# Lint
npm run lint
# Test
npm test{project-name}/
βββ {project-name}-backend/ # Go REST API
β βββ cmd/ # Entry points
β βββ internal/ # Application code
β βββ migrations/ # SQL migrations
β βββ scripts/ # Dev scripts
β βββ docs/ # API docs
β
βββ {project-name}-mobile/ # React Native app
β βββ src/
β β βββ core/ # Infrastructure
β β βββ features/ # Domain modules
β βββ ios/ # iOS native
β βββ android/ # Android native
β
βββ {project-name}-frontend/ # Next.js web dashboard
β βββ app/ # App Router
β βββ components/ # React components
β βββ lib/ # Utilities
β βββ data/ # Configurations
β
βββ {project-name}-bruno/ # Bruno API collection
β βββ environments/ # API environments
β βββ auth/ # Auth endpoints
β βββ Mobile App/ # Mobile endpoints
β
βββ {project-name}-regional/ # Regional data service
β
βββ .agents/ # AI development rules & skills
β βββ rules/ # Coding constraints
β βββ skills/ # Task templates
β
βββ notes/ # Project documentation
β βββ docs/ # Reference docs
β βββ archives/ # Legacy docs
β
βββ README.md # This file
cd {project-name}-backend
# Start all services
docker-compose -f docker-compose.local.yml up -d
# Services started:
# - PostgreSQL (port 5432)
# - Redis (port 6379)
# - Typesense (port 8108)
# - SeaweedFS (port 8333)# Backend
docker-compose up -d
# Frontend
cd {project-name}-frontend
docker-compose -f docker-compose-prd.yml up -dThis repository is a workflow blueprint, not a fixed product. To adapt it for your own project:
- Replace
{project-name}throughout with your project's identifier - Update
.agents/rules/β coding constraints for your tech stack - Update
.agents/skills/β skill definitions for your domain - Modify AGENTS.md β agent directives for your architecture
- Swap example docs in
docs/with your own OpenSpec changes - Keep the AI workflow infrastructure β it's the main value
The AI workflow (OMO + OpenSpec + Superpowers) is framework-agnostic. It works for any language, any stack, any team size.
MIT β See LICENSE for details.
superspec-ai-workflow β AI-Driven Development Blueprint
Built with OpenCode β’ OMO β’ OpenSpec β’ Superpowers