agentleFS
nathanolds22nathanolds22/servicenow-claude-kit/.claude/skills/create-dashboard/SKILL.md

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

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. bruin-data/bruin★ 1.8ksame name
    2. bruin-data/dac★ 806same name
    3. 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.

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
  1. Distinctive:

    All live-verified on a current release family (reference/traps.md carries the evidence):

    line 23

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 shell

An 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):

  1. pa_indicators.script is a REFERENCE to pa_scripts, not inline JS. PATCHing JS text into it returns 403 from the "PA Validate Indicator Script" BR. Deploy the pa_scripts row first, reference its sys_id.
  2. pa_scores_l1.indicator stores the INTEGER pa_indicators.id, not the sys_id. Read id back after the indicator insert and query scores with it.
  3. You cannot force a run by PATCHing sys_trigger.next_action — a BR recalculates it from the job's schedule grid, and any sysauto_pa update silently recreates the trigger with a new sys_id. Verified force mechanism: shrink the job's run_period to 1 minute, wait one fire, restore. Prove the run from pa_job_logs, never from the absence of errors.
  4. Frozen / broadcast values: a value identical across two collections means the second run never re-evaluated (check pa_job_logs inserts/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 own pa_cubes row.
  5. Post-creation edits to cube or frequency are rejected (403) by the "PA Validate Update Frequency and Source" BR — route reconfigurations through a god-mode GlideRecord.setWorkflow(false).update() (only if getCapability('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 integer id.
  • Force a collection; assert a pa_job_logs row for YOUR job with state=collected_ok and inserts > 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.