[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FCTWMRJ57X50XE2J6GK8RF":3,"skill-same:01M6FCTWMRJ57X50XE2J6GK8RF":83},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":20,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":6,"ownerHtmlUrl":61,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":62,"install":63,"resources":76},"01M6FCTWMRJ57X50XE2J6GK8RF","usage-engineer",null,"Cut wasted tokens in coding-agent sessions: compact long logs, stop identical retries, check stale project maps, and audit local Codex\u002FOpenCode usage.","boisenoise\u002Fskills-collections","boisenoise","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F193180?v=4","01M6CDBDQK6BDN55ZMA6B6PKBM","01M6CDBDVSJ3JPTBYN26FZ7TZK",13,"MIT","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-usage-engineer\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"usage engineer","engineer","main","2026","usage","retries","cut","critical","project","local","compact","agent sessions","audit","community","maps","stop","Coding-Agent","opencode","context","coding","logs","2026-11-10 10:12:30",false,"---\nname: usage-engineer\ndescription: \"Cut wasted tokens in coding-agent sessions: compact long logs, stop identical retries, check stale project maps, and audit local Codex\u002FOpenCode usage.\"\ncategory: productivity\nrisk: critical\nsource: community\nsource_repo: noamshorts22-prog\u002Fusage-engineer\nsource_type: community\ndate_added: \"2026-10-21\"\nauthor: noamshorts22-prog\ntags: [tokens, usage, context, logs, cost, codex]\ntools: [claude, codex, cursor, gemini, opencode]\nlicense: \"MIT\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002Fnoamshorts22-prog\u002Fusage-engineer\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# usage-engineer\n\n## Overview\n\nEvery token an agent spends on a 5,000-line log, a retried command or a stale project map is paid for\nagain on every later turn. This skill removes that waste without lowering the bar: requirements, tests\nand verification stay exactly as strict as without it. It ships a bundled zero-dependency Python CLI\n(`scripts\u002Fue.py`). Its audit helpers run locally; optional benchmark runners can launch agents that contact providers.\n\n## When to Use This Skill\n\n- Use when a build, test run or log will print more than about 100 lines.\n- Use when the same command has failed twice with the same input.\n- Use when resuming work from an older session, handoff or project map.\n- Use when AGENTS.md, CLAUDE.md or similar instruction files may repeat the same paragraphs.\n- Use when the user asks where their Codex or OpenCode usage went, why they hit a rate limit, or how to make the agent cheaper.\n\n## How It Works\n\nAll commands run the bundled script (Python 3.9+, standard library only):\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py \u003Ccommand>\n```\n\n`\u003Cskill-dir>` is the folder this SKILL.md is in. Use `python3` where `python` is not Python 3, and\n`py -3` on Windows if neither is found. If no Python is reachable, say so once and follow the rules\nbelow by hand; do not retry the same command.\n\n### Step 1: Send long output to a file, not the conversation\n\n```bash\n\u003Ccommand> > build.log 2>&1\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py summarize-log --file build.log\n```\n\nThe summary keeps every error and failure line with context plus the last 20 lines, and prints the\npath of a byte-exact copy of the full log. Read slices of that copy only when the summary is not\nenough. Never rerun a command just to see its output again.\n\n### Step 2: Two identical failures means change approach\n\nIf the same command fails twice with the same input, do not run it a third time. Read the error,\nchange the input, or try a different method.\n\n### Step 3: Check a map before trusting it\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map check --project . --map \u003Cmap.json>\n```\n\nExit code 1 means STALE or incomplete coverage. Re-read listed changes and widen inspection whenever the map is truncated or evidence requires it. Build a map at\nthe end of a work session so the next one can check it:\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map build --project .\n```\n\n### Step 4: Read narrowly\n\nSearch first (`rg`, `grep`) and read the matching range instead of whole files. Do not re-read a file\nthat has not changed.\n\n### Step 5: Measure before advising on usage\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py audit --days 7\n```\n\nIt reads local Codex CLI rollout files (`$CODEX_HOME\u002Fsessions`) and the OpenCode database, read-only,\nwith home paths redacted. It reports input, cached, output and reasoning tokens, incomplete turns,\noversized tool outputs (with an estimate of the tokens they cost) and repeated identical tool calls.\nReport its numbers as measured; label anything else as an estimate.\n\n### Step 6: Verify the bundled behavior\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map build --project \u003Cproject>\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map check --project \u003Cproject> --map \u003Cmap.json>\n```\n\n`selftest` is available only in the full upstream checkout. This catalog bundle intentionally omits the\nupstream test fixtures and exits with status 2 rather than reporting a false pass.\n\n## Examples\n\n### Example 1: A failing test suite with 3,000 lines of output\n\n```bash\npytest > test.log 2>&1\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py summarize-log --file test.log\n```\n\nThe agent reads the failure lines and their context instead of the whole run, then opens only the\nslice of the saved copy it needs.\n\n### Example 2: Duplicate instruction files\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py instructions duplicates --project .\n```\n\nLists paragraphs repeated across AGENTS.md, CLAUDE.md and similar files, which would otherwise be\npaid for on every turn.\n\n## Best Practices\n\n- ✅ Keep the path to the full failure output in reports, so nothing is lost by summarizing.\n- ✅ Describe a check as passing only if it ran in this session.\n- ❌ Don't lower test or verification requirements to save tokens.\n- ❌ Don't promise savings from `prepare-context`: in the project's first A\u002FB run a prepared context pack used about 30% more tokens on small tasks.\n\n## Limitations\n\n- Usage audit only reads Codex CLI and OpenCode local data; the other commands work in any agent.\n- Token estimates for oversized tool outputs are approximations, not billing figures.\n- This skill does not replace environment-specific validation, testing, or expert review.\n\n## Security & Safety Notes\n\n- Audit opens rollout JSONL files that can contain chat text and secrets; it extracts metadata without intentionally printing message contents. It does not open auth or cookie files. Treat input logs and all local copies as sensitive; summaries are not secret-redacted.\n- Output files go to `~\u002F.usage-engineer` (override with `UE_STATE_DIR`) unless `--out` is given; printed paths start with `%HOME%` for the redacted home directory.\n- `apply-profile` and `rollback` write configuration files only when explicitly invoked. Review their exact destinations first; bundled profile\u002Fbenchmark fixtures are omitted. Audit and map commands do not change model or agent settings.\n\n## Related Skills\n\n- `context-compression` - broader techniques for shrinking context.\n","# usage-engineer\n\n## Overview\n\nEvery token an agent spends on a 5,000-line log, a retried command or a stale project map is paid for\nagain on every later turn. This skill removes that waste without lowering the bar: requirements, tests\nand verification stay exactly as strict as without it. It ships a bundled zero-dependency Python CLI\n(`scripts\u002Fue.py`). Its audit helpers run locally; optional benchmark runners can launch agents that contact providers.\n\n## When to Use This Skill\n\n- Use when a build, test run or log will print more than about 100 lines.\n- Use when the same command has failed twice with the same input.\n- Use when resuming work from an older session, handoff or project map.\n- Use when AGENTS.md, CLAUDE.md or similar instruction files may repeat the same paragraphs.\n- Use when the user asks where their Codex or OpenCode usage went, why they hit a rate limit, or how to make the agent cheaper.\n\n## How It Works\n\nAll commands run the bundled script (Python 3.9+, standard library only):\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py \u003Ccommand>\n```\n\n`\u003Cskill-dir>` is the folder this SKILL.md is in. Use `python3` where `python` is not Python 3, and\n`py -3` on Windows if neither is found. If no Python is reachable, say so once and follow the rules\nbelow by hand; do not retry the same command.\n\n### Step 1: Send long output to a file, not the conversation\n\n```bash\n\u003Ccommand> > build.log 2>&1\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py summarize-log --file build.log\n```\n\nThe summary keeps every error and failure line with context plus the last 20 lines, and prints the\npath of a byte-exact copy of the full log. Read slices of that copy only when the summary is not\nenough. Never rerun a command just to see its output again.\n\n### Step 2: Two identical failures means change approach\n\nIf the same command fails twice with the same input, do not run it a third time. Read the error,\nchange the input, or try a different method.\n\n### Step 3: Check a map before trusting it\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map check --project . --map \u003Cmap.json>\n```\n\nExit code 1 means STALE or incomplete coverage. Re-read listed changes and widen inspection whenever the map is truncated or evidence requires it. Build a map at\nthe end of a work session so the next one can check it:\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map build --project .\n```\n\n### Step 4: Read narrowly\n\nSearch first (`rg`, `grep`) and read the matching range instead of whole files. Do not re-read a file\nthat has not changed.\n\n### Step 5: Measure before advising on usage\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py audit --days 7\n```\n\nIt reads local Codex CLI rollout files (`$CODEX_HOME\u002Fsessions`) and the OpenCode database, read-only,\nwith home paths redacted. It reports input, cached, output and reasoning tokens, incomplete turns,\noversized tool outputs (with an estimate of the tokens they cost) and repeated identical tool calls.\nReport its numbers as measured; label anything else as an estimate.\n\n### Step 6: Verify the bundled behavior\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map build --project \u003Cproject>\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py map check --project \u003Cproject> --map \u003Cmap.json>\n```\n\n`selftest` is available only in the full upstream checkout. This catalog bundle intentionally omits the\nupstream test fixtures and exits with status 2 rather than reporting a false pass.\n\n## Examples\n\n### Example 1: A failing test suite with 3,000 lines of output\n\n```bash\npytest > test.log 2>&1\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py summarize-log --file test.log\n```\n\nThe agent reads the failure lines and their context instead of the whole run, then opens only the\nslice of the saved copy it needs.\n\n### Example 2: Duplicate instruction files\n\n```bash\npython \u003Cskill-dir>\u002Fscripts\u002Fue.py instructions duplicates --project .\n```\n\nLists paragraphs repeated across AGENTS.md, CLAUDE.md and similar files, which would otherwise be\npaid for on every turn.\n\n## Best Practices\n\n- ✅ Keep the path to the full failure output in reports, so nothing is lost by summarizing.\n- ✅ Describe a check as passing only if it ran in this session.\n- ❌ Don't lower test or verification requirements to save tokens.\n- ❌ Don't promise savings from `prepare-context`: in the project's first A\u002FB run a prepared context pack used about 30% more tokens on small tasks.\n\n## Limitations\n\n- Usage audit only reads Codex CLI and OpenCode local data; the other commands work in any agent.\n- Token estimates for oversized tool outputs are approximations, not billing figures.\n- This skill does not replace environment-specific validation, testing, or expert review.\n\n## Security & Safety Notes\n\n- Audit opens rollout JSONL files that can contain chat text and secrets; it extracts metadata without intentionally printing message contents. It does not open auth or cookie files. Treat input logs and all local copies as sensitive; summaries are not secret-redacted.\n- Output files go to `~\u002F.usage-engineer` (override with `UE_STATE_DIR`) unless `--out` is given; printed paths start with `%HOME%` for the redacted home directory.\n- `apply-profile` and `rollback` write configuration files only when explicitly invoked. Review their exact destinations first; bundled profile\u002Fbenchmark fixtures are omitted. Audit and map commands do not change model or agent settings.\n\n## Related Skills\n\n- `context-compression` - broader techniques for shrinking context.\n",{"name":5,"risk":25,"tags":44,"tools":48,"author":52,"source":31,"license":14,"category":53,"date_added":54,"description":7,"source_repo":55,"source_type":31,"license_source":56},[45,22,36,38,46,47],"tokens","cost","codex",[49,47,50,51,35],"claude","cursor","gemini","noamshorts22-prog","productivity","2026-10-21","noamshorts22-prog\u002Fusage-engineer","https:\u002F\u002Fgithub.com\u002Fnoamshorts22-prog\u002Fusage-engineer\u002Fblob\u002Fmain\u002FLICENSE","7bf2279c8a65758319526a721d5c4b75683aec9c","skills\u002Fantigravity-usage-engineer",3,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections","https:\u002F\u002Fgithub.com\u002Fboisenoise","2026-11-14 14:18:11",{"source":8,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add boisenoise\u002Fskills-collections --skill usage-engineer",{"tool":69,"command":70},"bunx","bunx skills add boisenoise\u002Fskills-collections --skill usage-engineer",{"tool":72,"command":73},"pnpm","pnpm dlx skills add boisenoise\u002Fskills-collections --skill usage-engineer","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-usage-engineer\u002FSKILL.md",true,[77],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fue.py","SCRIPT","脚本",73176,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-usage-engineer\u002Fscripts\u002Fue.py",[84,93,101,110,118,126],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":92},"01M7B6HREHB53EHGGVZND7DDXN","scrapely-scrape","Collect web data with ready-made Scrape.ly scrapers: Google Maps places, Amazon products, LinkedIn jobs, reviews, social posts. Use when the user wants structured data from a site.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-scrapely-scrape\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":97,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":92},"01M7B6GDNNN4HE662KA6KPF7GW","lumify-odds","Lumify's hosted sports MCP\u002FREST API for sportsbook odds, line-movement history, public betting splits, and player props across MLB, NFL, NBA, NHL, soccer, tennis, NCAAF, NCAAB. Read-only market data.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-lumify-odds\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":109},"01M743PZMJW2GEKG5J199GPSK7","sync-lipsync","Lip-sync an existing video of a real person to new audio or a typed script with sync. labs through its hosted MCP server, quoting the cost and waiting for approval first.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-sync-lipsync\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":114,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":109},"01M743MMN3CKTJVNRSZMB684E5","music-for-robots","Optional music-inspired creative exercise for multimodal agents. Ingests an unquantized acoustic MP3 composition by Michael Luchtan (Music For Robots) into a private temporary directory, analyzing microtiming and texture to inspire creative writing, brainstorming, or technical tasks.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-music-for-robots\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":122,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":109},"01M743KC2GN5WE11BSTWSSWD8B","imagera-media","Generate or edit images, video clips, voiceovers and music through the hosted Imagera MCP server, quoting the credit cost and getting approval before each paid call.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-imagera-media\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":6,"description":129,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":130,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":109},"01M743HDJNZQA8A4VT68NWGWQJ","deja-history","Search this machine's past AI coding sessions across Claude Code, Codex, Cursor, Gemini CLI and thirty-nine other agents before editing, debugging, or denying something exists.","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Fantigravity-deja-history\u002FSKILL.md",[],[]]