[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79JZWWB6EMJEMMM4VBN2F9V":3,"skill-same:01M79JZWWB6EMJEMMM4VBN2F9V":75},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":13,"repositoryHtmlUrl":42,"repositoryHomepageUrl":6,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M79JZWWB6EMJEMMM4VBN2F9V","model-usage",null,"Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.","leon36000\u002FOPSYS-AI","leon36000","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216249790?v=4","01M79JWJK00J10J79XZA3G4KH0","01M79JWJKTT8J3C7PZ0TX7X4PQ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fmodel-usage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: model-usage\ndescription: \"Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.\"\nmetadata:\n  {\n    \"openclaw\":\n      {\n        \"emoji\": \"📊\",\n        \"os\": [\"darwin\", \"linux\"],\n        \"requires\": { \"bins\": [\"codexbar\"] },\n        \"install\":\n          [\n            {\n              \"id\": \"brew-cask\",\n              \"kind\": \"brew\",\n              \"formula\": \"steipete\u002Ftap\u002Fcodexbar\",\n              \"bins\": [\"codexbar\"],\n              \"label\": \"Install CodexBar CLI (Homebrew)\",\n            },\n          ],\n      },\n  }\n---\n\n# Model usage\n\n## Overview\n\nGet per-model usage cost from CodexBar's local cost logs. Supports \"current model\" (most recent daily entry) or \"all models\" summaries for Codex or Claude.\n\nCodexBar ships CLI builds for macOS and Linux. When `codexbar` is on `PATH`, the skill reads local usage directly; the bundled Python summarizer also accepts exported CodexBar JSON through `--input` anywhere Python is available.\n\n## Quick start\n\n1. Fetch cost JSON via CodexBar CLI or pass a JSON file.\n2. Use the bundled script to summarize by model.\n\n```bash\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider codex --mode current\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider codex --mode all\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider claude --mode all --format json --pretty\n```\n\n## Current model logic\n\n- Uses the most recent daily row with `modelBreakdowns`.\n- Picks the model with the highest cost in that row.\n- Falls back to the last entry in `modelsUsed` when breakdowns are missing.\n- Override with `--model \u003Cname>` when you need a specific model.\n\n## Inputs\n\n- Default: runs `codexbar cost --format json --provider \u003Ccodex|claude>`.\n- macOS and Linux: use the bundled Homebrew formula installer above for live local usage reads. Linux users can also use CodexBar's [AUR package](https:\u002F\u002Faur.archlinux.org\u002Fpackages\u002Fcodexbar-cli) or [official release tarballs](https:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar\u002Freleases).\n- Other platforms: use `--input` with exported CodexBar JSON.\n- File or stdin:\n\n```bash\ncodexbar cost --provider codex --format json > \u002Ftmp\u002Fcost.json\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --input \u002Ftmp\u002Fcost.json --mode all\ncat \u002Ftmp\u002Fcost.json | python {baseDir}\u002Fscripts\u002Fmodel_usage.py --input - --mode current\n```\n\n## Output\n\n- Text (default) or JSON (`--format json --pretty`).\n- Values are cost-only per model; tokens are not split by model in CodexBar output.\n\n## References\n\n- Read `references\u002Fcodexbar-cli.md` for CLI flags and cost JSON fields.\n","# Model usage\n\n## Overview\n\nGet per-model usage cost from CodexBar's local cost logs. Supports \"current model\" (most recent daily entry) or \"all models\" summaries for Codex or Claude.\n\nCodexBar ships CLI builds for macOS and Linux. When `codexbar` is on `PATH`, the skill reads local usage directly; the bundled Python summarizer also accepts exported CodexBar JSON through `--input` anywhere Python is available.\n\n## Quick start\n\n1. Fetch cost JSON via CodexBar CLI or pass a JSON file.\n2. Use the bundled script to summarize by model.\n\n```bash\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider codex --mode current\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider codex --mode all\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --provider claude --mode all --format json --pretty\n```\n\n## Current model logic\n\n- Uses the most recent daily row with `modelBreakdowns`.\n- Picks the model with the highest cost in that row.\n- Falls back to the last entry in `modelsUsed` when breakdowns are missing.\n- Override with `--model \u003Cname>` when you need a specific model.\n\n## Inputs\n\n- Default: runs `codexbar cost --format json --provider \u003Ccodex|claude>`.\n- macOS and Linux: use the bundled Homebrew formula installer above for live local usage reads. Linux users can also use CodexBar's [AUR package](https:\u002F\u002Faur.archlinux.org\u002Fpackages\u002Fcodexbar-cli) or [official release tarballs](https:\u002F\u002Fgithub.com\u002Fsteipete\u002FCodexBar\u002Freleases).\n- Other platforms: use `--input` with exported CodexBar JSON.\n- File or stdin:\n\n```bash\ncodexbar cost --provider codex --format json > \u002Ftmp\u002Fcost.json\npython {baseDir}\u002Fscripts\u002Fmodel_usage.py --input \u002Ftmp\u002Fcost.json --mode all\ncat \u002Ftmp\u002Fcost.json | python {baseDir}\u002Fscripts\u002Fmodel_usage.py --input - --mode current\n```\n\n## Output\n\n- Text (default) or JSON (`--format json --pretty`).\n- Values are cost-only per model; tokens are not split by model in CodexBar output.\n\n## References\n\n- Read `references\u002Fcodexbar-cli.md` for CLI flags and cost JSON fields.\n",{"name":5,"metadata":23,"description":7},{"openclaw":24},{"os":25,"emoji":28,"install":29,"requires":37},[26,27],"darwin","linux","📊",[30],{"id":31,"bins":32,"kind":34,"label":35,"formula":36},"brew-cask",[33],"codexbar","brew","Install CodexBar CLI (Homebrew)","steipete\u002Ftap\u002Fcodexbar",{"bins":38},[33],"main","54d89d355555ba29c51a05828bb2ee9b8abbfc1d","core\u002Fskills\u002Fmodel-usage","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI","https:\u002F\u002Fgithub.com\u002Fleon36000","2026-11-08 05:46:02",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add leon36000\u002FOPSYS-AI --skill model-usage",{"tool":51,"command":52},"bunx","bunx skills add leon36000\u002FOPSYS-AI --skill model-usage",{"tool":54,"command":55},"pnpm","pnpm dlx skills add leon36000\u002FOPSYS-AI --skill model-usage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fmodel-usage\u002FSKILL.md",true,[59,65,71],{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fcodexbar-cli.md","REFERENCE","参考文档",1299,"https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fmodel-usage\u002Freferences\u002Fcodexbar-cli.md",{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"scripts\u002Fmodel_usage.py","SCRIPT","脚本",11490,"https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fmodel-usage\u002Fscripts\u002Fmodel_usage.py",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"scripts\u002Ftest_model_usage.py",5218,"https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fskills\u002Fmodel-usage\u002Fscripts\u002Ftest_model_usage.py",[76,83,90,97,104,111],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M79K66JYY28KMDVMJ4M1RBT7","procedure-demo","Procédure de test.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdepartements\u002Fm09-demo\u002Fskills\u002Fprocedure-demo\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M79K62M77K68EJYYT1HGZZYR","traiter-un-signal-critique","Procédure pour lister les signaux critiques d'une affaire et proposer leur prise en compte ou leur clôture, qui restent des décisions humaines, et pour proposer de lier une session à une affaire.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Ftraiter-un-signal-critique\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":18},"01M79K5XV1PC7Q699VC05WPVEX","preflight-contexte-suffisant","Procédure PREFLIGHT pour vérifier qu'un dossier de contexte (événement, résumé, preuves, impact, prochaine action, références de décisions) est suffisant avant une action importante, et pour consommer un Work Completion Trigger de M4.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Fpreflight-contexte-suffisant\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M79K5TB07Q63XCV00FSX4AR0","journaliser-une-decision","Procédure pour journaliser une décision motivée au registre Affaires et obtenir sa référence vérifiable, ou pour signaler puis arbitrer une révision entre deux souvenirs, sans jamais fusionner ni muter un maillon existant.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Fjournaliser-une-decision\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M79K5PB7JFBETB3A08ACKXXS","etat-consolide-et-contradictions","Procédure pour ingérer un snapshot d'un module, reconstruire l'état consolidé de l'entreprise et présenter ses contradictions internes sans jamais les résoudre ni en inventer la cause.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm09-strategic-intelligence\u002Fskills\u002Fetat-consolide-et-contradictions\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":18},"01M79K5K368MQEQA5TZ2FRQGMD","briefing-du-matin","Procédure pour produire le briefing du matin (décisions en attente, alertes M8, faits de la veille, manques) pour une date de référence donnée, lire ce qu'il n'a pas pu afficher, et lire les alertes de mesure de M8 avec leurs preuves, sans jamais rien y inventer, y décider ni y ajouter de diagnostic.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm09-strategic-intelligence\u002Fskills\u002Fbriefing-du-matin\u002FSKILL.md",[],[]]