Skip to content
Back to skills

Testing.Fix Unit Tests

ASecurity

Apply the conventions usually not followed in the unit test

  • 158 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
testinggotesting

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add gpsaggese/helpers --skill testing.fix_unit_tests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Testing.Fix Unit Tests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Testing.Fix Unit Tests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-testing-fix-unit-tests/badge)](https://www.skillsdirectory.com/skills/gpsaggese-testing-fix-unit-tests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Apply the conventions usually not followed in the unit test
model: haiku
---

# Goal
- The user passes one or more test files `<FILE>`. Apply the corresponding
  conventions and rules to them.

# Workflow

## Read Rules
- Read the transformations from `.claude/skills/testing.rules.md` in the
  following headers
  - `### Dedent Strings to the Code`
  - `## Test Method Names`
  - `## Use Helper Methods When You Have Repetitive Tests`
  - `### Avoid Replicated Assignment`
  - `## Consolidate Inputs and Outputs`
  - `## Assign Variables and Then Call Functions`
  - `## Compare Whole Output with assert_equal, Not Piecewise`
  - ``## Do Not Use `hdbg.dassert` to Test Assertions``

## Draft a Plan
- List the transformations and the code lines to apply them to, since the code
  violates them

## Implement the Plan
- Apply the transformations one at a time to the parts of the code

## Refactor the Code
- Run the skill `/coding.factor_common_code` on the file `<FILE>` to factor out
  common code

# Important
- Make sure that there is no change in behavior in the code
- For all the code you must follow the instructions in:
  - `.claude/skills/coding.rules.md`
  - `.claude/skills/testing.rules.md`

# Verification
- [ ] Check that no remaining part of the code violates the list of
  transformations
- [ ] Run the tests and confirm behavior is unchanged

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.