# fix sin romper

> Disciplined JS/TS bug investigation and repair that preserves local work and demands evidence before editing code.

fix sin romper is a free AI agent skill on Agensi by Natalia Perez, in Testing & Debugging. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Natalia Perez](https://www.agensi.io/creators/natalia-perez)
- Category: [Testing & Debugging](https://www.agensi.io/skills/testing-debugging)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/fix-sin-romper
- Tags: code-review, javascript, typescript, debugging, testing

## About this skill

Stop dealing with agents that overwrite your local changes or guess at bug fixes. This skill provides a disciplined workflow for investigating and repairing JavaScript and TypeScript web applications without breaking your existing work. It forces a diagnostic-first approach, ensuring every code change is backed by observable evidence from logs, stack traces, or failing tests.

### What it does
- **Evidence-based diagnosis** connects runtime errors and regressions to specific code paths before proposing solutions.
- **Work preservation** inspects git status and diffs to ensure no pre-existing local changes are overwritten or discarded.
- **Minimal patching** applies the smallest possible correction to solve the bug, avoiding broad rewrites or style changes.
- **Honest verification** reports exactly which tests passed and which behaviors remain unverified, avoiding false success claims.
- **Safe execution** blocks high-impact actions like database migrations, deployments, or network-accessing commands.

### How it works
1. **Context discovery** reads your `package.json`, `README.md`, or `AGENTS.md` to identify valid test commands and project roots.
2. **Conflict check** scans for uncommitted changes in the target files to prevent data loss.
3. **Failure reproduction** runs the narrowest possible test or diagnostic to confirm the reported error.
4. **Targeted correction** applies a focused fix only after the user explicitly approves the repair.
5. **Final audit** reviews the diff and runs regression checks to confirm the fix works as intended.

### Frameworks & tools
This skill is designed for JavaScript and TypeScript ecosystems. It works with standard project manifests like `package.json` and respects local configurations found in `AGENTS.md` or `CLAUDE.md`.

### Why this beats prompting it yourself
Generic prompts often lead to "hallucinated" fixes or broad refactors that introduce new bugs. This skill implements a strict stop-condition logic that prevents the agent from making speculative edits when evidence is missing.

### Use cases
- Debugging a specific failing Vitest or Jest unit test in a monorepo.
- Diagnosing a `TypeError` in a React component without touching unrelated files.
- Investigating a regression in a TypeScript utility library.
- Safely repairing a bug in a file where you already have uncommitted work.

### Known limitations
Does not support non-JS/TS languages. It will not install missing dependencies or perform database migrations. Minimal support for bugs requiring network access for reproduction.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the fix sin romper skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill prevent the AI from making 'hallucinated' or incorrect bug fixes?

This skill enforces a 'diagnostic-first' workflow that prevents the AI from making speculative edits. It requires the agent to reproduce the bug with evidence before proposing a fix, ensuring your codebase isn't cluttered with unnecessary refactors.

### Will 'fix sin romper' overwrite my existing local changes if I haven't committed them yet?

The skill performs a conflict check by scanning git status and local diffs before any edits occur. It is specifically programmed to respect uncommitted code, ensuring your current progress isn't overwritten or discarded during the repair process.

### Which frameworks and AI agents are compatible with this skill?

It is optimized for JavaScript and TypeScript ecosystems, supporting tools like Vitest, Jest, and standard npm/yarn/pnpm workflows. It integrates seamlessly with agents that support local filesystem access and custom instructions like those found in CLAUDE.md or AGENTS.md.

### Is there any special configuration required for the skill to recognize my project's test suite?

The skill requires a standard JavaScript/TypeScript project structure with a package.json. While it handles discovery automatically, you can optimize performance by defining your test commands in a README.md or AGENTS.md file.

### Can this skill be used to fix bugs that require database migrations or external API access?

No, the skill is designed for safe, local code repairs. It explicitly blocks high-impact actions like database migrations, external network requests, or production deployments to maintain a secure development environment.

### What exactly is included in the purchase of this skill?

Your purchase includes the full skill definition and workflow logic compatible with major AI agent marketplaces. You will also receive documentation on how to trigger the 'evidence-based' loop for the most efficient debugging results.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
