Agent skill
reconcile-tests
Add, update, or delete tests for changes in the current commit
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/reconcile-tests
SKILL.md
Add, update, or delete tests for changes made in the current jj commit.
Before starting, read: ../authoring-tests/SKILL.md
Goals
- Delete no longer applicable tests
- Update outdated test expectations
- Add tests for new behaviors
Recently changed files
!jj diff --summary
If no files are changed, the consider all files in the current directory.
Workflow
- Explore each deleted, updated, or added file:
- Read the file if it still exists
- Run
jj diff <file>to view changes - Identify:
- Deleted logic
- Modified logic (new branches, edge cases, changed behavior)
- New logic
- Find the test files that import or reference the changed code. Create them if missing
- Run the relevant tests
- Examine failing tests and update them as necessary:
- Delete if no longer applicable
- Update if expectations are outdated
- Flag regressions to the user. Describe the changed behavior, the failing test, and your hypothesis about why it's a bug. Ask how to proceed Go back to step 3 after making updates until all tests pass
- Add tests for new behaviors
- Run the new tests
- Examine failing tests and update them as necessary:
- Update if there's a bug in the test
- Flag to the user if the tests caught a bug, Describe the behavior, the failing test, and your hypothesis about why it's a bug. Ask how to proceed Go back to step 7 after making updates
- Run tests with coverage if possible. If new logic is not covered, then go back to step 5
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?