code-test
SKILL.md
Run project tests by detecting the environment and fixing failures.
Process
-
Identify context:
- If code changes are involved: run
jj diff -sfirst to see changed files; then usejj diff -- pathto restrict to specific files/directories - If the user specified specific files or paths, focus on those
- If code changes are involved: run
-
Detect the preferred way to run tests: a. Check existing instructions:
README.md,CONTRIBUTING.md,CLAUDE.md,AGENTS.md,GEMINI.md,CODEX.mdb. Check task runners:Makefile,justfile,Taskfile.ymlfor test target c. Check for scripts inbin/,.my/bin/(test, *-test, etc.) d. Check package manager scripts (package.jsonscripts, etc.) e. Fall back to standard:npm test,pytest,go test ./...,cargo test -
Run the detected test command
-
Analyze and fix any failures
Failure Handling
For any test failures:
- Identify the root cause
- Provide specific fixes
- Explain why the fix works
- Re-run tests to verify
Stop Condition
- If a fix fails twice, stop and ask for guidance.
Output
- Test command used
- Failures and fixes (if any)
- Verification
Weekly Installs
7
Repository
sirn/dotfilesGitHub Stars
8
First Seen
13 days ago
Security Audits
Installed on
gemini-cli7
github-copilot7
codex7
kimi-cli7
amp7
cline7