You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
disk-hygiene: fix run-directory, fan-out brief and --project-dir wording #5520
Split from #5214. Related: #4215, #4009 (closed; added --sizes-only and the fan-out worker brief).
Changes
skills/clean/SKILL.md:159 says "Create a unique run directory under ${CLAUDE_PLUGIN_DATA}/runs/". The guard denies mkdir, and the engine already creates the parent of --output (write_json calls mkdir(parents=True, exist_ok=True) in hygiene.py). Change the line to "choose a unique run directory path; the engine creates it".
skills/clean/reference/fan-out-worker-brief.md: the scan templates contain literal ${CLAUDE_PLUGIN_ROOT}, ${CLAUDE_PLUGIN_DATA}, ${CLAUDE_PROJECT_DIR} and <hook-python>, which a worker cannot expand because the guard rejects shell expansion. The hook_python/data_root guard-values note comes from a UserPromptExpansion hook that fires only when a person types the command, so no subagent receives it. Either have the parent fill hook_python, data_root, the engine path and the run directory into the brief before spawning, or document a one-call bootstrap through the argument-free kill-switch probe (SKILL.md around lines 115-117 already describes that step for the probe).
The brief says --data-root must match "the plugin data directory the belt authorized". Inside a subagent, the plugin-level engine gate enforces it, not the frontmatter belt. Correct the wording.
--project-dir is optional (standing_policy_paths in hygiene.py skips the project layer when it is absent), but SKILL.md and the brief show --project-dir "${CLAUDE_PROJECT_DIR}" in every template. Add one sentence to the brief saying to omit it when the session's project is not the target, for example a home-directory session.
Acceptance
SKILL.md:159 and the brief carry the corrected wording above.
The brief either has the four values filled by the parent or documents the one-call bootstrap, and states that --project-dir may be omitted.
Activity
docs(disk-hygiene): fix run-directory, fan-out brief and --project-di…
feat(disk-hygiene): add model-invocable read-only audit skill (#5590)