code-test
Installation
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