skills/rubber-duck/SKILL.md
Invoke a Rubber Duck Reviewer subagent to independently critique plans and implementations before proceeding. Use when the agent is about to implement a non-trivial plan (multi-file changes, architectural decisions, security-sensitive logic, database schema changes), after completing a self-contained unit of work (module, endpoint, feature), when stuck or facing repeated failures (same test fails 2+ times, unexpected results), or when the agent wants independent validation of assumptions and design decisions. Triggers on any non-trivial implementation task where independent critique would catch blind spots before they become costly mistakes.
npx skillsauth add jim60105/copilot-prompt rubber-duckInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke a separate, stateless subagent to independently critique your plan or implementation before proceeding. This catches blind spots, logic errors, and security issues while course corrections are still cheap.
Most non-trivial tasks that fail had issues a rubber-duck critique could have caught early. Treat this as a required step for non-trivial work, not an optional enhancement.
Always invoke before implementing when:
Invoke after completing a unit of work when:
Invoke reactively when:
Do NOT invoke when:
references/rubber-duck-system-prompt.mdPlatform fallback: If your agent platform does not support binding a separate system prompt to the subagent, send the contents of
references/rubber-duck-system-prompt.mdas the highest-priority instruction before the review request message.
The subagent is stateless. Every invocation must be fully self-contained. Brevity rules that apply to user-facing responses do NOT apply here — be thorough.
## Task
[Copy or precisely summarize the user's original request]
## My Plan / Implementation
[Complete step-by-step plan OR the actual code being reviewed.
Paste real code. Never summarize what the code does — show it.]
## Design Decisions and Assumptions
[Key choices and reasoning:
- Why approach A over approach B?
- Environment assumptions (language version, framework, data shape)?
- Constraints (existing API contracts, upstream/downstream callers)?]
## Specific Questions (optional)
[Focused questions for targeted feedback:
- "Is the error handling complete for the case where X is null?"
- "Is it safe to assume Y will never be called concurrently?"
- "Does this approach handle the edge case where Z is empty?"]
| Tier | Action | |---|---| | 🔴 Blocking Issues | Stop. Fix before proceeding. | | 🟡 Non-Blocking Issues | Evaluate. Decide deliberately whether to address or defer. | | 🟢 Suggestions | Consider. Address if convenient. | | ✅ Verdict | Read carefully — determines whether to proceed, adjust, or rethink. |
For each finding, exercise judgment:
If verdict says "significant rethink needed," stop and revise the plan. Re-invoke on the revised plan if changes are substantial.
Do not copy the reviewer's feedback verbatim to the user. Summarize concisely:
When re-invoking after revisions:
| Anti-pattern | Why it fails | |---|---| | One-line summary instead of real code | Cannot review what it cannot see | | "Review everything" with no context | Unfocused prompts produce unfocused feedback | | Ignoring 🔴 findings because the fix is hard | Difficulty is not a reason to skip | | Over-invoking on every small change | Dilutes value; becomes background noise | | Treating verdict as final approval | It only knows what you told it | | Summarizing assumptions instead of stating them | Ambiguous assumptions are the top blind spot source |
development
Generate images via the Stable Diffusion WebUI / Forge HTTP API (AUTOMATIC1111-compatible `/sdapi/v1/*`). Use when the user wants to (1) discover or pick a model / extra module (TE/VAE) / sampler / scheduler / style preset from a running sd-webui server, (2) generate an image with a given prompt (txt2img), (3) check generation progress, (4) cancel/interrupt an in-flight generation, (5) inspect or change a global sd-webui option (e.g. active checkpoint), or (6) test connectivity. This skill talks to a *generic* sd-webui-compatible server (AUTOMATIC1111, Forge, reForge, sd-webui-forge-classic). Do NOT trigger for requests that are purely writing the prompt itself.
testing
Verify implementation matches change artifacts. Use when the user wants to validate that implementation is complete, correct, and coherent before archiving.
development
Update an OpenSpec change by revising its existing planning artifacts and keeping them coherent with one another. Use when the user wants to revise a change's plan, fold new decisions into it, or reconcile its artifacts after an edit. Never edits code.
data-ai
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.