fix

Implements verified bug fixes with regression tests, lint, and typecheck validation.

Updated Sep 8, 2026
One-click install
npx skills add https://github.com/Thigh-Food/emdash --skill fix-thigh-food
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix
Source: https://github.com/Thigh-Food/emdash/tree/main/.flue/skills/fix
Command: npx skills add https://github.com/Thigh-Food/emdash --skill fix-thigh-food

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? After a bug has been verified and diagnosed with high confidence, someone still needs to write the actual code change, prove it works, and leave the repository in a clean state for review. This Skill automates that final implementation step while enforcing strict scope and safety boundaries. ## Core Features & Use Cases - Convention-compliant fixes: Writes minimal code changes following EmDash conventions (Kysely SQL templates, ApiResult handlers, Lingui strings, forward-only migrations). - Regression test enforcement: Creates a failing vitest test before the fix and confirms it passes afterward, or abandons the attempt with a clear explanation. - Full validation pipeline: Runs the package test suite, typecheck, lint, and formatting, then stages changes without committing. - Use Case: A triage pipeline confirms issue #142 is a real bug in the menus handler with a diagnosed root cause. This Skill writes the fix, adds a regression test, runs all checks, stages the files, and returns a conventional commit message for the orchestrator to commit and open a PR. ## Quick Start Apply the diagnosed fix for issue #142, add a regression test, run tests and typecheck, then stage the changes without committing.

Frequently Asked Questions about fix

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

FAQPage Schema
How do I automate bug fixes after diagnosis in a CI pipeline?

Use a fix step that takes the diagnosed root cause, writes a minimal code change, adds a failing regression test first, then validates with the package test suite, typecheck, and lint. Stage the changes with git add but let an orchestrator handle the commit and PR.

When should an automated fix attempt be abandoned?

Abandon when the reproduce test does not fail before the change, when the fix introduces unresolvable regressions, when it requires breaking-change design decisions, or when lint and typecheck errors cannot be resolved cleanly. Report fixed: false with the specific reason.

Can an automated fix commit and push changes directly?

No. This workflow prohibits git commit, push, tag, and any GitHub writes. The fix only stages files with git add; a separate orchestrator creates the branch, commit, pull request, and triage comment to keep state synchronized.

What happens when a bug has no testable surface?

For browser-only bugs like admin UI interactions, no automated browser test is written. The fix is verified through agent-browser instead, and the manual verification steps are documented so a maintainer can add a durable test when landing the change.

How are regression tests written for a confirmed bug?

Write a vitest test targeting the testable surface such as a handler, query, or API route, and confirm it fails before applying the fix. After the fix, the test must pass along with the full package test suite without weakening the test.