AI-Powered Product Development Platform
A modern monorepo for C1V products, built with Turborepo and PNPM workspaces. Designed for rapid deployment with comprehensive testing, documentation standards, and multi-agent AI architecture.
c1v/
βββ .claude/ # Agent instructions & MCP configuration
β βββ instructions.md # Master agent instructions
β βββ mcp-servers.json # MCP server configuration
β βββ teams/ # Team-specific agent instructions
β βββ platform-engineering.md
β βββ frontend.md
β βββ ai-agents.md
β βββ data-infrastructure.md
β βββ product-planning.md
β βββ quality-docs.md
βββ .github/
β βββ workflows/ # CI/CD pipelines
β βββ test.yml # Automated testing
β βββ documentation.yml # Doc validation
β βββ release.yml # Version management
βββ apps/
β βββ product-helper/ # PRD generation SaaS (launching first)
β βββ langchain-nextjs-template/ # Template (will be merged)
β βββ saas-starter/ # Template (will be merged)
βββ packages/
β βββ config/ # Shared configurations (coming soon)
βββ docs/
β βββ architecture/ # Architecture Decision Records (ADRs)
β βββ guides/ # Development guides
β β βββ testing-standards.md
β βββ templates/ # Documentation templates
β βββ ADR-template.md
βββ scripts/ # Utility scripts
- Node.js 18+
- PNPM 9+
# Install dependencies
pnpm install
# Start all apps in development mode
pnpm dev
# Build all apps
pnpm build# Generate database migrations
pnpm db:generate
# Run migrations
pnpm db:migrate
# Open Drizzle Studio (database GUI)
pnpm db:studio
# Seed development data
pnpm db:seedThis project uses a multi-agent system for development and product features. See .claude/instructions.md for complete details.
| Team | File | Agents | Primary Focus |
|---|---|---|---|
| ποΈ Platform Engineering | platform-engineering.md |
3 | Backend, Database, Security & DevOps |
| π¨ Frontend | frontend.md |
3 | UI/UX, Chat Interface, Data Visualization |
| π§ AI/Agent Engineering | ai-agents.md |
3 | LangChain Integration, LLM Workflows, Validation |
| πΎ Data & Infrastructure | data-infrastructure.md |
3 | Vector Store, Caching, Observability |
| π Product & Planning | product-planning.md |
2 | Strategy, Product Management |
| π Quality & Documentation | quality-docs.md |
2 | QA, Documentation, Testing Standards |
Agent Capabilities:
- Multi-agent collaboration using LangGraph orchestration
- Structured output with Zod schemas
- MCP (Model Context Protocol) integration for tool access
- Autonomous task execution with human oversight
- Cross-team communication protocols
MCP Servers Available:
filesystem- File operationsgithub- Repository managementpostgres- Database accesspuppeteer- Browser automationmemory- Persistent agent contextsequential-thinking- Extended reasoning
See MCP configuration for setup details.
AI-powered PRD generation SaaS that transforms conversational input into engineering-quality Product Requirements Documents with validated diagrams and artifacts.
Core Features:
- π€ Conversational Intake - Natural language interface with AI agents
- β PRD-SPEC Validation - 95% quality threshold with 10 hard gates
- π Diagram Generation - Context, Use Case, Class, Sequence, Activity diagrams
- π Requirements Extraction - Automated artifact generation from conversations
- π€ Multi-Format Export - Markdown, PDF, Notion integration
- π¨ Custom Theming - Light/dark modes with brand customization
Tech Stack:
- Frontend: Next.js 15, React 19, Tailwind CSS 4.0, shadcn/ui
- AI/ML: LangChain.js 0.3, LangGraph 0.2, Vercel AI SDK 3.1
- Backend: Next.js App Router (RSC), Server Actions
- Database: PostgreSQL 16, Drizzle ORM 0.43
- Auth: Clerk (NextAuth.js alternative)
- Payments: Stripe 18.1
- LLM: OpenAI GPT-4 Turbo
- Validation: Zod 3.23, TypeScript 5.8 strict mode
- Testing: Vitest, React Testing Library, Playwright
Custom Theme:
- Typography: Consolas (headings), Verdana (body)
- Color Palette: Teal/Dark Teal with high contrast
- Design System: CSS custom properties with light/dark support
- Located at:
/apps/product-helper/src/styles/theme.css
# Development
pnpm dev # Start all apps in dev mode
pnpm build # Build all apps
pnpm lint # Lint all apps
pnpm format # Format all code with Prettier
# Testing
pnpm test # Run all tests
pnpm test:unit # Run unit tests
pnpm test:integration # Run integration tests
pnpm test:e2e # Run E2E tests with Playwright
pnpm test:coverage # Generate coverage report
pnpm test:watch # Run tests in watch mode
# Database
pnpm db:generate # Generate migrations from schema
pnpm db:migrate # Run migrations
pnpm db:studio # Open Drizzle Studio (database GUI)
pnpm db:seed # Seed development data
pnpm db:reset # Reset database (caution!)
# Utilities
pnpm clean # Clean all build artifacts
pnpm typecheck # Type check all packages# Run specific app
pnpm --filter product-helper dev
# Build specific app
pnpm --filter product-helper build
# Test specific app
pnpm --filter product-helper test
# Add dependency to specific app
pnpm --filter product-helper add langchainThis project follows a test pyramid approach with comprehensive testing requirements:
- Unit Tests: 85% coverage minimum (Vitest + React Testing Library)
- Integration Tests: 70% coverage (API routes, database operations)
- E2E Tests: Critical user flows only (Playwright)
Coverage Requirements:
- Overall: 80% minimum
- Critical paths (auth, payments, validation): 100%
- New features: 90% required before merge
See Testing Standards Guide for detailed patterns and examples.
Key Testing Principles:
- β Write tests before or alongside code
- β All bug fixes must include regression tests
- β Mock external services (OpenAI, Stripe)
- β Use test database for integration tests
- β No flaky tests - fix or remove
- β Don't skip tests to merge faster
All code changes go through automated checks:
Pre-commit Hooks:
- ESLint + TypeScript type checking
- Prettier formatting
- Staged file testing
GitHub Actions (Automated):
-
Testing Pipeline: Runs on every PR
- Lint checks
- Unit tests
- Integration tests (with PostgreSQL service)
- E2E tests (Playwright)
- Coverage reporting to Codecov
-
Documentation Validation: Runs on every PR
- Changelog update check
- ADR validation for architecture changes
- Agent instruction format validation
- Markdown link checking
-
Release Automation: Manual trigger
- Version bumping (patch/minor/major)
- Changelog generation
- Git tagging
- GitHub release creation
- Slack notifications
See GitHub Actions workflows for configuration details.
This monorepo uses:
- Turborepo - Fast build system with intelligent caching
- PNPM Workspaces - Efficient package management
- Next.js 15 - React framework with App Router
- TypeScript - Type safety across the monorepo
- Drizzle ORM - Type-safe database access
- LangChain.js - AI agent orchestration
# Install Vercel CLI
pnpm add -g vercel
# Deploy
vercel
# Deploy to production
vercel --prodEach app requires its own .env.local file:
# Database
POSTGRES_URL=postgresql://...
# Auth
AUTH_SECRET=your-secret-key
# Payments
STRIPE_SECRET_KEY=sk_...
STRIPE_WEBHOOK_SECRET=whsec_...
# AI
OPENAI_API_KEY=sk-...- Master Instructions - Project overview, architecture, conventions
- Platform Engineering Team - Backend, Database, DevOps
- Frontend Team - UI/UX, Chat, Data Visualization
- MCP Configuration - Tool server setup
- Testing Standards - Comprehensive testing guide with examples
- ADR Template - Architecture Decision Record template
- Pull Request Template - PR checklist and guidelines
- Code Style: TypeScript strict mode, ESLint, Prettier
- Git Workflow: Conventional Commits, feature branches, PR reviews
- Documentation: Keep a Changelog format, ADRs for architecture decisions
- Testing: Test pyramid (many unit, some integration, few E2E)
- Versioning: Semantic Versioning 2.0.0
- API Documentation (auto-generated from JSDoc)
- Deployment Guide (Vercel + database)
- Playbooks (backend, frontend, security, database operations)
Product Helper implements the PRD-SPEC-PRD-95-V1 validation framework - a rigorous quality standard for PRD artifacts.
Validation Criteria:
- 95% Score Threshold: Overall quality gate
- 10 Hard Gates: Non-negotiable requirements (actors, use cases, system boundary, etc.)
- Artifact Minimums: Required diagrams and documentation sections
- Programmatic Validation: No LLM guessing - deterministic rule checking
Validation Categories:
- Completeness: All required sections present
- Consistency: Cross-artifact referential integrity
- Clarity: Unambiguous requirements and descriptions
- Coverage: All actors, use cases, and entities documented
- Traceability: Requirements linked to business goals
Specification: /apps/product-helper/PRD-SPEC-PRD-95-V1.json
-
Clone & Install
git clone <repository-url> cd c1v pnpm install
-
Set Up Environment
cp apps/product-helper/.env.example apps/product-helper/.env.local # Fill in required environment variables -
Run Development Server
pnpm dev
-
Create Feature Branch
git checkout -b feature/your-feature-name
- Write Tests: Ensure 90% coverage for new features
- Update Documentation:
- Update CHANGELOG.md under
[Unreleased] - Create ADR if architectural change
- Update relevant agent instructions if workflow changes
- Update CHANGELOG.md under
- Run Quality Checks:
pnpm lint pnpm typecheck pnpm test - Create PR: Use the PR template
- Request Review: Tag relevant agent team (e.g.,
@frontend-team) - Address Feedback: Respond to review comments
- Merge: Squash and merge after approval + passing CI
Use Conventional Commits:
<type>(<scope>): <description>
[optional body]
[optional footer]
Types:
feat:New featurefix:Bug fixdocs:Documentation onlystyle:Formatting, missing semicolons, etc.refactor:Code change that neither fixes a bug nor adds a featureperf:Performance improvementtest:Adding missing testschore:Maintain, dependencies, tooling
Examples:
feat(chat): add streaming response support
fix(auth): resolve Clerk webhook signature validation
docs(testing): add integration test examples
chore(deps): upgrade langchain to 0.3.5- Trigger Release Workflow: GitHub Actions (manual)
- Choose Version Bump: patch (0.0.X), minor (0.X.0), or major (X.0.0)
- Review Changelog: Automatically moves
[Unreleased]to new version - Git Tag Created:
v0.1.0format - GitHub Release: Created with changelog notes
See CHANGELOG.md for version history.
- Issues: Create GitHub issue with appropriate label
- Agent Teams: Tag team in issues/PRs (e.g.,
@platform-engineering-team) - Documentation Questions: Label with
documentation - Security Issues: Email security team directly (do not create public issue)
Common Labels:
architecture- Architectural changes requiring ADRskip-changelog- Skip changelog validation (docs-only, deps)breaking-change- Breaking API changesgood-first-issue- Good for newcomershelp-wanted- Need assistance
Proprietary - All rights reserved