[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M76SJWSAB90D77VAYF8TR1KA":3,"skill-same:01M76SJWSAB90D77VAYF8TR1KA":45},{"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},"01M76SJWSAB90D77VAYF8TR1KA","codex-environment",null,"Create, inspect, or repair Codex app Local Environment configuration for worktrees, including .codex\u002Fenvironments\u002Fenvironment.toml, setup and cleanup scripts, worktree up\u002Fdown scripts, copied env files, isolated databases, and reusable app actions.","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\u002Fcodex-environment\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: codex-environment\ndescription: Create, inspect, or repair Codex app Local Environment configuration for worktrees, including .codex\u002Fenvironments\u002Fenvironment.toml, setup and cleanup scripts, worktree up\u002Fdown scripts, copied env files, isolated databases, and reusable app actions.\ndisable-model-invocation: true\nallow_implicit_invocation: false\n---\n\n# Codex Environment\n\nUse this skill when the user asks about Codex Local Environments, worktree setup scripts, cleanup scripts, Codex actions, `.codex\u002Fenvironments\u002Fenvironment.toml`, `CODEX_WORKTREE_PATH`, `CODEX_SOURCE_TREE_PATH`, or making a worktree ready to run.\n\n## What We Learned\n\n- Codex app Local Environments are project config, not one-off terminal commands.\n- The shareable config lives at `.codex\u002Fenvironments\u002Fenvironment.toml` at the project root.\n- Setup scripts run when Codex creates a new worktree for a new thread.\n- Cleanup scripts run before Codex cleans up the worktree.\n- Actions appear in the Codex app top bar and run in the integrated terminal.\n- Worktrees only contain checked-in files, so ignored files like `.env` must be copied or recreated by setup.\n- Prefer short setup\u002Fcleanup entries that call versioned project scripts instead of long inline shell.\n- Keep executable entrypoints in `scripts\u002F`, for example `scripts\u002Fworktree-up` and `scripts\u002Fworktree-down`.\n- Keep `.codex` focused on Codex config; keep operational logic in `scripts\u002F`.\n- Do not commit secrets. It is fine for setup to copy ignored env files locally.\n- For projects with local databases, setup should create a worktree-specific DB name and rewrite the copied `.env` to point to it.\n- Cleanup should drop only the worktree-specific databases and remove copied local env files.\n- Use `CODEX_SOURCE_TREE_PATH` for the original project checkout and `CODEX_WORKTREE_PATH` for the new worktree when available.\n\n## Preferred Shape\n\nCreate or update:\n\n```text\n.codex\u002F\n└── environments\u002F\n    └── environment.toml\nscripts\u002F\n├── worktree-up\n├── worktree-down\n├── codex-dev.sh\n└── project-specific helpers...\n```\n\nUse this `environment.toml` pattern:\n\n```toml\n# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY\nversion = 1\nname = \"Project Worktree\"\n\n[setup]\nscript = \"cd \\\"$CODEX_WORKTREE_PATH\\\"\\nscripts\u002Fworktree-up\"\n\n[cleanup]\nscript = \"cd \\\"$CODEX_WORKTREE_PATH\\\"\\nscripts\u002Fworktree-down\"\n\n[[actions]]\nname = \"Dev\"\nicon = \"tool\"\ncommand = \"scripts\u002Fcodex-dev.sh\"\n\n[[actions]]\nname = \"Typecheck\"\nicon = \"tool\"\ncommand = \"pnpm ts\"\n\n[[actions]]\nname = \"Unit tests\"\nicon = \"tool\"\ncommand = \"pnpm test:ci\"\n\n[[actions]]\nname = \"Lint\"\nicon = \"tool\"\ncommand = \"pnpm lint:ci\"\n```\n\nKeep setup script content small:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\nscripts\u002Fmake-worktree-ready.sh\n```\n\nKeep cleanup script content small:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\nscripts\u002Fworktree-db-down.sh\n```\n\n## Setup Script Rules\n\nWhen writing `scripts\u002Fworktree-up` or its helper:\n\n- Start with `set -euo pipefail`.\n- `cd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"` before touching files.\n- Locate the source checkout with `CODEX_SOURCE_TREE_PATH`, then a project-specific fallback like `$HOME\u002FDeveloper\u002Fsaas\u002F\u003Crepo>`.\n- Copy ignored env files from source to worktree, usually `.env`, `.env.local`, and `.env.development.local`.\n- Prefer project package manager conventions, for example `pnpm install`, never `npm install` in a pnpm repo.\n- Create a deterministic worktree DB name from the branch or target worktree, replacing `\u002F` with `-`.\n- Rewrite only DB-related env values in the copied `.env`.\n- Run project generation steps needed after env setup, for example `pnpm prisma:generate`.\n- Make reruns idempotent. If the DB already exists, skip import unless a reset env var is set.\n- Add an explicit reset escape hatch such as `LUMAIL_RESET_DB=1`.\n\n## Cleanup Script Rules\n\nWhen writing `scripts\u002Fworktree-down` or its helper:\n\n- Read DB names from the worktree `.env`, not from guessed branch names.\n- Drop only the DBs referenced by the worktree env.\n- Use `dropdb --if-exists` and a maintenance database.\n- Remove copied local env files from the worktree after DB cleanup.\n- If env files or PostgreSQL tools are missing, exit cleanly with a short message.\n\n## Actions\n\nUse actions for commands the user will run often:\n\n- `Dev`: start the app, ideally via a script that finds a free port.\n- `Typecheck`: `pnpm ts`, `npm run typecheck`, or equivalent.\n- `Unit tests`: the project unit test command.\n- `Lint`: the CI lint command.\n- `E2E`: optional, only if it is not too expensive\u002Fnoisy for a quick action.\n\nFor dev servers, prefer a script like:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\n\nport=\"${CODEX_DEV_PORT_START:-3910}\"\nwhile lsof -nP -iTCP:\"$port\" -sTCP:LISTEN >\u002Fdev\u002Fnull 2>&1; do\n  port=$((port + 1))\ndone\n\necho \"Starting app on http:\u002F\u002Flocalhost:$port\"\nexec pnpm dev -p \"$port\"\n```\n\n## Verification\n\nAfter editing a Codex environment:\n\n```bash\nbash -n scripts\u002Fworktree-up scripts\u002Fworktree-down\nsed -n '1,220p' .codex\u002Fenvironments\u002Fenvironment.toml\ngit status --short\n```\n\nIf Python 3.11+ is available, validate TOML:\n\n```bash\npython3 - \u003C\u003C'PY'\nimport tomllib\nwith open(\".codex\u002Fenvironments\u002Fenvironment.toml\", \"rb\") as f:\n    tomllib.load(f)\nPY\n```\n\n## Guardrails\n\n- Do not read or write `.conductor` directories.\n- Do not print full env values or secrets in logs; print only DB names or redacted hosts.\n- Do not create duplicate environments when the user already has one; update the existing `.codex\u002Fenvironments\u002Fenvironment.toml`.\n- Do not put large fragile shell programs directly in TOML strings.\n- Do not hardcode a dev port unless the user asks; pick a free port or allow `PORT`.\n- Do not drop databases unless their names come from the worktree env or from an explicit user-provided target.\n- If the environment is meant for future worktrees, ensure the `.codex` config and scripts are present in the source checkout\u002Fmain branch, not only the current Codex worktree.\n\n## Online References\n\n- OpenAI Codex Local Environments: https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fapp\u002Flocal-environments\n- OpenAI Codex Worktrees: https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fapp\u002Fworktrees\n- `CODEX_SOURCE_TREE_PATH` \u002F `CODEX_WORKTREE_PATH` community note: https:\u002F\u002Fzenn.dev\u002Froute06\u002Farticles\u002Fc1f686b4479957\n- Codex app environment TOML practice note: https:\u002F\u002Fzenn.dev\u002Fdevneko\u002Farticles\u002F8a5f6f44adf606\n","# Codex Environment\n\nUse this skill when the user asks about Codex Local Environments, worktree setup scripts, cleanup scripts, Codex actions, `.codex\u002Fenvironments\u002Fenvironment.toml`, `CODEX_WORKTREE_PATH`, `CODEX_SOURCE_TREE_PATH`, or making a worktree ready to run.\n\n## What We Learned\n\n- Codex app Local Environments are project config, not one-off terminal commands.\n- The shareable config lives at `.codex\u002Fenvironments\u002Fenvironment.toml` at the project root.\n- Setup scripts run when Codex creates a new worktree for a new thread.\n- Cleanup scripts run before Codex cleans up the worktree.\n- Actions appear in the Codex app top bar and run in the integrated terminal.\n- Worktrees only contain checked-in files, so ignored files like `.env` must be copied or recreated by setup.\n- Prefer short setup\u002Fcleanup entries that call versioned project scripts instead of long inline shell.\n- Keep executable entrypoints in `scripts\u002F`, for example `scripts\u002Fworktree-up` and `scripts\u002Fworktree-down`.\n- Keep `.codex` focused on Codex config; keep operational logic in `scripts\u002F`.\n- Do not commit secrets. It is fine for setup to copy ignored env files locally.\n- For projects with local databases, setup should create a worktree-specific DB name and rewrite the copied `.env` to point to it.\n- Cleanup should drop only the worktree-specific databases and remove copied local env files.\n- Use `CODEX_SOURCE_TREE_PATH` for the original project checkout and `CODEX_WORKTREE_PATH` for the new worktree when available.\n\n## Preferred Shape\n\nCreate or update:\n\n```text\n.codex\u002F\n└── environments\u002F\n    └── environment.toml\nscripts\u002F\n├── worktree-up\n├── worktree-down\n├── codex-dev.sh\n└── project-specific helpers...\n```\n\nUse this `environment.toml` pattern:\n\n```toml\n# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY\nversion = 1\nname = \"Project Worktree\"\n\n[setup]\nscript = \"cd \\\"$CODEX_WORKTREE_PATH\\\"\\nscripts\u002Fworktree-up\"\n\n[cleanup]\nscript = \"cd \\\"$CODEX_WORKTREE_PATH\\\"\\nscripts\u002Fworktree-down\"\n\n[[actions]]\nname = \"Dev\"\nicon = \"tool\"\ncommand = \"scripts\u002Fcodex-dev.sh\"\n\n[[actions]]\nname = \"Typecheck\"\nicon = \"tool\"\ncommand = \"pnpm ts\"\n\n[[actions]]\nname = \"Unit tests\"\nicon = \"tool\"\ncommand = \"pnpm test:ci\"\n\n[[actions]]\nname = \"Lint\"\nicon = \"tool\"\ncommand = \"pnpm lint:ci\"\n```\n\nKeep setup script content small:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\nscripts\u002Fmake-worktree-ready.sh\n```\n\nKeep cleanup script content small:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\nscripts\u002Fworktree-db-down.sh\n```\n\n## Setup Script Rules\n\nWhen writing `scripts\u002Fworktree-up` or its helper:\n\n- Start with `set -euo pipefail`.\n- `cd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"` before touching files.\n- Locate the source checkout with `CODEX_SOURCE_TREE_PATH`, then a project-specific fallback like `$HOME\u002FDeveloper\u002Fsaas\u002F\u003Crepo>`.\n- Copy ignored env files from source to worktree, usually `.env`, `.env.local`, and `.env.development.local`.\n- Prefer project package manager conventions, for example `pnpm install`, never `npm install` in a pnpm repo.\n- Create a deterministic worktree DB name from the branch or target worktree, replacing `\u002F` with `-`.\n- Rewrite only DB-related env values in the copied `.env`.\n- Run project generation steps needed after env setup, for example `pnpm prisma:generate`.\n- Make reruns idempotent. If the DB already exists, skip import unless a reset env var is set.\n- Add an explicit reset escape hatch such as `LUMAIL_RESET_DB=1`.\n\n## Cleanup Script Rules\n\nWhen writing `scripts\u002Fworktree-down` or its helper:\n\n- Read DB names from the worktree `.env`, not from guessed branch names.\n- Drop only the DBs referenced by the worktree env.\n- Use `dropdb --if-exists` and a maintenance database.\n- Remove copied local env files from the worktree after DB cleanup.\n- If env files or PostgreSQL tools are missing, exit cleanly with a short message.\n\n## Actions\n\nUse actions for commands the user will run often:\n\n- `Dev`: start the app, ideally via a script that finds a free port.\n- `Typecheck`: `pnpm ts`, `npm run typecheck`, or equivalent.\n- `Unit tests`: the project unit test command.\n- `Lint`: the CI lint command.\n- `E2E`: optional, only if it is not too expensive\u002Fnoisy for a quick action.\n\nFor dev servers, prefer a script like:\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\ncd \"${CODEX_WORKTREE_PATH:-$(pwd)}\"\n\nport=\"${CODEX_DEV_PORT_START:-3910}\"\nwhile lsof -nP -iTCP:\"$port\" -sTCP:LISTEN >\u002Fdev\u002Fnull 2>&1; do\n  port=$((port + 1))\ndone\n\necho \"Starting app on http:\u002F\u002Flocalhost:$port\"\nexec pnpm dev -p \"$port\"\n```\n\n## Verification\n\nAfter editing a Codex environment:\n\n```bash\nbash -n scripts\u002Fworktree-up scripts\u002Fworktree-down\nsed -n '1,220p' .codex\u002Fenvironments\u002Fenvironment.toml\ngit status --short\n```\n\nIf Python 3.11+ is available, validate TOML:\n\n```bash\npython3 - \u003C\u003C'PY'\nimport tomllib\nwith open(\".codex\u002Fenvironments\u002Fenvironment.toml\", \"rb\") as f:\n    tomllib.load(f)\nPY\n```\n\n## Guardrails\n\n- Do not read or write `.conductor` directories.\n- Do not print full env values or secrets in logs; print only DB names or redacted hosts.\n- Do not create duplicate environments when the user already has one; update the existing `.codex\u002Fenvironments\u002Fenvironment.toml`.\n- Do not put large fragile shell programs directly in TOML strings.\n- Do not hardcode a dev port unless the user asks; pick a free port or allow `PORT`.\n- Do not drop databases unless their names come from the worktree env or from an explicit user-provided target.\n- If the environment is meant for future worktrees, ensure the `.codex` config and scripts are present in the source checkout\u002Fmain branch, not only the current Codex worktree.\n\n## Online References\n\n- OpenAI Codex Local Environments: https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fapp\u002Flocal-environments\n- OpenAI Codex Worktrees: https:\u002F\u002Fdevelopers.openai.com\u002Fcodex\u002Fapp\u002Fworktrees\n- `CODEX_SOURCE_TREE_PATH` \u002F `CODEX_WORKTREE_PATH` community note: https:\u002F\u002Fzenn.dev\u002Froute06\u002Farticles\u002Fc1f686b4479957\n- Codex app environment TOML practice note: https:\u002F\u002Fzenn.dev\u002Fdevneko\u002Farticles\u002F8a5f6f44adf606\n",{"name":5,"description":7,"disable-model-invocation":24,"allow_implicit_invocation":20},true,"master","46a82833a3f7f6f5f408511246a55e0485c5f7ab","skills\u002Fcodex-environment",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 codex-environment",{"tool":38,"command":39},"bunx","bunx skills add zuzu59\u002Fz-skills --skill codex-environment",{"tool":41,"command":42},"pnpm","pnpm dlx skills add zuzu59\u002Fz-skills --skill codex-environment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzuzu59\u002Fz-skills\u002Fblob\u002Fmaster\u002Fskills\u002Fcodex-environment\u002FSKILL.md",[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"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":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"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":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"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":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"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":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"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":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"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",[],[]]