session-log-data
БесплатноБез исполняемых скриптовНе проверенDescribes the data files available in the coding agent environment after copilot-setup-steps runs (session logs, aggregated usage data, agent sessions) and…
от rajbos★ 127 звёзд на GitHubОб этом скилле
Session Log Data Skill
This skill describes the data files that are automatically downloaded into the GitHub Copilot Coding Agent environment during setup. These files are available for analysis, reporting, and debugging tasks.
When to Use This Skill
Use this skill when you need to:
- Analyze Copilot token usage patterns from downloaded data
- Generate reports or summaries from session logs or aggregated data
- Debug token tracking or usage issues using real data
- Understand model usage distribution across a team
- Calculate estimated costs from usage data
Coding Agent Data Sources
When running as the GitHub Copilot Coding Agent (bootstrapped via .github/workflows/copilot-setup-steps.yml), extra data may be hydrated into the workspace: ./session-logs/, ./usage-data/usage-agg-daily.json and ./usage-data/agent-sessions.json. They are not present in local development, and the Azure-backed ones only exist when the copilot GitHub environment has COPILOT_STORAGE_ACCOUNT configured (agent-sessions.json comes from the GitHub API and does not need it). The rest of this skill documents their schemas, analysis examples and cost estimation. Check that the files exist before relying on them.
These hydrated files are generated output, not source. session-logs/ and usage-data/ are git-ignored; never commit or force-add them to a PR.
Data Availability
These files are only present when the coding agent environment has Azure Storage configured via the copilot GitHub environment. If the files don't exist, Azure Storage is not configured for this repository.
Data Sources
1. Session Log Files — ./session-logs/
What: Raw AI-coding session log files (Copilot Chat, Copilot CLI, Claude Code/Desktop and other supported editors) downloaded from Azure Blob Storage. These contain the full conversation history including prompts, responses, model information, and tool calls.
Structure:
./session-logs/
└── {datasetId}/
└── {machineId}/
└── {YYYY-MM-DD}/
├── session-abc123.json
└── 3a364aa6-b270-4d67-b1df-39841ccb74b0.jsonl
Date range: Last 7 days of session data.
File formats: Files arrive as .json and .jsonl, decompressed from .gz uploads or downloaded as-is when the uploader's blobCompressFiles setting is off. A download contains both formats, and in recent data nearly all of them are .jsonl. Always search for both extensions; a *.json-only search silently skips most sessions.
.jsonl— one JSON event per line. The event shape depends on the editor that wrote it (Claude Code/Desktop, Copilot CLI, VS Code Chat delta logs, ...), so look up the file's editor in the editor type manifest and its schema underdocs/logFilesSchema/. For token and model numbers, prefer the shared parsers in the repo-rootsrc/(estimateTokensFromJsonlSession(),getModelUsageFromSession()) over hand-rolledjq..json— a whole Copilot Chat session in one document, with this structure:
{
"requests": [
{
"message": {
"parts": [{ "text": "user prompt text" }]
},
"response": [
{ "value": "assistant response text" }
],
"result": {
"metadata": {
"modelId": "gpt-4o"
}
}
}
]
}
Key fields (.json Copilot Chat sessions):
requests[].message.parts[].text— User input (input tokens)requests[].response[].value— Assistant output (output tokens)requests[].result.metadata.modelId— Model usedrequests.length— Number of interactions
How to analyze: Use jq, Node.js, or Python to parse and aggregate. Example:
# Inventory every downloaded session file, both formats
find ./session-logs -type f \( -name "*.json" -o -name "*.jsonl" \) ! -name ".editor-types.json" | wc -l
# Sessions per editor (covers .json and .jsonl alike)
jq -r '.[]' ./session-logs/.editor-types.json | sort | uniq -c
# Count total interactions across the .json Copilot Chat sessions only
find ./session-logs -name "*.json" ! -name ".editor-types.json" -exec jq '.requests | length' {} \; | paste -sd+ | bc
# List models used in the .json Copilot Chat sessions only
find ./session-logs -name "*.json" ! -name ".editor-types.json" -exec jq -r '.requests[].result.metadata.modelId // empty' {} \; | sort -u
Editor Type Manifest — ./session-logs/.editor-types.json
What: A JSON manifest mapping each downloaded session file's relative path to its source editor type (e.g., "VS Code", "Copilot CLI", "JetBrains"). Built from blob metadata during the download workflow.
Format:
{
"default/machineId/2026-09-14/session-abc123.json": "VS Code",
"default/machineId/2026-09-14/events.jsonl": "Copilot CLI"
}
Usage: Load the manifest to classify session files by editor without relying on filename heuristics or content sniffing.
const e
Установить session-log-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл session-log-data?
Describes the data files available in the coding agent environment after copilot-setup-steps runs (session logs, aggregated usage data, agent sessions) and the graphify code knowledge graph it builds. Use when analyzing downloaded session logs or aggregated usage data, or for structural code questions in the coding agent environment.
Как установить скилл session-log-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл session-log-data запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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