create-dashboard
Skill0 starsChanged 6 months agoMITView on GitHub
Build a Platform Analytics dashboard on the connected ServiceNow instance — cube, indicator (aggregate or scripted), collection job, forced collection, score verification, dashboard shell. Use when asked to "create a dashboard", "add a PA indicator", "build a KPI/scorecard/trend", "set up Platform Analytics", or when pa_scores are empty/stale/frozen. Table API authoring (the Fluent SDK does not model pa_* records).
3 other projects use a version of this.
Adopted by
Most recently taken up by
- bruin-data/bruintheir own version, first seen Oct 8, 2026
- rittmananalytics/wire-plugintheir own version, first seen Oct 5, 2026
- bruin-data/dactheir own version, first seen Apr 29, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- bruin-data/bruin★ 1.8ksame name
- bruin-data/dac★ 806same name
- rittmananalytics/wire-plugin★ 15same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a2a-usageSkill
- create-agentic-workflowSkill
- create-catalog-itemSkill
- flowsSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
All live-verified on a current release family (reference/traps.md carries the evidence):
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create a Platform Analytics dashboard
The record chain, in dependency order (full payloads: reference/deploy-recipe.md):
pa_cubes → pa_scripts (scripted only) → pa_indicators → sysauto_pa + pa_job_indicators
→ force a collection → verify pa_scores_l1 → pa_dashboards shellAn indicator with no collection-job linkage produces a no-data dashboard with zero errors anywhere — wire the job in the same change, never "later".
0. Gate
getCapability('pa.plugin_active') and getCapability('table_api.write') must both be true (unknown → npm run probe:full first) — every record in the chain is a Table API POST/PATCH. PA authoring is Table API territory: the Fluent SDK has no pa_* coverage, and the sn_pa script namespace is blocked inside scoped-app sandboxes — automate via REST, not scoped scripts. The god-mode migration path in trap 5 additionally requires getCapability('execute_script.available') to be true — when it isn't (or is unknown), delete-and-recreate is the only safe reconfiguration path.
1. The five traps that cost real debugging time
All live-verified on a current release family (reference/traps.md carries the evidence):
pa_indicators.scriptis a REFERENCE topa_scripts, not inline JS. PATCHing JS text into it returns 403 from the "PA Validate Indicator Script" BR. Deploy thepa_scriptsrow first, reference its sys_id.pa_scores_l1.indicatorstores the INTEGERpa_indicators.id, not the sys_id. Readidback after the indicator insert and query scores with it.- You cannot force a run by PATCHing
sys_trigger.next_action— a BR recalculates it from the job's schedule grid, and anysysauto_paupdate silently recreates the trigger with a new sys_id. Verified force mechanism: shrink the job'srun_periodto 1 minute, wait one fire, restore. Prove the run frompa_job_logs, never from the absence of errors. - Frozen / broadcast values: a value identical across two collections means the second run never re-evaluated (check
pa_job_logsinserts/deletes— healthy re-collection deletes and re-inserts the window). And one cube evaluates ONE scripted indicator and can broadcast its result to every indicator on that cube — give each scripted indicator its ownpa_cubesrow. - Post-creation edits to
cubeorfrequencyare rejected (403) by the "PA Validate Update Frequency and Source" BR — route reconfigurations through a god-modeGlideRecord.setWorkflow(false).update()(only ifgetCapability('execute_script.available')=true), or delete-and-recreate the indicator.
2. Verify (the scores, not the records)
- Indicator read-back:
scripted,script(reference value),cube,frequency, and the integerid. - Force a collection; assert a
pa_job_logsrow for YOUR job withstate=collected_okandinserts > 0. GET pa_scores_l1?sysparm_query=indicator=<integer id>returns rows for the window.- Force a second collection and assert the current-period value changed (for time-varying data) — this is the only proof the pipeline recomputes rather than carries forward.
3. Dashboard shell and the Workspace boundary
pa_dashboards (name, active) is the scriptable end of the line. Widget composition happens in the Platform Analytics Workspace UI (operator step, ~5 min): the "Saved Visualization" library reads par_visualization, NOT the legacy pa_widgets — pre-provisioning pa_widgets rows is wasted effort. The Workspace title bar reads par_dashboard.name (lazy-created on first view, bridged via pa_dashboards.experience_dashboard) — sync it after first open or operators see a stale title.
Cleanup discipline (sentinel builds)
Delete in reverse order: dashboard → job link → job → indicator → script → cube. Deleting the job cascade-deletes its sys_trigger; deleting the indicator cascade-deletes its scores (pa_scores_l1 exposes encoded view sys_ids — you cannot delete score rows directly; cascade is the path). Sweep every table for your sentinel prefix afterwards.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

