GreatCTO — Prompts and Key Artifacts
SKILL.md Routing Table (excerpt, verbatim)
| Trigger (file pattern OR topic) | Use `subagent_type:` |
|---|---|
| `migrations/`, `schema.sql`, Room/Django/Rails migrations | `db-migration-reviewer` |
| `auth/`, OAuth/SAML/JWT, login flow, password reset | `security-officer` |
| Payment endpoints, `stripe.`, webhooks, refund flow, PCI scope | `pci-reviewer` |
| GDPR, EU AI Act, NIS2, EU data residency | `gdpr-reviewer` |
| Clinical / SaMD / FDA / FHIR / PHI / HIPAA | `ai-clinical-reviewer`, `fda-reviewer` |
| Lending, ECOA, FCRA, NMLS, adverse action | `lending-credit-reviewer` |
| New feature implementation (TDD: RED → GREEN) | `senior-dev` |
| Architecture decisions, ADRs, scaling questions | `architect` |
| Decompose feature into tasks, dependency graph, Beads | `pm` |
| QA report after impl, coverage + acceptance | `qa-engineer` |
Architect Agent Frontmatter (verbatim)
---
name: architect
description: Use when starting any new feature. Creates architecture docs, ADRs, cost estimates, Well-Architected review. Always first in the pipeline.
model: claude-opus-4-7
tools: Read, Write, Glob, Grep, WebFetch, WebSearch, Bash(git:*), Bash(bd:*), Bash(ls:*), Bash(cat:*), Bash(find:*), Bash(node:*), ...
maxTurns: 30
timeout: 1200
effort: HIGH
memory: project
color: yellow
skills:
- decision-eval
- superpowers:writing-plans
- superpowers:requesting-code-review
- anthropic-skills:system-architect
- anthropic-skills:adr
- beads
- skeptical-triage
- done-blocked
- well-architected
- discovery
---
/start Command Frontmatter (verbatim)
---
description: "Set up a new project. Describe what you're building — agents do the rest."
argument-hint: "[free-form project description]"
user-invocable: true
allowed-tools: Read, Write, Bash, Glob, Grep, Agent
model: sonnet
---
/board Command (localhost:3141, verbatim)
---
description: "Open the great_cto admin board at http://localhost:3141 (Kanban, cost, pipeline, inbox, memory). Starts it in background if not running."
argument-hint: "[--port N] [--no-open] [--restart]"
user-invocable: true
allowed-tools: Read, Bash, Glob
model: haiku
---
SessionStart Hook (behavior summary)
At every session start, the hook:
- Copies all managed commands (
/start, /audit, /inbox, /board, etc.) to ~/.claude/commands/
- Copies all 57 agents to
~/.claude/agents/great_cto-<name>.md
- Loads
~/.great_cto/preferences.md (global user preferences)
- Loads
.great_cto/PROJECT.md (phase, archetype, jurisdiction, stack)
- Shows open gates count, open tasks count, current branch, last agent
- Emits P0 alert if any P0-labeled Beads items are open
- Loads latest HANDOFF.md (from PreCompact)
- Background clones anthropic-skills and personal-skills repos if not cached
- Runs skill-discover.sh to update skills-registry.json
- Shows active global patterns matching current archetype
PreCompact Hook Output (HANDOFF.md)
# Auto-Handoff — 2026-05-26 10:00
> Auto-saved by PreCompact hook. Next session: read this, then /inbox.
## Git
- Branch: `feat/refund-endpoint` | Last commit: `feat: add refund validation` | Uncommitted: 2 files
## Open Gates
gate:plan (ID: abc123)
## Open Tasks
senior-dev: implement refund endpoint
## Last Agent Verdict
2026-05-26 qa-engineer PASS coverage=94%
## Latest Docs
- Arch: docs/architecture/ARCH-20260526.md
- QA: docs/qa-reports/QA-20260526.md
- Security: docs/security/CSO-20260526.md
## Resume
Run `/inbox` to see pending gates, then continue pipeline.
SubagentStart Hook Injection
Each subagent receives on start:
.great_cto/PROJECT.md (first 15 lines)
.great_cto/brain.md current synthesis section (first 40 lines)
.great_cto/HANDOFF.md (first 20 lines)