一键导入
devenv-module-edits
Use when you edited a modules/ file, devenv.nix, or env.* and nothing changed. Resolves the lock + eval-cache staleness loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you edited a modules/ file, devenv.nix, or env.* and nothing changed. Resolves the lock + eval-cache staleness loop.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when writing a scripts/tasks/processes entry or a manager module. Covers which surface to use, guarding enterShell echoes, and the 0/1/2/3 exit contract.
Use when editing devenv.yaml or adding an input/import. Covers flake:false for modules, nixpkgs-python for version pins, and transitive inputs.
Use when starting a server or any long-running / heavy task. Use processes + devenv up; don't block the shell; poll logs instead of piping out of view.
Use on ModuleNotFoundError or import failures inside the devenv shell, or after a fresh venv. The venv exists but deps may not be installed.
Use when about to run pytest, python, uv, ruff, or any build/tooling command in this repo. Enforces running through the devenv shell.
Use on "command not found", the shell won't enter, or eval errors. A symptom→cause→fix decision tree for devenv repos.
| name | devenv-module-edits |
| description | Use when you edited a modules/ file, devenv.nix, or env.* and nothing changed. Resolves the lock + eval-cache staleness loop. |
| auto_trigger | {"keywords":["nothing changed","module edit","edited devenv.nix","no effect","stale","rebuild devenv","eval cache","devenv.lock","module not picked up"]} |
A .nix edit that has no effect is almost always a stale cache. There are two layers; pick by
what you edited:
Edited this repo's own devenv.nix / env.* → stale eval cache:
devenv shell --refresh-eval-cache -- <cmd> # or: rm -rf .devenv
Edited a module this repo imports by path (it's pinned in devenv.lock) → re-lock it:
rm -f devenv.lock # re-locks on next entry
devenv update <input> # surgical: re-lock one input
Don't know which → reset both and re-enter:
rm -f devenv.lock && rm -rf .devenv
Grep-able summary: lock-and-cache.md. The three-situation walkthrough (consumer pin vs local
module vs input update): the the-lock-cache-loop.md article.
For when in the lifecycle to rebuild vs. verify vs. commit, see the repoman skill.