ECC/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 feat: add auto-update command 2026-04-29 21:01:27 -04:00
build-fix.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
checkpoint.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
code-review.md feat: add PRD planning command flow 2026-05-12 00:06:41 -04:00
cost-report.md feat: salvage cost tracking and skill scout (#1815) 2026-05-12 14:23:46 -04:00
cpp-build.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
cpp-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
cpp-test.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
ecc-guide.md docs: salvage ECC onboarding guide commands 2026-05-11 21:09:20 -04:00
evolve.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08:00
fastapi-review.md docs: salvage FastAPI review patterns 2026-05-11 07:44:26 -04:00
feature-dev.md feat: restore review and planning bundles 2026-04-05 17:51:56 -07:00
flutter-build.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
flutter-review.md feat: add C# and Dart language support 2026-04-02 17:48:43 -07:00
flutter-test.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
gan-build.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
gan-design.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
go-build.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
go-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
go-test.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
gradle-build.md feat: add Kotlin, Android, and KMP rules, agent, skills, and command 2026-03-10 20:53:39 -07:00
harness-audit.md feat: extend harness audit integration scoring (#1990) 2026-05-19 06:20:54 -04:00
hookify-configure.md feat: restore hookify command bundle 2026-04-05 17:50:31 -07:00
hookify-help.md feat: restore hookify command bundle 2026-04-05 17:50:31 -07:00
hookify-list.md feat: restore hookify command bundle 2026-04-05 17:50:31 -07:00
hookify.md feat: restore hookify command bundle 2026-04-05 17:50:31 -07:00
instinct-export.md feat: project-scoped instinct isolation 2026-03-01 12:07:13 -08: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 fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
kotlin-build.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
kotlin-review.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
kotlin-test.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
learn-eval.md fix: unblock unicode safety CI lint (#1017) 2026-03-30 01:50:17 -04:00
learn.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
loop-start.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
loop-status.md feat: write loop-status snapshots 2026-04-30 12:25:14 -04:00
marketing-campaign.md feat: add marketing campaign agent skill and command (#2031) 2026-05-25 14:10:35 -04:00
model-route.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04: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
plan-prd.md feat: add PRD planning command flow 2026-05-12 00:06:41 -04:00
plan.md feat: add PRD planning command flow 2026-05-12 00:06:41 -04:00
pm2.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
pr.md feat: add PRD planning command flow 2026-05-12 00:06:41 -04:00
project-init.md docs: salvage ECC onboarding guide commands 2026-05-11 21:09:20 -04:00
projects.md fix: resolve CI failures on main — lint, hooks validator, and test alignment 2026-03-02 22:15:46 -08:00
promote.md fix: resolve CI failures on main — lint, hooks validator, and test alignment 2026-03-02 22:15:46 -08:00
prp-commit.md fix: harden claude plugin manifest surfaces 2026-04-08 16:27:30 -07:00
prp-implement.md fix: harden install planning and sync tracked catalogs 2026-03-31 22:57:48 -07:00
prp-plan.md feat: add PRP workflow commands adapted from PRPs-agentic-eng (#848) 2026-03-31 14:12:23 -07:00
prp-pr.md fix: harden claude plugin manifest surfaces 2026-04-08 16:27:30 -07:00
prp-prd.md fix: harden claude plugin manifest surfaces 2026-04-08 16:27:30 -07:00
prune.md feat: pending instinct TTL pruning and /prune command (#725) 2026-03-22 15:40:58 -07:00
python-review.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
quality-gate.md docs: align command docs with shipped behavior (#2169) 2026-06-07 13:25:58 +08:00
react-build.md Add React language track with agents, skills, rules, and commands (#2024) 2026-05-28 07:32:52 -04:00
react-review.md Add React language track with agents, skills, rules, and commands (#2024) 2026-05-28 07:32:52 -04:00
react-test.md Add React language track with agents, skills, rules, and commands (#2024) 2026-05-28 07:32:52 -04:00
refactor-clean.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
resume-session.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
review-pr.md feat: restore review and planning bundles 2026-04-05 17:51:56 -07:00
rust-build.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
rust-review.md feat(agents): add Rust language support (#523) 2026-03-16 13:34:25 -07:00
rust-test.md fix: retire legacy command shims from default surface 2026-04-29 23:56:40 -04:00
santa-loop.md feat(commands): add santa-loop adversarial review command (#1052) 2026-03-31 14:05:31 -07:00
save-session.md fix: harden unicode safety checks 2026-03-29 21:21:18 -04:00
security-scan.md docs: close harness audit readiness gaps 2026-05-11 20:23:27 -04:00
sessions.md fix: salvage remaining stale queue fixes (#1754) 2026-05-11 16:41:08 -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 feat: add skill-create and continuous-learning-v2 commands 2026-01-27 04:01:06 -08:00
skill-health.md fix: salvage remaining stale queue fixes (#1754) 2026-05-11 16:41:08 -04:00
test-coverage.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
update-codemaps.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00
update-docs.md fix: add command metadata frontmatter 2026-04-30 03:41:18 -04:00