plugins marketplace
← All plugins

thai-token-optimizer

v2.0.0

Thai Token Optimizer v2.0 — adaptive Thai token optimization for Claude Code using lifecycle hooks, compact Thai policy, MTP-aware compression guidance, quality checks, and safety preservation.

Claude Code1 skill

by Dr.Kittimasak NaijitMIT47updated 2 months ago

Source

git clone https://github.com/kittimasak/thai-token-optimizer

Clone the source, then follow the repository's marketplace instructions for your runtime. The repository root is the plugin root.

Layout

thai-token-optimizer/
├── .claude-plugin/plugin.json
└── skills/thai-token-optimizer/SKILL.md

Skills1

thai-token-optimizerskills/thai-token-optimizer/SKILL.md

Advanced Thai token optimization for coding agents with code-aware preservation.

Manifests1

.claude-plugin/plugin.json
{
  "name": "thai-token-optimizer",
  "description": "Thai Token Optimizer v2.0 — adaptive Thai token optimization for Claude Code using lifecycle hooks, compact Thai policy, MTP-aware compression guidance, quality checks, and safety preservation.",
  "author": {
    "name": "Dr.Kittimasak Naijit",
    "url": "https://github.com/kittimasak"
  },
  "version": "2.0.0",
  "license": "MIT",
  "homepage": "https://github.com/kittimasak/thai-token-optimizer",
  "repository": "https://github.com/kittimasak/thai-token-optimizer",
  "keywords": [
    "claude-code",
    "hooks",
    "thai",
    "token",
    "prompt-compression",
    "productivity",
    "safety",
    "local-first",
    "mtp",
    "speculative-decoding",
    "quality-score",
    "coach-mode",
    "fleet-audit",
    "context-audit",
    "claude-plugin"
  ],
  "hooks": {
    "SessionStart": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/tto-activate.js\"",
            "timeout": 5,
            "statusMessage": "[TTO Stage 1/4] Detect Intent — loading Thai Token Optimizer v2.0"
          }
        ]
      }
    ],
    "UserPromptSubmit": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/tto-mode-tracker.js\"",
            "timeout": 5,
            "statusMessage": "[TTO Stage 1/4] Detect Intent — tracking TTO mode/profile/safety"
          }
        ]
      }
    ],
    "PreToolUse": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/tto-pretool-guard.js\"",
            "timeout": 5,
            "statusMessage": "[TTO Stage 3/4] Preserve Critical — checking safety guard"
          }
        ]
      }
    ],
    "PostToolUse": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/tto-posttool-summary.js\"",
            "timeout": 5,
            "statusMessage": "[TTO Stage 4/4] Output Compact — preparing compact tool summary"
          }
        ]
      }
    ],
    "Stop": [
      {
        "matcher": "",
        "hooks": [
          {
            "type": "command",
            "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/tto-stop-summary.js\"",
            "timeout": 5,
            "statusMessage": "[TTO Stage 4/4] Output Compact — finalizing safely"
          }
        ]
      }
    ]
  }
}