finos/morphir-scala / .claude/skills/squire
squire
VerifiedUse when morphir-scala work needs environment diagnostics or build/network/sandbox unblocking; reference repository management; branch lifecycle refresh after squash-merging a target branch into main; Morphir IR spec/schema sync or export; or task-tracking configuration and beads mode resolution.
squire
View on GitHub#!/usr/bin/env bash
set -euo pipefail
DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
if command -v jsonschema >/dev/null 2>&1; then
export SQUIRE_JSONSCHEMA_BIN
SQUIRE_JSONSCHEMA_BIN="$(command -v jsonschema)"
fi
SQUIRE_EXIT_FILE="$(mktemp "${TMPDIR:-/tmp}/squire-exit.XXXXXXXXXX")"
export SQUIRE_EXIT_FILE
cleanup() {
rm -f -- "$SQUIRE_EXIT_FILE"
}
trap cleanup EXIT
cd "$DIR"
SQUIRE_HELP_REQUESTED=0
for SQUIRE_ARGUMENT in "$@"; do
case "$SQUIRE_ARGUMENT" in
--) break ;;
--help|-h|-help|--usage)
SQUIRE_HELP_REQUESTED=1
break
;;
esac
done
set +e
"$DIR/mill" --no-server --ticker false squire.scala "$@"
SQUIRE_MILL_EXIT=$?
set -e
if [ "$SQUIRE_MILL_EXIT" -eq 0 ] && [ "$SQUIRE_HELP_REQUESTED" -eq 1 ] && [ ! -s "$SQUIRE_EXIT_FILE" ]; then
printf '%s\n' 0 > "$SQUIRE_EXIT_FILE"
fi
SQUIRE_RECORDED_EXIT=""
if IFS= read -r SQUIRE_RECORDED_EXIT < "$SQUIRE_EXIT_FILE"; then
case "$SQUIRE_RECORDED_EXIT" in
""|*[!0-9]*) ;;
*)
if [ "$SQUIRE_RECORDED_EXIT" -le 255 ] 2>/dev/null; then
exit "$SQUIRE_RECORDED_EXIT"
fi
;;
esac
fi
if [ "$SQUIRE_MILL_EXIT" -ne 0 ]; then
exit "$SQUIRE_MILL_EXIT"
fi
echo "ERROR [launcher]: Squire completed without a valid exit-code handoff" >&2
exit 1
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |