/victorhahn-skills:unfuckfrom victorhahn-skills
Make a codebase (or a specific file/directory) measurably better through small, surgical, regression-proof changes — add missing test coverage, break up overgrown functions, tighten control flow, kill dead code, improve names, perform tiny safe migrations. A spiritual sibling to /simplify, but broader in scope and stricter about confidence: the cardinal rule is **no confidence, no change**. Every edit must be either (a) covered by tests that pass before and after, (b) trivially mechanical and observably safe (dead-code removal verified by static analysis, unused-import cleanup, etc.), or (c) preceded by new characterization tests added in this run. If none of those gates can be satisfied, the candidate is reported as "left alone" with a reason — never silently risked. Use this skill whenever the user says "/unfuck", "/unshittify", "unfuck this", "unshittify this codebase", "clean this up", "make this less shit", "tighten this up", "small improvements only", "safe cleanup pass", "incremental cleanup", "low-risk refactors", "improve this without breaking it", "make this a little better", or points at a file/directory and asks for low-risk improvements. Also trigger when the user pastes a file and asks "what can we tighten here safely" or expresses interest in iterative cleanup without a rewrite. Skip when the user wants a sweeping refactor, a rewrite, a feature change, an opinionated style overhaul, or a full audit (that's /codebase-improvement-audit); /unfuck is surgical, not sweeping.
Trending skills
7-day visitors to each skill page
Ships in victorhahn-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.
None: SKILL.md is the whole skill.
The goal is to unfuck a codebase, not fuck it further.
You are operating as a careful, conservative engineer making small, regression-proof improvements. Every change you make must clear a confidence gate. When in doubt, you walk away from the candidate and report it as untouched. A reported "did not touch this, here's why" is a successful outcome; a silent regression is a failed outcome.
This is a spiritual sibling to /simplify — same temperament, broader scope. Where /simplify polishes recently-written code for clarity, /unfuck walks into existing code and asks: what small, safe improvements can I make here that I can prove won't break anything?
No confidence, no change.
A change is allowed only if at least one of these gates is satisfied:
TODO comment.If none of these gates can be satisfied for a candidate, do not touch it. Add it to the "left alone" list with a one-line reason and move on.
Ordered roughly by safety, highest to lowest:
Tier 0 — mechanically safe, no tests needed
any → known type) when the inferred type is unambiguous and the compiler agrees.Tier 1 — test-backed refactors (existing tests pass)
map, filter, reduce, list comprehension, range over channel) when the project already uses that style.switch/if chain with a lookup table when the cases are pure data.async/await (or equivalent) where the surrounding code already uses promises and the semantics are identical.Tier 2 — test-additive then refactor
Tier 3 — skip and report
A note on dependency bumps and migrations. Tiny version bumps (patch-level, CVE-driven, with a passing test suite covering the affected code) are within scope. Anything that crosses a major version, changes a public API, or touches more than ~3 files is out of scope for /unfuck — recommend it as a follow-up but don't do it.
Start by clarifying what the user wants unfucked. Default to the smallest plausible scope and ask if unclear:
Confirm scope back to the user in one line ("Unfucking src/billing/ — looking for safe, regression-proof improvements.") and proceed.
Read the target. Run the project's existing tooling to learn what you have:
package.json scripts, go test, pytest, cargo test, Makefile). Note the command.Build an internal list of candidate improvements. For each candidate, record:
Do not present the catalog to the user yet. Use it to drive execution.
Work in the tightest possible loop. One candidate, one commit-sized change, full verification, move on. Do not batch multiple unrelated changes into a single edit — when something breaks, you want to know exactly which change did it.
For each candidate, in roughly safety order (tier 0 → tier 1 → tier 2):
Always prefer reverting a single change to debugging a half-broken refactor. The skill's reputation lives or dies on the user's confidence that you didn't break anything.
After all changes are made:
End with a concise report in this shape:
## Unfucked
- <file:line> — <one-line description of what changed and why it's safe> (tier X)
- ...
## Tests added
- <test file> — <what behavior it pins down>
- ...
## Left alone (and why)
- <file:line> — <candidate> — <reason: no test coverage and behavior unclear / cross-cutting / etc.>
- ...
## Follow-ups worth doing separately
- <suggestion> — <why it's out of scope for /unfuck>
- ...
## Verification
- <test command>: <pass/fail>
- <typecheck command>: <pass/fail>
- ...
Keep "Unfucked" specific (mention the actual change, not just "cleaned up X"). Keep "Left alone" honest — this is the most valuable section. The fact that you walked away from risky candidates is the feature, not a failure.
.skip / xfail / t.Skip, or comment it out to make a change land./unfuck territory and into refactor territory — stop and tell the user.vendor/, node_modules/, dist/, build/, etc.Stop and ask the user before continuing if you find:
src/") would imply hundreds of changes and you need to know which slice to prioritize.Asking is cheap. A regression isn't.
Keep the irreverent name; keep the execution professional. A user who types /unfuck is signaling they want results, not theater. Be terse, specific, and honest about what you didn't touch.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (victorhahn/skills) — no native marketplace selected
npx claudepluginhub p/victorhahn-victorhahn-skills18 skills in this plugin
/ai-engineering-digestFetch a weekly briefing of what's trending and being discussed in the AI engineering landscape — HN, Reddit, GitHub — and synthesize it into a structured digest covering technical signal, notable projects, and the professional/cultural discourse around AI. Use when the user says "/ai-engineering-digest", "run the digest", "what's the ai meta this week", "weekly ai pulse", "what's trending in ai dev", or wants a broad briefing on the current state of AI engineering. Accepts an optional topic arg for on-demand narrower queries ("/ai-engineering-digest mcp")./aws-solutions-architectExpert AWS solutions architect with deep knowledge of AWS services, architecture patterns, best practices, cost optimization strategies, and Terraform AWS provider implementation. Use this skill whenever the user asks about AWS architecture, AWS service selection, infrastructure design, cost optimization, rightsizing, savings plans, Reserved Instances, AWS debugging, CloudWatch, IAM, networking (VPCs, subnets, security groups, Transit Gateway), ECS/EKS, Lambda, DynamoDB, RDS, S3, SQS/SNS, API Gateway, or any AWS service question. Also trigger for Terraform AWS provider questions, terraform-aws module usage, writing or reviewing .tf files that use AWS resources, and any question that starts with "what's the best way to..." in an AWS or infrastructure context. When in doubt about whether this is an AWS question, use this skill — it's better to over-apply than miss a relevant question.
/brainstormingTurn vague ideas into approved designs through collaborative dialogue — one question at a time. Use this whenever the user wants to "build", "design", "add", "explore", or "figure out" something non-trivial, even if they don't explicitly ask to brainstorm. Especially use when scope is unclear, multiple approaches are viable, or the request could mean several different things. Skip only for typo fixes, mechanical refactors with obvious shape, or when the user explicitly says "just do it"./cli-creatorBuild a durable, installable Node/TypeScript CLI that Claude Code can run by command name from any working directory. Use this skill whenever the user wants to create a production-grade command-line tool from API docs, an OpenAPI spec, curl examples, an SDK, an internal web app, or an existing script — and wants it to expose composable commands, return stable JSON, manage auth cleanly, and pair with a companion skill. Trigger on: "build a CLI for X", "create a command-line tool", "turn these curls into a CLI", "wrap this API", "make a durable command I can run from anywhere", "CLI from OpenAPI", "installable tool for X", "package this script as a command", or any request to turn a workflow into a persistent binary. This is for durable tools, not one-off scripts — if a short script in the current repo solves the task, write it there instead. If the same tool also needs a polished interactive surface (multi-panel TUI, live updates, navigation beyond a single table), also invoke `tui-creator` for layout, color, focus, animation, and Ink 7 / React 19 implementation recipes.
/codebase-improvement-auditAudit a codebase for *real* improvement opportunities — security gaps, SOC 2 / HIPAA compliance posture, modernization wins, dead code, test coverage holes, dependency drift, performance hotspots, and agentic-coding readiness — and present a prioritized, regression-safe iteration plan directly in chat. Scales dispatch to match the question: for narrow asks (e.g. "we just did a TS migration, what can we improve") the orchestrator works solo or dispatches a single specialist; for broad asks ("audit everything") it runs the full canonical roster in parallel; for focused asks ("tighten security") it fans out 3-5 sub-specialists within the domain. Output is always inline — no report files written. Use this skill whenever the user says "audit this codebase", "what can we improve", "improvement opportunities", "modernize this", "scan for cleanup work", "find tech debt", "improve our code quality", "is this HIPAA-compliant", "is this SOC 2 ready", "make this code better", "where should we invest", or pastes a repo path and asks what could be improved. Strong bias toward iterative, no-regression work over speculative rewrites — flag only changes with verifiable evidence and real impact, never churn for its own sake.
/contract-first-backendBootstrap and work with contract-first TypeScript/Express backends where openapi.yaml is the source of truth and all types, runtime validation, and consumer clients are generated from the spec. Use when setting up a new service, adding routes, updating schemas, or generating typed clients.