Skip to content

docs(iblai-analytics): reground the skill in the live OpenAPI schema#13

Open
xyzeem wants to merge 1 commit into
iblai:mainfrom
xyzeem:docs/iblai-analytics-ground-truth
Open

docs(iblai-analytics): reground the skill in the live OpenAPI schema#13
xyzeem wants to merge 1 commit into
iblai:mainfrom
xyzeem:docs/iblai-analytics-ground-truth

Conversation

@xyzeem

@xyzeem xyzeem commented Jul 1, 2026

Copy link
Copy Markdown

The iblai-analytics skill previously mixed accurate endpoints with URLs that never resolved against Data Manager and quoted Django permission class names in an audience-facing document. This PR rewrites it so every URL, parameter, and RBAC role name is grounded in the source repo, and elevates the live OpenAPI schema at https://api.iblai.app/dm/api/docs/schema/?format=json to the contract: the skill's prose is orientation, and the schema wins on any disagreement.

The rewrite covers 24 endpoints across /api/analytics/* (13 mentor analytics endpoints, 5 catalog analytics endpoints for courses, programs, pathways, and skills, and 2 time-on-platform endpoints) and /api/reports/platforms/{platform_key}/* (the async POST-poll-download lifecycle for Data Reports). Endpoints group by analyst intent — Overview, Costs, Users & engagement, Topics & conversations, Transcripts, Sessions & ratings, Course / Program / Pathway & skill analytics, Per-learner drill-down, and Time-on-platform. RBAC uses the public role names Ibl.Analytics/CanViewAnalytics/action, Ibl.Analytics/Core/read, Ibl.Analytics/Mentors/read, and Ibl.Analytics/Reports/read, verified against the source-of-truth action definitions.

A new references/schema.md ships the fetch, refresh, and drift-check routine, and references/analytics-schema.json (128 KB) is a filtered snapshot of the live schema for offline bootstrap. Both files, along with SKILL.md, use the {dm_url} anchor (= https://api.iblai.app/dm) so the skill reads consistently with its iblai/vibe UI companion.

Rewrite iblai-analytics to document only endpoints reachable at
api.iblai.app/dm/... (registered in ibl-data-manager urls.py) and
treat the live OpenAPI schema at
https://api.iblai.app/dm/api/docs/schema/?format=json as the
contract for URLs, params, enums, and response shapes.

Covers 24 endpoints across /api/analytics/* (mentor, catalog,
time-on-platform) and /api/reports/platforms/{platform_key}/*.
Analyst-shaped groupings: Overview, Costs, Users & engagement,
Topics & conversations, Transcripts, Sessions & ratings, Course,
Program, Pathway & skill, Per-learner drill-down, Time-on-platform.
RBAC cites the public role names Ibl.Analytics/CanViewAnalytics/action,
Ibl.Analytics/Core/read, Ibl.Analytics/Mentors/read, and
Ibl.Analytics/Reports/read.

Adds references/schema.md with the fetch, refresh, and drift-check
routine, and references/analytics-schema.json as a filtered offline
snapshot. All three files use the {dm_url} anchor
(= https://api.iblai.app/dm) so the skill reads consistently with
its iblai/vibe UI companion.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants