Skip to content

sprngr/rubber-duck / skills/duck-tape

duck-tape

Verified

Two-tier session memory: CONTEXT.md (persistent) + .duck-tape working state, with merge/dedupe. Subcommands: merge, resume, init, prune, migrate. Use when: "duck-tape", "compact session", "update CONTEXT.md", "resume session".

FileKindSize
README.mdmarkdown15.5 KB
SKILL.mdskill md20.7 KB
examples/CHANGELOG.mdmarkdown419 B
examples/CONTEXT.mdmarkdown2.1 KB
examples/STATE.mdmarkdown1.2 KB
examples/bootstrap-CONTEXT.mdmarkdown463 B
hooks/claude-code.hooks.jsonconfig291 B
hooks/claude-code.hooks.windows.jsonconfig312 B
hooks/copilot.hooks.jsonconfig325 B
hooks/extract-raw.ps1script15.2 KB
hooks/extract-raw.shexecutablescript12.2 KB
hooks/extract-state.ps1script15.1 KB
hooks/extract-state.shexecutablescript11.3 KB
hooks/opencode.plugin.jsscript12.9 KB
hooks/pre-compact.ps1script1.1 KB
hooks/pre-compact.shexecutablescript1.0 KB
references/GUARDRAILS.mdmarkdown757 B
references/HOOKS_GUIDE.mdmarkdown11.3 KB
references/OUTPUT_SCHEMA.mdmarkdown3.8 KB
references/SCHEMA.mdmarkdown7.0 KB
references/STATE_SCHEMA.mdmarkdown5.7 KB

hooks/pre-compact.sh

View on GitHub
#!/usr/bin/env bash
# duck-tape pre-compact trigger
# Invoked by harness hook before context compaction.
# Writes .duck-tape/.last-compact marker only. No state stub, no merge.
# Skill reads marker at session resume to detect compaction occurred.
set -euo pipefail

duck_tape_dir="${1:-$(pwd)/.duck-tape}"
mkdir -p "$duck_tape_dir"

# .gitignore if missing
if [[ ! -f "$duck_tape_dir/.gitignore" ]]; then
  printf '*\n' > "$duck_tape_dir/.gitignore"
fi

timestamp="$(date -u +%Y-%m-%dT%H:%M:%SZ)"
cwd="$(pwd)"

# Find latest existing state file, if any
latest_state=""
shopt -s nullglob
state_files=( "$duck_tape_dir"/*.state.md )
shopt -u nullglob
if (( ${#state_files[@]} > 0 )); then
  latest_state="$(basename -- "$(ls -t "$duck_tape_dir"/*.state.md 2>/dev/null | head -1)")"
fi

# Write compaction marker
marker="$duck_tape_dir/.last-compact"
{
  printf '%s | cwd: %s' "$timestamp" "$cwd"
  if [[ -n "$latest_state" ]]; then
    printf ' | latest-state: %s' "$latest_state"
  fi
  printf '\n'
} > "$marker"

printf '%s\n' "$marker"
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: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated 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: 196kUpdated Claude CodeCodexVerifiedInstall