Skip to content
Back to skills

Duck Why

ASecurity

Name the cause of a failure before anyone writes a fix, because the symptom is not the defect. Use when a test fails, a bug is reported, a build or CI goes red, a traceback or error is pasted, something passes in one place and fails in another, a fix keeps not sticking, a review rejects a change, or the user asks why something fails, even when the code is pasted inline and the cause looks obvious. Also when the user asks who added a constant, timeout, flag or guard and why, or whether that re...

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 20, 2026
researchgogit

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add askrubberduck/skills --skill duck-why --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Duck Why?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Duck Why
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/askrubberduck-duck-why/badge)](https://www.skillsdirectory.com/skills/askrubberduck-duck-why)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: duck-why
description: Name the cause of a failure before anyone writes a fix, because the symptom is not the defect. Use when a test fails, a bug is reported, a build or CI goes red, a traceback or error is pasted, something passes in one place and fails in another, a fix keeps not sticking, a review rejects a change, or the user asks why something fails, even when the code is pasted inline and the cause looks obvious. Also when the user asks who added a constant, timeout, flag or guard and why, or whether that reason still holds, even though nothing is failing. Not for explaining how something works.
---

# Duck Why

Find the demonstrated cause of the failure and the paths it affects. Stop when the explanation
accounts for the evidence; a typo needs no architectural diagnosis.

Follow the user's language unless they ask otherwise. Keep commands, paths, identifiers,
quoted errors and machine-readable verdicts unchanged; the duck asks for evidence in any language.
Before a step that requires the procedure of a skill, load that skill. Follow its named section
within existing authority. A conditional or routing mention needs no load until it applies.

This skill diagnoses without editing the candidate. Return the cause and repair location to the
caller, which continues any authorized fix and verification. Do not ask again for the same local
repair permission, or imply a diagnosis satisfies a release gate.

## Reproduce and trace

Reproduce and examine the output and relevant state. If the environment is unavailable
or the fault intermittent, use logs, traces and history, state the reproduction limit, and separate
observations from provisional explanations.

Trace the failing path to the first point where behavior diverges from the required contract. Read
what depends on the failing part: callers and configuration for code, citing sections and decisions
otherwise. Classify which dependents can reach the failure and which enforce preconditions that
prevent it. State search limits when external or dynamic callers cannot be enumerated. Shared
code does not imply every caller is broken.

Identify the cause at the level that explains those paths. A shared rule can need one repair at its
definition, not a guard in each caller; a wrong comparison can need only that comparison fixed. If a
fix would work around a recorded design or policy decision, that decision is a cause candidate.

## Separate plausible causes

If several explanations fit, run the cheapest observation that distinguishes them. With decisive
direct evidence, verify that explanation without inventing a rival. A passing general suite
does not refute a reproducer it never exercises.

Cite inspected source as source evidence, executed behavior as observation, and deductions as
reasoning. Never describe an unexecuted prediction as observed output. Investigate additional
errors that can affect the causal chain. Record why you ruled out a consequential competing cause.

## Trace an existing decision

A question about when or why something was introduced has no failure to reproduce. Trace the
artifact's own history: for code, `git log -S` or `-G` on the symbol and blame at the current line;
for a document or plan, its revisions. Find where the reason was stated (description, linked
ticket, review thread). Keep the recorded reason apart from your inference, and check it against
today's callers and later changes. Return the introducing change, its record, the reason, and its
status: holds, lapsed (name the change that removed it) or unknown. A lapsed reason is a
finding, not a deletion; removal belongs to [`duck-shape`](../duck-shape/SKILL.md).

## Return an actionable diagnosis

For a failure, start with the cause or the unresolved question, then give:

- The reproducer or available trace, actual result and expected contract.
- Source and observations connecting the failure to the cause, including affected sibling paths.
- The shared repair location and the check that would show the failure is gone.
- Material uncertainty and the next discriminator, if the cause remains unresolved.

A repair restores the contract. Deletion of the failing file, directory or check removes the
evidence, not the cause; do not offer it as the fix.

For a cause in code landed from a reviewed candidate, add the defect, the candidate SHA the gate
reviewed and its approving reviewers to [`duck-land`](../duck-land/SKILL.md)'s outcome record for
that landing.

Keep ruled-out hypotheses only when their evidence prevents a repeat of a consequential dead end.
Do not create a design or work item to explain a local defect. An unsettled architectural contract
belongs to [`duck-frame`](../duck-frame/SKILL.md), an owner policy choice to
[`duck-decide`](../duck-decide/SKILL.md). [`duck-proof`](../duck-proof/SKILL.md) verifies the
eventual repair.

Files in this skill

  • SKILL.md3.3 KB
  • agents/openai.yaml256 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.