plugins/code/skills/test-data/SKILL.md
This skill should be used when writing, reviewing, or modifying test code that contains literal values like timestamps, names, IDs, paths, or URLs.
npx skillsauth add motlin/claude-code-plugins test-dataInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Literal values in tests should be immediately recognizable as fabricated. A reader should never wonder whether a value was copied from production.
Use memorable boundary dates, not specific-looking times that could be real:
# Bad — looks like it was recorded from a real system
2023-11-14T22:13:20.000Z
# Good — obviously a test value
1999-12-31T00:00:00.000Z
2000-01-01T00:00:00.000Z
Use the conventional Alice/Bob/Charlie series, or obviously generic names:
# Bad — could be a real person, or the developer's own identity
user: "jsmith"
email: "[email protected]"
# Good — conventional test names
user: "alice"
email: "[email protected]"
# Also good
user: "bob"
email: "[email protected]"
The example.com domain is reserved by IETF (RFC 2606) specifically for this purpose.
Use round numbers or boundary values, not arbitrary numbers that look like real database IDs:
# Bad — looks like a real database ID
id: 8847291
# Good — round numbers
id: 100
id: 1000
# Good — boundary values
id: 0
id: 2_147_483_647
id: 9_999_999
Don't use real usernames, home directories, or system paths. Use generic placeholders:
# Bad — contains a real username and home directory
path: "/Users/jsmith/.config/app/settings.json"
# Good
path: "/tmp/test/settings.json"
url: "https://example.com/api/v1/resource"
tools
This skill should be used after completing any task, before returning control to the user. Always run this skill — it handles the case where there's nothing to do.
development
Commit message format and git workflow rules. ALWAYS use this skill for every git commit — no exceptions — and whenever rewording an existing commit message.
tools
CLI guidelines. Use whenever using the Bash tool, which is almost always. Also use when you see "command not found: __zoxide_z" errors.
tools
Maven CLI invocation patterns. Use whenever running `mvn` commands in Java/Maven projects. Covers when `-am` is required, why `-o` (offline) mode hides bugs in multi-worktree setups, and how to verify compile/test cleanly without trusting stale `~/.m2` artifacts.