forked from bchanot/claude
chore(ctx7): single surface — installer purges context7.md rule, find-docs skill kept (BDR-053, job1-F10/job2-F13)
This commit is contained in:
+6
-2
@@ -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 &>/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
|
||||
|
||||
|
||||
+6
-4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user