Identify and flag unnecessary test artifacts and temporary files in pull requests. Use when reviewing pull requests to ensure only production-relevant files are committed.
This skill inherits all available tools. When active, it can use any tool Claude has access to.
TEST-RESULTS.mdexamples/example-1-obvious-artifacts/expected.mdexamples/example-1-obvious-artifacts/input.mdexamples/example-1-obvious-artifacts/scenario.mdexamples/example-2-ambiguous-files/expected.mdexamples/example-2-ambiguous-files/input.mdexamples/example-2-ambiguous-files/scenario.mdexamples/example-3-legitimate-test-files/expected.mdexamples/example-3-legitimate-test-files/input.mdexamples/example-3-legitimate-test-files/scenario.mdReview pull request files to identify unnecessary test artifacts, temporary files, and non-production code based on naming patterns, locations, and usage.
Look for files matching these patterns:
test*.md, *results.md, *output.md - Test result documentationtest_*.csv, *_test_data.csv - Test data filesscratch.py, temp.py, debug.py - Temporary scriptsoutput.txt, results.json, debug.log - Output/log filesFor each suspicious file, ask:
Location Analysis:
Usage Analysis:
Naming Convention:
Flag for removal if:
Approve if:
When flagging files:
š« Unnecessary: `path/to/file.ext`
Reason: [Test artifact/temporary script/etc.]
Evidence: [Not referenced/unusual location/temporary naming]
Recommendation: Remove from PR or relocate
Context: PR includes testresults.md in project root
Application:
grep -r "testresults.md" finds no referencesOutcome:
š« Unnecessary: `testresults.md`
Reason: Test artifact in root directory
Recommendation: Remove from PR
Context: PR includes tests/fixtures/sample_data.csv
Application:
tests/fixtures/ (appropriate)tests/test_parser.pyOutcome: ā Necessary test fixture
Context: PR includes debug_api.py in root
Application:
Outcome:
š« Unnecessary: `debug_api.py`
Reason: Temporary debug script in root
Recommendation: Remove from PR or add to .gitignore if needed locally
Context: PR includes test_config.yaml
Application:
tests/conftest.pyOutcome: ā Legitimate test configuration
ā Don't: Flag every file with "test" in the name
ā Don't: Approve files just because they're small
ā Don't: Require deep code analysis for obvious artifacts
ā Don't: Flag files without checking references first
To validate this skill:
Create test PR with mixed files:
testresults.md in root (should flag)tests/fixtures/data.csv referenced in tests (should pass)scratch.py in root (should flag)Apply skill systematically:
Verify accuracy:
# List all files in PR
git diff --name-only main...HEAD
# Check if file is referenced in codebase
grep -r "filename.ext" --exclude-dir=.git
# Search for imports (Python example)
grep -r "from.*filename import\|import.*filename" .
# Find test-like files
find . -name "*test*" -o -name "*debug*" -o -name "*temp*" -o -name "*scratch*"
Remember: Catch obvious artifacts without creating friction. When uncertain, ask the author.