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
Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by the principles and structure of the Diátaxis technical documentation authoring framework.
testing
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
tools
Comprehensive guide for building, configuring, customizing, and deploying Docsify documentation sites. Use when the user wants to (1) initialize a new Docsify site, (2) add or organize Markdown pages, sidebars, navbars, or cover pages, (3) configure `window.$docsify` options, (4) customize themes / CSS variables / fonts, (5) install built-in or third-party Docsify plugins (search, GA, emoji, zoom, copy-code, comments, pagination, tabs, etc.), (6) write a custom Docsify plugin using lifecycle hooks, (7) use Docsify Markdown helpers (callouts, link attributes, image attributes, heading IDs, task lists, embed files with `:include`), (8) deploy to GitHub Pages, GitLab Pages, Netlify, Vercel, Firebase, Docker, Nginx, etc., (9) enable PWA / offline mode, virtual routes, or Vue compatibility, or (10) upgrade a Docsify site from v4 to v5. Triggers on mentions of "docsify", "_sidebar.md", "_navbar.md", "_coverpage.md", "$docsify", or `docsify-cli`.
testing
Writing guidelines for producing high-quality Traditional Chinese (zh-TW) content. Use when writing any kind of content. Including blog posts, notes, technical articles, technical writing, chitchat, social media posts, etc., even when you are just sending a text message. Also use when reviewing or editing existing Chinese content for tone, style, and terminology compliance.