跳到正文
cccskills
免费在 GitHub 公开中文介绍

fix

根据 GitHub 议题、现有拉取请求或 `plans/` 中的计划文件完成修复或功能,实现前先用失败测试复现问题,再运行指定检查,并创建或更新可供合并评审的拉取请求。

原文查看原文说明

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/.

motiondivision/motion星标 34,550(GitHub 34,550 + cccskills 0)
集成工具GitHub

实测评分 未实测

查看安装方法

适用场景

  • 先写复现测试再修复议题中的错误
  • 实现计划文件中的功能
  • 完成尚未结束的拉取请求
  • 附上验证结果创建拉取请求

中文介绍

功能

根据 GitHub 议题、现有拉取请求或 plans/ 中的计划文件,推进实现并创建或更新拉取请求。开始前会查看议题或计划内容以及仓库流程。修复错误时,先编写能够复现问题的失败测试,再修改代码;随后在指定范围内实现修复或功能,并运行计划列出的检查,例如构建和测试。拉取请求会说明验证结果及未执行的检查,计划文件中的进度也会同步记录。

适用场景

适合从排查到提交修复完整处理某个议题,将已规划的功能实现为便于评审的改动,或完成现有拉取请求。如果目标不明确,或无法通过测试复现错误,会先报告情况,不会猜测后继续。

使用示例

  • “先写复现测试来修复议题 #3741,然后创建拉取请求。”
  • “实现 plans/008 中的计划,并运行其中指定的检查。”
  • “检查拉取请求 #123,并处理合并前需要完成的事项。”

注意事项

此流程使用 GitHub CLI(gh)以及仓库指定的构建和测试环境。会遵循计划中的停止条件和工作范围。无法通过测试复现的问题不会继续进行修复。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

文档检查

AI 根据 SKILL.md 的内容检查了需要注意的操作和使用前提。评分只依据实际运行的结果(实测对比)。

安全性发送数据、删除文件、执行命令等是否有说明
B部分不足会修改、提交、推送并创建拉取请求,但安全说明不完整。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足需要 `gh` 以及仓库指定的构建和测试环境。

不计入评分。 由 AI(OpenAI Codex)于 2026年10月26日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(1)

  • SKILL.md6.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

improve

免费有简介

只读检查代码库,依据代码证据梳理错误、安全、性能等改进机会并排序,再为其他开发者或智能体编写包含文件、步骤和验证方式的独立实施计划。

  • 调查改进事项并确定优先级
  • 审查安全或性能问题
  • 为其他执行者编写实施计划
motiondivision/motion3.5万2026年10月26日 更新

查看 motiondivision 的全部技能

报告此技能的问题