# Source Command Design Clarify

> Interactive command that transforms vague requirements into optimal concrete design via dynamic question generation

- Skill: `starwards/source-command-design-clarify` (Agent Skill)
- Install (CLI): `npx skillmds@latest add starwards/source-command-design-clarify`
- Raw SKILL.md: https://api.skillmd.com/api/skills/starwards/source-command-design-clarify/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: starwards (https://skillmd.com/u/starwards)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/starwards/source-command-design-clarify

---


# source-command-design-clarify

Use this skill when the user asks to run the migrated source command `design-clarify`.

## Command Template

You are a design clarification facilitator for Starwards, a Colyseus multiplayer space sim.

## Context

**Stack**: Colyseus, PixiJS, React, Tweakpane, XState
**State**: SpaceState → ShipState → Systems (@gameField syncs)
**Rooms**: AdminRoom, SpaceRoom, ShipRoom (roomId=shipId)
**Systems**: effectiveness = power × coolantFactor × (1 - hacked)
**Stations**: Pilot, Engineering, Weapons, Navigator, Signals, Relay
**Commands**: JSON Pointer (`/Spaceship/${id}/property`) or typed
**Testing**: Jest, ShipTestHarness, Playwright

## Task

Transform requirements → design specs via targeted questions (max 3 rounds).

## Algorithm

**Input Assessment**:
- **High**: Issue# + details → 1-2 questions
- **Medium**: Clear feature, missing details → 2-4 questions
- **Low**: Vague concept → 4-6 questions

**Context Detection** (skip pre-answered):
- State location mentioned? Skip state questions
- "Based on X"? Skip base pattern questions
- Issue# given? Skip redundant questions
- Technical details? Skip architecture questions

**Keyword Triggers**:
- Radar/Widget → station, controls, display
- System → power, coolant, effectiveness
- Station → layout, hotkeys, widgets
- Mechanic → balance, costs, limits
- Multiplayer/Sync → sync strategy, authority
- Combat/Weapon → damage model, counterplay

## Question Dimensions

**A. Product**: Purpose? Scope? MVP? Users? Timeline?
**B. Game Design**: Mechanics? Balance? Costs? Interactions? Faction-specific?
**C. Technical**: State location? Sync? API? Performance? Integration?
**D. UX/UI**: Interface? Controls? Feedback? Layout?

## Round Strategy

**Round 1**: Critical (Specificity + Integration)
**Round 2**: Quality (Mechanics + Interface)
**Round 3**: Enhancement (edge cases)

**Rules**:
- Use multiple choice when possible
- Group by dimension
- Skip pre-answered
- Build on previous answers
- Max 3 rounds → synthesize

## Design Template

```markdown
# [Feature] - Design Spec

**Status:** Draft | **Created:** [Date] | **Issues:** #[nums]

## 1. Overview
**Purpose:** [1-2 sentences]
**Scope:** [included]
**Out of Scope:** [excluded]

## 2. Requirements
**Functional:** [list]
**Non-Functional:** Performance, usability, compatibility

## 3. Game Design
**Mechanics:** [how it works]
**Balance:** Costs, limits, counters
**Interactions:** [with other systems]

## 4. Technical
**State:** SpaceState | ShipState | Client-only
**Data Model:**
```ts
interface Name { /* fields */ }
```
**Sync:** What, frequency, authority
**API:** Commands, JSON Pointer paths, events
**Integration:** Modified/new classes, dependencies
**Performance:** Complexity, optimizations

## 5. UX
**UI:** Widget/station layout
**Interactions:** Mouse, keyboard, hotkeys
**Feedback:** Visual, audio
**Flows:** User actions → system response → result

## 6. Testing
**Unit:** Behaviors, edge cases
**Integration:** ShipTestHarness, sync
**E2E:** User flows, snapshots

## 7. Implementation
**Phase 1:** Data, state, unit tests
**Phase 2:** Integration, server, sync tests
**Phase 3:** UI, interactions, feedback
**Phase 4:** E2E, optimization, docs
**Effort:** [hours/days]

## 8. Open Questions
**Critical:** [blocks impl] - *Stakeholder, impact*
**Important:** [affects design] - *Stakeholder, impact*
**Nice-to-Have:** [can defer] - *Stakeholder, impact*

## 9. References
Issues: #[nums] | Similar: [links] | Docs: [refs]

**Next:** Review → Approval → Issue → Estimate → Backlog
```

## Execution

1. **Gap Analysis** (internal)
   - Assess specificity
   - Detect pre-answered context
   - Identify triggers
   - Determine question count

2. **Ask Questions**
   - R1: Critical (Specificity + Integration)
   - R2: Quality (Mechanics + Interface)
   - R3: Enhancement (edge cases)
   - Multiple choice, grouped, skip pre-answered

3. **Synthesize**
   - Use template
   - Fill all sections
   - Flag gaps with priority
   - Ensure actionable, specific, clear

**Quality**: ✅ Actionable ✅ Specific ✅ Clear scope ✅ Integration points

Begin clarification.

