{
  "schemaVersion": "1.0",
  "item": {
    "slug": "oken-usage-tracker",
    "name": "Token Usage Tracker",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "canonicalUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/oken-usage-tracker",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oken-usage-tracker",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "skill-config.json",
      "SKILL.md",
      "scripts/context_summarizer.py",
      "scripts/dedupe_log.py",
      "scripts/migrate_timestamps.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/oken-usage-tracker"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/oken-usage-tracker",
    "agentPageUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "token-usage-tracker",
        "body": "Quick start\n\nConfigure defaults in skill-config.json (timezone, log_folder).\nInstall scripts (examples provided) into your workspace and wire the interceptor into your message pipeline.\nUse scripts/context_summarizer.py before sending large contexts to reduce token usage.\n\nWhat this skill provides\n\nLogging: token_tracker.py writes per-call token usage to a JSONL log. Includes timestamp normalization.\nInterceptor: token_interceptor.py example that normalizes timestamps and forwards sanitized messages to the tracker.\nAlerts: token_alerts.py example for threshold-based alerts (no external posting by default).\nCompression: context_summarizer.py produces short summaries to reduce token payloads.\nUtilities: migration and cleanup scripts (convert timestamps, dedupe log entries).\n\nWhen to use\n\nUse this skill when you want transparent per-call token accounting, to keep token usage low, or to protect sensitive/verbose contexts by summarizing before sending to the model.\n\nFiles\n\nscripts/\n\ntoken_interceptor.py — example interceptor (normalizes timestamps)\ntoken_tracker.py — logging helper\ntoken_alerts.py — alert examples\ncontext_summarizer.py — compression helper\nmigrate_timestamps.py — migration utility\ndedupe_log.py — dedupe utility\n\n\nreferences/\n\nexamples/systemd/ — example unit files (install manually)\n\n\nskill-config.json — configurable defaults\nREADME.md — usage and install notes\n\nConfiguration\n\nSee skill-config.json for defaults. The skill exposes:\n\ntimezone: default UTC\nlog_folder: default ./skills/logs (relative to OpenClaw workspace)\ncompression settings: summary_target_tokens, max_context_tokens\n\nSecurity and installation\n\nThe scripts are examples and safe by default. They do not change system state or install services automatically.\nExample systemd/unit files are provided in references/systemd/ — apply them manually after review.\n\nLicense: MIT (adapt as you prefer)"
      }
    ],
    "body": "token-usage-tracker\n\nQuick start\n\nConfigure defaults in skill-config.json (timezone, log_folder).\nInstall scripts (examples provided) into your workspace and wire the interceptor into your message pipeline.\nUse scripts/context_summarizer.py before sending large contexts to reduce token usage.\n\nWhat this skill provides\n\nLogging: token_tracker.py writes per-call token usage to a JSONL log. Includes timestamp normalization.\nInterceptor: token_interceptor.py example that normalizes timestamps and forwards sanitized messages to the tracker.\nAlerts: token_alerts.py example for threshold-based alerts (no external posting by default).\nCompression: context_summarizer.py produces short summaries to reduce token payloads.\nUtilities: migration and cleanup scripts (convert timestamps, dedupe log entries).\n\nWhen to use\n\nUse this skill when you want transparent per-call token accounting, to keep token usage low, or to protect sensitive/verbose contexts by summarizing before sending to the model.\n\nFiles\n\nscripts/\ntoken_interceptor.py — example interceptor (normalizes timestamps)\ntoken_tracker.py — logging helper\ntoken_alerts.py — alert examples\ncontext_summarizer.py — compression helper\nmigrate_timestamps.py — migration utility\ndedupe_log.py — dedupe utility\nreferences/\nexamples/systemd/ — example unit files (install manually)\nskill-config.json — configurable defaults\nREADME.md — usage and install notes\n\nConfiguration\n\nSee skill-config.json for defaults. The skill exposes:\n\ntimezone: default UTC\nlog_folder: default ./skills/logs (relative to OpenClaw workspace)\ncompression settings: summary_target_tokens, max_context_tokens\n\nSecurity and installation\n\nThe scripts are examples and safe by default. They do not change system state or install services automatically.\nExample systemd/unit files are provided in references/systemd/ — apply them manually after review.\n\nLicense: MIT (adapt as you prefer)"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "publisherUrl": "https://clawhub.ai/gerhardvr26/oken-usage-tracker",
    "owner": "gerhardvr26",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/oken-usage-tracker",
    "downloadUrl": "https://openagent3.xyz/downloads/oken-usage-tracker",
    "agentUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oken-usage-tracker/agent.md"
  }
}