plugins/lisa/skills/validate-tracker-mapping/SKILL.md
Detect and repair drift between a project's configured Lisa status/label mappings and the live tracker/source workflow. Compares every lifecycle role in `.lisa.config.json` (JIRA `jira.workflow` statuses, GitHub/Linear `labels.{build,prd}`, Notion `notion.values` select options, Confluence `confluence.parents`) against the authoritative live names the access layer reports — catching renames, deletions, and case drift (e.g. config `On Stg` vs live `ON STG`). Read-only by default; `repair=true` rewrites the config to the canonical live names (config is fixed, never the tracker). Audits the current repo by default, or sweeps a set of projects via `projects=<glob>` / `workspaces=<file>`. Safe to schedule for continuous drift detection.
npx skillsauth add codyswanngt/lisa validate-tracker-mappingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
/lisa:validate-tracker-mapping answers one question: do the status/label names this project's .lisa.config.json maps each lifecycle role to still exist — with the exact name — in the live tracker and PRD source?
Lisa's lifecycle is driven by configured role → name mappings (ready → "Ready", done.staging → "On Stg", a GitHub ready build label → "status:ready", a Notion ticketed value → "Ticketed", …). When someone renames or deletes a status in JIRA, a label in GitHub/Linear, or a select option in Notion, the config silently points at a name that no longer resolves. The symptom is downstream: a build finishes but the completion transition can't be found, so the item stalls — exactly the kind of half-broken state /lisa:repair-intake then has to clean up. This skill catches that drift at the source: the config-to-live mapping itself.
It is the audit/repair counterpart to /lisa:setup-jira (and the other setup-* skills): where setup-* establishes the mapping interactively, this skill re-validates an existing mapping against the live workflow and, on request, repairs the config to match.
repair=true enables writes — to the config only, never to the tracker. Within repair mode:
AskUserQuestion before writing. Default to leaving the value unchanged../.lisa.config.json).projects=<glob-or-path> — batch sweep. Expands to every directory under the glob that contains a .lisa.config.json. Example: projects=~/workspace/geminisportsai/projects/*.workspaces=<file> — batch sweep driven by a Lisa workspaces file (the { "<project-path>": "<branch>" } map used by /lisa:update-projects). Each key is a project path to audit. Combine with filter=<substring> to restrict to matching paths (e.g. filter=geminisportsai).repair=true — enable config repair (see confirmation policy). Default false.lane=build|prd|both — which mapping family to check. Default both. build = the destination tracker workflow; prd = the PRD source status/label mapping.Batch mode runs the identical per-project audit on each resolved project and prints one section per project plus a roll-up summary.
# Single-repo (default): the audit target is the current directory.
# Batch: expand projects=<glob> to dirs containing .lisa.config.json,
# or read workspaces=<file> keys (optionally filtered).
For workspaces=<file>, parse with jq (never grep/sed JSON):
jq -r 'keys[]' "$WORKSPACES_FILE" \
| sed "s#^~#$HOME#" \
| while read -r proj; do
[ -n "$FILTER" ] && case "$proj" in *"$FILTER"*) : ;; *) continue ;; esac
[ -f "$proj/.lisa.config.json" ] && echo "$proj"
done
Skip (and note) any path with no .lisa.config.json.
For each project, read .lisa.config.json:
tracker=$(jq -r '.tracker // "jira"' .lisa.config.json)
source=$(jq -r '.source // empty' .lisa.config.json)
Resolve the effective role → name mapping using the same defaults /lisa:intake and /lisa:setup-jira use (config-resolution contract). Only keys present in config override the defaults; absent keys fall back to the documented default. Build the list of (role, configured-name) pairs to validate:
jira.workflow): ready, claimed, optional review, blocked, and each done.<env> (dev / staging / production). Defaults: Ready, In Progress, Code Review, Blocked, {dev: "On Dev", staging: "On Stg", production: "Done"}.github.labels.build, github.labels.prd): each configured label string.linear.labels.build, linear.labels.prd): each configured label/state string.notion.values): each configured select-option value, validated against the notion.statusProperty property's options.confluence.parents): each configured parent page id, validated by existence.Resolve the live, canonical names per vendor through the same access layer the rest of Lisa uses — never a second source of truth.
/lisa:atlassian-access)First confirm the active substrate is authenticated to this project's atlassian.cloudId / atlassian.site. /lisa:atlassian-access already enforces account identity: a substrate authed as a different Atlassian account is skipped, not used. If no substrate matches the configured account, mark the project UNRESOLVABLE (auth mismatch) and move on — do not validate against the wrong instance, and do not trust a case-insensitive JQL pass as proof.
Enumerate the project's full workflow status set, preferring the most authoritative substrate:
# GET /rest/api/3/project/<KEY>/statuses → union of canonical status names across issue types
# via lisa:atlassian-access curl substrate
# jq: '[.[].statuses[].name] | unique'
to.name from getTransitionsForJiraIssue (with includeUnavailableTransitions=true) on a sample ticket, plus changelog-observed names (fromString/toString). This can miss a status that is empty and unreachable from the sample, so when only this substrate is available, report the enumeration method in the output so the operator knows the set may be partial.Note: JQL
status = "<name>"matching is case-insensitive, so a JQL probe that "passes" does not prove the configured casing matches. Always compare against the canonicalstatus.namestrings from the enumeration above, case-sensitively.
gh)gh label list --repo "$REPO" --limit 200 --json name -q '.[].name'
Enumerate via the corresponding access surface (Linear MCP workflow states + labels; Notion data-source select options for notion.statusProperty; Confluence page-exists check per parent id). Same compare-exact-case contract as JIRA.
For each (role, configured-name) pair, classify against the live name set:
"On Stg" vs live "ON STG"). Canonical = the live exact name.A project's verdict:
Per project, print a terminal-first section:
<project-path> [tracker=<vendor> project/repo=<id>] VERDICT
role configured live (canonical) status
ready Ready Ready VALID
claimed In Progress In Progress VALID
blocked Blocked Blocked VALID
done.dev On Dev On Dev VALID
done.staging On Stg ON STG CASE_DRIFT → fix: "ON STG"
done.production Done Done VALID
End with a roll-up: counts of VALID / DRIFTED / UNRESOLVABLE projects and the exact next command (… repair=true when drift is auto-repairable; an admin note when a status is genuinely MISSING).
repair=true)For each drifted role, repair the config (preserve everything else; only write changed keys; always jq … > tmp && mv):
Rewrite the configured value to the live canonical name. Examples:
# scalar role (ready/claimed/blocked/review)
jq --arg v "$CANONICAL" '.jira.workflow.<role> = $v' \
.lisa.config.json > .lisa.config.json.tmp && mv .lisa.config.json.tmp .lisa.config.json
# done.<env>
jq --arg v "$CANONICAL" '.jira.workflow.done.<env> = $v' \
.lisa.config.json > .lisa.config.json.tmp && mv .lisa.config.json.tmp .lisa.config.json
# github/linear label
jq --arg v "$CANONICAL" '.github.labels.<lane>.<role> = $v' \
.lisa.config.json > .lisa.config.json.tmp && mv .lisa.config.json.tmp .lisa.config.json
Compute the closest live candidates (case-insensitive token/substring overlap, then edit distance). Present via AskUserQuestion:
Role
<role>maps to<configured>, which no longer exists in<vendor>. Closest live names:<c1>,<c2>,<c3>. Pick the replacement, leave unchanged, or enter a name manually.
Only write on an explicit pick. Never auto-select. If the user leaves it unchanged, keep the project DRIFTED and surface the admin remediation (add the status back, or fix it in the tracker).
After any JIRA repair, clear the setup-jira reachability cache so it re-verifies the new mapping:
jq 'if .jira then .jira.verified_workflow_hash = null else . end' \
.lisa.config.local.json > .lisa.config.local.json.tmp 2>/dev/null \
&& mv .lisa.config.local.json.tmp .lisa.config.local.json || true
Re-print the project section showing the post-repair mapping and the new verdict (VALID if every role now resolves).
VALID and writes nothing./schedule (or run in CI) to detect drift continuously; run repair=true interactively when drift appears (the MISSING path needs a human decision and should not run unattended)..lisa.config.json (and clears the local verification-cache key) — it preserves all unrelated config and never stages secrets or env values.UNRESOLVABLE, not VALID.MISSING mapping; confirm the replacement via AskUserQuestion.jq for all JSON reads/writes; write only changed keys via jq … > tmp && mv.UNRESOLVABLE (e.g. an auth mismatch) must not abort the rest of the sweep.atlassian-access, gh, Linear/Notion MCP); do not invent a parallel mapping or lifecycle vocabulary.tools
--- name: harper-realtime description: This skill should be used when adding or troubleshooting Harper (HarperDB/Fabric) real-time behavior: MQTT topics, WebSocket resource subscriptions, resource publish/subscribe handlers, SSE-style streaming routes, and local subscriber verification. Pairs with harper-resources, harper-config-yaml, harper-schema-graphql, and harper-build-and-deploy. --- # Harper Realtime ## Overview Harper exposes live data through the same Resource model used for REST and
tools
--- name: harper-realtime description: This skill should be used when adding or troubleshooting Harper (HarperDB/Fabric) real-time behavior: MQTT topics, WebSocket resource subscriptions, resource publish/subscribe handlers, SSE-style streaming routes, and local subscriber verification. Pairs with harper-resources, harper-config-yaml, harper-schema-graphql, and harper-build-and-deploy. --- # Harper Realtime ## Overview Harper exposes live data through the same Resource model used for REST and
tools
--- name: harper-realtime description: This skill should be used when adding or troubleshooting Harper (HarperDB/Fabric) real-time behavior: MQTT topics, WebSocket resource subscriptions, resource publish/subscribe handlers, SSE-style streaming routes, and local subscriber verification. Pairs with harper-resources, harper-config-yaml, harper-schema-graphql, and harper-build-and-deploy. --- # Harper Realtime ## Overview Harper exposes live data through the same Resource model used for REST and
tools
--- name: harper-realtime description: This skill should be used when adding or troubleshooting Harper (HarperDB/Fabric) real-time behavior: MQTT topics, WebSocket resource subscriptions, resource publish/subscribe handlers, SSE-style streaming routes, and local subscriber verification. Pairs with harper-resources, harper-config-yaml, harper-schema-graphql, and harper-build-and-deploy. --- # Harper Realtime ## Overview Harper exposes live data through the same Resource model used for REST and