{
  "schemaVersion": "1.0",
  "item": {
    "slug": "oktk",
    "name": "Oktk",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/satnamra/oktk",
    "canonicalUrl": "https://clawhub.ai/satnamra/oktk",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/oktk",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=oktk",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "IMPLEMENTATION.md",
      "README.md",
      "SKILL.md",
      "examples/README.md",
      "examples/git-status-example.js",
      "examples/npm-test-example.js"
    ],
    "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-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-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/oktk"
    },
    "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/oktk",
    "agentPageUrl": "https://openagent3.xyz/skills/oktk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oktk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oktk/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": "The Problem",
        "body": "When you run commands through an AI assistant, the full output goes into the LLM context:\n\n$ git status\n# Returns 60+ lines, ~800 tokens\n# Your AI reads ALL of it, you pay for ALL of it\n\nEvery token costs money. Verbose outputs waste your context window."
      },
      {
        "title": "The Solution",
        "body": "oktk sits between your commands and the LLM, compressing outputs intelligently:\n\n┌──────────┐     ┌──────────┐     ┌──────────┐\n│ Command  │ ──► │   oktk   │ ──► │   LLM    │\n│ (800 tk) │     │ compress │     │ (80 tk)  │\n└──────────┘     └──────────┘     └──────────┘\n                      │\n                 90% SAVED"
      },
      {
        "title": "When Does It Work?",
        "body": "Automatically when you run supported commands through OpenClaw:\n\nCommandWhat oktk doesSavingsgit statusShows only: branch, ahead/behind, file counts90%git logOne line per commit: hash + message + author85%git diffSummary: X files, +Y/-Z lines, file list80%npm testJust: ✅ passed or ❌ failed + count98%ls -laGroups by type, shows sizes, skips details83%curlStatus code + key headers + truncated body97%grepMatch count + first N matches80%docker psContainer list: name, image, status85%docker logsLast N lines + error count90%kubectl get podsPod status summary with counts85%kubectl logsLast N lines + error/warning counts90%Any commandAI learns patterns automatically (optional)~70%"
      },
      {
        "title": "Before oktk (800 tokens sent to LLM):",
        "body": "On branch main\nYour branch is ahead of 'origin/main' by 3 commits.\n  (use \"git push\" to publish your local commits)\n\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git restore <file>...\" to discard changes in working directory)\n        modified:   src/components/Button.jsx\n        modified:   src/components/Header.jsx\n        modified:   src/utils/format.js\n        modified:   src/utils/validate.js\n        modified:   package.json\n        modified:   package-lock.json\n\nUntracked files:\n  (use \"git add <file>...\" to include in what will be committed)\n        src/components/Footer.jsx\n        src/components/Sidebar.jsx\n        tests/Button.test.js\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")"
      },
      {
        "title": "After oktk (80 tokens sent to LLM):",
        "body": "📍 main\n↑ Ahead 3 commits\n✏️  Modified: 6\n❓ Untracked: 3\n\nSame information. 90% fewer tokens. Same cost savings."
      },
      {
        "title": "How It Works Technically",
        "body": "Intercepts command output after execution\nDetects command type (git? npm? ls?)\nApplies specialized filter for that command\nExtracts only essential information\nCaches results (same command = instant, no reprocessing)"
      },
      {
        "title": "Safety First",
        "body": "oktk never breaks your workflow:\n\nTry specialized filter\n    ↓ fails?\nTry basic filter  \n    ↓ fails?\nReturn raw output (same as without oktk)\n\nWorst case: You get normal output\nBest case: 90% token savings"
      },
      {
        "title": "Global Command (Recommended)",
        "body": "After installation, oktk is available globally:\n\n# Pipe any command through oktk\ngit status | oktk git status\ndocker ps | oktk docker ps\nkubectl get pods | oktk kubectl get pods\n\n# See your total savings\noktk --stats\n\n# Bypass filter (get raw)\noktk --raw git status"
      },
      {
        "title": "Shell Aliases (Auto-Filter)",
        "body": "Source the aliases file for automatic filtering:\n\n# Add to ~/.zshrc or ~/.bashrc\nsource ~/.openclaw/workspace/skills/oktk/scripts/oktk-aliases.sh\n\nThen use short aliases:\n\ngst        # git status (filtered)\nglog       # git log (filtered)\ndps        # docker ps (filtered)\nkpods      # kubectl get pods (filtered)\n\n# Universal wrapper - filter ANY command\nok git status\nok docker ps -a\nok kubectl describe pod my-pod"
      },
      {
        "title": "OpenClaw Integration",
        "body": "When using OpenClaw's exec tool, pipe outputs through oktk:\n\n# In your prompts, ask OpenClaw to:\ngit status | oktk git status\ndocker logs container | oktk docker logs\n\n# Or use the 'ok' wrapper (if aliases sourced):\nok git diff HEAD~5\n\nNote: OpenClaw doesn't have a built-in exec output transformer yet.\nThe recommended approach is:\n\nSource the aliases file in your shell\nUse ok <command> wrapper for any command\nOr manually pipe: <command> | oktk <command>"
      },
      {
        "title": "Real Savings Example",
        "body": "After 1 week of normal usage:\n\n📊 Token Savings\n━━━━━━━━━━━━━━━━\nCommands filtered: 1,247\nTokens saved:      456,789 (78%)\n\n💰 At $0.01/1K tokens = $4.57 saved"
      },
      {
        "title": "Installation",
        "body": "Already included in OpenClaw workspace, or:\n\nclawhub install oktk\n\nMade with ❤️ in Lithuania 🇱🇹"
      }
    ],
    "body": "oktk - CLI Output Compressor for LLMs\nThe Problem\n\nWhen you run commands through an AI assistant, the full output goes into the LLM context:\n\n$ git status\n# Returns 60+ lines, ~800 tokens\n# Your AI reads ALL of it, you pay for ALL of it\n\n\nEvery token costs money. Verbose outputs waste your context window.\n\nThe Solution\n\noktk sits between your commands and the LLM, compressing outputs intelligently:\n\n┌──────────┐     ┌──────────┐     ┌──────────┐\n│ Command  │ ──► │   oktk   │ ──► │   LLM    │\n│ (800 tk) │     │ compress │     │ (80 tk)  │\n└──────────┘     └──────────┘     └──────────┘\n                      │\n                 90% SAVED\n\nWhen Does It Work?\n\nAutomatically when you run supported commands through OpenClaw:\n\nCommand\tWhat oktk does\tSavings\ngit status\tShows only: branch, ahead/behind, file counts\t90%\ngit log\tOne line per commit: hash + message + author\t85%\ngit diff\tSummary: X files, +Y/-Z lines, file list\t80%\nnpm test\tJust: ✅ passed or ❌ failed + count\t98%\nls -la\tGroups by type, shows sizes, skips details\t83%\ncurl\tStatus code + key headers + truncated body\t97%\ngrep\tMatch count + first N matches\t80%\ndocker ps\tContainer list: name, image, status\t85%\ndocker logs\tLast N lines + error count\t90%\nkubectl get pods\tPod status summary with counts\t85%\nkubectl logs\tLast N lines + error/warning counts\t90%\nAny command\tAI learns patterns automatically (optional)\t~70%\nConcrete Example\nBefore oktk (800 tokens sent to LLM):\nOn branch main\nYour branch is ahead of 'origin/main' by 3 commits.\n  (use \"git push\" to publish your local commits)\n\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git restore <file>...\" to discard changes in working directory)\n        modified:   src/components/Button.jsx\n        modified:   src/components/Header.jsx\n        modified:   src/utils/format.js\n        modified:   src/utils/validate.js\n        modified:   package.json\n        modified:   package-lock.json\n\nUntracked files:\n  (use \"git add <file>...\" to include in what will be committed)\n        src/components/Footer.jsx\n        src/components/Sidebar.jsx\n        tests/Button.test.js\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\nAfter oktk (80 tokens sent to LLM):\n📍 main\n↑ Ahead 3 commits\n✏️  Modified: 6\n❓ Untracked: 3\n\n\nSame information. 90% fewer tokens. Same cost savings.\n\nHow It Works Technically\nIntercepts command output after execution\nDetects command type (git? npm? ls?)\nApplies specialized filter for that command\nExtracts only essential information\nCaches results (same command = instant, no reprocessing)\nSafety First\n\noktk never breaks your workflow:\n\nTry specialized filter\n    ↓ fails?\nTry basic filter  \n    ↓ fails?\nReturn raw output (same as without oktk)\n\n\nWorst case: You get normal output Best case: 90% token savings\n\nUsage\nGlobal Command (Recommended)\n\nAfter installation, oktk is available globally:\n\n# Pipe any command through oktk\ngit status | oktk git status\ndocker ps | oktk docker ps\nkubectl get pods | oktk kubectl get pods\n\n# See your total savings\noktk --stats\n\n# Bypass filter (get raw)\noktk --raw git status\n\nShell Aliases (Auto-Filter)\n\nSource the aliases file for automatic filtering:\n\n# Add to ~/.zshrc or ~/.bashrc\nsource ~/.openclaw/workspace/skills/oktk/scripts/oktk-aliases.sh\n\n\nThen use short aliases:\n\ngst        # git status (filtered)\nglog       # git log (filtered)\ndps        # docker ps (filtered)\nkpods      # kubectl get pods (filtered)\n\n# Universal wrapper - filter ANY command\nok git status\nok docker ps -a\nok kubectl describe pod my-pod\n\nOpenClaw Integration\n\nWhen using OpenClaw's exec tool, pipe outputs through oktk:\n\n# In your prompts, ask OpenClaw to:\ngit status | oktk git status\ndocker logs container | oktk docker logs\n\n# Or use the 'ok' wrapper (if aliases sourced):\nok git diff HEAD~5\n\n\nNote: OpenClaw doesn't have a built-in exec output transformer yet. The recommended approach is:\n\nSource the aliases file in your shell\nUse ok <command> wrapper for any command\nOr manually pipe: <command> | oktk <command>\nReal Savings Example\n\nAfter 1 week of normal usage:\n\n📊 Token Savings\n━━━━━━━━━━━━━━━━\nCommands filtered: 1,247\nTokens saved:      456,789 (78%)\n\n💰 At $0.01/1K tokens = $4.57 saved\n\nInstallation\n\nAlready included in OpenClaw workspace, or:\n\nclawhub install oktk\n\n\nMade with ❤️ in Lithuania 🇱🇹"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/satnamra/oktk",
    "publisherUrl": "https://clawhub.ai/satnamra/oktk",
    "owner": "satnamra",
    "version": "2.4.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/oktk",
    "downloadUrl": "https://openagent3.xyz/downloads/oktk",
    "agentUrl": "https://openagent3.xyz/skills/oktk/agent",
    "manifestUrl": "https://openagent3.xyz/skills/oktk/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/oktk/agent.md"
  }
}