本文へ移動
cccskills
Microsoft 公式無料GitHub で公開日本語紹介

session-log-canvas-update

Copilot更新でセッション記録の形式が変わったとき、スキーマの差分を調べ、Session Log canvasの表示やテスト、資料を互換性を保ちながら更新するスキルです。

原文原文の説明を見る

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.

microsoft/hve-coreスター 1,580(GitHub 1,580 + cccskills 0)

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • Copilot更新後のスキーマ差分を確認したいとき
  • 未知イベントや欠落データを調べたいとき
  • 新旧セッションに対応する表示を整えたいとき
  • イベント基準とテスト資料を更新したいとき

日本語での紹介

できること

Copilotの更新でセッションに記録されるイベントや保存形式が変わったとき、現在のスキーマとSession Log canvasの基準スキーマを比較します。イベントの追加・変更・削除を分類し、canvasが扱うイベントへの影響を調べます。新しいデータを意図したログ表示に追加するか、汎用表示にするかを判断し、必要に応じてインデクサー、サーバー、UI、テスト用の合成データ、スタイルガイド、READMEを更新します。旧バージョンのセッションも読めることを確認してから、検証済みスキーマで基準を更新します。確認のみのモードでは差分と必要な作業を報告します。

こんなときに便利

Copilotを更新した後にcanvasで未知のイベントが表示されたり、記録の一部が欠けたりした場合に使えます。スキーマ変更が画面や保存データに及ぼす影響を整理し、新旧のセッションを保ったまま対応したい開発者にも向いています。

使い方の例

  • 「最新のCopilotスキーマとcanvasの基準を比較してください」
  • 「このスキーマの変更点を確認モードで分類してください」
  • 「新しいイベントを表示できるようテストと資料も更新してください」

注意点

Node.jsと対象リポジトリの作業環境が必要です。VS Codeのセッションを扱う場合は、VS Codeに同梱されたスキーマも確認します。実セッションの本文やプロンプトは成果物に含めず、テストには合成データを使います。基準ファイルにはイベント・フィールド識別子と型情報のみを記録し、配布可能なライセンスのスキーマを選びます。変更のコミットや公開は利用者から依頼された場合に限ります。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(6)

  • SKILL.md7.9 KB
  • assets/event-shapes.json128.4 KB
  • references/coupling-map.md22.3 KB
  • scripts/event-schema.mjs29.2 KB
  • SECURITY.md29.8 KB
  • tests/event-schema.test.mjs18.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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): check reports 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 a session-events.schema.json, an installed Copilot version, or latest (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

  1. Find the versions in play. Run node scripts/event-schema.mjs list from the skill root (or node .github/skills/session-log-canvas-update/scripts/event-schema.mjs list from the repository root) to see installed Copilot CLI schemas. Read the baseline's source in 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. The copilotVersion a session recorded comes from its session.start event; the canvas get_session_summary action returns it.
  2. 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 --json when you need to process the result.
  3. Check real sessions without reading content. Open the canvas on a session from the new version and call its get_session_summary action: eventHealth.unknownTypes lists persisted types the canvas does not handle, and unreadableLines counts 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.
  4. Read the release notes. The CLI package's changelog.json (beside its schemas/ 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.
  5. 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_TYPES together; 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 check mode, stop here and report.
  6. 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.
  7. Validate:
    • npm run test:extensions and node --test ".github/skills/session-log-canvas-update/tests/*.test.mjs". PR validation runs both suites in its Node test lane.
    • node --check on changed modules, and npm run plugin:validate.
    • Markdown lint, spelling, table format, and frontmatter checks on changed Markdown.
    • A browser check on synthetic fixtures only: confirm the page URL before each screenshot, and never capture the live canvas because it shows real session content.
    • A host reload (extensions_reload, then reopen the canvas) with the served ui/ files matching disk.
  8. Refresh the baseline. Run node scripts/event-schema.mjs snapshot --schema <the schema you verified against> --write, rerun diff against it to confirm a clean report, and commit the baseline with the canvas changes. Both commands exit non-zero without writing anything when the file defines no session event types.

Constraints

  • Read session logs only through the canvas or for event type names, field names, counts, and sizes. Do not print, paste, or persist message, prompt, tool, or summary text from real sessions.
  • The script reads schema files, their package.json, and the baseline, and imports the canvas indexer, or the module passed with --indexer, to read its exported type lists. That module runs in the script's process, so pass --indexer only a module you trust. The script writes only to stdout or, with snapshot --write, to assets/event-shapes.json. SECURITY.md records its threat model.
  • The baseline keeps event and field identifiers and type signatures only, never schema descriptions.
  • Prefer a schema from a package whose license permits redistribution of derived identifiers for the committed baseline, such as the MIT-licensed @github/copilot-sdk-<platform> package bundled with VS Code.
  • Keep changes inside the canvas, its tests and docs, and this skill. Do not commit, push, or publish without the user's request.

Stop Rules

  • Stop and ask for a schema path when no installed schema is found and none was given.
  • Stop in check mode after the classified report.
  • Stop as Blocked when a change cannot be mapped to canvas behavior from the diff, release notes, and synthetic reproduction; report the type and fields and what evidence would settle it.
  • Stop as Revise when validation fails; report the failing check and do not refresh the baseline.

Final Response Contract

Report the versions compared, a classified table of changes (type or surface, change, canvas impact, action taken or proposed), files changed, validation results with exact commands, whether the baseline was refreshed and from which schema, and any blocked items with the evidence needed.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

accessibility

Microsoft 公式無料概要あり

WCAG 2.2やARIAなどの指針を参照し、アクセシビリティの計画・根拠整理や検査を支援します。静的スキャンと操作・支援技術による確認を区別します。

  • 適用するアクセシビリティ基準を計画したいとき
  • Webページの自動検査結果を確認したいとき
  • キーボードや読み上げでの確認項目を整理したいとき
microsoft/hve-core1,5802026年10月28日 更新

accessibility-coverage-matrix

Microsoft 公式無料概要あり

アクセシビリティ基準と画面ごとに検査方法・根拠を整理し、適切な検査だけをカバー率に反映した一覧と証拠資料を作成するスキルです。

  • 画面ごとの対応状況を把握したいとき
  • 検査結果を反映して一覧を更新したいとき
  • 基準ごとの未対応項目を報告したいとき
microsoft/hve-core1,5802026年10月28日 更新

adr-author

Microsoft 公式無料概要あり

決定の背景、比較した案、選択理由や影響を記録するADRを作成し、Y-StatementやMADR形式、既存テンプレートに沿って判断の履歴を管理するスキルです。

  • 設計判断の背景と理由を記録したいとき
  • 複数の案とトレードオフを比較したいとき
  • プランナーの引き継ぎからADRを作りたいとき
microsoft/hve-core1,5802026年10月28日 更新

analysis-authoring

Microsoft 公式無料概要あり

探索的データ分析のノートブックや分析ダッシュボードを、目的に合う構成・図表・尺度で作成・レビューするための指針を示すスキルです。

  • 分析ノートブックの構成を決めたいとき
  • 分析目的に合う図表を選びたいとき
  • ダッシュボードの品質をレビューしたいとき
microsoft/hve-core1,5802026年10月28日 更新

architecture-diagrams

Microsoft 公式無料概要あり

TerraformやBicepなどのインフラ設定、または宣言済みデータカタログの関係を読み取り、選んだ形式の構成図やデータモデル図にまとめます。

  • クラウド構成を図にしたいとき
  • 設計レビュー用の図を作りたいとき
  • データカタログの関係を可視化したいとき
microsoft/hve-core1,5802026年10月28日 更新

architecture-review

Microsoft 公式無料概要あり

確認済みの対象範囲や根拠、評価、推奨への判断を記録し、重要な決定をADRへつなぐアーキテクチャレビュー記録を作成します。

  • レビューの根拠と判断を記録したいとき
  • 重点領域ごとの評価を整理したいとき
  • 推奨の採否理由を追跡したいとき
microsoft/hve-core1,5802026年10月28日 更新

microsoft のスキルをすべて見る

このスキルの問題を報告する