[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FJFXESKNQM6672QM9FQR6V":3,"skill-same:01M6FJFXESKNQM6672QM9FQR6V":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":49,"install":50,"resources":63},"01M6FJFXESKNQM6672QM9FQR6V","openclaw-cost-guard",null,"Track OpenClaw\u002FClawdbot token and cost usage from session JSONL logs (prefer real usage.cost when present), generate daily\u002Fweekly summaries and top expensive sessions, and run budget checks (exit code on breach). Use to monitor spend, enforce budgets via cron\u002Falerts, and apply a token-saving playbook to reduce output\u002Ftool-call cost.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdasweltall\u002Fopenclaw-cost-guard\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"cost","openclaw cost guard","openclaw","guard","logs","code","tool","session","use","daily","monitor","exit","clawdbot","call","enforce","alerts","output","jsonl","usage","sessions","2026-11-10 10:12:30",false,"---\nname: openclaw-cost-guard\ndescription: Track OpenClaw\u002FClawdbot token and cost usage from session JSONL logs (prefer real usage.cost when present), generate daily\u002Fweekly summaries and top expensive sessions, and run budget checks (exit code on breach). Use to monitor spend, enforce budgets via cron\u002Falerts, and apply a token-saving playbook to reduce output\u002Ftool-call cost.\n---\n\n# OpenClaw Cost Guard\n\nUse this skill when you need:\n- **accurate cost reports** (daily\u002Fweekly\u002Flifetime)\n- **top expensive sessions**\n- **guardrails to reduce token burn** (without changing config unless user asks)\n\n## 1) Data source (important)\n\nPrefer **session JSONL** logs (they contain per-call `usage`, often with **real USD cost**):\n- OpenClaw: `~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`\n- Legacy\u002Fcompat: `~\u002F.clawdbot\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`\n\nDo **not** estimate from “current context window” style token fields.\n\n## 2) Quick commands\n\n### Daily costs (last 7 days)\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 7\n```\n\n### Today \u002F yesterday\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --yesterday\n```\n\n### Top expensive sessions\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --top-sessions 10\n```\n\n### JSON output (for dashboards)\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 30 --json\n```\n\n## 3) If cost is missing (fallback estimate)\n\nSome providers may omit `usage.cost`. You can provide per-1M-token prices:\n\n```bash\nexport PRICE_INPUT=1.75\nexport PRICE_OUTPUT=14\nexport PRICE_CACHE_READ=0.175\nexport PRICE_CACHE_WRITE=0\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 7\n```\n\n## 4) Budget alerts\n\nThe extractor can run as a **budget check**:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today --budget-usd 5\n```\n\n- If budget is exceeded, it prints an **ALERT** and exits with code **2** (default).\n- For non-failing checks:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today --budget-usd 5 --budget-mode warn\n```\n\n### Wiring it to a cron alert (recommended)\nRun it daily (or hourly) and if exit code is 2, send yourself a Telegram message.\n(Implementation depends on your OpenClaw channel setup; do not embed secrets in scripts.)\n\n## 5) Token-saving playbook (teach the AI)\n\nWhen the user says “use as few tokens as possible”, apply:\n- **Default response budget:** 1–6 lines, bullets > paragraphs\n- **Ask 1 question max** (only if truly blocking)\n- **Progressive disclosure:** offer details only if asked\n- **Tool calls:** batch; avoid repeated `status`\u002Fbrowser calls\n- **No log dumps** into chat; summarize + point to file path\n- **Hard limits:** max 3 web iterations (search\u002Ffetch) per task\n\nOptional phrasing to keep yourself in check:\n> \"Answer in \u003C=6 lines. If more is needed, ask permission.\"","# OpenClaw Cost Guard\n\nUse this skill when you need:\n- **accurate cost reports** (daily\u002Fweekly\u002Flifetime)\n- **top expensive sessions**\n- **guardrails to reduce token burn** (without changing config unless user asks)\n\n## 1) Data source (important)\n\nPrefer **session JSONL** logs (they contain per-call `usage`, often with **real USD cost**):\n- OpenClaw: `~\u002F.openclaw\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`\n- Legacy\u002Fcompat: `~\u002F.clawdbot\u002Fagents\u002F*\u002Fsessions\u002F*.jsonl`\n\nDo **not** estimate from “current context window” style token fields.\n\n## 2) Quick commands\n\n### Daily costs (last 7 days)\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 7\n```\n\n### Today \u002F yesterday\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --yesterday\n```\n\n### Top expensive sessions\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --top-sessions 10\n```\n\n### JSON output (for dashboards)\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 30 --json\n```\n\n## 3) If cost is missing (fallback estimate)\n\nSome providers may omit `usage.cost`. You can provide per-1M-token prices:\n\n```bash\nexport PRICE_INPUT=1.75\nexport PRICE_OUTPUT=14\nexport PRICE_CACHE_READ=0.175\nexport PRICE_CACHE_WRITE=0\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --last-days 7\n```\n\n## 4) Budget alerts\n\nThe extractor can run as a **budget check**:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today --budget-usd 5\n```\n\n- If budget is exceeded, it prints an **ALERT** and exits with code **2** (default).\n- For non-failing checks:\n\n```bash\npython3 {baseDir}\u002Fscripts\u002Fextract_cost.py --today --budget-usd 5 --budget-mode warn\n```\n\n### Wiring it to a cron alert (recommended)\nRun it daily (or hourly) and if exit code is 2, send yourself a Telegram message.\n(Implementation depends on your OpenClaw channel setup; do not embed secrets in scripts.)\n\n## 5) Token-saving playbook (teach the AI)\n\nWhen the user says “use as few tokens as possible”, apply:\n- **Default response budget:** 1–6 lines, bullets > paragraphs\n- **Ask 1 question max** (only if truly blocking)\n- **Progressive disclosure:** offer details only if asked\n- **Tool calls:** batch; avoid repeated `status`\u002Fbrowser calls\n- **No log dumps** into chat; summarize + point to file path\n- **Hard limits:** max 3 web iterations (search\u002Ffetch) per task\n\nOptional phrasing to keep yourself in check:\n> \"Answer in \u003C=6 lines. If more is needed, ask permission.\"",{"name":5,"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fdasweltall\u002Fopenclaw-cost-guard",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add kbarbel640-del\u002Fskills --skill openclaw-cost-guard",{"tool":56,"command":57},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill openclaw-cost-guard",{"tool":59,"command":60},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill openclaw-cost-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdasweltall\u002Fopenclaw-cost-guard\u002FSKILL.md",true,[64,70,74],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"_meta.json","REFERENCE","参考文档",328,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdasweltall\u002Fopenclaw-cost-guard\u002F_meta.json",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"README.md",1481,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdasweltall\u002Fopenclaw-cost-guard\u002FREADME.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fextract_cost.py","SCRIPT","脚本",9894,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdasweltall\u002Fopenclaw-cost-guard\u002Fscripts\u002Fextract_cost.py",[81,106,128,146,151,171],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":38},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[88,89,90,91,92,93,94,95,96,97,98,24,99,100,101,102,103,104,105],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":38},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[113,90,114,115,116,117,118,119,120,121,20,122,123,124,125,126,127,95,26],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","design","strategy","headless","compete","submit","matchmaking",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[135,136,137,138,139,140,141,91,142,126,26,143,90,144,145],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":147,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":38},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[138,137,136,135,145,140,141,91,139,126,26,142,143,90,144],{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":38},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[158,159,160,161,162,163,164,165,166,167,168,169,170],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":172,"name":173,"nameZh":6,"description":174,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":175,"categories":176,"keywords":177,"publishedAt":38},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[178,179,180,181,91,182,183,43,184,143,185,186,187,188,189,103,190,191,192],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]