[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77RZSMZDBNDH4XP3MEEBG7Z":3,"skill-same:01M77RZSMZDBNDH4XP3MEEBG7Z":64},{"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":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":63},"01M77RZSMZDBNDH4XP3MEEBG7Z","precc-token-saver",null,"Before running any shell command, pipe it through the PRECC hook to fix wrong-directory errors, compress CLI output, and apply learned heuristics — saving 34%+ of API token spend automatically.","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\u002Fp\u002Fprecc-token-saver\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: precc-token-saver\ndescription: Before running any shell command, pipe it through the PRECC hook to fix wrong-directory errors, compress CLI output, and apply learned heuristics — saving 34%+ of API token spend automatically.\nversion: 0.1.8\nemoji: ⚡\nuser-invocable: true\ndisable-model-invocation: false\nmetadata:\n  openclaw:\n    emoji: ⚡\n    homepage: https:\u002F\u002Fgithub.com\u002Fyijunyu\u002Fprecc-cc\n    os:\n      - darwin\n      - linux\n    requires:\n      bins:\n        - precc-hook\n        - precc\n    install:\n      - kind: brew\n        tap: yijunyu\u002Ftap\n        formula: precc\n        bins: [precc, precc-hook]\n---\n\n# PRECC Token Saver\n\nPRECC (Predictive Error Correction) intercepts every shell command before it runs.\nIn under 3ms it:\n\n- **Fixes wrong-directory errors** — detects the correct project root and prepends `cd \u002Fcorrect\u002Fpath &&`\n- **Compresses CLI output** — rewrites commands through RTK (60–90% smaller output)\n- **Applies learned skills** — uses patterns mined from past sessions to prevent repeated failures\n- **Translates git→jj** — auto-converts git commands in Jujutsu repos (saves ~40 tokens per `git add`)\n\n**Measured results** (29 real sessions, 5,384 bash calls):\n- 34% cost saving ($296 saved from $878 baseline)\n- 98% of failures prevented (352\u002F358)\n- 2.93ms average hook latency\n\n## How it works in OpenClaw\n\n> **Note:** OpenClaw does not yet have a native `PreToolUse` hook (unlike Claude\n> Code). This skill works via **prompt-level instruction**: the SKILL.md is loaded\n> into the agent's context and the agent is instructed to manually pipe every shell\n> command through `precc-hook` before executing it. Interception is LLM-enforced,\n> not OS-level. A native hook equivalent is tracked in\n> [openclaw\u002Fopenclaw#7597](https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F7597).\n\nWhen PRECC Token Saver is active, the agent follows this pattern for every shell\ncommand it wants to run:\n\n1. Construct the JSON payload for `precc-hook`\n2. Pipe it through `precc-hook` on stdin\n3. Read the (possibly rewritten) command from stdout\n4. Execute the rewritten command instead of the original\n\n```\nAgent wants to run: cargo build\n     ↓\nprecc-hook receives:  {\"tool_input\": {\"command\": \"cargo build\"}}\nprecc-hook outputs:   {\"hookSpecificOutput\": {\"updatedInput\": {\"command\": \"cd \u002Fpath\u002Fto\u002Fproject && rtk cargo build\"}}}\n     ↓\nAgent executes:       cd \u002Fpath\u002Fto\u002Fproject && rtk cargo build\n```\n\n## Setup\n\n```bash\n# Install PRECC\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fyijunyu\u002Fprecc-cc\u002Fmain\u002Fscripts\u002Finstall.sh | bash\n\n# Initialise (one-time)\nprecc init\n\n# Mine existing session history (optional)\nprecc ingest --all\n```\n\n## Commands\n\nOnce the skill is loaded, you can address the agent directly:\n\n- `@precc report` — show token savings and command statistics\n- `@precc skills list` — list active correction skills\n- `@precc update` — update PRECC binaries to the latest release\n- `@precc savings` — show dollar-value savings estimate\n\n## Skill behaviour\n\nThis skill is loaded as a system-level instruction into the agent's context.\nThe agent (not the platform) is responsible for enforcing the hook pattern.\n\nThe agent is instructed to:\n\n1. **Always** route shell\u002Fbash tool calls through `precc-hook` by constructing the\n   hook JSON payload and parsing the response before execution.\n2. **On session start**, run `precc init` if the databases are absent.\n3. **On session end**, optionally run `precc report` and summarise savings.\n4. **Never** skip the hook even for simple commands — the latency is \u003C3ms and the\n   hook is fail-open (any error → original command is used unchanged).\n\n## Hook invocation pattern\n\n```bash\n# Wrap any command through precc-hook:\necho '{\"tool_input\":{\"command\":\"YOUR_COMMAND_HERE\"}}' | precc-hook\n```\n\nParse the JSON response:\n- If `.hookSpecificOutput.updatedInput.command` is non-empty → use it\n- Otherwise → use the original command unchanged\n\n## Advanced: savings report\n\n```bash\nprecc report          # full analytics dashboard\nprecc savings         # dollar-value breakdown\nprecc skills list     # active skills\nprecc skills show \u003Cname>   # detail for one skill\n```\n\n## License\n\nMIT — https:\u002F\u002Fgithub.com\u002Fyijunyu\u002Fprecc-cc\n","# PRECC Token Saver\n\nPRECC (Predictive Error Correction) intercepts every shell command before it runs.\nIn under 3ms it:\n\n- **Fixes wrong-directory errors** — detects the correct project root and prepends `cd \u002Fcorrect\u002Fpath &&`\n- **Compresses CLI output** — rewrites commands through RTK (60–90% smaller output)\n- **Applies learned skills** — uses patterns mined from past sessions to prevent repeated failures\n- **Translates git→jj** — auto-converts git commands in Jujutsu repos (saves ~40 tokens per `git add`)\n\n**Measured results** (29 real sessions, 5,384 bash calls):\n- 34% cost saving ($296 saved from $878 baseline)\n- 98% of failures prevented (352\u002F358)\n- 2.93ms average hook latency\n\n## How it works in OpenClaw\n\n> **Note:** OpenClaw does not yet have a native `PreToolUse` hook (unlike Claude\n> Code). This skill works via **prompt-level instruction**: the SKILL.md is loaded\n> into the agent's context and the agent is instructed to manually pipe every shell\n> command through `precc-hook` before executing it. Interception is LLM-enforced,\n> not OS-level. A native hook equivalent is tracked in\n> [openclaw\u002Fopenclaw#7597](https:\u002F\u002Fgithub.com\u002Fopenclaw\u002Fopenclaw\u002Fissues\u002F7597).\n\nWhen PRECC Token Saver is active, the agent follows this pattern for every shell\ncommand it wants to run:\n\n1. Construct the JSON payload for `precc-hook`\n2. Pipe it through `precc-hook` on stdin\n3. Read the (possibly rewritten) command from stdout\n4. Execute the rewritten command instead of the original\n\n```\nAgent wants to run: cargo build\n     ↓\nprecc-hook receives:  {\"tool_input\": {\"command\": \"cargo build\"}}\nprecc-hook outputs:   {\"hookSpecificOutput\": {\"updatedInput\": {\"command\": \"cd \u002Fpath\u002Fto\u002Fproject && rtk cargo build\"}}}\n     ↓\nAgent executes:       cd \u002Fpath\u002Fto\u002Fproject && rtk cargo build\n```\n\n## Setup\n\n```bash\n# Install PRECC\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fyijunyu\u002Fprecc-cc\u002Fmain\u002Fscripts\u002Finstall.sh | bash\n\n# Initialise (one-time)\nprecc init\n\n# Mine existing session history (optional)\nprecc ingest --all\n```\n\n## Commands\n\nOnce the skill is loaded, you can address the agent directly:\n\n- `@precc report` — show token savings and command statistics\n- `@precc skills list` — list active correction skills\n- `@precc update` — update PRECC binaries to the latest release\n- `@precc savings` — show dollar-value savings estimate\n\n## Skill behaviour\n\nThis skill is loaded as a system-level instruction into the agent's context.\nThe agent (not the platform) is responsible for enforcing the hook pattern.\n\nThe agent is instructed to:\n\n1. **Always** route shell\u002Fbash tool calls through `precc-hook` by constructing the\n   hook JSON payload and parsing the response before execution.\n2. **On session start**, run `precc init` if the databases are absent.\n3. **On session end**, optionally run `precc report` and summarise savings.\n4. **Never** skip the hook even for simple commands — the latency is \u003C3ms and the\n   hook is fail-open (any error → original command is used unchanged).\n\n## Hook invocation pattern\n\n```bash\n# Wrap any command through precc-hook:\necho '{\"tool_input\":{\"command\":\"YOUR_COMMAND_HERE\"}}' | precc-hook\n```\n\nParse the JSON response:\n- If `.hookSpecificOutput.updatedInput.command` is non-empty → use it\n- Otherwise → use the original command unchanged\n\n## Advanced: savings report\n\n```bash\nprecc report          # full analytics dashboard\nprecc savings         # dollar-value breakdown\nprecc skills list     # active skills\nprecc skills show \u003Cname>   # detail for one skill\n```\n\n## License\n\nMIT — https:\u002F\u002Fgithub.com\u002Fyijunyu\u002Fprecc-cc\n",{"name":5,"emoji":24,"version":25,"metadata":26,"description":7,"user-invocable":41,"disable-model-invocation":20},"⚡","0.1.8",{"openclaw":27},{"os":28,"emoji":24,"install":31,"homepage":38,"requires":39},[29,30],"darwin","linux",[32],{"tap":33,"bins":34,"kind":37,"formula":35},"yijunyu\u002Ftap",[35,36],"precc","precc-hook","brew","https:\u002F\u002Fgithub.com\u002Fyijunyu\u002Fprecc-cc",{"bins":40},[36,35],true,"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fp\u002Fprecc-token-saver",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":52,"prompt":62,"zipAvailable":41},[53,56,59],{"tool":54,"command":55},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill precc-token-saver",{"tool":57,"command":58},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill precc-token-saver",{"tool":60,"command":61},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill precc-token-saver","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fp\u002Fprecc-token-saver\u002FSKILL.md",[],[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"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":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},"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":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},"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":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},"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":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},"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":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},"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",[],[]]