Skip to content

sno-ai/sno-station-skills / plugins/sno-station-standalone/skills/ts-coder

ts-coder

Verified

Implement and refactor production TypeScript/TSX, strict types, APIs, and migrations.

FileKindSize
SKILL.mdskill md5.4 KB
scripts/selftest/run-selftest.shexecutablescript1.2 KB

scripts/selftest/run-selftest.sh

View on GitHub
#!/usr/bin/env bash
# Text contract for this skill only. Reads nothing outside this payload.
set -Eeuo pipefail

selftest_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
skill="$(cd -- "$selftest_dir/../.." && pwd)/SKILL.md"

python3 - "$skill" <<'PY'
import pathlib
import sys

text = " ".join(pathlib.Path(sys.argv[1]).read_text(encoding="utf-8").split())
rules = {
    "no backward compatibility": "No legacy paths, compatibility wrappers, migration shims, dual-format support, or fallback behavior unless explicitly requested.",
    "no any escape hatch": "`unknown` + narrowing over `any`.",
    "no speculative work": "No unrequested options/flags/configurability",
    "deterministic decisions stay in code": "belong in code, never in a model call.",
    "no unrequested suite expansion": "Never expand to a package-wide or workspace-wide test suite without an explicit human request.",
    "no done over failing checks": "never report done with errors outstanding.",
}
missing = [name for name, phrase in rules.items() if phrase not in text]
if missing:
    raise SystemExit(f"ts-coder: missing load-bearing rules: {', '.join(missing)}")
PY

printf 'ts-coder text contract passed\n'
receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementationStars: 322kUpdated Claude CodeCodexVerifiedInstall
requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirementsStars: 322kUpdated Claude CodeCodexVerifiedInstall
using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallbackStars: 322kUpdated Claude CodeCodexVerifiedInstall
verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions alwaysStars: 322kUpdated Claude CodeCodexVerifiedInstall