Skip to content

sno-ai/sno-station-skills / plugins/sno-station-standalone/skills/test-writer

test-writer

Verified

Write and improve test-owned code: tests, test scripts, fixtures, evals, and test-only helpers. Use whenever Codex is asked to create or change test code. Its only job is to produce the strongest practical tests in the repository's existing harness, run them, and fix defects in the test code.

FileKindSize
SKILL.mdskill md5.6 KB
references/eval-sim-patterns.mdmarkdown8.5 KB
scripts/selftest/run-selftest.shexecutablescript874 B

scripts/selftest/run-selftest.sh

View on GitHub
#!/usr/bin/env bash
# Deployable contract check for Test Writer's core testing principles.
set -u

DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SOURCE="$DIR/../../SKILL.md"
[ -f "$SOURCE" ] || { echo "cannot find SKILL.md above $DIR"; exit 2; }

fail=0

require() {
  if grep -Fq -- "$1" "$SOURCE"; then
    echo "PASS required: $1"
  else
    echo "FAIL missing: $1"
    fail=1
  fi
}

require "Write the best test code"
require "The output of this skill is test-owned code and the result of running it."
require "Everything should be real."
require "We hate mocking."
require "Assert observable results."
require "A test must catch a real defect."
require "Use realistic data."
require "Run the narrowest command that executes the changed test."

if [ "$fail" = 0 ]; then
  echo "test-writer selftest: PASS"
else
  echo "test-writer selftest: FAIL"
fi
exit "$fail"
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 323kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 323kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 323kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall