Add a new KPI to data/kpis.ts with every defensibility field the README requires (definition EN+ML, source, owner, refresh, target, comparators, direction, civic domain, owner dept). Use when adding any headline or tier-2 KPI.
Installation
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Add a new KPI to data/kpis.ts with every defensibility field the README requires (definition EN+ML, source, owner, refresh, target, comparators, direction, civic domain, owner dept). Use when adding any headline or tier-2 KPI.
disable-model-invocation
true
Add KPI
Adds a new KPI fixture to data/kpis.ts with the full metadata schema. Every
published number on the dashboard must be defensible in public — that means no
shortcuts on this checklist.
The defensibility rule
From the README: "A number with no target is propaganda." Same logic applies to
every other field. If you can't fill it, the KPI does not ship — it goes to a
tracking issue instead.
Tooltip rule (non-negotiable): Every new piece of information added to the
dashboard MUST display a tooltip that surfaces its source data — at minimum
meta.source and, when available, meta.sourceUrl. A number the citizen can't
trace back to a primary source is not a public number. No tooltip = no merge.
Checklist (must all pass before commit)
id is namespaced as <domain>.<short-slug> (e.g.
fiscal.debt-to-gsdp)
title (English) AND titleMl (Malayalam) both present
domain is one of:
fiscal | health | education | livelihood | safety | transport | environment | sustainability | trust | delivery | other
ownerDeptId points to a real id in data/departments.ts (and
contributingDeptIds if cross-cutting)
value, unit, target all set. Target may equal an external
ceiling (FRBM, SDG, etc.) — note that in comparators.
direction: higher-better or lower-better — drives ▲/▼ semantics in
TrendArrow.tsx
trend, trendDelta, trendWindow describe the most recent change
with a human-readable window (e.g. "vs last quarter")
status is hand-set here (production version computes from
distance-to-target + direction)
comparators[] include at least one external benchmark (peer state,
national avg, statutory target). A KPI without comparators looks like an
unfalsifiable claim.
meta.definition AND meta.definitionMl — a citizen and a journalist
must read the same definition
meta.source names the actual document/agency (not "internal
dashboard")
meta.sourceUrl when the source is publicly linkable — strongly
preferred
Tooltip present on the rendered card — the UI component for this data
point MUST show a tooltip exposing at least meta.source (and
meta.sourceUrl as a link if set). This is mandatory for every new data
point, not optional.
meta.owner is the accountable official's designation, not "Mission
Control"
meta.updateFrequency matches the source's actual cadence
meta.lastRefreshed is an ISO datetime with +05:30 offset