near-miss-iteration

Fix failing tests one at a time while preserving passing code.

1|Updated Dec 26, 2025
One-click install
npx skills add https://github.com/DammianMiller/universal-agent-memory --skill near-miss-iteration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: near-miss-iteration
Source: https://github.com/DammianMiller/universal-agent-memory/tree/main/skills/near-miss-iteration
Command: npx skills add https://github.com/DammianMiller/universal-agent-memory --skill near-miss-iteration

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the scenario where a test suite has a high pass rate but still contains failures, preventing efficient progress by focusing only on the problematic areas.

Core Features & Use Cases

  • Targeted Debugging: Isolates and fixes only the tests that are failing.
  • Preserves Passing Code: Ensures that code which is already working remains untouched.
  • Time Management: Allocates a specific portion of the time budget for iterative refinement.
  • Use Case: When running a test suite results in 7 out of 9 tests passing, this Skill guides the process to fix the two failing tests without re-running or modifying the seven that are already successful.

Quick Start

Use the near-miss-iteration skill to fix the failing tests in the current test suite.

Frequently Asked Questions about near-miss-iteration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix failing tests without breaking passing tests in my suite?

A targeted iteration protocol isolates specific test failures while strictly avoiding refactoring of passing code, preserving the integrity of successful tests while resolving remaining errors.

What is the best way to debug a test suite when most tests are already passing?

Targeted debugging isolates problematic areas for resolution without re-running or modifying the successful tests, focusing effort only on the specific failures preventing progress.

How much time should I allocate to iterative test refinement?

Reserve 30% of your allocated time budget for iterative test refinement, fixing one test at a time to ensure focused and efficient resolution of the remaining failures.

Can I use an iteration protocol for code quality if only a few tests are failing?

Yes, an iteration protocol is designed for scenarios where more than 50% of tests pass, allowing you to focus exclusively on resolving the specific failing tests while maintaining overall code quality.

Why should I avoid refactoring passing code during debugging?

Avoiding refactoring of passing code during debugging preserves the integrity of successful tests, preventing the introduction of new errors into functional areas while you isolate and fix failing tests.