Team templates are the canonical rosters + tool bundles that mint
concrete teams for a mission. Every builtin ships as a TOML recipe
under templates/teams/*.toml, loaded into the DB at server boot.
Migration 0048 adds:
- team_templates (id, key, name, stack, default_topology,
risk_profile, mcp_bundles, version, source,
workspace_id)
- template_roles (m2m: template_id + slot; system_prompt,
skills[], brain_seed)
- teams gets template_id + template_version for level-up lineage
Ships 6 builtins:
- rust_sdlc — planner/coder/tester/reviewer/committer for Rust
- backend — api_designer/db_engineer/coder/tester/committer
(Postgres, DuckDB, graph DBs, wire protocols)
- frontend — designer/coder/tester/committer (React + Tailwind + ShadCN)
- mobile — designer/coder/tester/committer (Expo, RN, iOS, Android)
- gpu — arch_analyst/kernel_author/bench_engineer/coder/committer
(CUDA, Metal, ROCm from Rust)
- threejs — scene_designer/coder/shader_author/perf_engineer/
committer (three.js, WebGL, WebGPU)
Each role has a versioned system_prompt + skill list + brain_seed
markdown. Skills column is a name array today; Slice 3.5a promotes it
to a typed m2m join with the real skills catalog.
Server boot:
- team_template_loader::load_builtins reads TOML from
/etc/clawmates/templates/teams (container) or templates/teams (dev),
upserts idempotently. Deterministic uuid per template key (sha256
of a fixed namespace + key) so ids are stable across boots.
- Dockerfile copies templates/ to /etc/clawmates/templates.
Read API:
- GET /api/team-templates — list all
- GET /api/team-templates/{id} — detail with roles
Wizard:
- Step 3 rewired from a raw team_id text field to a template picker
with "LLM auto-provision" as the default option + one card per
builtin, showing stack, topology, risk profile, and description.
- Mission create now passes team_template_id (not team_id) so phase
execution knows which template to mint from.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
74 lines
2.3 KiB
TOML
74 lines
2.3 KiB
TOML
key = "frontend"
|
|
name = "Frontend"
|
|
description = "Latest React + TailwindCSS + ShadCN — component authoring, accessibility, responsive design."
|
|
stack = ["typescript", "react", "tailwindcss", "shadcn", "next"]
|
|
default_topology = "pipeline"
|
|
risk_profile = "coding_readwrite"
|
|
mcp_bundles = ["clawmates_door", "gitea_forge"]
|
|
version = 1
|
|
|
|
[[roles]]
|
|
slot = "designer"
|
|
order_idx = 0
|
|
skills = ["decompose_int_items", "design_system_check", "a11y_checklist"]
|
|
system_prompt = """
|
|
You are the DESIGNER of a Frontend team.
|
|
|
|
For each INT item: sketch the component's states, define props, list
|
|
edge cases (empty / loading / error / RTL / dark mode), and pick the
|
|
ShadCN primitives to compose. Hand off to the coder with the exact
|
|
Tailwind class names and any a11y notes.
|
|
"""
|
|
brain_seed = """
|
|
# Frontend design seed
|
|
|
|
## Every component gets four states
|
|
- empty (no data yet)
|
|
- loading (skeleton, never a spinner alone)
|
|
- error (with recovery affordance)
|
|
- ready
|
|
|
|
## Never author raw HTML for a primitive ShadCN ships.
|
|
"""
|
|
|
|
[[roles]]
|
|
slot = "coder"
|
|
order_idx = 1
|
|
skills = ["write_typescript_react", "tailwind_idioms", "workspace_repo_edit", "git_commit_protocol"]
|
|
system_prompt = """
|
|
You are the CODER of a Frontend team.
|
|
|
|
Working directory /workspace/repo. Implement per the DESIGNER's spec.
|
|
Type strictness > convenience — no `any`, no `as` escapes without a
|
|
comment explaining why.
|
|
"""
|
|
brain_seed = """
|
|
# React/TS memory seed
|
|
- Server components by default; 'use client' only where interactivity
|
|
or hooks demand it.
|
|
- Tailwind class order: layout → box → typography → color → state.
|
|
- No inline styles on components that render more than once.
|
|
"""
|
|
|
|
[[roles]]
|
|
slot = "tester"
|
|
order_idx = 2
|
|
skills = ["playwright_e2e", "vitest_unit", "a11y_axe"]
|
|
system_prompt = """
|
|
You are the TESTER of a Frontend team.
|
|
|
|
Unit tests with Vitest for pure components. Playwright for flows.
|
|
Axe scan every page under test — a11y regressions fail the build.
|
|
"""
|
|
brain_seed = ""
|
|
|
|
[[roles]]
|
|
slot = "committer"
|
|
order_idx = 3
|
|
skills = ["git_commit_protocol", "small_focused_commits"]
|
|
system_prompt = """
|
|
You are the COMMITTER. Only run on green tests + a11y pass. Emit
|
|
COMPLETED: INT-<NN>.
|
|
"""
|
|
brain_seed = ""
|