Analyse de télémétrie Kiro

VérifiéSûr

Analyse les données de télémétrie de l'IDE Kiro, y compris l'utilisation des crédits, les tokens et les historiques de chat à partir de bases de données SQLite locales sur Windows.

Spar Skills Guide Bot
Data & IAIntermédiaire
0026/07/2026
Claude Code
#kiro#telemetry#token-usage#credit-limits#chat-logs

Recommandé pour

Notre avis

Analyse les données de télémétrie de l'IDE Kiro à partir de bases SQLite locales et de fichiers journaux pour rapporter l'utilisation des jetons, les limites de crédit et l'historique des conversations.

Points forts

  • Automatise l'extraction des métriques d'utilisation depuis les bases de données locales de Kiro
  • Identifie les échecs d'outils et les erreurs dans les historiques de chat
  • Fournit des avertissements clairs lorsque l'utilisation du crédit dépasse 80 %

Limites

  • Fonctionne uniquement sous Windows en raison des chemins %APPDATA%
  • Nécessite un environnement Python pour exécuter les scripts fournis
  • Ne prend pas en charge la surveillance en temps réel ni les tendances historiques au-delà des données actuelles
Quand l'utiliser

Utilisez-le lorsque vous devez auditer l'utilisation de l'IDE Kiro, vérifier la consommation de jetons ou identifier des erreurs d'outils récurrentes.

Quand l'éviter

Ne l'utilisez pas si vous avez besoin d'une prise en charge multiplateforme ou si le chemin d'installation de Kiro diffère de l'emplacement Windows par défaut.

Analyse de sécurité

Sûr
Score qualité90/100

The skill only reads local telemetry data files (SQLite, chat logs) in the user's own AppData directory using Python scripts. There is no network activity, no destructive commands, no exfiltration, and no obfuscated payloads. The instructions are transparent and limited to analysis.

Aucun point d'attention détecté

Exemples

Check current credit usage
Run the analyze_credits script to show my used and available Kiro credits and total lifetime tokens.
Analyze chat history for errors
Run the parse_chats script to summarize my Kiro chat history and list any tool failures or errors.

name: kiro-usage-telemetry description: Analyzes and reports Kiro AI IDE telemetry data, token usage, credit limits, and chat logs from local SQLite databases and log directories on Windows. license: MIT metadata: author: User version: "1.0"

Kiro Usage Telemetry Skill

This skill enables an AI Agent to extract, analyze, and report telemetry data generated by the Kiro IDE. It parses local data storage (SQLite databases, .chat history records, and session logs) which reside in the Windows %APPDATA%\Kiro directory.

Capabilities

By utilizing the predefined scripts bundled in the scripts/ directory, you can inspect:

  1. Credit Usage & Tokens: Pull lifetime token counts from Kiro's internal tracking DB and compare them against the user's allocated monthly invocations.
  2. Chat & Session Analysis: Count bot vs human interactions and map out failed operations (such as webFetch limits or tool invocation errors) from the JSON-encoded chat histories.
  3. Log Traversal: Review application events from the logs/ directory.

Instructions for Agents

When a user asks to inspect their Kiro telemetry, logs, or credit usage, follow these steps:

  1. To retrieve credit and token metrics: Run the analyze_credits.py script.

    python scripts/analyze_credits.py
    

    This will output the current used vs available credits (evaluated in "INVOCATIONS") and the total lifetime prompt tokens (from devdata.sqlite). If the percentage used is over 80%, explicitly warn the user.

  2. To retrieve chat history and identify tool failures: Run the parse_chats.py script.

    python scripts/parse_chats.py
    

    This script parses all 32-character hexadecimal session folders stored in %APPDATA%\Kiro\User\globalStorage\kiro.kiroagent\. It provides a summary of messages and isolates occurrences where Kiro attempted a tool action but encountered an "Error" state. Highlight any of these failures to the user.

Data Locations Reference

If you need to query custom data manually, be aware of these Windows path structures:

  • Global State (Credits): %APPDATA%\Kiro\User\globalStorage\state.vscdb
  • Tokens Dataset: %APPDATA%\Kiro\User\globalStorage\kiro.kiroagent\dev_data\devdata.sqlite
  • Chat JSON Histories: %APPDATA%\Kiro\User\globalStorage\kiro.kiroagent\[session-hash]\*.chat
  • Session Logs: %APPDATA%\Kiro\logs\[session-timestamp]\
Skills similaires