| name | fix-failing-tests |
| description | Use when the user asks to fix failing tests, CI failures, pytest/Jest errors, broken test suites, or red builds. |
Failing Test Fixer
When to use
- ํ
์คํธ ์คํจ ์์ธ ๋ถ์์ ์์ฒญํ ๋
- CI ์คํจ ๋๋ red build ์์ ์ ์์ฒญํ ๋
When not to use
- ์ ๊ธฐ๋ฅ์ ๋ํ ํ
์คํธ๋ฅผ ์ฒ์ ์์ฑํ๋ ์์ฒญ
Goal
Find the root cause of failing tests and apply the smallest safe fix.
Workflow
- ์คํจํ ํ
์คํธ ๋ช
๋ น๊ณผ ์๋ฌ๋ฅผ ํ์ธํ๋ค.
- ๊ฐ์ฅ ์์ ๋ฒ์๋ก ์คํจ๋ฅผ ์ฌํํ๋ค.
- ๊ด๋ จ ํ์ผ๋ง ๋จผ์ ์กฐ์ฌํ๋ค.
- ์ต์ ์์ ์์ ์ ์ฉํ๋ค.
- ํ๊น ํ
์คํธ๋ฅผ ๋ค์ ์คํํ๋ค.
- ์์ธ, ๋ณ๊ฒฝ ํ์ผ, ์คํ ๋ช
๋ น, ๋ฆฌ์คํฌ๋ฅผ ์์ฝํ๋ค.
Verification
- ์์ ์ ์คํจ๋ฅผ ์ฌํํ๋์ง ํ์ธํ๋ค.
- ์์ ํ ํ๊น ํ
์คํธ๊ฐ ํต๊ณผํ๋์ง ํ์ธํ๋ค.
Do not
- assertion ์ญ์ ๊ธ์ง
- ๋ฌด๊ดํ ๋๊ท๋ชจ ๋ฆฌํฉํ ๋ง ๊ธ์ง
Output format
- Root cause
- What changed
- Files touched
- Validation
- Risks
Prompt quality guide
A good prompt for this skill should include:
- Goal: Find the root cause of failing tests and apply the smallest safe fix.
- Target/input: ์์
๋์ ํ์ผ, diff, ๋ก๊ทธ, URL, ๋ฌธ์, ์ด์ ๋๋ ์ ์ฅ์ ๋ฒ์
- Constraints: scope limits, non-goals, style, and compatibility requirements
- Workflow: a repeatable step-by-step process
- Verification: ์์ ์ ์คํจ๋ฅผ ์ฌํํ๋์ง ํ์ธํ๋ค.; ์์ ํ ํ๊น ํ
์คํธ๊ฐ ํต๊ณผํ๋์ง ํ์ธํ๋ค.
- Output: Root cause, What changed, Files touched, Validation, Risks
Task contract
- Archetype:
fix
- Intent invariant: Find the root cause of failing tests and apply the smallest safe fix.
Variable slots
target (required): ์์
๋์ ํ์ผ, diff, ๋ก๊ทธ, URL, ๋ฌธ์, ์ด์ ๋๋ ์ ์ฅ์ ๋ฒ์ โ [์์
๋์]
constraints: ์์ ๋ฒ์, ๊ธ์ง์ฌํญ, ์คํ์ผ, ํธํ์ฑ ์กฐ๊ฑด, ์ ์ธ ๋ฒ์ โ [์ ์ฝ์ฌํญ]
verification (required): ํ
์คํธ, lint, ๋น๋, ์๋ ํ์ธ ๋ฑ ์๋ฃ ์ฌ๋ถ๋ฅผ ํ๋จํ ๊ธฐ์ค โ [๊ฒ์ฆ ๊ธฐ์ค]
output_format (required): ๊ฒฐ๊ณผ ์๋ต์ ํฌํจํด์ผ ํ ์น์
๊ณผ ํ์ โ [์ถ๋ ฅ ํ์]
Better prompt templates
Minimal
Find the root cause of failing tests and apply the smallest safe fix. ๋์์ [์์
๋์]์
๋๋ค. ์๋ฃ ํ ์์ ์ ์คํจ๋ฅผ ์ฌํํ๋์ง ํ์ธํ๋ค.; ์์ ํ ํ๊น ํ
์คํธ๊ฐ ํต๊ณผํ๋์ง ํ์ธํ๋ค. ๊ธฐ์ค์ผ๋ก ํ์ธํ๊ณ Root cause, What changed, Files touched, Validation, Risks ํ์์ผ๋ก ์์ฝํด์ค.
High-signal
Find the root cause of failing tests and apply the smallest safe fix.
๋์:
- [์์
๋์]
์ ์ฝ:
- [์์ ๋ฒ์์ ๊ธ์ง์ฌํญ]
- ํ์ธํ์ง ์์ ์ฌ์ค์ ๋จ์ ํ์ง ์๊ธฐ
์ ์ฐจ:
1. ๋จผ์ ๋ชฉํ, ์
๋ ฅ, ํ์ฌ ์ํ๋ฅผ ํ์ธํด์ค.
2. ํ์ํ ์ต์ ๋ฒ์๋ก ์์
ํด์ค.
3. ์์ ์ ์คํจ๋ฅผ ์ฌํํ๋์ง ํ์ธํ๋ค.; ์์ ํ ํ๊น ํ
์คํธ๊ฐ ํต๊ณผํ๋์ง ํ์ธํ๋ค. ๊ธฐ์ค์ผ๋ก ๊ฒ์ฆํด์ค.
4. ์คํจ๋ ๋ถํ์ค์ฑ์ด ์์ผ๋ฉด ์์ธ๊ณผ ํ์ ์กฐ์น๋ฅผ ์ ์ด์ค.
์ถ๋ ฅ:
- Root cause, What changed, Files touched, Validation, Risks
Clarifying
์ด ์์ฒญ์ `fix` ์ ํ์ผ๋ก ๋ณด์
๋๋ค. ์์
์ ์ ๋์, ์ ์ฝ, ๊ฒ์ฆ ๊ธฐ์ค, ์ถ๋ ฅ ํ์์ด ๋ถ๋ช
ํํ๋ฉด ๋จผ์ ์ง๋ฌธํด์ค.
Ask when unclear
- ๋ถํ์คํ ์ ๋ณด๊ฐ ์์ผ๋ฉด ์์
์ ์ ์ง๋ฌธํด๋ ๋๋์?
Quality checklist
- ๋ชฉํ๊ฐ ํ ๋ฌธ์ฅ์ผ๋ก ๋ช
ํํ๊ฐ?
- ์์
๋์ ๋๋ ์
๋ ฅ ์๋ฃ๊ฐ ๋ช
์๋๋๊ฐ?
- ์์ ๋ฒ์์ ํ์ง ๋ง์์ผ ํ ์ผ์ด ๋ถ๋ฆฌ๋๋๊ฐ?
- ๋ฐ๋ณต ๊ฐ๋ฅํ ์ ์ฐจ๊ฐ ์์๋๋ก ์ ์๋๋๊ฐ?
- ๊ฒ์ฆ ๋ฐฉ๋ฒ๊ณผ ์๋ฃ ๊ธฐ์ค์ด ํฌํจ๋๋๊ฐ?
- ๊ฒฐ๊ณผ ์ถ๋ ฅ ํ์์ด ์ ํด์ก๋๊ฐ?
- ํน์ ํ์ผ๋ช
/๋ธ๋์น/๊ณ ๊ฐ๋ช
์ ๊ณผ์ ํฉ๋์ง ์์๋๊ฐ?
Generalization notes
- ์์ ํ๋กฌํํธ๋ evidence๋ก๋ง ์ฌ์ฉํ๊ณ Skill ๋ณธ๋ฌธ์๋ ์ผ๋ฐํ๋ ํจํด์ ๋จ๊ธด๋ค.
- ํน์ ํ์ผ๋ช
, URL, ๋ธ๋์น, ๋ ์ง๋ ๊ฐ๋ฅํ variable slot์ผ๋ก ์ทจ๊ธํ๋ค.
- ํ ๋ฒ๋ง ๋ฑ์ฅํ ์ธ๋ถ ์กฐ๊ฑด์ ๊ณ ์ ๊ท์น์ด ์๋๋ผ ํ์ธ ์ง๋ฌธ์ผ๋ก ์ ํํ๋ค.
- ์์ ํ Skill์ ์์ธ ๋ถ์๊ณผ ๊ฒ์ฆ ๋ช
๋ น์ ํญ์ ํฌํจํด์ผ ํ๋ค.
Prompt quality score
- Overall: 89
- intent_clarity: 90
- input_specificity: 85
- constraint_clarity: 75
- workflow_reusability: 100
- verification_strength: 100
- output_specificity: 85
- generalization_safety: 88
Install readiness
- Grade: install_recommended
- Recommendation: ์น์ธ ํ ๋ฐ๋ก promoteํด๋ ์ข์ต๋๋ค.
Diagnostics
- Skill ์์ฑ์ ์ํ ํต์ฌ ๊ณ์ฝ ์ ๋ณด๊ฐ ์ถฉ๋ถํฉ๋๋ค.
Evidence
- pytest ํ
์คํธ ์คํจ ๊ณ ์ณ์ค. tests/test_api.py ํ๊น ํ
์คํธ ์ฌ์คํ ํ์
- failing test in pytest needs fix and root cause analysis
- CI ์คํจ red build์ผ broken test ์์ธ ๋ถ์ํ๊ณ ์ต์ ์์ ํด์ค
- jest failing test fix, reproduce the smallest failing case
- ํ
์คํธ ๊นจ์ก์ด pytest ๋ก๊ทธ ๋ณด๊ณ ์์ธ ์ฐพ์ ์์ ํด์ค