/howells-skills:failfastfrom howells-skills
Removes hidden fallbacks, swallowed errors, and test-only code from production paths. Scans for high-severity fallback leads and guides refactoring to explicit failure handling.
Ships in howells-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
A hidden fallback turns a bug into wrong output nobody sees. Leave one canonical path and one explicit failure.
catch, no catch that returns fake success, no optional import that quietly degrades a required feature. Rethrow with context or handle a named, expected error.isTest or NODE_ENV === "test" branches, test-only methods or exports, or stub data on a production path. Test observable behaviour through the public interface. When isolation needs a double, inject it through an argument production would also use; builders, cleanup and doubles live in test utilities.Scope: the path the user names, else the directories the diff touches; the whole repo only when asked. Scan it:
python3 <this skill's directory>/scripts/scan-fallbacks.py <path>
It prints high-severity leads, not verdicts; add --min-severity medium only for files you are already editing. It does not find test-only code or mocks: read references/tests.md before editing those.
Decide each lead: remove (no live caller or contract), require (config or a dependency the code can't work without), validate (boundary input) or keep (say why). legacy, deprecated, compat and migration are leads, not proof: confirm no supported caller needs the path. Tests that pass only because a default masks missing setup get explicit fixtures.
Remove the fallback and move callers and tests to the canonical path. Where a fallback becomes an error, test that the error fires.
Run the repo's checks. Report the fallbacks you kept and why.
Env vars are a configuration contract. Where a validated env schema exists, declare the key there and import the typed value; no application default:
const apiKey = process.env.OPENAI_API_KEY || "dev-key"; // remove
const apiKey = env.OPENAI_API_KEY; // use
With no schema, validate at the configuration boundary using the project's conventions; don't add a package for it. Direct process.env reads belong only in env schema modules, generated env wiring and system keys such as NODE_ENV and CI. Never log the raw environment.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
error-handling, fallback-removal, test-isolation, refactoring
npx claudepluginhub howells/skills --plugin howells-skills33 skills in this plugin
/armatureTurn a web app that scrolls like a document into an app shell with fixed chrome and panes that scroll on their own. Use when headers, toolbars or filters scroll out of view. Not for visual polish (`chiaroscuro`) or small-screen layout (`reflow`)./ask-howellsRoute a situation to the skills in this collection and the command to type. Not for doing the work./blenderInspect, edit and render Blender scenes and films through the Blender MCP or headless CLI. Not for Remotion films (`rostrum`)./browseDrive the user's real Chromium browser (logins, tabs, extensions) via the browse MCP: logged-in/JS sites, forms, screenshots, recordings, HAR capture, and 2FA/payment handoffs. Not for QA (`fieldtest`) or native Mac apps (`computer-use`).