redbar.fix

redbar.fix is a skill for Claude Code from emersonjds/redbar. It costs 113 tokens per session (1,127 once invoked), scanned A, original, MIT.

A skill that creates missing automated tests from a recorded list of coverage gaps. It writes one test file for each chosen gap, follows the project's testing style, runs each new test, and removes tests that cannot pass.

In plain words
What is it for?
Use it to add unit, integration, or end-to-end tests for gaps listed in `.redbar/gaps.json`. End-to-end tests check a feature through its full user-facing flow.
Why use it?
It addresses known untested areas without changing the code being tested or leaving failing tests behind.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to add unit, integration, or end-to-end tests for gaps listed…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/emersonjds/redbar/redbar.fix
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add emersonjds/redbar --skill redbar.fix
Clone the repo
git clone --depth 1 https://github.com/emersonjds/redbar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for redbar.fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/emersonjds/redbar/redbar.fix.svg)](https://agentmods.dev/skills/emersonjds/redbar/redbar.fix)
Your own site
<a href="https://agentmods.dev/skills/emersonjds/redbar/redbar.fix"><img src="https://agentmods.dev/badge/skills/emersonjds/redbar/redbar.fix.svg" alt="Measured on agentmods" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,127 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00113 $0.01127
Opus 5 $0.00056 $0.00563
Sonnet 5 $0.00023 $0.00225
Haiku 4.5 $0.00011 $0.00113

Measured yesterday against content hash 489593dc439e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

redbar.fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/redbar.fix/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

User Input

$ARGUMENTS

Which gaps to fix. Defaults to the single most critical one — writing one good test beats writing five mediocre ones, and the human can always ask for more.

Before you start

You need .redbar/gaps.json. If it does not exist, run /redbar.inspect first — do not guess what is untested. Coverage is a runtime fact and it is not visible in the source. Guessing produces a confident wrong answer.

The rules that are not negotiable

  1. Write ONE test file per gap. Create nothing else.
  2. Do not modify the source file under test. If the code looks wrong, say so in your report — do not fix it. You were asked to write a test, and a test that changes the code it tests proves nothing.
  3. Run the test you wrote. Not the whole suite — just yours.
  4. Never leave a red test in the repository. If it fails twice, delete the file and mark the gap needs-human. One failing test leaking into a branch erases the value of every passing one.
  5. Follow the convention. Do not improvise a style. The whole point of redbar is that tests come out looking like the library's docs, not like whatever the model felt like that morning.

Outline

  1. Read the gaps:

    cat .redbar/gaps.json
    

    Pick the target(s) from $ARGUMENTS, or the highest-severity gap if no argument was given. Order: criticalhighmediumlow, and by score within a band.

  2. Read the convention for that gap's layer. The gap's kind field decides which one:

    kind Read
    unit conventions/<lang>/unit.md
    integration conventions/<lang>/integration.md
    e2e conventions/<lang>/e2e.md

    Also read .redbar/conventions/<lang>/<kind>.md if it exists — those are the project's own deltas, and they win over the shipped standard.

    Read it every time. Do not work from memory of what a good test looks like — that memory is the model's house style, which is the exact thing this tool exists to prevent.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 93 lines · 113 tokens per session scan A 489593dc439e

Subscribe to this mod's changes

redbar.fix is a skill published in the GitHub repository emersonjds/redbar (6 stars, last pushed yesterday), licensed MIT. It adds 113 tokens to every session and 1,127 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

tdd-workflow

Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.

affaan-m/ECC · 43 tokens

memstack-development-test-writer

Use this skill when the user says 'write tests', 'add tests', 'test coverage', 'unit tests', 'integration tests', 'component tests', 'mocking', 'edge cases', or needs to generate tests with proper mocking and edge case coverage. Do NOT use for refactoring plans or database migrations.

cwinvestments/memstack · 70 tokens

test-commander

Generate unit, integration, E2E, and visual regression tests following the Testing Trophy methodology (80% integration). Covers Vitest/Jest, Testing Library, Playwright, MSW for API mocking, snapshot strategy, visual regression (Chromatic/Percy/Playwright), test factories with Faker, and CI sharding. Use when user…

EliasOulkadi/shokunin · 117 tokens

mandu-testing

Testing patterns for Mandu applications. Use when writing unit tests, integration tests, or E2E tests. Triggers on test, spec, Bun test, Playwright, or testing tasks.

konamgil/mandu · 42 tokens

testing-strategy

Choose the right test type for every change — unit, integration, contract, end-to-end, property-based, mutation, fuzz. Use when adding tests to a new feature, deciding what to test for a bug fix, designing a test pyramid for a service, evaluating coverage targets, or untangling a slow test suite. Stack-agnostic…

kouroshez/coding-os · 118 tokens

test-sweep

Run all test suites (unit, integration, API, E2E) and aggregate results into a summary report. Use after completing execution slices or before the Review Gate.

srnichols/plan-forge · 38 tokens