Designs Rust error types using the thiserror/anyhow split, context chains, and a deliberate panic policy. Useful when structuring errors in Rust libraries and applications.
Result makes every failure path visible in the signature. The design
work is choosing which errors are part of your API (typed, matchable)
and which are just reports for a human (context-rich, opaque).
thiserror derives the boilerplate. Application
and binary code uses anyhow::Result (or eyre-class) where the
only consumer is a log line or exit message. The boundary between
them is where typed errors get context-wrapped and become reports.NotFound, PermissionDenied,
Retryable(io::Error): not one per internal call site. Mark enums
#[non_exhaustive] so adding variants is not a breaking change
(see api-change-management thinking); implement
std::error::Error with #[source] chains so causes stay
walkable..with_context(|| format!("loading config {path}")) at the point
that knows the filename, the query, the request id; the final
report then reads as a story ("loading config X: permission
denied") instead of a bare OS error. Context laid at each layer is
what replaces stack traces in release builds.? everywhere; convert deliberately. ? with From
impls (thiserror's #[from]) keeps the happy path linear. Resist
blanket Box<dyn Error> in public signatures: it types nothing
and forces downcasting on callers who needed to match.unwrap() in
library code on I/O or parsing is a defect. Allowed:
expect("invariant: queue non-empty after push") documenting why
it cannot fail, tests, and prototypes clearly marked. Binaries
set a top-level handler to log panics before dying (see
error-tracking); servers decide panic=abort vs unwind per their
supervisor model.Option for "not there",
Result for "went wrong"; conflating them blurs every caller's
logic.What SKILL.md sets; muted values are Claude Code's defaults
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job