Repository navigation
Install Codex skills only to .agents/skills; stop duplicating them in ~/.codex/skills - #98
Conversation
Current Codex reads both ~/.agents/skills and ~/.codex/skills, so the global install listed every cc-* skill twice. The installers now write to .agents/skills alone and, on a global Codex install, handle this toolkit's earlier copies in ~/.codex/skills: without --force they are named with the command to remove them; with --force (always passed by get.sh/get.ps1) they are removed. Other skills and links are left alone. Closes #78
[CCR-20260925-001] · reviewer · openai/gpt-6-sol→? · high · schema:1Review summaryThe change matches issue #78: global Codex installs now use Findings[REV-001] · low · open · - · blocks:no — Forced cleanup can delete customized same-name skillsPath: When Security triageNo Verification
CIAll reported checks passed on the reviewed PR head: Residual riskShellCheck and PowerShell were not run locally; CI passed the Bash installer job (including ShellCheck) and both PowerShell installer runs. The review and security audit found no other actionable issues. VerdictAPPROVED — the only open finding is low severity and does not block approval. |
Closes #78
Work item: #78
What changed
install.sh,install.ps1): a Codex install writes the skills to.agents/skillsonly, in both scopes. The.codex/skillscopy is gone.~/.codex/skills:--force/-Force: a warning names the duplicates and gives the removal command; nothing is removed;--force/-Force(always passed byget.sh/get.ps1): they are removed.Other directories are never touched. Links are refused, not followed: a linked
~/.codex,~/.codex/skills(e.g. pointing to~/.agents/skills, which would otherwise delete the fresh copy) or linked skill entry is left alone with a warning. The refusal is a warning rather than a failure because the installation itself is already complete.docs/getting-started.mddestination table (Codex →~/.agents/skills/) plus an installer-behaviour note; a short note in the README install section.[Unreleased]entry telling existing users to remove~/.codex/skills/cc-*or rerun with--force.Tests
tests/test_install_codex.py(Bash installer,HOMEredirected): installs to.agentsand not.codex; with--forcecc-verifyis removed from.codex/skills,other-skillis kept andcc-verifyexists in.agents/skills; without--forcea warning is printed and nothing is removed; linked legacy directory and linked skill entry are left alone.validate.yml: new steps for Bash and PowerShell that pre-create~/.codex/skills/cc-verifyandother-skill, check the warning without force, then assert every expected skill is in~/.agents/skillsand not in~/.codex/skills, and thatother-skillsurvives.Local verification:
python3 scripts/validate-package.py→ VALIDpython3 -m unittest discover -s tests→ 710 tests OKbash -n scripts/install.sh,sh -n scripts/get.sh→ OKNot run locally:
shellcheckand PowerShell (pwshnot installed); both run in CI.