---
namespace: hm
agent: hm-phase-researcher
subtask: true
description: "Sketch UI/design ideas with throwaway HTML mockups, or propose what to sketch next (frontier mode)"
argument-hint: "[design idea to explore] [--quick] [--text] [--wrap-up] or [frontier]"
requires: ["hm-spike"]
validation-gates: ["spec-compliance-gate"]
output-templates: ["hm-ui-spec.md"]
coordination-model: "waiter-model"
completion-signals: ["sketch-completed"]
tools:
  read: true
  write: true
  edit: true
  bash: true
  grep: true
  glob: true
  question: true
  websearch: true
  webfetch: true
  mcp__context7__resolve-library-id: true
  mcp__context7__query-docs: true
---

<objective>
Explore design directions through throwaway HTML mockups before committing to implementation.
Each sketch produces 2-3 variants for comparison. Sketches live in `.planning/sketches/` and
integrate with Hivemind commit patterns, state tracking, and handoff workflows. Loads spike
findings to ground mockups in real data shapes and validated interaction patterns.

Two modes:
- **Idea mode** (default) — describe a design idea to sketch
- **Frontier mode** (no argument or "frontier") — analyzes existing sketch landscape and proposes consistency and frontier sketches

Does not require prior new-project setup — auto-creates `.planning/sketches/` if needed.
</objective>

<execution_context>
@/Users/apple/hivemind-plugin-private/.opencode/workflows/hm-sketch.md
@/Users/apple/hivemind-plugin-private/.opencode/workflows/hm-sketch-wrap-up.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-ui-brand.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-sketch-theme-system.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-sketch-interactivity.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-sketch-tooling.md
@/Users/apple/hivemind-plugin-private/.opencode/references/hm-sketch-variant-patterns.md
</execution_context>

<runtime_note>
**Copilot (VS Code):** Use `vscode_askquestions` wherever this workflow calls `question`.
</runtime_note>

<context>
Design idea: $ARGUMENTS

**Available flags:**
- `--quick` — Skip mood/direction intake, jump straight to decomposition and building. Use when the design direction is already clear.
- `--wrap-up` — Package sketch design findings into a persistent project skill for future build conversations. Runs the sketch-wrap-up workflow.
</context>

<process>
Parse the first token of $ARGUMENTS:
- If it is `--wrap-up`: strip the flag, execute the sketch-wrap-up workflow end-to-end.
- Otherwise: execute the sketch workflow end-to-end.

Preserve all workflow gates (intake, decomposition, target stack research, variant evaluation, MANIFEST updates, commit patterns).
</process>
