Skip to content
Skills Library
Programming · Building & coding

fix

/fix

Take a GitHub issue, an open PR, or a plan file from plans/ and drive it to a merge-ready PR — reproduce with a failing test first, implement the fix (bugs) or feature (plans), verify against the repo's gates, and open or update the PR. Use when asked to fix an issue, implement or execute a plan, finish or land an open PR, or work through plans/issues/.

Repository
motion ↗
Licence
MIT
Last repository change
27.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Take a GitHub issue, an open PR, or a plan file from plans/ and drive it to a merge-ready PR — reproduce with a failing test first, implement the fix (bugs) or feature (plans), verify against the repo's gates, and open or update the PR. Use when asked to fix an issue, implement or execute a plan, finish or land an open PR, or work through plans/issues/.

Original author description

Take a GitHub issue, an open PR, or a plan file from plans/ and drive it to a merge-ready PR — reproduce with a failing test first, implement the fix (bugs) or feature (plans), verify against the repo's gates, and open or update the PR. Use when asked to fix an issue, implement or execute a plan, finish or land an open PR, or work through plans/issues/.

How it works

  1. Resolving the input
  2. Hard rules
  3. Workflow
  4. STOP conditions (always, in addition to the plan's own)
Original SKILL.md headings · 75 lines, 1,011 words
SKILL.md preview
---
name: fix
description: Take a GitHub issue, an open PR, or a plan file from plans/ and drive it to a merge-ready PR — reproduce with a failing test first, implement the fix (bugs) or feature (plans), verify against the repo's gates, and open or update the PR. Use when asked to fix an issue, implement or execute a plan, finish or land an open PR, or work through plans/issues/.
metadata:
  author: mattgperry
  version: "1.0.0"
---

# Fix

You are the **executor**. A more expensive planning model has already done the thinking; your job is to implement exactly what was specified, prove it works, and ship a PR. You have zero context from the planning session — everything you need is in the plan file, the GitHub issue/PR, and this repo's `CLAUDE.md`. Read all three before writing any code.

## Resolving the input

The argument can be:

1. **A plan file path** (e.g. `plans/issues/pr-3724.md` or `plans/001-animate-layout-public-api.md`) — read it in full. Plans are the primary input for this skill.
2. **A plan number** (e.g. `008`) — find the matching file in `plans/` or `plans/issues/`.
3. **A GitHub issue number** (e.g. `#3741`) — run `gh issue view <number>` first. Check whether a plan for it already exists in `plans/issues/` (grep for the number); if so, the plan governs.
4. **A PR number** — run `gh pr view <number>` and `gh pr checks <number>`. Check `plans/issues/` for a plan covering that PR; if so, the plan governs.

If the argument is ambiguous or matches nothing, list what you found and stop — do not guess which work item was meant.

## Hard rules

1. **The plan is the spec.** Do not redesign, expand scope, or "improve while you're in there." If the plan is wrong or impossible as written, stop and report why — do not silently substitute your own approach.
2. **Honor the plan's STOP conditions.** If a plan says stop when X happens, stop when X happens, even if you think you can push through.
3. **No repro → no fix.** If you cannot write a test that fails because of the bug, do not land a speculative fix with happy-path tests. Report "needs repro" instead. (A test that fails only because your new API doesn't exist yet is not a failing test.)
4. **Never commit to `main`.** Branch first (`<type>/<short-slug>`, e.g. `fix/3741-turbopack-reexport`). One work item per branch per PR.
5. **Report faithfully.** If tests fail, say so with output. If you skipped a verification gate, say which and why. Never describe unverified work as done.

## Workflow

### Phase 0 — Understand

- Read the plan file end to end, including its verification gates and STOP conditions.
- Read the linked issue/PR with `gh issue view` / `gh pr view --comments`. The reporter's reproduction is the basis for your test — fetch any linked CodeSandbox/StackBlitz. If you cannot obtain the repro and the plan doesn't contain one, stop and ask (rule 3).
- Run `git log --grep="<keyword>" --oneline -- <relevant-files>` — the bug may already be fixed, or prior commits may reveal the root cause.
- Read `CLAUDE.md` sections "Writing Tests", "Fixing Issues from Bug Reports", and "Code Style". Those rules apply in full and are not repeated here.

### Phase 1 — Failing test first

- Write the test **before** the implementation and watch it fail *for the right reason* (the bug / missing behavior — not a typo or missing import).
- Choose the layer per `CLAUDE.md`: Jest for pure logic; Cypress for anything involving opacity, transform, scroll, layout animations, WAAPI, or visual behavior (JSDOM has no WAAPI — a passing Jest test does not mean "already works").
- For features, the failing test asserts the new behavior described in the plan's acceptance criteria.

### Phase 2 — Implement

- Smallest change that makes the test pass while matching surrounding code style. This library ships to end users — prioritise small output size.
- Build from the repo root (`yarn build`), never from inside a package.
- If the plan specifies files and approach, follow them. Deviations must be listed explicitly in the PR description with one-line justifications.

### Phase 3 — Verify

Run every gate the plan names. Defaults when the plan doesn't say:

- `yarn build` from root, then the relevant Jest suite(s).
- New/changed Cypress tests against **both** React 18 and React 19, using the direct-Vite recipe in `CLAUDE.md` (never `start-server-and-test` + turbo). Both must pass; a version-specific failure is a finding to investigate, not skip.
- `yarn lint` on touched packages.
- Ignore only the pre-existing known failures listed in `CLAUDE.md`/memory (SSR TextEncoder, use-velocity).

### Phase 4 — Ship & bookkeeping

- Commit with a message that references the issue/plan (`Fix #3741: …`). Push and open a PR with `gh pr create`, linking the issue (`Fixes #<n>`) and summarising: root cause, approach, tests added, gates run with results, deviations from the plan.
- **Do not use `gh pr edit`** — it is known-broken on this repo (Projects Classic deprecation). If `gh pr create` succeeded, you are done; do not retry or work around edit failures.
- Update the plan's status: set its row in the relevant `plans/**/README.md` table (TODO → DONE, or BLOCKED with a one-line reason) and append a short "Execution notes" section to the plan file itself: what was done, PR number, anything the plan got wrong.

### When working on an existing open PR

The work item may be "finish PR #N" rather than "fix issue #N". Then:

- `gh pr checkout <number>`; rebase on `main` if behind, resolving conflicts conservatively (prefer `main`'s version for code the PR doesn't deliberately change).
- `gh pr checks <number>` and read failing CI logs before touching code — the plan should say what's blocking; verify it still is.
- Address review comments listed in the plan. Push to the same branch. Never force-push over commits you didn't write without checking the diff you'd destroy.

## STOP conditions (always, in addition to the plan's own)

- The failing test won't fail (can't reproduce) after 2–3 honest attempts → report "needs repro" with what you tried.
- The plan's approach conflicts with code that changed since the plan was written → report the conflict; do not improvise a new design.
- A verification gate fails and the fix isn't obvious within a few attempts → report the failure output.
- The change would touch `packages/framer-motion/src/projection/` or the effects/VisualElement system in ways the plan didn't anticipate → stop; these systems have in-flight rewrites.

Versions

RepositoryScoreLicence
This page · motiondivision/motion90MIT
swingerman/engineer100MIT
Hainrixz/claude-seo-ai100MIT
vanducng/skills100MIT
RemiPelloux/kill-my-idea100MIT
tony/skills100MIT
applelog/nondev-kit100MIT
A7-studio/jobmigo100MIT
koda-ai-studio/agent-bom100Apache-2.0

Database snapshot: 13.11.2026 · package version 8819b125ee04 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100fix-issue
    Fix a GitHub issue in NeMo Speech (NVIDIA-NeMo/Speech). Read the issue, reproduce the bug with a failing test, implement the fix, and verify tests pass. Only opens a PR if the user explicitly asks for it.
  • 90implement-issue
    Ticket playbook for claude-ui: how to plan, build, test and verify one GitHub issue (GH-<n>) of this repo in its own worktree: context to read, plan contents, test-first build, real-app verification against OpenCode, finish and commit. Use when asked to implement, build or fix a…
  • 90fix-issue
    Use when fixing a GitHub issue — reproduce, trace root cause, fix, add regression test
  • 90pb-bug-fix
    Turn a GitHub issue into a tested fix on a branch with an open PR: read the issue as the contract, find the root cause, write the failing test first, fix, prove it, review the diff against the issue, push and open the PR only after GO. Merging stays with pb-ship. Use for "fix…
  • 100github-issue-autofix
    Implement a GitHub Issue fix on a branch and open a PR (Fixes #N). Use in conversation when the user gives an Issue number or URL and asks to implement or fix it. Also the L2 loop entry skill after autofix label, repository_dispatch, or workflow_dispatch. Interactive default is…
  • 100fix-seed-issue
    Read a Seed issue URL and its discussion with seed-cli, reproduce the reported behavior, implement a focused fix, verify it on the affected UI, and open a reviewable pull request. Use when asked to fix an issue tracked in a Seed document, such as https://seedteamtalks.hyper.media/tasks/<slug>.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.