diff --git a/install-plugins.sh b/install-plugins.sh index 7c259ba..7edd35d 100644 --- a/install-plugins.sh +++ b/install-plugins.sh @@ -611,8 +611,7 @@ if command -v ctx7 &>/dev/null; then fi # CLI + Skills mode: install the find-docs skill into ~/.claude/skills when # absent (it is gitignored — ctx7 owns it, this regenerates it on a fresh - # clone). Guarded on absence so a re-run never clobbers a customized config - # (setup also (re)writes ~/.claude/rules/context7.md). + # clone). Guarded on absence so a re-run never clobbers a customized config. if [ ! -f "$HOME/.claude/skills/find-docs/SKILL.md" ]; then if ctx7 setup --claude --cli -y /dev/null; then ok "ctx7 CLI + Skills configured (find-docs skill installed)" @@ -620,6 +619,11 @@ if command -v ctx7 &>/dev/null; then warn "ctx7 setup failed — run manually: ctx7 setup --claude --cli" fi fi + # Single ctx7 surface = the find-docs skill (BDR-053). setup also (re)writes + # ~/.claude/rules/context7.md — a session-start duplicate of the skill + # (~490 tok/session, job1 F10). Purge it unconditionally so re-runs and + # manual `ctx7 setup` invocations stay rule-free. + rm -f "$HOME/.claude/rules/context7.md" info "Standalone usage: ctx7 docs /vercel/next.js \"middleware\"" fi diff --git a/rules/README.md b/rules/README.md index 9346163..c9d8860 100644 --- a/rules/README.md +++ b/rules/README.md @@ -23,9 +23,11 @@ Docs: https://code.claude.com/docs/en/memory.md#path-specific-rules ## Machine-owned files (gitignored, regenerated) -- `context7.md` — written by `ctx7 setup --claude --cli` - (install-plugins.sh STEP ctx7). Not vendored: ctx7 owns its content - and rewrites it on setup; the repo would fight the generator. Same - treatment as `skills/find-docs/`. +- `context7.md` — DELETED BY DESIGN (BDR-053, 2026-07-06): `ctx7 setup + --claude --cli` still writes it, but install-plugins.sh STEP ctx7 + purges it right after — the find-docs skill is the single ctx7 + surface; the rule was a ~490 tok/session session-start duplicate + (job1 F10). If it reappears (manual `ctx7 setup`), delete it or + re-run `make plugin`. Hand-written rules ARE tracked — add them normally.