Skip to content

michael-denyer/pstack-claude / plugins/pstack/skills/setup-pstack

setup-pstack

Unverified

Configure which models pstack uses per role. Detects available models and writes the current runtime's override sheet. Use for /setup-pstack, "configure pstack models", changing pstack's model choices, or turning the SessionStart hook on or off.

FileKindSize
SKILL.mdskill md9.7 KB
copilot.mdmarkdown11.1 KB
references/runtimes.mdmarkdown9.6 KB
scripts/check-sheet.awkother224 B
scripts/check-sheet.shexecutablescript857 B
scripts/read-sheet.shscript1.1 KB
scripts/sheet.awkother5.8 KB

scripts/read-sheet.sh

View on GitHub
#!/bin/sh
# Decode the sheet once, before any consumer interprets its lines. PowerShell
# 5.1 writes UTF-16LE; other writers may add a UTF-8 BOM or CRLF line endings.
set -eu
# The tools below then treat the sheet as bytes, as sheet.awk does. Under a
# UTF-8 locale, macOS tr stops at a byte that is not UTF-8.
export LC_ALL=C
sheet=$1
[ -f "$sheet" ] && [ -r "$sheet" ] || exit 1
utf16=false
if [ "$(od -An -tx1 -N2 "$sheet" | tr -d ' ')" = fffe ]; then
  # A sheet iconv cannot decode counts as missing, and iconv's message stays
  # off the hook's stderr. The check runs here because the pipeline below
  # exits with sed's status, not iconv's.
  iconv -f UTF-16LE -t UTF-8 "$sheet" >/dev/null 2>&1 || exit 1
  utf16=true
fi
bom=$(printf '\357\273\277')
cr=$(printf '\r')
# Command substitution in the callers drops NUL bytes, which would join the
# text around a NUL into a line the sheet never held. NUL travels as \001
# instead: neither byte can appear in a line any consumer accepts.
if $utf16; then iconv -f UTF-16LE -t UTF-8 "$sheet"; else cat "$sheet"; fi |
  tr '\000' '\001' | sed -e "1s/^$bom//" -e "s/$cr\$//"
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: 192kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 192kUpdated 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: 192kUpdated Claude CodeCodexVerifiedInstall