Skip to content

Mariomarquezt/multi-flow-skills / skills/multi-model-fix

multi-model-fix

Verified

FileKindSize
SKILL.mdskill md25.0 KB
templates/checker-brief-standard.mdmarkdown2.9 KB
templates/cross-check-brief.mdmarkdown2.4 KB
templates/fix-brief.mdmarkdown3.4 KB
templates/item-file.mdmarkdown1.4 KB
templates/lean-brief.mdmarkdown2.6 KB
templates/lean/bg-run.shexecutablescript979 B
templates/lean/gate-example.shscript989 B
templates/lean/lean-collect.shexecutablescript2.3 KB
templates/lean/lean-group.shexecutablescript4.7 KB
templates/lean/lean-mkcheck.shexecutablescript2.1 KB
templates/lean/lean-run.shexecutablescript2.0 KB
templates/lean/lean-wait.shexecutablescript1.4 KB
templates/repro-brief.mdmarkdown2.0 KB
templates/scout-brief.mdmarkdown1.7 KB

templates/lean/lean-collect.sh

View on GitHub
#!/bin/bash
# Bring the changes of all helper worktrees into ONE tree (the check / integration tree) and
# write the complete diff. The full gate and the checker run in that tree, never in a helper's.
# usage: lean-collect.sh <integration dir> <out.patch> <helper worktree> [<helper worktree>...]
#   The integration tree is at the BASE commit. A helper tree is at the base, or at ONE seam commit
#   after it (the seam is then applied one time, so <out.patch> is the complete diff against the base). The integration tree is RESET first (git reset --hard,
#   git clean -fd: ignored files such as node_modules stay). Helper trees: `git add -A` only.
#   A second call after a fix round also writes <out.patch>.delta = what changed since the last call.
set -u
[ $# -ge 3 ] || { sed -n '2,9p' "$0"; exit 2; }
int=$1; out=$2; shift 2
git -C "$int" reset -q --hard HEAD && git -C "$int" clean -q -fd || exit 9
: > "$out.delta.tmp"
seam=
for wt in "$@"; do
  ih=$(git -C "$int" rev-parse HEAD); wh=$(git -C "$wt" rev-parse HEAD)
  if [ "$wh" != "$ih" ]; then   # the helper tree sits on a seam commit made after the integration tree's commit
    git -C "$wt" merge-base --is-ancestor "$ih" "$wh" || { echo "lean-collect: $wt is not at, or after, the commit of $int"; exit 9; }
    if [ "$seam" != "$wh" ]; then
      [ -z "$seam" ] || { echo "lean-collect: two different seam commits ($seam, $wh)"; exit 9; }
      git -C "$wt" diff --binary "$ih" "$wh" | git -C "$int" apply --index - || { echo "lean-collect: the seam commit of $wt does not apply"; exit 9; }
      seam=$wh
    fi
  fi
  if ! git -C "$wt" diff --cached --quiet HEAD; then git -C "$wt" add -A -N . ; git -C "$wt" diff --binary >> "$out.delta.tmp"; fi
  git -C "$wt" add -A . || exit 9
  if ! git -C "$wt" diff --cached --quiet HEAD; then
    git -C "$wt" diff --cached --binary HEAD | git -C "$int" apply --index - || { echo "lean-collect: the diff of $wt does not apply (two groups edited the same file?)"; exit 9; }
  fi
done
git -C "$int" diff --cached --binary HEAD > "$out"
if [ -s "$out.delta.tmp" ]; then mv "$out.delta.tmp" "$out.delta"; echo "delta since the last collect: $(grep -c '^[+-][^+-]' "$out.delta") changed lines -> $out.delta"; else rm -f "$out.delta.tmp"; fi
git -C "$int" diff --cached --stat HEAD | tail -4
echo "changed lines: $(grep -c '^[+-][^+-]' "$out")  -> $out"
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: 198kUpdated 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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated 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: 194kUpdated Claude CodeCodexVerifiedInstall