一键导入
fix-tests
Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Release a new version of the project.
Inspect git status, draft a commit message that matches the repo's style, and commit staged changes.
Ask focused clarifying questions to resolve ambiguous requirements before planning or implementing work.
Explain code, behavior, architecture, or diffs with concrete references to the relevant files.
Refactor existing code while preserving behavior, keeping changes scoped, and verifying with relevant tests.
Review current code changes for bugs, regressions, test gaps, and project-guideline violations.
| name | fix-tests |
| description | Diagnose failing tests, determine whether code or tests are wrong, and make the smallest passing fix. |
Failing test or command (optional): $ARGUMENTS
Run or read the failure. Capture the failing command, package, test name, assertion, stack trace, and relevant logs.
Identify intent. Read the failing test and nearby production code to determine the behavior being specified.
Choose the correct fix.
Patch narrowly. Change only the files needed for the failing behavior. Preserve existing test style and helper patterns.
Verify. Rerun the failing test first. Then run the relevant package or full suite when the fix touches shared behavior. Run required formatters and dependency tidy commands for the project.
Report. State which tests failed, what caused the failure, what changed, and which commands now pass.