[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77WV3NFG9MZMR9TTAF2QVY4":3,"skill-same:01M77WV3NFG9MZMR9TTAF2QVY4":56},{"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":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M77WV3NFG9MZMR9TTAF2QVY4","Token Tamer — AI API Cost Control",null,"Monitor, budget, and optimize AI API spending across any provider. Tracks every call, enforces budgets, detects waste, provides optimization recommendations.","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\u002Ft\u002Ftoken-tamer\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"Token Tamer — AI API Cost Control\"\ndescription: \"Monitor, budget, and optimize AI API spending across any provider. Tracks every call, enforces budgets, detects waste, provides optimization recommendations.\"\nauthor: \"@TheShadowRose\"\nversion: \"1.1.0\"\ntags: [\"cost-control\", \"budget\", \"optimization\", \"api-costs\", \"monitoring\", \"spending\"]\nlicense: \"MIT\"\n---\n\n# Token Tamer — AI API Cost Control\n\nUse this skill to track AI API costs, enforce spending budgets, and get optimization recommendations. Works with any provider: OpenAI, Anthropic, Gemini, Ollama, or custom.\n\n## When to Use This Skill\n\nInvoke this skill when a user asks about:\n- \"How much am I spending on API calls?\"\n- Setting daily\u002Fweekly\u002Fmonthly budget limits\n- Getting a cost breakdown by model or provider\n- Detecting wasteful API usage patterns\n- Receiving an alert when spending approaches a budget limit\n\n## Setup\n\n1. Copy `config_example.py` to `token_config.py`\n2. Set your budget limits and model pricing\n3. Configure your storage file path\n\n```python\n# token_config.py\nUSAGE_FILE = \".\u002Ftoken_usage.json\"\nBUDGETS = {\n    'daily': 10.00,\n    'weekly': 50.00,\n    'monthly': 150.00,\n}\nALERT_THRESHOLDS = {\n    'warning': 80,   # alert at 80% of budget\n    'critical': 95,  # alert at 95% of budget\n}\n```\n\n## Recording API Usage\n\nCall this after every API request to track the cost:\n\n```python\nimport token_config as config\nfrom token_tamer import TokenTamer\n\ntamer = TokenTamer(config)\n\n# Log a call — returns (cost, status)\ncost, status = tamer.log_usage(\n    provider='anthropic',\n    model='claude-sonnet-4-5',\n    input_tokens=1500,\n    output_tokens=800,\n    task='summarize',       # optional\n    session='sess_001'      # optional\n)\n\nif status == 'KILL':\n    raise Exception(\"Kill switch activated — daily budget exceeded\")\n```\n\n## Checking Budget Status\n\n```python\nstatus = tamer.get_status()\n# Returns: {\n#   'daily':   { 'cost': 2.40, 'budget': 10.00, 'status': 'OK', 'message': None },\n#   'weekly':  { 'cost': 8.10, 'budget': 50.00, 'status': 'OK', 'message': None },\n#   'monthly': { 'cost': 8.10, 'budget': 150.00, 'status': 'OK', 'message': None },\n#   'kill_switch': False\n# }\n\nif status['daily']['status'] == 'CRITICAL':\n    print(\"Daily budget nearly exhausted — switch to cheaper model\")\n```\n\n## Pre-Call Budget Check\n\n```python\n# Check before making an expensive call (returns True = OK, False = blocked)\nif not tamer.check_before_call(estimated_cost=0.10):\n    raise Exception(\"Kill switch active — API calls blocked\")\n```\n\n## Cost Reports\n\n```python\nimport token_config as config\nfrom token_reports import ReportGenerator\n\nreporter = ReportGenerator(config)\n\n# Daily report\nreport = reporter.generate_daily_report()\nreporter.print_report(report)\n\n# Weekly report\nreport = reporter.generate_weekly_report()\nreporter.print_report(report)\n\n# Breakdown by provider\nreport = reporter.generate_by_provider_report()\nreporter.print_report(report)\n\n# Breakdown by model\nreport = reporter.generate_by_model_report()\nreporter.print_report(report)\n\n# Breakdown by task\nreport = reporter.generate_by_task_report()\nreporter.print_report(report)\n```\n\n## Waste Detection & Optimization\n\n```python\nimport token_config as config\nfrom token_optimizer import WasteDetector, Optimizer\n\n# Detect waste (last 7 days)\ndetector = WasteDetector(config)\nwaste = detector.detect_all(days=7)\n\n# Get optimization recommendations\noptimizer = Optimizer(config)\nrecommendations = optimizer.generate_recommendations(days=7)\n```\n\n## CLI Usage\n\n```bash\n# Check current spend status\npython token_tamer.py --status\n\n# Log a call via CLI\npython token_tamer.py --log --provider openai --model gpt-4o \\\n    --input-tokens 1500 --output-tokens 300 --task \"code_generation\"\n\n# Check if API calls should proceed (exit code 0 = OK, 1 = blocked)\npython token_tamer.py --check\n\n# Generate daily report\npython token_reports.py --daily\n\n# Detect waste (last 7 days)\npython token_optimizer.py --detect-waste --days 7\n\n# Get optimization recommendations\npython token_optimizer.py --recommendations --days 7\n```\n\nSee README.md for full API reference, model pricing configuration, and advanced usage.\n","# Token Tamer — AI API Cost Control\n\nUse this skill to track AI API costs, enforce spending budgets, and get optimization recommendations. Works with any provider: OpenAI, Anthropic, Gemini, Ollama, or custom.\n\n## When to Use This Skill\n\nInvoke this skill when a user asks about:\n- \"How much am I spending on API calls?\"\n- Setting daily\u002Fweekly\u002Fmonthly budget limits\n- Getting a cost breakdown by model or provider\n- Detecting wasteful API usage patterns\n- Receiving an alert when spending approaches a budget limit\n\n## Setup\n\n1. Copy `config_example.py` to `token_config.py`\n2. Set your budget limits and model pricing\n3. Configure your storage file path\n\n```python\n# token_config.py\nUSAGE_FILE = \".\u002Ftoken_usage.json\"\nBUDGETS = {\n    'daily': 10.00,\n    'weekly': 50.00,\n    'monthly': 150.00,\n}\nALERT_THRESHOLDS = {\n    'warning': 80,   # alert at 80% of budget\n    'critical': 95,  # alert at 95% of budget\n}\n```\n\n## Recording API Usage\n\nCall this after every API request to track the cost:\n\n```python\nimport token_config as config\nfrom token_tamer import TokenTamer\n\ntamer = TokenTamer(config)\n\n# Log a call — returns (cost, status)\ncost, status = tamer.log_usage(\n    provider='anthropic',\n    model='claude-sonnet-4-5',\n    input_tokens=1500,\n    output_tokens=800,\n    task='summarize',       # optional\n    session='sess_001'      # optional\n)\n\nif status == 'KILL':\n    raise Exception(\"Kill switch activated — daily budget exceeded\")\n```\n\n## Checking Budget Status\n\n```python\nstatus = tamer.get_status()\n# Returns: {\n#   'daily':   { 'cost': 2.40, 'budget': 10.00, 'status': 'OK', 'message': None },\n#   'weekly':  { 'cost': 8.10, 'budget': 50.00, 'status': 'OK', 'message': None },\n#   'monthly': { 'cost': 8.10, 'budget': 150.00, 'status': 'OK', 'message': None },\n#   'kill_switch': False\n# }\n\nif status['daily']['status'] == 'CRITICAL':\n    print(\"Daily budget nearly exhausted — switch to cheaper model\")\n```\n\n## Pre-Call Budget Check\n\n```python\n# Check before making an expensive call (returns True = OK, False = blocked)\nif not tamer.check_before_call(estimated_cost=0.10):\n    raise Exception(\"Kill switch active — API calls blocked\")\n```\n\n## Cost Reports\n\n```python\nimport token_config as config\nfrom token_reports import ReportGenerator\n\nreporter = ReportGenerator(config)\n\n# Daily report\nreport = reporter.generate_daily_report()\nreporter.print_report(report)\n\n# Weekly report\nreport = reporter.generate_weekly_report()\nreporter.print_report(report)\n\n# Breakdown by provider\nreport = reporter.generate_by_provider_report()\nreporter.print_report(report)\n\n# Breakdown by model\nreport = reporter.generate_by_model_report()\nreporter.print_report(report)\n\n# Breakdown by task\nreport = reporter.generate_by_task_report()\nreporter.print_report(report)\n```\n\n## Waste Detection & Optimization\n\n```python\nimport token_config as config\nfrom token_optimizer import WasteDetector, Optimizer\n\n# Detect waste (last 7 days)\ndetector = WasteDetector(config)\nwaste = detector.detect_all(days=7)\n\n# Get optimization recommendations\noptimizer = Optimizer(config)\nrecommendations = optimizer.generate_recommendations(days=7)\n```\n\n## CLI Usage\n\n```bash\n# Check current spend status\npython token_tamer.py --status\n\n# Log a call via CLI\npython token_tamer.py --log --provider openai --model gpt-4o \\\n    --input-tokens 1500 --output-tokens 300 --task \"code_generation\"\n\n# Check if API calls should proceed (exit code 0 = OK, 1 = blocked)\npython token_tamer.py --check\n\n# Generate daily report\npython token_reports.py --daily\n\n# Detect waste (last 7 days)\npython token_optimizer.py --detect-waste --days 7\n\n# Get optimization recommendations\npython token_optimizer.py --recommendations --days 7\n```\n\nSee README.md for full API reference, model pricing configuration, and advanced usage.\n",{"name":5,"tags":24,"author":31,"license":15,"version":32,"description":7},[25,26,27,28,29,30],"cost-control","budget","optimization","api-costs","monitoring","spending","@TheShadowRose","1.1.0","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ft\u002Ftoken-tamer",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":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill \"Token Tamer — AI API Cost Control\"",{"tool":48,"command":49},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill \"Token Tamer — AI API Cost Control\"",{"tool":51,"command":52},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill \"Token Tamer — AI API Cost Control\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftoken-tamer\u002FSKILL.md",true,[],[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"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":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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",[],[]]