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.bat
View on GitHub@echo off
setlocal
set "SQUIRE_SKILL_DIR=%~dp0"
for /f "delims=" %%I in ('where jsonschema 2^>nul') do if not defined SQUIRE_JSONSCHEMA_BIN set "SQUIRE_JSONSCHEMA_BIN=%%I"
if not defined TEMP set "TEMP=%SQUIRE_SKILL_DIR%"
:make_exit_file
set "SQUIRE_EXIT_FILE=%TEMP%\squire-exit-%RANDOM%-%RANDOM%-%RANDOM%.tmp"
if exist "%SQUIRE_EXIT_FILE%" goto make_exit_file
type nul > "%SQUIRE_EXIT_FILE%"
if not exist "%SQUIRE_EXIT_FILE%" (
>&2 echo ERROR [launcher]: could not create Squire exit-code handoff
exit /b 1
)
:scan_squire_arguments
set "SQUIRE_HELP_REQUESTED=0"
:next_squire_argument
if "%1"=="" goto run_squire
if "%~1"=="--" goto run_squire
if "%~1"=="--help" set "SQUIRE_HELP_REQUESTED=1"
if "%~1"=="-h" set "SQUIRE_HELP_REQUESTED=1"
if "%~1"=="-help" set "SQUIRE_HELP_REQUESTED=1"
if "%~1"=="--usage" set "SQUIRE_HELP_REQUESTED=1"
shift
goto next_squire_argument
:run_squire
pushd "%SQUIRE_SKILL_DIR%"
call "%SQUIRE_SKILL_DIR%mill.bat" --no-server --ticker false squire.scala %*
set "SQUIRE_MILL_EXIT=%ERRORLEVEL%"
popd
if "%SQUIRE_MILL_EXIT%"=="0" if "%SQUIRE_HELP_REQUESTED%"=="1" (
for %%F in ("%SQUIRE_EXIT_FILE%") do if %%~zF EQU 0 > "%SQUIRE_EXIT_FILE%" echo 0
)
set "SQUIRE_RECORDED_EXIT="
%SystemRoot%\System32\findstr.exe /r /x "[0-9][0-9]*" "%SQUIRE_EXIT_FILE%" >nul 2>&1
if not errorlevel 1 set /p "SQUIRE_RECORDED_EXIT="<"%SQUIRE_EXIT_FILE%"
del /q "%SQUIRE_EXIT_FILE%" >nul 2>&1
set "SQUIRE_EXIT_FILE="
if not defined SQUIRE_RECORDED_EXIT goto no_recorded_exit
set /a SQUIRE_RECORDED_EXIT=SQUIRE_RECORDED_EXIT 2>nul
if errorlevel 1 goto no_recorded_exit
if %SQUIRE_RECORDED_EXIT% GTR 255 goto no_recorded_exit
exit /b %SQUIRE_RECORDED_EXIT%
:no_recorded_exit
if not "%SQUIRE_MILL_EXIT%"=="0" exit /b %SQUIRE_MILL_EXIT%
>&2 echo ERROR [launcher]: Squire completed without a valid exit-code handoff
exit /b 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 |