Jit testing skill

From diegopacheco/ai-playground · View interactive version

Jit testing skill is an AI agent skill from the GitHub repository diegopacheco/ai-playground. Generate ephemeral catching tests on the current diff, run them, and report behavior regressions. Tests are never committed. Works across Java, Kotlin, Scala, Python, and Node.js stacks.

How to use this skill

Skill file

You are running the JIT Catching Test skill. The user invoked /jit. Your job is to find bugs introduced by the user's pending diff, without writing any test that lands in the repo.

Pipeline

  1. Detect the language target:

```

~/.claude/jit/bin/jit detect

```

  1. Decide the comparison mode. The pipeline auto-detects:
  1. Honor --diff <range>, --target <name>, --workflow {dodgy|intent|both}, --mode {auto|git|snapshot}, --parent-dir <dir> if the user passed them.
  2. Run the pipeline:

```

~/.claude/jit/bin/jit run --repo . [--diff <range>] [--target X] [--workflow Y] [--mode Z]

```

  1. The pipeline writes its output to .jit-testing/runs/<run_id>/. Read report.md from that directory.
  2. Present the top three catches as sense-check questions. Do not show test code first. Example:

> On the parent, qualifiesForFreeShipping($49.99 delivery) returned false. On your change, it returns true. Is this expected?

  1. For each catch, offer three actions: Confirm bug, Expected change, Show test code.
  2. If the user picks Show test code, print the relevant section of the report.
  3. On a verdict, persist it:

```

~/.claude/jit/bin/jit verdict <run_id> <catch_id> {confirmed|expected|deferred}

```

Supported targets

java8, java25, scala3-sbt, scala2-bazel, kotlin, python3, python3-django, nodejs.

If detection fails, stop and ask the user to pass --target explicitly.

Hard rules

After the run

Tell the user they can open the dashboard with /jit-dashboard.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.