Purpose
Verify and configure the work-items plugin for the consuming repo. Setup owns three concerns: **bind
the tracker provider** (the tracker key of the tracked <home>/work-items.yaml, the once-per-repo
declaration the seam needs before any verb runs; see "Provider binding" below), the tracked
recurring-schedule config at .github/recurring-schedule.json so the due, recheck, and work
actions resolve a real schedule instead of degrading to "no recurring schedule configured", and the
optional canonical-role → label remap in the binding (see "Canonical role labels" below). The
recurring-schedule pass is the bulk path for seeding or reshaping the whole schedule at once; the
per-item add --recurring path (which appends a single row as a side effect of filing its work item)
stays as-is. That bulk pass is opt-in rather than part of initial config: a first-time bind writes the
empty skeleton and stops there, because that bind is usually reached as a detour from another verb
reporting "no binding", the operator came to do something else, and should not be walked through a
per-item interview to get there.
Check-centric per the uniform setup contract (docs/plugin-philosophy.md
"Setup is explicit and repeatable" in the marketplace repository): check inspects read-only and
reports a PASS/FAIL/INFO table; apply binds the provider, writes or reshapes the schedule, and
offers the role remap, then re-runs check. No argument or check runs the check; apply runs the
check first, then the bind-and-write flow; apply --seed-schedule additionally opts in to the
candidate-inference-and-interview pass. Idempotent: re-running reads the on-disk files and offers
updates rather than overwriting blind. The schedule file is a plain tracked
JSON file the skill reads and writes directly (Read / Write / jq). It is not a tracker record, so it
does not route through the work-item-tracker seam; only operations on the work items themselves (labels,
item lookups, edits) go through the bound provider.
Resolving the paths
Root every path at the project root, never a bare relative path (which breaks when invoked from a
subdirectory). The binding lives in the convention home, which the repository binds in the pointer
region of AGENTS.md or CLAUDE.md:
ROOT="<project root>"
bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "$ROOT"