[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AZMFSFZVFBEXTNTDKWKYS4":3,"skill-same:01M7AZMFSFZVFBEXTNTDKWKYS4":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":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M7AZMFSFZVFBEXTNTDKWKYS4","cli-tool-wrapping",null,"Alias colliding CLI; dodge the symlink-clobber write.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fcli-tool-wrapping\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cli-tool-wrapping\ndescription: Alias colliding CLI; dodge the symlink-clobber write.\nversion: 1\nauthor: hermes-agent\nlicense: MIT\nmetadata:\n  hermes:\n    tags: [cli, symlink, alias, node, packaging, devops]\n    related_skills: [hermes-agent, devops-golang-track]\n---\n\n# CLI Tool Wrapping & Symlink Safety\n\n## When to use\n- A tool you're setting up installs a binary whose name collides with an existing system command. Most common real case: **Open Design's `od` CLI vs GNU coreutils `od` at `\u002Fusr\u002Fbin\u002Fod`**.\n- You need a callable name for a tool without shadowing the system binary.\n- You are creating a wrapper script or symlink that points at (or through) a symlink.\n- You must force a specific runtime (e.g. Node 24) regardless of the default `node` on PATH.\n\n## User-endorsed pattern: alias + symlink to a non-colliding name\nDo NOT overwrite or shadow the system binary. Give the tool its own name:\n1. Pick a collision-free name (e.g. `opendesign` for Open Design's `od`).\n2. Put a wrapper or symlink at `~\u002F.local\u002Fbin\u002F\u003Cname>` (confirm `~\u002F.local\u002Fbin` is on PATH: `case \":$PATH:\" in *\":\u002Fhome\u002Fdeeone\u002F.local\u002Fbin:\"*) echo YES;; esac`).\n3. Leave the system binary (`\u002Fusr\u002Fbin\u002Fod`) untouched.\n\nThis is the user's explicit instruction: *\"alias and symlink it to connect it to avoid name collision.\"* It works — the tool becomes callable as `opendesign`, coreutils `od` stays intact.\n\n## CRITICAL PITFALL — the file writer follows symlinks and clobbers the real target\nThe agent's `write_file` (and similar write actions) **resolve symlinks to their final target and overwrite THAT file**. It does NOT create\u002Freplace the symlink itself.\n\n### Verified incident (this session)\nWhile creating `~\u002F.local\u002Fbin\u002Fopendesign` as a wrapper, that path was already a symlink I had just made:\n`~\u002F.local\u002Fbin\u002Fopendesign` → `node_modules\u002F.bin\u002Fod` (symlink) → `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` (the REAL source).\nWriting the wrapper text to `~\u002F.local\u002Fbin\u002Fopendesign` followed the whole chain and **corrupted `od.mjs`** with wrapper content, so every `od`\u002F`opendesign` invocation hung (`exec` of a shell script as if it were an `.mjs`). The write result even reported `resolved_path: ...\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs`, confirming the clobber.\n\n### How to avoid\n- NEVER `write_file` to a path that is (or resolves through) a symlink to a file you must not overwrite.\n- Before writing a wrapper: if a symlink already occupies the target, `rm` the symlink FIRST, then `write_file` the real wrapper file as a plain file, then re-create any symlinks you need elsewhere.\n- If you corrupted a tracked source this way, restore it from VCS: `git checkout -- \u003Cfile>` (it's tracked), then re-link `node_modules\u002F.bin\u002F\u003Cbin>` → the real entry.\n- Diagnose with `sh -x \u003Cwrapper>` — it shows exactly what gets exec'd and surfaces a clobbered entrypoint fast.\n\n### Verifying a wrapper is safe & correct\n- `sh -x \u002Fpath\u002Fto\u002Fwrapper --help` — trace what it execs.\n- Test from an arbitrary cwd with a stripped PATH to prove it forces the right runtime regardless of defaults: `PATH=\"\u002Fusr\u002Fbin:\u002Fbin:\u002Fhome\u002Fdeeone\u002F.local\u002Fbin\" wrapper --help`.\n- Confirm the system binary is untouched: `command -v od` → still `\u002Fusr\u002Fbin\u002Fod`; `od --version` → coreutils, not the tool.\n\n## Wrapper template (forces a specific runtime, avoids collision)\n```sh\n#!\u002Fbin\u002Fsh\n# Forces the runtime the tool requires; does NOT collide with system `od`.\nNODE24=\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin\nexport PATH=\"$NODE24:$PATH\"\nexec \u002Fabs\u002Fpath\u002Fto\u002FREAL\u002Fentrypoint \"$@\"\n```\n- Point `exec` at the **real, restored entrypoint** (e.g. `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` or the package's `bin` field target), NOT a `node_modules\u002F.bin` symlink you might also be editing.\n- Find the real entry: `grep -E '\"bin\"' package.json` (repo root) or `apps\u002F\u003Capp>\u002Fpackage.json`; for Open Design it is `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` and the repo-root bin maps `\"od\": \".\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs\"`.\n\n## Keep system binaries intact — final check\nAlways confirm: `od --version` → `od (GNU coreutils) 9.11`, and the tool is reachable only via its alias (`opendesign --help`).\n","# CLI Tool Wrapping & Symlink Safety\n\n## When to use\n- A tool you're setting up installs a binary whose name collides with an existing system command. Most common real case: **Open Design's `od` CLI vs GNU coreutils `od` at `\u002Fusr\u002Fbin\u002Fod`**.\n- You need a callable name for a tool without shadowing the system binary.\n- You are creating a wrapper script or symlink that points at (or through) a symlink.\n- You must force a specific runtime (e.g. Node 24) regardless of the default `node` on PATH.\n\n## User-endorsed pattern: alias + symlink to a non-colliding name\nDo NOT overwrite or shadow the system binary. Give the tool its own name:\n1. Pick a collision-free name (e.g. `opendesign` for Open Design's `od`).\n2. Put a wrapper or symlink at `~\u002F.local\u002Fbin\u002F\u003Cname>` (confirm `~\u002F.local\u002Fbin` is on PATH: `case \":$PATH:\" in *\":\u002Fhome\u002Fdeeone\u002F.local\u002Fbin:\"*) echo YES;; esac`).\n3. Leave the system binary (`\u002Fusr\u002Fbin\u002Fod`) untouched.\n\nThis is the user's explicit instruction: *\"alias and symlink it to connect it to avoid name collision.\"* It works — the tool becomes callable as `opendesign`, coreutils `od` stays intact.\n\n## CRITICAL PITFALL — the file writer follows symlinks and clobbers the real target\nThe agent's `write_file` (and similar write actions) **resolve symlinks to their final target and overwrite THAT file**. It does NOT create\u002Freplace the symlink itself.\n\n### Verified incident (this session)\nWhile creating `~\u002F.local\u002Fbin\u002Fopendesign` as a wrapper, that path was already a symlink I had just made:\n`~\u002F.local\u002Fbin\u002Fopendesign` → `node_modules\u002F.bin\u002Fod` (symlink) → `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` (the REAL source).\nWriting the wrapper text to `~\u002F.local\u002Fbin\u002Fopendesign` followed the whole chain and **corrupted `od.mjs`** with wrapper content, so every `od`\u002F`opendesign` invocation hung (`exec` of a shell script as if it were an `.mjs`). The write result even reported `resolved_path: ...\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs`, confirming the clobber.\n\n### How to avoid\n- NEVER `write_file` to a path that is (or resolves through) a symlink to a file you must not overwrite.\n- Before writing a wrapper: if a symlink already occupies the target, `rm` the symlink FIRST, then `write_file` the real wrapper file as a plain file, then re-create any symlinks you need elsewhere.\n- If you corrupted a tracked source this way, restore it from VCS: `git checkout -- \u003Cfile>` (it's tracked), then re-link `node_modules\u002F.bin\u002F\u003Cbin>` → the real entry.\n- Diagnose with `sh -x \u003Cwrapper>` — it shows exactly what gets exec'd and surfaces a clobbered entrypoint fast.\n\n### Verifying a wrapper is safe & correct\n- `sh -x \u002Fpath\u002Fto\u002Fwrapper --help` — trace what it execs.\n- Test from an arbitrary cwd with a stripped PATH to prove it forces the right runtime regardless of defaults: `PATH=\"\u002Fusr\u002Fbin:\u002Fbin:\u002Fhome\u002Fdeeone\u002F.local\u002Fbin\" wrapper --help`.\n- Confirm the system binary is untouched: `command -v od` → still `\u002Fusr\u002Fbin\u002Fod`; `od --version` → coreutils, not the tool.\n\n## Wrapper template (forces a specific runtime, avoids collision)\n```sh\n#!\u002Fbin\u002Fsh\n# Forces the runtime the tool requires; does NOT collide with system `od`.\nNODE24=\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin\nexport PATH=\"$NODE24:$PATH\"\nexec \u002Fabs\u002Fpath\u002Fto\u002FREAL\u002Fentrypoint \"$@\"\n```\n- Point `exec` at the **real, restored entrypoint** (e.g. `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` or the package's `bin` field target), NOT a `node_modules\u002F.bin` symlink you might also be editing.\n- Find the real entry: `grep -E '\"bin\"' package.json` (repo root) or `apps\u002F\u003Capp>\u002Fpackage.json`; for Open Design it is `apps\u002Fdaemon\u002Fbin\u002Fod.mjs` and the repo-root bin maps `\"od\": \".\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs\"`.\n\n## Keep system binaries intact — final check\nAlways confirm: `od --version` → `od (GNU coreutils) 9.11`, and the tool is reachable only via its alias (`opendesign --help`).\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"hermes-agent",1,{"hermes":27},{"tags":28,"related_skills":35},[29,30,31,32,33,34],"cli","symlink","alias","node","packaging","devops",[24,36],"devops-golang-track","master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fdevops\u002Fcli-tool-wrapping","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill cli-tool-wrapping",{"tool":50,"command":51},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill cli-tool-wrapping",{"tool":53,"command":54},"pnpm","pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill cli-tool-wrapping","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fcli-tool-wrapping\u002FSKILL.md",true,[58],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fopen-design-cli.md","REFERENCE","参考文档",1416,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fcli-tool-wrapping\u002Freferences\u002Fopen-design-cli.md",[65,72,79,88,95,102],{"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},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\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},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\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":83,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]