Skip to main content
BuildReviewed Oct 19, 2026

Writing Defect Reports

v1.0.1New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install ffmpeg-skill-writing-defect-reports

What this does: Establish a finding before you publish it, and correct it after — headlines that overstate what actually reproduces at the layer a user sees, reporting code that no entry point can reach or that is already dead, filing a caveat the project's own records already answered, re-verifying your prior notes against the tree instead of against the note, choosing the narrowest injection point that reproduces a failure without breaking the run first, capturing probe output a harness swallows, and withdrawing a published claim in the thread where you published it. Use when filing an issue, writing the body of a PR or code review that asserts a defect, triaging someone else's report, or deciding whether a suspicious observation is reportable at all.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/ffmpeg-skill-writing-defect-reports/SKILL.md

Setup guide →
0Save

Instructions

Writing Defect Reports

A report is a claim, and it is read by people who will not re-derive it. The cost
of an overstated one is not embarrassment — it is a maintainer spending an
afternoon on a premise that does not hold, or a "fix" landing for a failure mode
that never occurred. The techniques for finding a defect live in
verifying-external-behavior (also in this repo's .claude/skills/). This
skill is about the step between finding one and publishing it.

The rule underneath all of it: publish the claim you actually measured, at the
layer you measured it.

The anomaly is real; the headline may not be

The common failure is not a fabricated bug. It is a genuine internal oddity
promoted one layer too far.

You notice that a helper returns a degenerate value for a small sample, trace it
into a scoring path, and write the report as "short inputs are wrongly flagged."
Then you run real short inputs through the public entry point and the flag never
sets — a downstream threshold absorbs the degenerate value, and the only visible
effect is noise in a secondary per-feature list. The internal oddity is worth
fixing; the headline was false, and a reviewer who tests it will say so.

Before writing the title, run the reproduction at the outermost layer the title
names.
Then choose one of three honest framings:

what you measuredhow to file it
reproduces end to endfile it as the user-visible symptom
reproduces internally, absorbed downstreamfile the internal defect, state the absorption
does not reproduce at alldo not file; record the probe and move on

The second row is a good report, not a weak one. "This helper returns a value it
should not; today a threshold happens to mask it, so there is no user-visible
symptom yet" tells a maintainer exactly how to prioritize. Silently keeping the
dramatic title because the underlying issue is real is what burns credibility.

Check the code is reachable before calling it broken

Three shapes look like defects and are not — or are, but not the one you were
about to describe:

A branch that cannot execute. An early return guarding a lookup that already
returns the same value on the missing case; a condition a preceding gate already
implies. This is dead code, and "dead code" is the accurate report. Filing it as a
correctness bug, or naming a test as though it exercises that branch, misleads
everyone downstream — confirm liveness by deleting the line and watching the
suite, not by reading it.

A guard whose pattern only matches your fixture. A validity check written
against a hand-typed sample can be structurally unable to fire against the real
input: a single-line pattern against a generator that wraps its output across
indented lines, an exact-string check against a source that varies whitespace.
Verify the guard against a captured real input, not the fixture. The consequence
matters for the fix, too: replacing synthetic fixtures with real captures deletes
that guard's only coverage, so the fix and the fixture change belong in one
change, not two.

A file nothing invokes. Repos accumulate scripts that reference paths the
repo does not contain and toolchains it does not depend on. Before reporting one
as broken, find the caller — the task runner, the workflow, the entry point. If
there is none, the report is "this is dead, delete it," which is cheap and
uncontroversial, rather than "the build is broken," which is wrong.

Search the project's own records before filing a caveat

The most avoidable report is the one the project already answered. Two measured
figures that look inconsistent are usually inconsistent definitions, and the
definition is usually written down: a claim ledger row, a docstring, a design
note, a closed issue.

Grep for the term before writing "these two numbers do not appear to compute the
same quantity." If a record pins the definition, cite it — the caveat you were
about to publish reads as an open question the project already closed, and a
maintainer has to re-close it.

The same discipline applies to numbers you are quoting. Figures in an older
issue may not reproduce, because a dependency the value depends on is unpinned
and the installed version has changed. Re-measure before restating, and record it
with the command, output, and date — see verifying-external-behavior for why
an undated measurement cannot be re-checked, and cross-surface-changes for
choosing between two records that cover the same fact.

Quote the protocol next to the figure, not only in whatever artifact produced
it: the split, the warmup, the seed, the version. Two documents quoting the same
metric under different protocols read as a regression to anyone comparing them,
and the reader has no way to tell that they are not comparable.

Your earlier note is a claim, not evidence

Working notes, scratch findings, and a prior comment on the same issue are
secondary sources — including your own. They were true about a tree that has
since moved, or they were wrong when written.

When a note and the code disagree, the code settles it. Re-derive from the
integration branch directly rather than from a checkout that may be behind:

git show origin/main:path/to/file.py | grep -n 'the_symbol'

If two notes contradict each other, do not average them and do not pick the more
recent — re-check the tree and then correct the wrong note in place, saying that
it was wrong. A knowledge base that records both readings without resolving them
is worse than one that records neither, because the next reader will pick one at
random.

Pick the narrowest injection point that reproduces the failure

To exercise a failure path by hand you need to break something. Break the
smallest possible thing, or the run dies before reaching the path you care about.

The classic miss is a blanket hook or a global monkeypatch:

# Too broad — rejects EVERY commit, including the unrelated bookkeeping commit
# the process makes first. The run fails earlier than the path under test, and
# you have reproduced a different bug.
echo 'exit 1' > .git/hooks/pre-commit

# Narrow — fails exactly the operation whose failure you want to observe.
cat > .git/hooks/commit-msg <<'EOF'
grep -q 'sync from source-b' "$1" && exit 1
exit 0
EOF

The same rule holds elsewhere: fail one HTTP host rather than the network; make
one file unreadable rather than the directory; raise from one call rather than
patching the module. After the run, confirm it failed where you intended —
otherwise you have measured your instrumentation.

Check where your probe's output actually goes. Test harnesses commonly
replace the global logger or console object at setup, and verbosity flags do not
undo that. If a probe prints nothing, append to a file outside the harness's
reach and read it afterwards, rather than concluding the code path did not run.

Report the checks that model a real regression

When you back a report with mutation evidence, include only mutations that (a)
plausibly model how an implementation would actually regress and (b) demonstrably
turn a named test red. A mutation that nothing catches is worth reporting as a
coverage gap; a mutation nobody would ever write is noise that makes the rest of
the report look padded.

State which test each mutation trips, and which assertion inside it — a guard
often turns out to be load-bearing at a different layer than the report assumed,
and the assertion name is what reveals it.

A red gate is not an aside

Whether a red check is pre-existing is answered by running it on the base commit
— see reproducing-ci-locally (also in this repo's .claude/skills/). What
belongs here is where that answer goes in the write-up. A red check is never a
parenthetical under a "done" claim: give it its own statement naming what is red,
what makes it red, and whether you fixed it. And confirm green after the run
finishes
rather than writing "should be green" — a prediction stated as an
outcome is the same defect as an overstated headline, one artifact over.

Withdraw published claims where you published them

A wrong claim that has been read does not become unwritten when you stop
repeating it. If a caveat, a number, or a framing you published turns out to be
wrong or already-answered:

  • Say so in the same thread, naming what was wrong and what is true instead.
  • Do not quietly delete it and re-file a corrected version elsewhere; readers who
    saw the first one are never routed to the second.
  • Keep it to the correction. A retraction is one or two sentences — what you
    claimed, what is actually the case, what changes as a result.

The same applies to a claim you inherited. If you repeat someone else's figure and
it fails to reproduce, correcting it is part of your report, not a separate errand.

Checklist

Before publishing a defect report:
- [ ] Reproduction run at the outermost layer the title names; title matches
      what reproduced there, not what you found internally
- [ ] Absorbed-downstream findings filed as internal defects, with the absorption
      stated — not promoted to a user-visible symptom
- [ ] The code is reachable: an entry point calls it, and the branch is live
      (checked by deletion, not by reading)
- [ ] Guards verified against a captured real input, not the fixture that was
      written alongside them
- [ ] Project records (ledger, docstrings, design notes, closed issues) searched
      for a definition that already resolves the discrepancy
- [ ] Every quoted number re-measured, with version, command, and date; protocol
      stated next to the figure
- [ ] Prior notes re-verified against the integration branch, and any wrong note
      corrected in place
- [ ] Failure injected at the narrowest point; run confirmed to have failed where
      intended
- [ ] Mutation evidence limited to plausible regressions, each attributed to a
      named test and assertion
- [ ] No red check described as pre-existing under a "done" claim; green
      confirmed after the run finished, not predicted
- [ ] Any earlier wrong claim withdrawn in the thread where it was published

Note for this repository (ffmpeg-skill)

This is the same discipline behind this repo's 0.9.1/0.10.0 "honesty fix"
pattern: cut.py's mode/keyframe_snapped/duration_delta_seconds fields,
check.py's reason field, and render.py's check-stage exit code were all
added because a prior report ("the cut is lossless," "the check passed," "the
render succeeded") was true at one layer and silently false at the layer a
caller actually reads results from — exactly the "genuine internal oddity
promoted one layer too far" pattern this skill describes, just discovered
after shipping rather than before. When investigating a new claim about this
codebase, reproduce it with real media via the test fixtures (tests/_fixtures.py)
before reporting it, the same way test_cut_copy_keyframe_snap_reports_a_real_nonzero_delta
measured an actual 1.24s divergence rather than assuming one.

Source: wdm0006/python-skills (MIT).

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
building-python-mcp-serversBuilds robust Python MCP (Model Context Protocol) servers with FastMCP — tool design, error contracts, event-loop-safe blocking work, subprocess/CLI wrapping, single-file vs packaged distribution, global-state-free testing, and prompt-injection awareness. Use when writing an MCP server, exposing a tool or CLI to an LLM client, debugging tool registration/packaging, or testing MCP tools.0 installsreproducing-ci-locallyRun the CI gate on your machine so it agrees with the runner — deriving the exact command, paths, markers, and env from the workflow file instead of the Makefile, unblocking gate steps that short-circuit and hide the next failure, pinning the linter version CI resolves, building the interpreter/toolchain environment the runner builds, and confirming the run is green instead of explaining a red job away. Use when a check passes locally but fails in CI (or the reverse), when a lint/format job goes red on an untouched file, when setting up a local dev loop for an unfamiliar repo, or before pushing a branch you expect to merge.0 installsconcurrent-branchesResolve conflicts and merges when several branches are open against one repo at the same time — the hotspot files every change must touch (registry manifests, a single version field, shared tool config, one aggregated test module, tracked build output), union-vs-recompute-vs-rebuild as three different correct resolutions, generated artifacts that must never be merged, non-deterministic serialization that makes every branch conflict, renumbered identifiers that git cannot show you, and why a clean auto-merge is not a passing test. Use when rebasing or merging a long-lived branch, resolving conflict markers, reviewing a merge commit, deciding what a repo should commit vs generate, or setting up a repo that will take parallel contributions.0 installsprobing-edge-valuesFind the option values an ffmpeg-skill tool accepts without anyone having decided what they mean — zero, a negative number, a value far past any real frame or clip — by running tests/edge_values.py over every numeric option in the contract, then reading each call that ran or hung against the option's help, and checking the few properties a tool should keep (doing it twice changes nothing more, an inverse returns the source's shape, the output is what probe.py says). Use when looking for defects nobody has reported, before a tool moves from beta to stable, after adding a numeric option, or when a report says a tool "hung", "wrote a strange file" or "accepted nonsense".0 installsmanaging-python-releasesManages Python library releases including semantic versioning, changelog maintenance (Keep a Changelog format), release automation with GitHub Actions, and deprecation workflows. Use when planning releases, writing changelogs, automating release pipelines, or communicating breaking changes.0 installsrunning-github-actions-efficientlyCut GitHub Actions minutes and wall-clock time without losing coverage — the OS billing multiplier (macOS 10x / Windows 2x / Linux 1x), trigger hygiene that stops push+pull_request double-firing, concurrency that cancels superseded runs, dependency caching keyed on lockfiles, matrix discipline, and auditing scheduled crons that bill 24/7. Use when CI is burning included minutes, when runs feel slow, when setting up a new repo's workflows, or when reviewing an existing workflow for waste.0 installs

More from ffmpeg-skill

View source →
ffmpeg-skillEdit video and audio with local FFmpeg: cut, join, reframe, speed, captions, overlays, silence removal, sync, loudness, HDR to SDR, platform exports and checks. Use whenever the user mentions a video or audio file (mp4, mov, wav, m4a), footage, captions, a reel or short, YouTube/TikTok delivery, LUFS or ffmpeg, even without saying "edit". Needs FFmpeg 6.1+ and Python 3.10+; stdlib only, no cloud.24 installsreviewing-ffmpeg-skill-changesReview a change to the ffmpeg-skill repository for the failures its own contract makes possible — a claim in a result document that is true at one layer and false at the layer a caller reads, a new flag that reaches the code but not the contract/docs/demo surfaces, a "bug" that docs/design-decisions.md already decided with a pinning test, a fix with no regression test, a new runtime dependency or a raw ffmpeg shell call that breaks the scope boundary, a SKILL.md line added without one trimmed, a review that re-derives findings from a summary instead of the tree at the reviewed commit. Use when asked to review a PR or diff in this repository, when authoring code here and needing a pre-commit check, or when triaging an external review or audit report about this codebase.5 installsffmpeg-skillEdit video and audio with local FFmpeg: cut, join, reframe, speed, captions, overlays, silence removal, sync, loudness, HDR to SDR, platform exports and checks. Use whenever the user mentions a video or audio file (mp4, mov, wav, m4a), footage, captions, a reel or short, YouTube/TikTok delivery, LUFS or ffmpeg, even without saying "edit". Needs FFmpeg 6.1+ and Python 3.10+; stdlib only, no cloud.4 installskeeping-git-repos-cleanPrevents, detects, and remediates files that should never be committed — secrets (.env, API tokens, hardcoded credentials) and dev artifacts (build output, scratch databases, editor/OS files). Covers .gitignore (and why it does not untrack), git rm --cached, auditing tracked files, history scrubbing, and credential rotation. Use when a repo has committed secrets or junk, when setting up a new repo's ignore rules, or when reviewing what a repo actually tracks.1 installsci-pipeline-synthesizerGenerate GitHub Actions CI/CD pipeline configurations for automated building and testing of library and package projects. Use when creating or updating CI workflows for npm packages, Python packages, Go modules, Rust crates, or other library projects that need automated build and test pipelines. Includes templates for common package ecosystems with best practices for dependency caching, matrix testing, and artifact publishing.0 installsbuilding-the-review-pageBuild or change the standalone review page (scripts/_review.py, `npx ffmpeg-skill review`) — the editor-style screen where a person looks at a render project and its result and composes an instruction for their agent. Covers the fixed constraints (one offline HTML file, nothing executed, no new dependency, not a contract tool), the 16:10 three-column layout, the numbering scheme every element carries (S, C, T, A, M, R, P,0 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.656 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.561 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.373 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.269 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.186 installsfounder-consumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target customer, each with a different income, age, buying behaviour and objection, shows every one the same pitch, and runs the business through 100 buyer scenarios to see who buys, who doesn't, and why. Tallies the answers into buy rates by segment, the reasons people pass in their own words, what would flip a no, and price answers for founder-pricing. Use when the user says "would people buy this", "test it on customers", "run the consumer panel", "simulate buyers", "who is my customer", or "validate demand".155 installs

Frequently asked questions about writing-defect-reports

What does the writing-defect-reports skill do?

Establish a finding before you publish it, and correct it after — headlines that overstate what actually reproduces at the layer a user sees, reporting code that no entry point can reach or that is already dead, filing a caveat the project's own records already answered, re-verifying your prior notes against the tree instead of against the note, choosing the narrowest injection point that reproduces a failure without breaking the run first, capturing probe output a harness swallows, and withdrawing a published claim in the thread where you published it. Use when filing an issue, writing the body of a PR or code review that asserts a defect, triaging someone else's report, or deciding whether a suspicious observation is reportable at all. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the writing-defect-reports skill?

Run `npx @skills-hub-ai/cli install ffmpeg-skill-writing-defect-reports` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/ffmpeg-skill-writing-defect-reports/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does writing-defect-reports work with?

writing-defect-reports runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the writing-defect-reports skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use writing-defect-reports after installing it?

In Claude Code, type `/ffmpeg-skill-writing-defect-reports` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the writing-defect-reports skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/ffmpeg-skill-writing-defect-reports)](https://skills-hub.ai/skills/ffmpeg-skill-writing-defect-reports)
HTML
<a href="https://skills-hub.ai/skills/ffmpeg-skill-writing-defect-reports"><img src="https://skills-hub.ai/api/badges/skill/ffmpeg-skill-writing-defect-reports" alt="Install on Skills Hub"></a>

More options in the badge docs.