一键导入
yx-sandbox
Use when running yx commands that create, modify, or delete yaks outside of real project work — provides an isolated temp environment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when running yx commands that create, modify, or delete yaks outside of real project work — provides an isolated temp environment
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when writing or reviewing Gherkin features, especially after discovering examples or edge cases that reveal a new business rule
Use when a feature feels under-tested, after implementing new functionality, or before a release to discover edge cases, UX issues, and bugs through hands-on CLI exploration
Pick up ready leaf yaks and implement them — dispatch subagents in isolated worktrees, then merge back to main
Prepare a yak for implementation by establishing spec, acceptance criteria, and breaking into sub-yaks
Discover work structure by approaching goals and finding blockers — emergent planning through action, not top-down decomposition
Use when a yak needs requirements, examples, and a plan before implementation - prepares a yak so it's ready for subagent-driven development
| name | yx-sandbox |
| description | Use when running yx commands that create, modify, or delete yaks outside of real project work — provides an isolated temp environment |
Use a sandbox whenever you need to run yx commands that would
pollute the project's real yak list — exploratory testing, UX
reviews, demos, experiments, etc.
Create a temp directory and capture its literal path:
mktemp -d
# Output: /tmp/tmp.xYz123AbC ← capture this literal path
Prefix every yx command with the env vars using the literal
path from above:
cd /tmp/tmp.xYz123AbC && YX_SKIP_GIT_CHECKS=1 yx <command>
cd /tmp/tmp.xYz123AbC enters the temp sandbox directoryYX_SKIP_GIT_CHECKS=1 avoids git setup requirements in temp dirs.yaks in the current directory when git checks are skippedyx without YX_SKIP_GIT_CHECKS=1 during sandbox workNote: Shell variables don't persist between Bash tool calls.
Always use the literal path, not a variable like $SANDBOX.
rm -rf /tmp/tmp.xYz123AbC
| Mistake | Fix |
|---|---|
Running yx without the prefix | Every command needs both env vars |
Using $SANDBOX variable | Literal path only — vars don't persist between calls |
| Forgetting to clean up | rm -rf <path> when done |