session-log-canvas-update
БесплатноЗапускает вложенные скриптыНе проверенUpdate the Session Log canvas after a Copilot release changes session events, session storage, system prompt structure, or the canvas SDK. Diffs the installed…
от microsoft★ 1 654 звезды на GitHubОб этом скилле
Session Log Canvas Update
Goal
Keep the Session Log canvas accurate when a new Copilot version changes what a session records. Find what changed between the schema the canvas was built against and the current one, then update the canvas so new and changed data renders correctly while sessions recorded by earlier versions stay readable.
This skill belongs to the HVE Core repository. Keep it directly under .github/skills/session-log-canvas-update/, outside package directories and plugin or VSIX membership. The canvas it maintains lives at .github/extensions/hve-core/session-log/.
Inputs
mode(optional):checkreports what changed and the work it implies without editing.update(default) also applies the changes and refreshes the baseline.schema(optional): which schema to compare. Accepts a path to asession-events.schema.json, an installed Copilot version, orlatest(default, the newest installed Copilot CLI package).
Success Criteria
- Every change to an event type the canvas handles is classified (needs code, already tolerated, or not used by the canvas) with the diff line that supports it.
- New persisted event types either render through a deliberate log kind or are recorded as intentionally generic; none is silently dropped.
- Sessions recorded by both the baseline version and the new version render without regressions: the canvas tests cover the old and new shapes with synthetic fixtures.
- Storage,
workspace.yaml, system prompt structure, and canvas SDK changes are checked even when the event schema diff is empty. - The baseline (
assets/event-shapes.json) describes the schema the updated canvas was verified against, and the style guide revision log names the change. - No session content appears in fixtures, tests, docs, reports, or responses.
Flow
- Find the versions in play. Run
node scripts/event-schema.mjs listfrom the skill root (ornode .github/skills/session-log-canvas-update/scripts/event-schema.mjs listfrom the repository root) to see installed Copilot CLI schemas. Read the baseline'ssourcein assets/event-shapes.json. For a VS Code session, also locate the schema bundled with VS Code at<VS Code app resources>/app/node_modules.asar.unpacked/@github/copilot-sdk-<platform>/schemas/session-events.schema.json, because the VS Code harness can run a newer runtime than the installed CLI. ThecopilotVersiona session recorded comes from itssession.startevent; the canvasget_session_summaryaction returns it. - Diff the schema. Run
node scripts/event-schema.mjs diff --schema <path|version|latest>for each relevant schema. The report lists handled types that changed (field by field), new event types with whether they persist, removed types, other changed types, and handled types the schema no longer defines. A field that union alternatives share lists every signature it can take, and a signature cut short by the script's size limits ends in…. Use--jsonwhen you need to process the result. - Check real sessions without reading content. Open the canvas on a session from the new version and call its
get_session_summaryaction:eventHealth.unknownTypeslists persisted types the canvas does not handle, andunreadableLinescounts lines it could not parse. The Details tab shows the same counts. Compare a few entries of each changed kind in the log against the expected rendering. - Read the release notes. The CLI package's
changelog.json(beside itsschemas/folder) lists changes per version; scan the versions between the baseline and the new version for session events, compaction, hooks, subagents, system prompt, storage, and extension or canvas changes. - Map each change to canvas code with references/coupling-map.md, and classify it:
- Changed field that the indexer reads: read the new location first and fall back to the old one so earlier sessions still render.
- New persisted type: decide whether it becomes a log entry, enriches an existing entry, updates counts or metadata, or stays generic. Add it to the indexer switch and
HANDLED_EVENT_TYPEStogether; a test enforces that they match. - Removed type or field: keep reading it while sessions recorded by earlier versions can still contain it.
- Ephemeral type: ignore unless it becomes persisted.
In
checkmode, stop here and report.
- Apply the changes. Add synthetic events for each new or changed shape to the canvas test fixtures (never copy real session text), extend the indexer, server, and UI as needed, and keep the log grammar consistent with the style guide. Update the style guide's Log Grammar table and revision log, and the README when user-visible behavior or actions change.
- Validate:
npm run test:extensionsandnode --test ".github/skills/session-log-canvas-update/tests/*.test.mjs". PR validation runs both suites in its Node test lane.node --checkon changed modu
Установить session-log-canvas-update в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл session-log-canvas-update?
Update the Session Log canvas after a Copilot release changes session events, session storage, system prompt structure, or the canvas SDK. Diffs the installed session-events schema against the canvas baseline, then guides the fixes, fixtures, docs, and baseline refresh. Use after updating Copilot or when the canvas shows unknown events or missing data.
Как установить скилл session-log-canvas-update?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл session-log-canvas-update запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic