[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SKEZSFHJWSFM4JY9Q3V4S":3,"skill-same:01M76SKEZSFHJWSFM4JY9Q3V4S":133},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M76SKEZSFHJWSFM4JY9Q3V4S","environments-manager",null,"Set up per-worktree environments for Claude Code, Cursor, or Codex. Use for worktree-ready repos, IDE environment config, worktree-up\u002Fdown scripts, or dev.sh wiring.","zuzu59\u002Fz-skills","zuzu59","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F15345233?v=4","01M756RFXRYFCM8DCAHTP0F5YW","Christian Zufferey","01M756RFYZRYH7F070CKQRMW38",0,"MIT","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: environments-manager\ndescription: Set up per-worktree environments for Claude Code, Cursor, or Codex. Use for worktree-ready repos, IDE environment config, worktree-up\u002Fdown scripts, or dev.sh wiring.\ndisable-model-invocation: true\nuser-invocable: true\n---\n\nAsk before writing. Use the host's question UI. Shared logic lives in `scripts\u002F*.sh`; IDE configs only point at those files. Read a matching `examples\u002F` file before writing, then adapt.\n\n1. Ask what a fresh worktree should do (multi-select): copy ignored env files; install deps; isolate or seed a data backend; run codegen. Capture extra project steps in one follow-up.\n2. Ask the backend. PostgreSQL → [postgresql.md](references\u002Fpostgresql.md). Convex → [convex.md](references\u002Fconvex.md). None → skip isolation. Any other backend: research official docs and an in-repo example; do not guess CLI flags; summarize before editing.\n3. Ask which IDEs to wire (Claude Code, Cursor, Codex). Generate `scripts\u002F` once. Then load [claude.md](references\u002Fclaude.md), [cursor.md](references\u002Fcursor.md), and\u002For [codex.md](references\u002Fcodex.md) for linking config only.\n\nRequired files: `scripts\u002Fworktree-up.sh`, `scripts\u002Fworktree-down.sh`, `scripts\u002Fdev.sh` (all must end in `.sh`). Put them on the source checkout, not only the current worktree.\n\nResolve paths as `WORKTREE_PATH=\"${CODEX_WORKTREE_PATH:-${CURSOR_WORKTREE_PATH:-$(pwd)}}\"` and `SOURCE_PATH=\"${CODEX_SOURCE_TREE_PATH:-${ROOT_WORKTREE_PATH:-}}\"`. Claude: use `WorktreeCreate`, never `SessionStart`; the wrapper adds the worktree then runs `worktree-up.sh` with `ROOT_WORKTREE_PATH` — see [claude.md](references\u002Fclaude.md). Hook wrappers must survive a missing `\u002Fdev\u002Ftty`, a wrong default Node version, and CLI prompts.\n\n`worktree-up.sh` is idempotent: `set -euo pipefail`, cd to the worktree, then the selected steps in order. Prefer `.worktreeinclude` for Claude env copy. Detect the lockfile for install. Read resource names from env\u002Fconfig or setup metadata; never invent them from branch names. Provide a reset escape hatch via `\u003CPROJECT>_RESET_\u003CRESOURCE>=1`.\n\n`worktree-down.sh` cleans only resources this setup created. Missing tools: print one line and exit 0.\n\n`dev.sh` picks a free port from `${DEV_PORT_START:-3910}`. Never hardcode a port.\n\nNever commit or log secrets. Never embed multi-line programs in IDE config. Never destroy or import production data unless the user set an override env var. Put this guard in any import\u002Freplay helper:\n\n```bash\nassert_non_prod_ref() {\n  case \"$1\" in\n    prod|prod:*|prod\u002F*|production|production:*|production\u002F*)\n      echo \"refusing prod source: $1\" >&2; exit 1 ;;\n    *prod*|*production*)\n      [ \"${ALLOW_PROD_SOURCE:-0}\" = \"1\" ] || { echo \"looks like prod: $1\" >&2; exit 1; } ;;\n  esac\n}\n```\n\nExpose Dev, typecheck, unit tests, and lint through the IDE; add E2E only if cheap.\n\nAfter writing: `bash -n` the three scripts, `git status --short`, and parse generated TOML\u002FJSON when those files exist.\n","Ask before writing. Use the host's question UI. Shared logic lives in `scripts\u002F*.sh`; IDE configs only point at those files. Read a matching `examples\u002F` file before writing, then adapt.\n\n1. Ask what a fresh worktree should do (multi-select): copy ignored env files; install deps; isolate or seed a data backend; run codegen. Capture extra project steps in one follow-up.\n2. Ask the backend. PostgreSQL → [postgresql.md](references\u002Fpostgresql.md). Convex → [convex.md](references\u002Fconvex.md). None → skip isolation. Any other backend: research official docs and an in-repo example; do not guess CLI flags; summarize before editing.\n3. Ask which IDEs to wire (Claude Code, Cursor, Codex). Generate `scripts\u002F` once. Then load [claude.md](references\u002Fclaude.md), [cursor.md](references\u002Fcursor.md), and\u002For [codex.md](references\u002Fcodex.md) for linking config only.\n\nRequired files: `scripts\u002Fworktree-up.sh`, `scripts\u002Fworktree-down.sh`, `scripts\u002Fdev.sh` (all must end in `.sh`). Put them on the source checkout, not only the current worktree.\n\nResolve paths as `WORKTREE_PATH=\"${CODEX_WORKTREE_PATH:-${CURSOR_WORKTREE_PATH:-$(pwd)}}\"` and `SOURCE_PATH=\"${CODEX_SOURCE_TREE_PATH:-${ROOT_WORKTREE_PATH:-}}\"`. Claude: use `WorktreeCreate`, never `SessionStart`; the wrapper adds the worktree then runs `worktree-up.sh` with `ROOT_WORKTREE_PATH` — see [claude.md](references\u002Fclaude.md). Hook wrappers must survive a missing `\u002Fdev\u002Ftty`, a wrong default Node version, and CLI prompts.\n\n`worktree-up.sh` is idempotent: `set -euo pipefail`, cd to the worktree, then the selected steps in order. Prefer `.worktreeinclude` for Claude env copy. Detect the lockfile for install. Read resource names from env\u002Fconfig or setup metadata; never invent them from branch names. Provide a reset escape hatch via `\u003CPROJECT>_RESET_\u003CRESOURCE>=1`.\n\n`worktree-down.sh` cleans only resources this setup created. Missing tools: print one line and exit 0.\n\n`dev.sh` picks a free port from `${DEV_PORT_START:-3910}`. Never hardcode a port.\n\nNever commit or log secrets. Never embed multi-line programs in IDE config. Never destroy or import production data unless the user set an override env var. Put this guard in any import\u002Freplay helper:\n\n```bash\nassert_non_prod_ref() {\n  case \"$1\" in\n    prod|prod:*|prod\u002F*|production|production:*|production\u002F*)\n      echo \"refusing prod source: $1\" >&2; exit 1 ;;\n    *prod*|*production*)\n      [ \"${ALLOW_PROD_SOURCE:-0}\" = \"1\" ] || { echo \"looks like prod: $1\" >&2; exit 1; } ;;\n  esac\n}\n```\n\nExpose Dev, typecheck, unit tests, and lint through the IDE; add E2E only if cheap.\n\nAfter writing: `bash -n` the three scripts, `git status --short`, and parse generated TOML\u002FJSON when those files exist.\n",{"name":5,"description":7,"user-invocable":24,"disable-model-invocation":24},true,"master","46a82833a3f7f6f5f408511246a55e0485c5f7ab","skills\u002Fenvironments-manager",1,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills","https:\u002F\u002Fgithub.com\u002Fzuzu59","2026-09-30 17:58:42",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add zuzu59\u002Fz-skills --skill environments-manager",{"tool":38,"command":39},"bunx","bunx skills add zuzu59\u002Fz-skills --skill environments-manager",{"tool":41,"command":42},"pnpm","pnpm dlx skills add zuzu59\u002Fz-skills --skill environments-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002FSKILL.md",[45,51,57,63,67,71,75,79,83,87,91,97,101,105,109,113,117,121,125,129],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",355,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"assets\u002Fcodex-icon.svg","ASSET","资产文件",718,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fassets\u002Fcodex-icon.svg",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"examples\u002Fclaude\u002F.worktreeinclude","OTHER","其他",39,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002F.worktreeinclude",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"examples\u002Fclaude\u002Fcommands\u002Fdev.md",172,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002Fcommands\u002Fdev.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"examples\u002Fclaude\u002Fcommands\u002Flint.md",140,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002Fcommands\u002Flint.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"examples\u002Fclaude\u002Fcommands\u002Ftest.md",161,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002Fcommands\u002Ftest.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"examples\u002Fclaude\u002Fcommands\u002Ftypecheck.md",196,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002Fcommands\u002Ftypecheck.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"examples\u002Fclaude\u002Fsettings.json",448,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fclaude\u002Fsettings.json",{"path":84,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":85,"sourceHtmlUrl":86},"examples\u002Fcodex\u002Fenvironments\u002Fenvironment.toml",504,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fcodex\u002Fenvironments\u002Fenvironment.toml",{"path":88,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":89,"sourceHtmlUrl":90},"examples\u002Fcursor\u002Fworktrees.json",57,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fcursor\u002Fworktrees.json",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"examples\u002Fscripts\u002Fclaude-worktree-create.sh","SCRIPT","脚本",3144,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fscripts\u002Fclaude-worktree-create.sh",{"path":98,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":99,"sourceHtmlUrl":100},"examples\u002Fscripts\u002Fclaude-worktree-remove.sh",2461,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fscripts\u002Fclaude-worktree-remove.sh",{"path":102,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":103,"sourceHtmlUrl":104},"examples\u002Fscripts\u002Fdev.sh",397,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fscripts\u002Fdev.sh",{"path":106,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":107,"sourceHtmlUrl":108},"examples\u002Fscripts\u002Fworktree-down.sh",517,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fscripts\u002Fworktree-down.sh",{"path":110,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":111,"sourceHtmlUrl":112},"examples\u002Fscripts\u002Fworktree-up.sh",1230,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Fexamples\u002Fscripts\u002Fworktree-up.sh",{"path":114,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":115,"sourceHtmlUrl":116},"references\u002Fclaude.md",9042,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Freferences\u002Fclaude.md",{"path":118,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":119,"sourceHtmlUrl":120},"references\u002Fcodex.md",2764,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Freferences\u002Fcodex.md",{"path":122,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":123,"sourceHtmlUrl":124},"references\u002Fconvex.md",6445,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Freferences\u002Fconvex.md",{"path":126,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":127,"sourceHtmlUrl":128},"references\u002Fcursor.md",3154,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Freferences\u002Fcursor.md",{"path":130,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":131,"sourceHtmlUrl":132},"references\u002Fpostgresql.md",3283,"https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fenvironments-manager\u002Freferences\u002Fpostgresql.md",[134,141,148,155,162,169],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M76SQGVSKRYNQX4AA4RXV3K0","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":19},"01M76SQDSAZSA1272D56JY8Q2G","use-style","Apply named visual style guides to landing pages, app shells, and UI. Use for $use-style, \u002Fuseskill, list styles, or styles like ios-app, grid, vercel, black-grid, stripe, linear, raycast, gumroad, dusk, or luma.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-style\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":19},"01M76SQAXDVX02V4JH4PF1MC9G","use-goal","Use when the user asks to create, draft, set, start, or refine a Codex or Claude Code `\u002Fgoal` objective for persistent multi-turn work.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-goal\u002FSKILL.md",[],[],{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":161,"publishedAt":19},"01M76SQ8B11GTTGQ5CZHHGXFXM","use-fable","Orchestrator mode for Fable: Fable thinks, plans, and reviews while Codex CLI and subagents execute all heavy work. Use when the user invokes \u002Fuse-fable, says 'use fable', 'fable mode', 'orchestrator mode', or wants to save Fable tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-fable\u002FSKILL.md",[],[],{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":168,"publishedAt":19},"01M76SQ4SB7Q4CXEGGPA75KGFK","use-delegate","Delegation mode: the host agent (Claude or Codex) plans and reviews while heavy work runs on cheap executors: OpenCode Kimi K3, Codex GPT-5.6 terra\u002Fsol. Use when the user invokes \u002Fuse-delegate, says 'use delegate', 'delegate mode', 'orchestrator mode', or wants to save tokens\u002Frate limits.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-delegate\u002FSKILL.md",[],[],{"skillNo":170,"name":171,"nameZh":6,"description":172,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":173,"categories":174,"keywords":175,"publishedAt":19},"01M76SQ24836GDGMGGPV6Z2B7N","use-artifacts","Create Claude-style local HTML artifacts under ~\u002F.agents\u002Fartifacts. Use for plans, prototypes, visualizations, dashboards, diagrams, options, or substantial reusable content, with a portable local runtime and no Anthropic API.","https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fuse-artifacts\u002FSKILL.md",[],[]]