Rename /lean4:doctor → /lean4:diagnose (avoids collision with built-in /doctor) - #156
Open
flound1129 wants to merge 1 commit into
Open
Rename /lean4:doctor → /lean4:diagnose (avoids collision with built-in /doctor)#156flound1129 wants to merge 1 commit into
flound1129 wants to merge 1 commit into
Conversation
The `doctor` name collided with Claude Code's built-in /doctor. Renamed commands/doctor.md -> diagnose.md; subcommands unchanged (env/migrate/cleanup). Updated the canonical recovery wording in preflight_env.sh + bootstrap.sh, lint_docs.sh (KNOWN_COMMANDS, max_lines, the two diagnose.md special-cases), all doc surfaces, both plugin descriptions, and the guard tests. Bumped 4.5.4 -> 4.6.0. Lint-neutral (same 117 pre-existing warnings); all test suites green. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Renames the
/lean4:doctorcommand to/lean4:diagnose.Why
doctorcollides with Claude Code's built-in/doctorcommand. Renaming theplugin diagnostic to
/lean4:diagnoseremoves the ambiguity while keeping thecommand's behavior and all subcommands (
env,migrate,cleanup) identical.Changes
commands/doctor.md→commands/diagnose.md(frontmattername: diagnose,git-tracked as a rename). Subcommands unchanged:
/lean4:diagnose env|migrate|cleanup.lib/scripts/preflight_env.shemit_recoveryand its byte-identical copy inhooks/bootstrap.shnow emitRun /lean4:diagnose env for a full diagnosis.diagnose.mdreproduces thethree canonical lines;
test_preflight_env.sh/test_bootstrap_env.shassertthe new wording.
tools/lint_docs.sh:KNOWN_COMMANDS, the per-commandmax_linestable,and both
diagnose.mdspecial-cases (stale-plugin-path skip, host-agnostic skip).README.md,INSTALLATION.md,MIGRATION.md,plugins/lean4/README.md,SKILL.md, and thecommand-examples.md/command-invocation.md/subagent-workflows.mdreferences.plugin.jsonandmarketplace.jsondescriptions listdiagnose;version bumped
4.5.4→4.6.0.test_validate_user_prompt.shuncovered-command case.doctorname (accurate for thereleases they describe); a new
v4.6.0entry documents the rename.Breaking change
/lean4:doctorno longer exists — use/lean4:diagnose. Muscle-memory, scripts,or docs invoking
/lean4:doctormust switch.Testing
All local suites pass under macOS Bash 3.2 (
/bin/bash):test_preflight_env.sh10/0,test_bootstrap_env.sh11/0,test_validate_user_prompt.sh33/0,test_guardrails.sh327/0,test_contracts.sh30/0,test_lint_docs.sh4/0.lint_docs.shis lint-neutral: identical 117 pre-existing warnings beforeand after (the three
doctor.mdanchor warnings simply becamediagnose.md).The changed shell files (
bootstrap.sh,preflight_env.sh,lint_docs.sh) touchonly comments and
echostring content — no logic — so shellcheck is unaffected.🤖 Generated with Claude Code