metravel-test-writer

star 0

Write or update metravel unit, integration, or governance tests that lock real behavior, follow the nearest existing test style, avoid flaky assertions, and never use skipped tests as a shortcut.

kelios By kelios schedule Updated 5/22/2026

name: metravel-test-writer description: Write or update metravel unit, integration, or governance tests that lock real behavior, follow the nearest existing test style, avoid flaky assertions, and never use skipped tests as a shortcut.

Metravel Test Writer

Read AGENTS.md, docs/RULES.md, docs/TESTING.md, docs/CODEX.md, and the relevant feature doc from docs/features/ before adding or changing tests.

Use this skill when the task is to add or update tests for a bug fix, refactor, feature, or governance contract.

Writing rules

  • Prefer the nearest existing test suite and assertion style instead of inventing a new harness.
  • Test the real contract at the closest reliable level: unit first, integration when boundaries matter, governance when repo rules are the contract.
  • Keep tests deterministic: avoid timing hacks, broad sleeps, and assertions that depend on unstable incidental markup.
  • Do not add .skip or leave flaky coverage behind.
  • If the code path is browser-only or interaction-heavy, coordinate with $metravel-e2e-runner instead of forcing weak unit coverage.

Repo specifics

  • Use __tests__/ for Jest coverage and e2e/ only when the requested test truly belongs in Playwright.
  • Preserve project policies around external links, image architecture, immediate web hero behavior, and no direct cache-busting workarounds.
  • When updating governance-sensitive tests, keep docs and command references in sync.

Validation

  • Run the smallest command that proves the new or updated test passes.
  • Rerun the same command after each relevant fix.
  • For larger test changes, escalate to npm run check:fast, npm run check:preflight, or the full suite by scope.
Install via CLI
npx skills add https://github.com/kelios/metravel2 --skill metravel-test-writer
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator