Sign in Get 3 free credits

Try a job or a niche: tiktok captions, study notes, excel formulas. Press Esc to close.

Find Bugs Before You Build

Walks ten failure cases over a planned code change, so the bugs turn up before you write it.

Claude's review

7/10 Ten named failure classes with concrete guards, grep commands and a required answer format; leans on a few private repo conventions.

We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.

In detail

Run before writing or changing code for any feature, bug fix or refactor that touches data, jobs, money, outside services or user-facing behaviour. Finds where the change will break before it is built, by walking ten named failure classes (twice, halfway, outside call, failure-is-not-empty, neighbors, endings, money, hostile user, words, scale and time) against the code, and writes the answers into the plan. Use when planning a change, when asked to "think it through", "cover the gaps", "make sure it's bug free", or before any edit to payment, publishing, deletion, auth or background-job code.

How you use it

  1. Add it to your pack, then download your pack (1 credit).
  2. In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
  3. Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide

Safety check

Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.

An automated scan lowers risk but cannot promise zero risk. How we check skills

Preview

The first lines of SKILL.md
---
name: premortem
description: Run before writing or changing code for any feature, bug fix or refactor that touches data, jobs, money, outside services or user-facing behaviour. Finds where the change will break before it is built, by walking ten named failure classes (twice, halfway, outside call, failure-is-not-empty, neighbors, endings, money, hostile user, words, scale and time) against the code, and writes the answers into the plan. Use when planning a change, when asked to "think it through", "cover the gaps", "make sure it's bug free", or before any edit to payment, publishing, deletion, auth or background-job code.
---

# premortem

Assume the change shipped and broke. Find out where, before writing it.

"Be careful" does nothing: it names no place to look. These ten questions name places. Each
answer is one of three things, and nothing else counts:

- **file:line** showing it is already handled,
- **the test** that will prove it (named now, written with the change), or
- **"Not handled, because ___"**, a reason the owner can accept or reject.

"N/A" is allowed only with the reason: "Twice: N/A, the handler is a pure read".

## Size it to the change

- A copy or style change: one line covering all ten ("Words: checked X; rest N/A, no data
  or behaviour change").
- A normal feature: a line or two per question.
- Money, publishing, deletion, auth, background jobs, anything irreversible: a paragraph per
  question, and read the code for each, don't answer from memory.

## 0. Map what the change touches

First the task's scope (the rules' "Stay in the task's scope"). A change with no logic in it
(a comment, a doc, a spelling fix: no behaviour changes and no label's meaning changes; when
unsure, it is not one) writes one line, `Scope: <the file or text>, no
behaviour change`, and goes on. Anything else draws it from the code, not from the prompt's
words alone:

1. Name the goal and the feature or flow it is about, in the user's words.
2. Find where that feature lives: search the repo for the user's words and the feature's own
   names (pages, routes, jobs, workers, modules), and read the entry files.
3. From them, list the data they read and write (tables and fields, queues, events, vendor
   calls) and the shared code they call.
4. Add what reads or writes the same data or calls the same code (step 5's neighbors), the
...

From joetawil7's repository, MIT licence.

Related skills

  • Checked

    Rust best practices

    Writes and reviews idiomatic, maintainable Rust code and runs a checklist before handing it back to you.

    by morganlinton 2.2k
    7/101 credit
  • Checked

    Port code to Rust

    Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.

    by morganlinton 2.2k
    8/101 credit
  • Checked

    Rust code review

    Reviews Rust code for idiom, errors, safety and API design, with a ranked report and a fix for every finding.

    by morganlinton 2.2k
    7/101 credit
  • Checked

    Java Debugging Guide

    Finds the cause of Java bugs and failing tests, and attaches a debugger safely in Maven, Gradle, Spring or Docker.

    by github 42k
    7/101 credit
  • Checked

    Python games with pygame

    Builds and debugs 2D pygame games with a proper loop and delta time, so they run the same on any PC.

    by gamedev-skills 13k
    7/101 credit
  • Checked

    Go Benchmarking and Profiling

    Writes Go benchmarks, profiles them with pprof and proves each speedup with benchstat before you claim it.

    by samber 4k
    7/101 credit

Secure checkout

Credits

AUD

  1. 1Choose
  2. 2Pay on Square
  3. 3Credits added