Find Related Tests
Testing & Qualityfind-related-testsFind Related Tests is an Agent Skill for testing & quality published in the fleetdm/fleet repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Find test files and functions related to recent git changes. Suggests exact go test commands with correct env vars.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/fleetdm/fleet/blob/HEAD/.claude/skills/find-related-tests/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/find-related-tests, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Look at my recent git changes (git diff and git diff --cached) and find all related test files.
For each modified file, find:
- The
_test.gofile in the same package - Integration tests that exercise the modified code (check
server/service/integration_*_test.gofiles) - Any test helpers or fixtures that may need updating
List the test files and suggest specific test functions to run with the exact go test commands, including the right env vars (MYSQL_TEST, REDIS_TEST, etc.).