Skip to content

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

python-coder

Verified

Implement and refactor production Python, FastAPI, Pydantic, async, and migrations.

FileKindSize
SKILL.mdskill md7.3 KB
references/advanced-patterns.mdmarkdown8.6 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 = {
    "honor the declared runtime": "Never emit syntax, stdlib APIs, or typing features newer than the target.",
    "no backward compatibility": "No legacy paths, compatibility wrappers, migration shims, dual-format support, or fallback behavior unless explicitly requested.",
    "no speculative work": "no speculative abstractions or configurability, no error handling for scenarios that cannot happen.",
    "deterministic decisions stay in code": "belong in code, never in a model call.",
    "claims trace to a command run": "every claim must trace to a command actually run this session",
    "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"python-coder: missing load-bearing rules: {', '.join(missing)}")
PY

printf 'python-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