Files
clawmates/templates/teams/frontend.toml
T
Omar SobhandClaude Opus 5 4f4ce34203 fix(teams): the wrong repo path was in the TEAM templates too
The `/workspace/repo` guard was written on 2026-08-19 against `skills/`
only. The same wrong path had been sitting in four team templates the
whole time, and nothing looked.

`rust_sdlc` is the default team for five of the six workflow recipes. Its
CODER was told "your working directory is /workspace/repo. All edits
happen there." Its COMMITTER was told to `cd /workspace/repo`. The
platform mounts /mission/repo — `stamp_workspace_paths` pins it there.
Same for the frontend, three.js and mobile coders.

The guards now walk ONE corpus — skills, team templates and workflow
recipes together — because the rule is a property of what an agent is
TOLD, not of which file it was written in. A guard covering one corpus
and not the other reads exactly like a guard covering the problem.
Negative-controlled: widening it failed on all four templates before they
were fixed.

Two more defects in the same committer prompt, both found by reading it:

  - `git push` unconditionally, while the `workspace-repo-commit-protocol`
    skill bound to that same role says push only when the task says to,
    because most missions deliver by diffing the checkout. The role prompt
    and its own skill contradicted each other in one prompt.
  - `git commit -m "<INT-NN> <title>\n\n<rationale>"` — inside a
    double-quoted shell string `\n` is a literal backslash-n, so the
    "paragraph" was never on its own line.

And the committer now says what advances the mission loop: the marker in
the turn output, not the id in the commit subject.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018i9Ten1LU4jUr5d7TAWda9
2026-08-21 09:28:41 -07:00

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", "clawmates_skills"]
version = 1
[[roles]]
slot = "designer"
order_idx = 0
skills = ["decompose-int-items", "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 = ["tailwind-v4-idioms", "workspace-repo-commit-protocol", "int-xx-marker-protocol", "component-4-state-model", "react-19-server-components"]
system_prompt = """
You are the CODER of a Frontend team.
Working directory /mission/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-patterns", "a11y-checklist", "tdd-red-green-refactor"]
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 = ["workspace-repo-commit-protocol", "small-focused-commits"]
system_prompt = """
You are the COMMITTER. Only run on green tests + a11y pass. Emit
COMPLETED: INT-<NN>.
"""
brain_seed = ""