ECC/docs/zh-CN/commands
fxdv 8eedcff5ac
fix(commands): resolve active plugin root in /instinct-status (#2037) (#2059)
The `/instinct-status` slash command template expanded
`${CLAUDE_PLUGIN_ROOT}` directly and documented a manual-install
fallback to `~/.claude/skills/continuous-learning-v2/scripts/instinct-cli.py`.
When users had both an active plugin install (under
`~/.claude/plugins/cache/<slug>/<org>/<version>/`) and a legacy
`~/.claude/skills/continuous-learning-v2/` directory left over from a
previous manual install, an empty `CLAUDE_PLUGIN_ROOT` (which Claude
Code does not always populate in slash-command shell contexts) silently
made the command read the stale legacy install while the active plugin
hooks and observer wrote to the new XDG path. The user saw "No
instincts found" while the system was actively learning — exactly the
divergence the bug reporter spent hours diagnosing.

Replace the brittle two-block template with the same inline resolver
pattern that `hooks/hooks.json` and `/sessions` / `/skill-health`
already use: env var → standard install → known plugin roots → plugin
cache walk → fallback. The resolver is the canonical `INLINE_RESOLVE`
constant from `scripts/lib/resolve-ecc-root.js`, so no new code is
introduced — just consistent adoption of the existing pattern.

Apply the same fix to all five copies of the command:
  - commands/instinct-status.md (canonical)
  - .opencode/commands/instinct-status.md
  - docs/zh-CN/commands/instinct-status.md
  - docs/ja-JP/commands/instinct-status.md
  - docs/tr/commands/instinct-status.md

Extend tests/lib/command-plugin-root.test.js with an assertion that the
canonical instinct-status.md uses the inline resolver and no longer
hard-codes the legacy `~/.claude/skills/...` fallback (regression
guard).

zh-CN copy: polish the Chinese phrasing per LanguageTool feedback
(`使用与 ... 相同的解析器` → `以与 ... 相同的解析器`) so the verb is
introduced by an explicit preposition instead of reading as an awkward
verb-object construction.
2026-06-07 13:27:05 +08:00
..
aside.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
auto-update.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
build-fix.md docs(zh-CN): sync Chinese docs with latest upstream changes (#304) 2026-03-02 22:28:27 -08:00
checkpoint.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
claw.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
code-review.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
context-budget.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
cpp-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
cpp-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
cpp-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
devfleet.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
docs.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
e2e.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
eval.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
evolve.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
feature-dev.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-build.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-review.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
flutter-test.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
gan-build.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
gan-design.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
go-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
go-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
go-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
gradle-build.md docs(zh-CN): update 2026-03-13 17:45:44 +08:00
harness-audit.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
hookify-configure.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify-help.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify-list.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
hookify.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
instinct-export.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
instinct-import.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
instinct-status.md fix(commands): resolve active plugin root in /instinct-status (#2037) (#2059) 2026-06-07 13:27:05 +08:00
jira.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
kotlin-build.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
kotlin-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
kotlin-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
learn-eval.md docs: resolve markdownlint errors across translated docs 2026-04-05 14:41:27 -07:00
learn.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
loop-start.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
loop-status.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
model-route.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
multi-backend.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-execute.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-frontend.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-plan.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
multi-workflow.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
orchestrate.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
plan.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
pm2.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
projects.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
promote.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
prompt-optimize.md docs(zh-CN): update 2026-03-13 17:45:44 +08:00
prp-commit.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-implement.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-plan.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-pr.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prp-prd.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
prune.md fix(docs): correct zh-CN prune frontmatter 2026-03-28 23:23:51 -04:00
python-review.md docs: resolve markdownlint errors across translated docs 2026-04-05 14:41:27 -07:00
quality-gate.md docs(zh-CN): sync Chinese docs with latest upstream changes (#341) 2026-03-07 14:48:02 -08:00
refactor-clean.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
resume-session.md docs: sync session storage paths across translations 2026-04-29 20:34:01 -04:00
review-pr.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
rules-distill.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-build.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-review.md docs(zh-CN): sync Chinese docs with latest upstream changes 2026-03-21 12:55:58 +08:00
rust-test.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
santa-loop.md docs: salvage zh-CN command translations 2026-05-11 14:05:38 -04:00
save-session.md docs: sync session storage paths across translations 2026-04-29 20:34:01 -04:00
sessions.md docs: sync session storage paths across translations 2026-04-29 20:34:01 -04:00
setup-pm.md Revert "feat(ecc): prune plugin 43→12 items, promote 7 rules to .claude/rules/ (#245)" 2026-02-20 01:11:30 -08:00
skill-create.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
skill-health.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
tdd.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
test-coverage.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
update-codemaps.md docs(zh-CN): sync Chinese docs with latest upstream changes (#304) 2026-03-02 22:28:27 -08:00
update-docs.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00
verify.md docs(zh-CN): translate code block(plain text) (#753) 2026-03-22 15:39:24 -07:00