Skip to content

KunanonJ/superstacks / plugins/superstacks/skills/verify-loop

verify-loop

Unverified

Use when starting implementation or iterating a fix. Define a deterministic check for the acceptance criteria, run it red, then iterate until green.

FileKindSize
SKILL.mdskill md2.1 KB
scripts/check-snapshot-console.cjsscript2.7 KB
scripts/verify.pyscript1.5 KB
scripts/verify.shscript843 B

scripts/verify.py

View on GitHub
#!/usr/bin/env python3
"""Run a verification command and print pass/fail evidence. Stdlib only."""

from __future__ import annotations

import argparse
import subprocess
import sys
import time
from datetime import datetime, timezone


def run_command(argv: list[str]) -> int:
    started = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
    t0 = time.perf_counter()
    print(f"VERIFY command: {' '.join(argv)}")
    print(f"VERIFY started: {started}")
    try:
        proc = subprocess.run(argv, check=False)
    except OSError as exc:
        print(f"VERIFY spawn error: {exc}", file=sys.stderr)
        print("VERIFY_FAIL")
        return 1
    duration_ms = int((time.perf_counter() - t0) * 1000)
    print(f"VERIFY exit: {proc.returncode}")
    print(f"VERIFY duration_ms: {duration_ms}")
    if proc.returncode == 0:
        print("VERIFY_PASS")
        return 0
    print("VERIFY_FAIL")
    return proc.returncode or 1


def main(argv: list[str] | None = None) -> int:
    parser = argparse.ArgumentParser(description=__doc__)
    parser.add_argument(
        "command",
        nargs=argparse.REMAINDER,
        help="Command to run after --",
    )
    args = parser.parse_args(argv)
    command = list(args.command)
    if command and command[0] == "--":
        command = command[1:]
    if not command:
        parser.error("missing command. Usage: verify.py -- <command> [args...]")
    return run_command(command)


if __name__ == "__main__":
    sys.exit(main())
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 193kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 193kUpdated Claude CodeCodexVerifiedInstall