[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M777MJ9NF42CTCN2SGYSVRFJ":3,"skill-same:01M777MJ9NF42CTCN2SGYSVRFJ":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M777MJ9NF42CTCN2SGYSVRFJ","clawdef",null,"ClawDef — Self-hosted Token optimization dashboard for OpenClaw.\nTracks token usage, estimates costs, auto-switches to cheapest model,\nprovides one-click provider setup (8 vendors), budget control, and waste detection.\nRuns locally on 127.0.0.1:3456, does not send user data to third parties.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fclawdef\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: clawdef\nversion: 1.3.0\ndescription: |\n  ClawDef — Self-hosted Token optimization dashboard for OpenClaw.\n  Tracks token usage, estimates costs, auto-switches to cheapest model,\n  provides one-click provider setup (8 vendors), budget control, and waste detection.\n  Runs locally on 127.0.0.1:3456, does not send user data to third parties.\nmetadata:\n  tags: [monitoring, cost-optimization, dashboard, token-management, smart-optimizer]\n  category: productivity\n  configPaths:\n    - \"~\u002F.openclaw\u002Fopenclaw.json\"\n    - \"~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F\"\n    - \"\u002Ftmp\u002Fopenclaw\u002F\"\n  openclaw:\n    requires:\n      bins: [\"node\", \"npm\"]\n    install:\n      - { id: \"node\", kind: \"node\", package: \"better-sqlite3\", bins: [], label: \"Install dependencies\" }\n---\n\n# ClawDef — Token Optimization Dashboard for OpenClaw\n\nA local web dashboard that helps you monitor and reduce your OpenClaw token costs.\n\n## Features\n\n| Feature | Description |\n|---------|-------------|\n| 🧠 Smart Auto-Optimizer | Analyzes usage every 5min, auto-switches to cheapest model based on budget and task complexity |\n| 💰 Cost Estimator | Input a task → see estimated cost per model, one-click switch |\n| 📊 Real-time Dashboard | Token\u002Fcost tracking, cache hit rate, hourly charts, waste detection |\n| 🤖 One-click Model Setup | 8 providers (Zhipu\u002FOpenAI\u002FClaude\u002FDeepSeek\u002FQwen\u002FKimi\u002FGemini\u002FCustom), just fill API Key |\n| 💳 Budget Control | Daily\u002Fmonthly limits with 80% warning and 95% auto-downgrade |\n| 🔄 Failover | Auto-detect unhealthy models and switch |\n| 🚨 Emergency Controls | Disable all skills or stop Gateway (admin-only, manual trigger) |\n| 👥 Multi-user | Admin\u002FEditor\u002FViewer roles with password auth |\n\n## Prerequisites\n\n- **Node.js** v18+ (`node --version`)\n- **OpenClaw** installed and running\n- **OS**: Linux or macOS\n\n## Installation\n\n### Step 1: Copy files\n\n```bash\nCLAWDEF_DIR=\u002Fopt\u002Fopenclaw-monitor   # or any directory you prefer\nSKILL_DIR=~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fclawdef\n\nmkdir -p \"$CLAWDEF_DIR\u002Fdata\" \"$CLAWDEF_DIR\u002Fpublic\u002Flib\"\ncp \"$SKILL_DIR\u002Fscripts\u002Fserver.js\" \"$CLAWDEF_DIR\u002Fserver.js\"\ncp \"$SKILL_DIR\u002Fscripts\u002Fpackage.json\" \"$CLAWDEF_DIR\u002Fpackage.json\"\ncp \"$SKILL_DIR\u002Fpublic\u002Findex.html\" \"$CLAWDEF_DIR\u002Fpublic\u002Findex.html\"\ncp \"$SKILL_DIR\u002Fpublic\u002Flib\u002Fchart.min.js\" \"$CLAWDEF_DIR\u002Fpublic\u002Flib\u002Fchart.min.js\"\n```\n\n### Step 2: Install dependencies\n\n```bash\ncd \"$CLAWDEF_DIR\" && npm install --production\n```\n\n### Step 3: Start\n\n```bash\nnode \"$CLAWDEF_DIR\u002Fserver.js\"\n```\n\nOr use the helper script:\n```bash\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fclawdef\u002Fscripts\u002Finstall.sh\n```\n\n### Step 4: First-run setup\n\nOpen **http:\u002F\u002F127.0.0.1:3456** in your browser.\nOn first run, you'll be prompted to set an admin password.\n\n### Optional: Run as a service (Linux with systemd)\n\nThe install script copies files only. To run as a persistent service, create a systemd unit manually:\n\n```bash\nsudo tee \u002Fetc\u002Fsystemd\u002Fsystem\u002Fclawdef.service \u003C\u003C EOF\n[Unit]\nDescription=ClawDef Token Optimizer\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=$(which node) \u002Fopt\u002Fopenclaw-monitor\u002Fserver.js\nWorkingDirectory=\u002Fopt\u002Fopenclaw-monitor\nRestart=on-failure\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\nEOF\n\nsudo systemctl daemon-reload\nsudo systemctl enable --now clawdef\n```\n\n## File Access\n\nThis skill reads and writes the following files:\n\n| File\u002FPath | Access | Purpose |\n|-----------|--------|---------|\n| `~\u002F.openclaw\u002Fopenclaw.json` | Read + Write | Read current model config; write `agents.defaults.model.primary` (model switching) and `skills.entries` (skill enable\u002Fdisable) |\n| `~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl` | Read only | Parse session transcripts for token counting |\n| `\u002Ftmp\u002Fopenclaw\u002F*.log` | Read only | Parse gateway logs for request tracking |\n| `~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F*\u002FSKILL.md` | Read only | List installed skills with metadata |\n| `\u003Cinstall_dir>\u002Fdata\u002Fclawdef.db` | Read + Write | Local SQLite database for dashboard data |\n\n## Network Activity\n\n| Destination | Trigger | Data sent |\n|-------------|---------|-----------|\n| `127.0.0.1:3456` | Always | Local web dashboard (served to your browser) |\n| `127.0.0.1:11612\u002Fhealth` | Dashboard load | HTTP GET health check (Gateway status) |\n| `127.0.0.1:11612\u002Fv1\u002Fchat\u002Fcompletions` | User sends chat message | Proxied to Gateway |\n| User-configured model APIs | Manual health check | Minimal POST to verify API is reachable |\n\n**No data is sent to any third-party server.** The dashboard UI is served entirely from local files (no CDN).\n\n## Security Notes\n\n- **Binding**: Listens on `127.0.0.1` only (not externally accessible)\n- **Auth**: JWT tokens with bcrypt-hashed passwords, 7-day expiry\n- **No default password**: First-run setup requires creating admin credentials\n- **No telemetry**: No outbound data collection or phone-home\n- **Dependencies**: `express`, `better-sqlite3`, `jsonwebtoken`, `bcryptjs`, `ws` (all well-known packages)\n- **Native module**: `better-sqlite3` requires a C++ build step during `npm install`\n\n## Uninstall\n\n```bash\n# Stop service if using systemd\nsudo systemctl stop clawdef && sudo systemctl disable clawdef\n# Delete files\nrm -rf \u002Fopt\u002Fopenclaw-monitor\n```\n\n## Supported Providers\n\nZhipu (智谱) · OpenAI · Anthropic Claude · DeepSeek · Qwen (通义) · Moonshot (Kimi) · Google Gemini · Custom (any OpenAI-compatible API)\n\n## License\n\nMIT\n","# ClawDef — Token Optimization Dashboard for OpenClaw\n\nA local web dashboard that helps you monitor and reduce your OpenClaw token costs.\n\n## Features\n\n| Feature | Description |\n|---------|-------------|\n| 🧠 Smart Auto-Optimizer | Analyzes usage every 5min, auto-switches to cheapest model based on budget and task complexity |\n| 💰 Cost Estimator | Input a task → see estimated cost per model, one-click switch |\n| 📊 Real-time Dashboard | Token\u002Fcost tracking, cache hit rate, hourly charts, waste detection |\n| 🤖 One-click Model Setup | 8 providers (Zhipu\u002FOpenAI\u002FClaude\u002FDeepSeek\u002FQwen\u002FKimi\u002FGemini\u002FCustom), just fill API Key |\n| 💳 Budget Control | Daily\u002Fmonthly limits with 80% warning and 95% auto-downgrade |\n| 🔄 Failover | Auto-detect unhealthy models and switch |\n| 🚨 Emergency Controls | Disable all skills or stop Gateway (admin-only, manual trigger) |\n| 👥 Multi-user | Admin\u002FEditor\u002FViewer roles with password auth |\n\n## Prerequisites\n\n- **Node.js** v18+ (`node --version`)\n- **OpenClaw** installed and running\n- **OS**: Linux or macOS\n\n## Installation\n\n### Step 1: Copy files\n\n```bash\nCLAWDEF_DIR=\u002Fopt\u002Fopenclaw-monitor   # or any directory you prefer\nSKILL_DIR=~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fclawdef\n\nmkdir -p \"$CLAWDEF_DIR\u002Fdata\" \"$CLAWDEF_DIR\u002Fpublic\u002Flib\"\ncp \"$SKILL_DIR\u002Fscripts\u002Fserver.js\" \"$CLAWDEF_DIR\u002Fserver.js\"\ncp \"$SKILL_DIR\u002Fscripts\u002Fpackage.json\" \"$CLAWDEF_DIR\u002Fpackage.json\"\ncp \"$SKILL_DIR\u002Fpublic\u002Findex.html\" \"$CLAWDEF_DIR\u002Fpublic\u002Findex.html\"\ncp \"$SKILL_DIR\u002Fpublic\u002Flib\u002Fchart.min.js\" \"$CLAWDEF_DIR\u002Fpublic\u002Flib\u002Fchart.min.js\"\n```\n\n### Step 2: Install dependencies\n\n```bash\ncd \"$CLAWDEF_DIR\" && npm install --production\n```\n\n### Step 3: Start\n\n```bash\nnode \"$CLAWDEF_DIR\u002Fserver.js\"\n```\n\nOr use the helper script:\n```bash\nbash ~\u002F.openclaw\u002Fworkspace\u002Fskills\u002Fclawdef\u002Fscripts\u002Finstall.sh\n```\n\n### Step 4: First-run setup\n\nOpen **http:\u002F\u002F127.0.0.1:3456** in your browser.\nOn first run, you'll be prompted to set an admin password.\n\n### Optional: Run as a service (Linux with systemd)\n\nThe install script copies files only. To run as a persistent service, create a systemd unit manually:\n\n```bash\nsudo tee \u002Fetc\u002Fsystemd\u002Fsystem\u002Fclawdef.service \u003C\u003C EOF\n[Unit]\nDescription=ClawDef Token Optimizer\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=$(which node) \u002Fopt\u002Fopenclaw-monitor\u002Fserver.js\nWorkingDirectory=\u002Fopt\u002Fopenclaw-monitor\nRestart=on-failure\nRestartSec=5\n\n[Install]\nWantedBy=multi-user.target\nEOF\n\nsudo systemctl daemon-reload\nsudo systemctl enable --now clawdef\n```\n\n## File Access\n\nThis skill reads and writes the following files:\n\n| File\u002FPath | Access | Purpose |\n|-----------|--------|---------|\n| `~\u002F.openclaw\u002Fopenclaw.json` | Read + Write | Read current model config; write `agents.defaults.model.primary` (model switching) and `skills.entries` (skill enable\u002Fdisable) |\n| `~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl` | Read only | Parse session transcripts for token counting |\n| `\u002Ftmp\u002Fopenclaw\u002F*.log` | Read only | Parse gateway logs for request tracking |\n| `~\u002F.openclaw\u002Fworkspace\u002Fskills\u002F*\u002FSKILL.md` | Read only | List installed skills with metadata |\n| `\u003Cinstall_dir>\u002Fdata\u002Fclawdef.db` | Read + Write | Local SQLite database for dashboard data |\n\n## Network Activity\n\n| Destination | Trigger | Data sent |\n|-------------|---------|-----------|\n| `127.0.0.1:3456` | Always | Local web dashboard (served to your browser) |\n| `127.0.0.1:11612\u002Fhealth` | Dashboard load | HTTP GET health check (Gateway status) |\n| `127.0.0.1:11612\u002Fv1\u002Fchat\u002Fcompletions` | User sends chat message | Proxied to Gateway |\n| User-configured model APIs | Manual health check | Minimal POST to verify API is reachable |\n\n**No data is sent to any third-party server.** The dashboard UI is served entirely from local files (no CDN).\n\n## Security Notes\n\n- **Binding**: Listens on `127.0.0.1` only (not externally accessible)\n- **Auth**: JWT tokens with bcrypt-hashed passwords, 7-day expiry\n- **No default password**: First-run setup requires creating admin credentials\n- **No telemetry**: No outbound data collection or phone-home\n- **Dependencies**: `express`, `better-sqlite3`, `jsonwebtoken`, `bcryptjs`, `ws` (all well-known packages)\n- **Native module**: `better-sqlite3` requires a C++ build step during `npm install`\n\n## Uninstall\n\n```bash\n# Stop service if using systemd\nsudo systemctl stop clawdef && sudo systemctl disable clawdef\n# Delete files\nrm -rf \u002Fopt\u002Fopenclaw-monitor\n```\n\n## Supported Providers\n\nZhipu (智谱) · OpenAI · Anthropic Claude · DeepSeek · Qwen (通义) · Moonshot (Kimi) · Google Gemini · Custom (any OpenAI-compatible API)\n\n## License\n\nMIT\n",{"name":5,"version":24,"metadata":25,"description":47},"1.3.0",{"tags":26,"category":32,"openclaw":33,"configPaths":43},[27,28,29,30,31],"monitoring","cost-optimization","dashboard","token-management","smart-optimizer","productivity",{"install":34,"requires":40},[35],{"id":36,"bins":37,"kind":36,"label":38,"package":39},"node",[],"Install dependencies","better-sqlite3",{"bins":41},[36,42],"npm",[44,45,46],"~\u002F.openclaw\u002Fopenclaw.json","~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F","\u002Ftmp\u002Fopenclaw\u002F","ClawDef — Self-hosted Token optimization dashboard for OpenClaw.\nTracks token usage, estimates costs, auto-switches to cheapest model,\nprovides one-click provider setup (8 vendors), budget control, and waste detection.\nRuns locally on 127.0.0.1:3456, does not send user data to third parties.\n","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fc\u002Fclawdef",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill clawdef",{"tool":63,"command":64},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill clawdef",{"tool":66,"command":67},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill clawdef","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fc\u002Fclawdef\u002FSKILL.md",true,[],[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]