refresh
Installation
SKILL.md
dbt-wiki — Refresh Workflow (v2.0)
Refresh is the daily / per-feature update path. It assumes init has
already run (so .dbt-wiki/ + SCHEMA.md + _internal/ exist) and only
processes diffs against the last manifest_sha.
If .dbt-wiki/ doesn't exist, refresh refuses and points to /dbt-wiki:init.
Step 0: Pre-condition Check
# WIKI_DIR = git repo root (where .dbt-wiki/ lives); fallback to current $PWD.
# Same logic as init Step 0pre — refresh must look at the SAME location
# init wrote to, regardless of where the user invoked refresh from.
WIKI_DIR=$(git rev-parse --show-toplevel 2>/dev/null) || WIKI_DIR="$PWD"
cd "$WIKI_DIR" || { echo "Cannot cd to $WIKI_DIR"; exit 1; }