본문으로 건너뛰기
cccskills
무료GitHub에 공개

fix-tests

Systematically fix all failing tests after business logic changes or refactoring

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Fix Tests

User Arguments

User can provide to focus on specific tests or modules:

$ARGUMENTS

If nothing is provided, focus on all tests.

Context

After business logic changes, refactoring, or dependency updates, tests may fail because they no longer match the current behavior or implementation. This command orchestrates automated fixing of all failing tests using specialized agents.

Goal

Fix all failing tests to match current business logic and implementation.

Important Constraints

  • Focus on fixing tests - avoid changing business logic unless absolutely necessary
  • Preserve test intent - ensure tests still validate the expected behavior
  • "Analyse complexity of changes" -
    • if there 2 or more changed files, or one file with complex logic, then Do not write tests yourself - only orchestrate agents!
    • if there is only one changed file, and it's a simple change, then you can write tests yourself.

Workflow Steps

Preparation

  1. Read sadd skill if available

    • If available, read the sadd skill to understand best practices for managing agents
  2. Discover test infrastructure

    • Read @README.md and package.json (or equivalent project config)
    • Identify commands to run tests and coverage reports
    • Understand project structure and testing conventions
  3. Run all tests

    • Execute full test suite to establish baseline
  4. Identify all failing test files

    • Parse test output to get list of failing test files
    • Group by file for parallel agent execution

Analysis

  1. Verify single test execution
    • Choose any test file
    • Launch haiku agent with instructions to find proper command to run this only test file
      • Ask him to iterate until you can reliably run individual tests
    • After he complete try running a specific test file if it exists
    • This ensures agents can run tests in isolation

Test Fixing

  1. Launch developer agents (parallel)

    • Launch one agent per failing test file
    • Provide each agent with clear instructions:
      • Context: Why this test needs fixing (business logic changed)
      • Target: Which specific file to fix
      • Guidance: Read TDD skill (if available) for best practices how to write tests.
      • Resources: Read README and relevant documentation
      • Command: How to run this specific test file
      • Goal: Iterate until test passes
      • Constraint: Fix test, not business logic (unless clearly broken)
  2. Verify all fixes

    • After all agents complete, run full test suite again
    • Verify all tests pass
  3. Iterate if needed

    • If any tests still fail: Return to step 5
    • Launch new agents only for remaining failures
    • Continue until 100% pass rate

Success Criteria

  • All tests pass ✅
  • Test coverage maintained
  • Test intent preserved
  • Business logic unchanged (unless bugs found)

Agent Instructions Template

When launching agents, use this template:

The business logic has changed and test file {FILE_PATH} is now failing.

Your task:
1. Read the test file and understand what it's testing
2. Read TDD skill (if available) for best practices on writing tests.
3. Read @README.md for project context
4. Run the test: {TEST_COMMAND}
5. Analyze the failure - is it:
   - Test expectations outdated? → Fix test assertions
   - Test setup broken? → Fix test setup/mocks
   - Business logic bug? → Fix logic (rare case)
6. Fix the test and verify it passes
7. Iterate until test passes

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

actualize

무료

Reconcile the project's FPF state with recent repository changes

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

add-task

무료

creates draft task file in .specs/tasks/draft/ with original user intent

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

Evaluate and improve Claude Code commands, skills, and agents. Use when testing prompt effectiveness, validating context engineering choices, or measuring improvement quality.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

analyse

무료

Auto-selects best Kaizen method (Gemba Walk, Value Stream, or Muda) for target

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

Comprehensive A3 one-page problem analysis with root cause and action plan

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

Analyze a GitHub issue and create a detailed technical specification

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

NeoLabHQ/context-engineering-kit1.8천2026년 8월 27일 업데이트

NeoLabHQ의 스킬 모두 보기

이 스킬의 문제 신고