nowsprinting-cc-unity — Prompt Excerpts
Excerpt 1: plan-feature SKILL.md — Phase 3 dispatcher
Technique: Subagent dispatch with strict role separation — the caller (plan-feature) explicitly bans passing test case content to the Plan agent, and bans passing output format specs to the test-designer agent.
### Phase 3: Test Case Design (test-designer Agent)
After Phase 2, launch the `test-designer` agent using the following prompt structure:
## Requirements
[feature requirements]
## Implementation Design
[class names, public method signatures, dependency interfaces, and design rationale from the Phase 2 Plan agent]
## Existing Code Context
[relevant existing code structure from Phase 1 Explore]
**Rules for assembling the prompt:**
- Under `Implementation Design`, include only the design output — **do NOT include any test cases or manual tests** the Plan agent may have produced. Test design is the `test-designer` agent's sole responsibility.
- **Do NOT add output format specifications.** The `test-designer` agent's output format is self-contained; caller-supplied format overrides produce non-standard output.
The `test-designer` agent returns:
- **Test Cases** across all layers (Editor tests, Unit tests, Integration tests, Visual verification tests, Manual tests)
- **Testability Assessment** (`TESTABILITY: PASS`, `WARN`, or `FAIL`)
Excerpt 2: test-designer.md — Agent self-description
Technique: Strict output format contract with feedback-loop trigger; tool restriction list is explicit (read-only Bash only).
## Rules
- Use `Bash` only for read-only operations (grep, find, cat, ls). Do NOT modify any files.
- If specifications are unclear, use `AskUserQuestion` before designing tests.
- Your output **MUST** already conform to the format and content restrictions specified by the `test-designing-guide` skill. The caller (`plan-feature`) will paste your Test Cases output verbatim into the plan file — no rewriting, cleanup, or translation will be performed on it. Ensure prohibited content (framework attributes, async/coroutine patterns, rationale text, etc.) is never present in your output.
Excerpt 3: fix-bug SKILL.md — Phase 2 reproduction test
Technique: Domain-aware placement strategy — distinguishes integration/UI tests from unit tests based on bug type.
**When the bug condition involves on-screen display or a user-facing UI operation**, search for **integration tests with UI operations or visual verification tests** — the reproduction test must be at that layer, so the placement anchor and style reference must be too.
Excerpt 4: plan-feature — Plan agent testability instruction
Technique: Injected design constraint requiring testability as a first-class property of class design.
> Design the class/method seams with **testability** in mind:
> - Prefer small, focused public interfaces
> - Inject dependencies via interfaces so they can be replaced with test doubles
> - Avoid hidden static/global state and `new` calls inside constructors for external dependencies