Skip to content

KunanonJ/superstacks / plugins/superstacks/skills/owner-decisions

owner-decisions

Verified

Use when about to merge, mark ready, close a ticket, force push, deploy, change a rule, or ask the owner a question. Reads authority from the owner's decision record, or starts one.

FileKindSize
SKILL.mdskill md2.9 KB
scripts/authority.pyscript1.6 KB
scripts/check_decisions.pyscript3.9 KB
templates/DECISIONS.mdmarkdown819 B

scripts/authority.py

View on GitHub
#!/usr/bin/env python3
"""Print the standing rule that grants an authority, or 'DEFAULT: human'."""

from __future__ import annotations

import sys
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parent))

from check_decisions import parse  # noqa: E402

AUTHORITIES = ("merge", "ready", "close", "force-push", "deploy")
DEFAULT = "DEFAULT: human"


def lookup(text: str, authority: str) -> str:
    """Latest sourced rule whose text starts with '<authority>:'; else DEFAULT."""
    entries, rules = parse(text)
    headings = {f"{e['date']} {e['title']}" for e in entries}
    best: tuple[str, list[str]] | None = None
    for cells in rules:
        if len(cells) != 5:
            continue
        rule, _scope, _exc, when, source = cells
        if not rule.lower().startswith(authority + ":"):
            continue
        if source.strip("`") not in headings:
            continue
        if best is None or when >= best[0]:
            best = (when, cells)
    if best is None:
        return DEFAULT
    rule, scope, exc, when, source = best[1]
    return f"{rule} | scope: {scope} | exceptions: {exc} | date: {when} | source: {source}"


def main(argv: list[str] | None = None) -> int:
    args = sys.argv[1:] if argv is None else argv
    if len(args) != 2 or args[1] not in AUTHORITIES:
        print(f"usage: authority.py LEDGER.md {{{'|'.join(AUTHORITIES)}}}", file=sys.stderr)
        return 2
    try:
        text = Path(args[0]).read_text(encoding="utf-8")
    except OSError:
        print(DEFAULT)
        return 0
    print(lookup(text, args[1]))
    return 0


if __name__ == "__main__":
    sys.exit(main())
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall