Back to list
MathewJoseph1993

gtm-wizard-architecture

by MathewJoseph1993

The GTM Engineer in your pocket. AI-powered go-to-market intelligence with benchmarks, signals, and coaching.

1🍴 0📅 Dec 29, 2025

SKILL.md


name: gtm-wizard-architecture description: GTM Wizard project architecture, tech stack, and development patterns. Use when working on GTM Wizard features, understanding the codebase, or making architectural decisions. Includes monorepo structure, PocketBase schema, and checklist for code changes.

GTM Wizard Architecture Guide

Project Overview

GTM Wizard is an open-source AI-powered GTM operating system for solo founders.

  • Vision: "Stop guessing if it's working. Know you're on track."
  • Target: Solo Technical Founders, $1-5K MRR
  • Pricing: Self-hosted FREE, Cloud $5-10/mo

Tech Stack (Approved December 2025)

LayerTechnologyWhy
FrontendNext.js 16 + shadcn/ui + TailwindLargest ecosystem, best AI assistance
Backend/DBPocketBase (single binary)Zero-config, truly self-hosted
AI LayerLiteLLMBYOK, 100+ providers
MCP ServerPython + FastMCPGTM expertise tools
DeploymentDocker ComposeOne-command self-hosting

Monorepo Structure

gtm-wizard/
├── packages/
│   ├── mcp-server/           # Python MCP server (existing)
│   │   ├── src/gtm_wizard/
│   │   └── tests/
│   ├── dashboard/            # Next.js frontend
│   │   └── src/
│   └── ai-agent/             # Python AI layer (placeholder)
├── pocketbase/               # PocketBase binary + data
│   ├── pb_schema.json
│   └── pb_data/ (gitignored)
├── docs/
│   ├── 00_vision/
│   ├── 01_research/
│   ├── 02_planning/
│   └── session_handoffs/
├── .github/workflows/        # CI/CD
└── pyproject.toml            # Root config

PocketBase Collections

CollectionPurposeKey Fields
usersAuth (built-in)email, password, name
api_keysAI provider keysuser, provider, key_encrypted
tool_connectionsInstantly/Apollouser, tool, credentials_encrypted, status
daily_metricsCampaign datauser, date, emails_sent, opens, replies, source
chat_historyAI conversationsuser, session_id, role, content
user_settingsPreferencesuser, onboarding_completed, timezone, streak_start_date

Core MVP Features (v0.3)

  1. Traffic Light Dashboard - RED/YELLOW/GREEN signals
  2. Streak Visualizer - GitHub-style activity graph
  3. Day 21 Breakthrough - Educational module
  4. Basic AI Coaching - BYOK chat interface
  5. Instantly Integration - First tool connection
  6. Self-Hosted Docker - One-command deployment

Traffic Light Logic

RED (Critical):
- Open rate < 25% → "Deliverability risk"
- Bounce rate > 8% → "Clean your list"

YELLOW (Needs attention):
- Open rate > 40% AND reply rate < 2% → "Good opens, weak offer"
- Reply rate < 2% → "Below benchmark"

GREEN (On track):
- Reply rate > 6% → "Top 10% performance"
- Reply rate >= 2% → "Hitting benchmarks"

Development Checklist

Before Any Code Change:

  • Understand the affected package (mcp-server, dashboard, ai-agent)
  • Check if change affects multiple packages
  • Review existing patterns in that package

After Restructuring/Moving Files:

  • Update .github/workflows/ci.yml paths
  • Update pyproject.toml if Python paths changed
  • Update Makefile if command paths changed
  • Run make test locally before pushing
  • Update CLAUDE.md if structure changed

After Adding New Features:

  • Add tests for new functionality
  • Update relevant documentation
  • Create session handoff if significant work

Before Pushing:

  • Run linter: ruff check packages/mcp-server/src packages/mcp-server/tests
  • Run type check: mypy packages/mcp-server/src
  • Run tests: pytest packages/mcp-server/tests
  • Dashboard builds: cd packages/dashboard && npm run build

Key File Locations

WhatWhere
MCP Server entrypackages/mcp-server/src/gtm_wizard/server.py
Dashboard pagespackages/dashboard/src/app/
Traffic Lightpackages/dashboard/src/components/TrafficLight.tsx
Auth Contextpackages/dashboard/src/contexts/AuthContext.tsx
PocketBase clientpackages/dashboard/src/lib/pocketbase.ts
CI workflow.github/workflows/ci.yml
Session handoffsdocs/session_handoffs/

Environment Variables

Dashboard (.env.local)

NEXT_PUBLIC_POCKETBASE_URL=http://127.0.0.1:8090

PocketBase Admin

URL: http://127.0.0.1:8090/_/
Email: admin@gtmwizard.local
Password: admin123456

Starting Development

# Terminal 1: PocketBase
cd pocketbase && ./pocketbase serve

# Terminal 2: Dashboard
cd packages/dashboard && npm run dev

# Terminal 3: MCP Server (if needed)
cd packages/mcp-server && uv run gtm-wizard

Commit Guidelines

  • NO AI attribution in commits
  • NO Co-Authored-By lines
  • Use conventional commits: feat:, fix:, docs:, refactor:

Public Code Terminology

Avoid Cannonball GTM terms:

  • Use "Insight-Led Outreach" (not PVP)
  • Use "Decision Trigger" (not EDP)
  • Use "High-Intent Segment" (not PQS)

Score

Total Score

75/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon