/cognos-to-sigma:cognos-assessmentfrom Cognos → Sigma
Surveys IBM Cognos Analytics estates via REST API, scoring each artifact against the Cognos→Sigma converter's actual rules to produce a migration-readiness readout with auto-migration %, gap analysis, and wave plan.
Ships in Cognos → Sigma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Surveys an IBM Cognos Analytics (CA 11.x / 12.x / Cognos on Cloud) content estate
via the CA REST layer (/bi/v1) and produces a branded, share-friendly HTML
readout plus a JSON inventory. The differentiator versus a generic BI audit is
converter-coverage scoring: every Data Module and report is classified
auto-convert vs. flagged using the same rules the cognos-to-sigma converter
(cognos.ts + cognos-report.ts + cognos-fm.ts) actually applies — so the readout's
auto-migration % reflects what the tool will really do, not a hand-wave.
Read-only. This skill only issues
GETs against CA REST. It never POSTs, modifies, runs, or schedules anything in Cognos — and it never touches Sigma. It can also run fully offline against module/report files already on disk.
All free. Everything here — inventory, scoring, the HTML readout — is part of the open migration tooling. There is no paid tier to upsell. For a deeper hands-on engagement (permissions audit, warehouse landing of file-backed modules, live parity testing), point the customer at a Sigma SE.
Tableau is the reference point. This skill mirrors the structure and tone of the
tableau-assessmentskill (environment counts → coverage → effort → readout). If you've run that, this will feel familiar; the Cognos-specific work is all in the coverage scorer.
This skill reads content metadata and spec definitions, not warehouse data.
| Crosses the LLM API | Stays in Cognos / local |
|---|---|
| Aggregate counts (module / report / dashboard / folder counts) | Warehouse rows (this skill never queries them) |
| Object names, owner / path, type | Database credentials |
| Data Module JSON (query subjects, items, calc expressions, joins) | The customer's actual report values |
| Report-spec XML (queries, data items, viz types, prompts, filters) | Uploaded source files (.xlsx / .pq — not re-downloadable via REST anyway) |
Like every Claude Code skill, what it reads is sent through the LLM API to
Claude. Tell the user this before running. Outputs are written to a local
/tmp/cognos-assessment-<env>/ directory and uploaded nowhere — sharing is a
deliberate action, not automatic. See PRIVACY.md for the full disclosure.
cognos-to-sigma conversion needs a Phase 0 inventory of the source estate.Not for: running or rendering live Cognos reports, extracting warehouse data, or making any change to the Cognos environment.
| Mode | Setup | Use when |
|---|---|---|
| Live (REST) | COGNOS_BASE + COGNOS_COOKIE + COGNOS_XSRF env (see below) | Real estate scan against a running CA server / Cognos on Cloud |
| Offline (files) | A directory of *.module.json + *.report.xml + a Framework Manager model.xml already on disk | No live access; scoring a sample set or an export the customer mailed you. FM projects only arrive this way — there is no CA REST endpoint for them |
Both modes feed the same scorer + renderer. The bundled samples in
~/cognos-samples/ let you validate the whole pipeline offline.
Live mode needs a logged-in CA session's auth. Grab it from the browser
(DevTools → Network → any bi/v1/... request → copy the Cookie header and the
X-XSRF-Token header), then:
export COGNOS_BASE="https://<host>/bi/v1" # NOTE: /bi/v1, not /api/v1
export COGNOS_COOKIE="<full Cookie header from a logged-in session>"
export COGNOS_XSRF="<X-XSRF-Token header value>"
# Cheap probe — list the content root (or a known folder id):
bash scripts/discover-cognos.sh --probe
If the probe 401/403s, the session expired — re-grab the cookie + XSRF (CA sessions are short-lived). The discovery script surfaces a clear token-expiry note rather than dumping a stack trace.
Offline mode needs no auth — skip straight to Phase 2 pointing the scorer at the file directory.
bash scripts/discover-cognos.sh --root <folderId> --out /tmp/cognos-assessment-<env>
# or, if you don't have a folder id, start at the content store team-content root:
bash scripts/discover-cognos.sh --root .public_folders --out /tmp/cognos-assessment-<env>
discover-cognos.sh walks the content tree breadth-first
(GET /bi/v1/objects/{id}/items?fields=defaultName,type,id), recursing into
folder items, and records every module / report / reportView /
exploration / dashboard / dataSet2 it finds. For each leaf it also fetches
the spec so the scorer can run offline afterward:
GET /bi/v1/metadata/modules/{id} → <out>/specs/<id>.module.jsonGET /bi/v1/objects/{id}?fields=specification → <out>/specs/<id>.report.xmlIt emits <out>/inventory.json = { environment: {...counts}, artifacts: [ {id,type,name,path,owner,lastRun,specFile} ] }.
Notes baked into the script:
?skip=/top= (or next link) on folders with
many children; default page size 100.token_expired: true flag into
inventory.json and stops gracefully so you can re-auth and re-run (already
fetched specs on disk are skipped — resumable).lastRun / view stats — recorded only if the object metadata exposes a
run/modification timestamp. CA does not expose per-report run/view counts
via this REST surface (see refs/usage-telemetry.md); treat usage as a known
gap and request it from the Cognos admin (audit DB / Activity reports).node scripts/score-coverage.mjs --in /tmp/cognos-assessment-<env>/specs --out /tmp/cognos-assessment-<env>
# offline against the bundled samples:
node scripts/score-coverage.mjs --in ~/cognos-samples --out /tmp/cognos-assessment-<env>
For every *.module.json, *.report.xml and Framework Manager model.xml, the
scorer classifies features
into four buckets — auto / hint / manual / unhandled — by detecting the
exact gap signals the converter flags. It does NOT re-implement the converter;
it detects the patterns the converter's translateCognosExpr / report parser
either translate cleanly or warn on. Each detected gap is recorded with a count
and the specific reason + remediation.
XML is dispatched by root element, not extension — an FM model and a report spec
are both .xml. Framework Manager is scored whole-model while the converter runs one
presentation subject area at a time, so its counts are an estate-size and gap profile
rather than one migration unit. Point --in at the directory holding model.xml; the
sibling IDlog.xml / log.xml are edit history and are ignored.
cognos.ts)| Bucket | Signal | Why |
|---|---|---|
auto | query subject (querySubject.ref tail) → table; plain/measure items → cols/metrics; equi-join link[].leftRef/rightRef → DM relationship; calcs using total/average[ for], if/then/else, _add_days/_days_between/extract, substring/upper/lower/trim/substitute, ` | |
hint | file-backed useSpec.type:"file" source; layered base+presentation subjects | converts, but needs a one-time decision (land the file in the warehouse first / dedupe layers) |
manual | case … when … end (converter only does if/then/else); … for … window scope (→*Over, a window function that needs manual authoring in a DM element); composite / non-equi join (link[] length > 1, or an expression join with and/or/inequality) | converter passes through + warns |
unhandled | running-total/running-count/running-average/running-difference/moving-*/rank/percentile/quantile/tertile; GetResourceString(...) (localization); a bareword fn() with no known Sigma mapping | converter warns "no clean Sigma analog — manual authoring" |
cognos-report.ts + format-shapes.md)| Bucket | Signal | Why |
|---|---|---|
auto | <list> → table; <crosstab> → pivot; charts bar/column/line/area/pie/donut/combo/scatter/bubble; tiledmap → region-/point-map; prompt('p') → control; Total(x)/Summary(x) footers → Sum; supported DSL | converter emits clean elements |
manual | detail / summary filters (re-create as Sigma element/page filters); drill-through (→ Sigma actions) | converter surfaces as a warning |
unhandled | # … prompt(...,'token') …# runtime macro (swap-measure / dynamic column build); viz with no Sigma analog: treemap, network, wordcloud, packedBubble; rank() in a data item | converter emits a placeholder + loud warning |
<out>/coverage.json — per artifact:
{ id, type, name, n_features, n_auto, n_hint, n_manual, n_unhandled, complexity, gaps:[{signal,count,bucket,reason,remediation}], value, cost, score, tag }
plus an estate roll-up: { pct_auto_migratable, gap_histogram, by_complexity, by_tag, totals }.
Scoring (same framework as every *-assessment skill):
cost = 10·n_unhandled + 3·n_manual + 1·n_hint;
value = 10 × (n_features) (proxy — CA exposes no view counts; see usage-telemetry ref);
score = value / (1 + cost).
Complexity: n_unhandled>0 → high; else n_manual>0 → medium; else low.
Tags: n_unhandled≥1 → needs-review; (manual+unhandled)==0 → migrate-first;
score≥10 → easy-win; else moderate.
The scorer's roll-up feeds a simple wave plan (computed in render-report.mjs):
Modules generally migrate before the reports that source them (a report's table
elements point at the migrated DM element), so the plan sequences modules ahead
of their dependent reports where the dependency is detectable from the report's
modelPath.
node scripts/render-report.mjs --out /tmp/cognos-assessment-<env>
# → writes /tmp/cognos-assessment-<env>/readout.html
Reads inventory.json (if present) + coverage.json and emits a standalone,
brand-styled readout.html (~6 sections, Sigma palette, print-friendly):
All-free framing throughout; no paid upsell.
After the readout, you can hand the shortlist to the cognos-to-sigma converter
skill for the migrate-first artifacts. The coverage JSON's per-artifact specFile
points the converter straight at the spec it already fetched — no re-discovery.
Do not auto-convert. Surface the shortlist and let the user choose.
| Script | Purpose |
|---|---|
scripts/discover-cognos.sh | Walk the CA content tree via /bi/v1, fetch each module/report spec, emit inventory.json. Reuses the cookie+XSRF auth from the converter's cognos-discover.sh. Read-only, paginated, resumable, token-expiry aware. |
scripts/score-coverage.mjs | Classify every spec auto/hint/manual/unhandled against the converter's exact gap signals; per-artifact complexity + estate roll-up. Zero-dependency (Node built-ins only). |
scripts/render-report.mjs | Emit the branded standalone readout.html. Zero-dependency. |
| Ref | Contents |
|---|---|
refs/ca-rest.md | The CA REST endpoints this skill uses + auth shape. |
refs/scoring-rubric.md | Every gap signal, what it means, which bucket, and the remediation text shown in the readout. |
refs/usage-telemetry.md | Honest investigation of whether CA exposes run/view stats via REST (it largely doesn't) — the universal assessment weak spot, and how to request it from the admin. |
| Symptom | Cause | Fix |
|---|---|---|
discover-cognos.sh --probe 401/403 | CA session expired | Re-grab COGNOS_COOKIE + COGNOS_XSRF from the browser |
inventory.json has token_expired: true | Session died mid-walk | Re-auth, re-run — on-disk specs are skipped (resumable) |
score-coverage.mjs finds 0 artifacts | --in points at the wrong dir | Point at the specs/ dir (live) or ~/cognos-samples (offline) |
metadata/modules/{id} returns empty | Used /modules/{id} (wrong) | Must be /metadata/modules/{id} — the discovery script already uses the right one |
| Usage / run counts all blank | CA doesn't expose them via this REST surface | Expected — see refs/usage-telemetry.md; request from the Cognos admin |
PRIVACY.md (opens in a new tab)README.md (opens in a new tab)fixtures/global-sales.report.xml (opens in a new tab)fixtures/go-sales-performance.report.xml (opens in a new tab)fixtures/great-outdoors.module.json (opens in a new tab)fixtures/hospital-admissions.report.xml (opens in a new tab)fixtures/hospital.module.json (opens in a new tab)fixtures/product-line-revenue.report.xml (opens in a new tab)fixtures/prof-services.module.json (opens in a new tab)fixtures/sales-overview.report.xml (opens in a new tab)fixtures/telco-churn.module.json (opens in a new tab)refs/ca-rest.md (opens in a new tab)refs/environment.md (opens in a new tab)refs/scoring-rubric.md (opens in a new tab)refs/usage-telemetry.md (opens in a new tab)scripts/bootstrap.ps1 (opens in a new tab)scripts/bootstrap.sh (opens in a new tab)scripts/discover-cognos.sh (opens in a new tab)scripts/doctor.ps1 (opens in a new tab)scripts/doctor.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sigmacomputing/sigma-migration-skills --plugin cognos-to-sigma2 skills in this plugin
Other plugins' skills for the same job