Comprehensive development environment for Ki's Human-AI-Human relationship intelligence platform. Includes git automation, monorepo management, AI engine workflows, and multi-service orchestration.
Development environment for Ki - the world's first Human-AI-Human relationship intelligence platform. A lean 3-person startup building breakthrough AI technology that processes both partners simultaneously while maintaining privacy.
This command center orchestrates a complex multi-repository architecture including:
Built on **Next Forge** - a production-ready Next.js boilerplate with enterprise-grade tooling.
**Main Repository**: `ki-startup-command-center`
**Submodules**:
Use the Makefile for all primary operations:
```bash
make setup
make dev
make ki-setup
make stop
make n8n
make backup
make clean
```
Ki includes comprehensive git automation that handles all submodule repositories automatically:
```bash
make git-status
make git-push
make git-pull
```
**Key Benefits**:
**Direct Script Execution**:
```bash
./scripts/git-submodule-status.sh # Check all repository status
./scripts/git-submodule-push.sh # Push all changes
./scripts/git-submodule-pull.sh # Pull all updates
```
Navigate to Ki platform for monorepo-specific commands:
```bash
cd submodules/product/ki-platform
```
**Core Development**:
```bash
pnpm dev # Start all Next.js apps in development mode
pnpm build # Build all applications for production
pnpm test # Run Vitest tests across all packages
pnpm lint # Ultracite linting (Biome-based, faster than ESLint)
pnpm format # Format code with Ultracite
pnpm typecheck # TypeScript checking across monorepo
pnpm analyze # Bundle analysis for optimization
pnpm translate # Internationalization workflow
pnpm boundaries # Enforce package boundary rules
```
**Database Operations**:
```bash
pnpm migrate # Prisma format + generate + push to database
```
**Package Management**:
```bash
pnpm install # Install dependencies (preferred package manager)
pnpm bump-deps # Update all dependencies
pnpm bump-ui # Update shadcn/ui components
pnpm clean # Clean node_modules across workspace
```
**Backend Testing**:
```bash
cd apps/langgraph-backend
pytest tests/
python -m pytest tests/ -v
```
This project includes comprehensive MCP (Model Context Protocol) server configuration in `.mcp.json`:
```bash
claude mcp list
```
**Available MCP Servers**:
MCP servers provide automated capabilities for web automation, database operations, file management, team collaboration, and repository management.
Ki's breakthrough architecture processes both partners simultaneously while maintaining privacy:
```
Partner A → Private Channel → Ki AI Core ← Private Channel ← Partner B
↓
Empathy AI Layer
↓
Personalized Dual Responses
```
Core relationship intelligence workflow in `submodules/product/ki-platform/apps/langgraph-backend/src/graphs/ki_relationship_graph.py`:
**Processing Flow**:
```
intake → safety_check → emotional_analysis → conflict_detection
→ anxiety_detection → empathy_processing → pattern_recognition
→ response_generation → memory_update
```
**Key Components**:
**Frontend & UI**:
**Backend & Infrastructure**:
**Development & DevOps**:
**Production & Monitoring**:
```
submodules/
├── product/ki-platform/ # Main Ki platform (Next.js Turborepo monorepo)
│ ├── apps/web/ # Marketing website (Next.js 15)
│ ├── apps/app/ # Ki relationship app (Next.js 15)
│ ├── apps/docs/ # Documentation site (Next.js 15)
│ ├── apps/langgraph-backend/ # LangGraph AI engine (Python + FastAPI)
│ ├── packages/ui/ # Shared React component library
│ ├── packages/eslint-config/ # Shared ESLint configurations
│ └── packages/typescript-config/ # Shared TypeScript configurations
├── business/ # Complete business operations
│ ├── data-room/ # Investor documentation for $1.5M pre-seed
│ ├── planning/ # MVP roadmap and weekly goals
│ ├── operations/ # Team sync, metrics, automation
│ ├── growth/ # Customer development, market research
│ ├── customer-research/ # User interviews and validation
│ └── fundraising-prep/ # Investment materials and prep
└── automation/n8n-workflows/ # Business automation workflows
```
**Environment Variables (Type-Safe)**:
**Package Architecture**:
**UI Component Development**:
**Data Layer Best Practices**:
1. **Start development environment**:
```bash
make dev
```
2. **Work on specific applications**:
```bash
cd submodules/product/ki-platform
pnpm dev
```
Apps run on:
- Web (marketing): http://localhost:3000
- App (platform): http://localhost:3001
- Docs: http://localhost:3002
- Storybook: http://localhost:6006
3. **Add new features following Next Forge patterns**:
- Use workspace packages (`@repo/*`) for shared logic
- Follow environment variable patterns with `keys.ts`
- Implement UI with design-system components
- Add comprehensive tests with Vitest
4. **Quality assurance**:
```bash
pnpm lint # Fast linting with Ultracite
pnpm typecheck # Ensure type safety
pnpm test # Run test suite
pnpm analyze # Check bundle sizes
```
5. **Database changes**:
```bash
pnpm migrate # Handle schema updates safely
```
1. **Check status across all repositories**:
```bash
make git-status
```
2. **Make changes in any submodule or main repository**
3. **Push all changes with single command**:
```bash
make git-push
```
This automatically:
- Commits changes in each submodule with timestamped messages
- Pushes submodule changes to their respective remotes
- Updates submodule references in main repository
- Pushes main repository changes
4. **Pull latest updates**:
```bash
make git-pull
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/ki-startup-command-center/raw