Setup
One-time hindsight setup — scaffold the vault at ~/.hindsight (or $HINDSIGHT_HOME), install the nightly launchd distill job, optionally git-init the vault. Run once after installing the plugin; re-run any time to change the distill schedule. macOS only.From its SKILL.md
npx -y skills add webrgp/hindsight --skill setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.8 KB, as published. Nobody here has run it
hindsight setup
Set up the hindsight vault and the nightly distill schedule. Idempotent — safe to re-run (it unloads and reloads the launchd job).
Steps
-
Resolve paths.
- Vault:
HINDSIGHT_HOMEenv var if set, else~/.hindsight. Call it$VAULTbelow. - Plugin root: this skill lives at
<plugin>/skills/setup/, so the plugin root is${CLAUDE_PLUGIN_ROOT}. - If not on macOS (
uname≠Darwin): stop and tell the user launchd scheduling is macOS-only; they can still run/hindsight:distillmanually or cronscripts/distill.shthemselves.
- Vault:
-
Check dependencies.
jq,git,perl, andclaudemust be on PATH. Ifjqis missing, tell the user tobrew install jqand stop. -
Scaffold the vault (create only what's missing, never overwrite):
mkdir -p "$VAULT"/{sessions,knowledge/global,knowledge/projects,inbox,logs,bin} [ -f "$VAULT/inbox/proposals.md" ] || printf '# hindsight proposals\n\nSkill/automation candidates detected by distill. You approve via /hindsight:proposals.\n' > "$VAULT/inbox/proposals.md" -
Install the launchd shim (stable entrypoint that survives plugin updates):
cp "${CLAUDE_PLUGIN_ROOT}/templates/run-distill-shim.sh" "$VAULT/bin/run-distill.sh" chmod +x "$VAULT/bin/run-distill.sh" -
Ask the user what time distill should run (default 19:00, 24h clock). Use the AskUserQuestion tool with a few sensible options plus Other.
-
Render and load the launchd job. Substitute into
${CLAUDE_PLUGIN_ROOT}/templates/com.hindsight.distill.plist.template:__HINDSIGHT_HOME__→$VAULT(absolute path)__HOME__→ the user's home directory (absolute path)__CLAUDE_BIN_DIR__→$(dirname "$(command -v claude)")— launchd's PATH is minimal and nvm/npm installs live outside the standard dirs__HOUR__/__MINUTE__→ chosen time (integers, no leading zeros)
Write the result to
~/Library/LaunchAgents/com.hindsight.distill.plist, then verifyclaudeactually resolves under the plist's PATH before loading:plutil -lint ~/Library/LaunchAgents/com.hindsight.distill.plist PATH="<the PATH string you rendered into the plist>" command -v claude # must resolve launchctl unload ~/Library/LaunchAgents/com.hindsight.distill.plist 2>/dev/null launchctl load ~/Library/LaunchAgents/com.hindsight.distill.plist -
Offer optional git sync. If
$VAULTis not already a git repo, ask whether togit initit (distill then auto-commits knowledge; it pushes only if the user later adds anoriginremote). If yes:git -C "$VAULT" init -q printf '.distill-scratch/\n.distill.lock/\nlogs/\n' > "$VAULT/.gitignore" -
Check for a conflicting recall install. If
~/.claude/settings.jsoncontains hook entries pointing at arecallinstall (grep -i recall ~/.claude/settings.json), warn the user: running both means double capture and double context injection. Point them at recall's uninstall steps (remove its two hook entries;launchctl unload ~/Library/LaunchAgents/com.recall.distill.plistand delete the plist). Do NOT edit their settings.json or remove anything yourself unless they ask. -
Report: vault path, scheduled time, git status of the vault, and remind that capture/inject hooks are already active via the plugin — the first knowledge appears after the first distill run. Suggest
/hindsight:statusto check on it.