feat(cli): agent handoff and install command#31
Merged
Conversation
Replace the post-scan "View rules list" prompt with a coding-agent handoff: when a scan finds issues, offer to launch a detected agent (claude, codex, cursor-agent) with the issues as its prompt, or copy that prompt to the clipboard. Handoffs write the full report to .docker-doctor/ (auto-gitignored) and install the bundled skill for the chosen agent. Add `docker-doctor install` to install the skill for any agent-install-supported agent (interactive multi-select, or --agent for non-interactive runs), and ship skills/docker-doctor inside the npm package. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
README step 2 becomes "Install for agents" (rules browsing moves to the docs link), and the docs gain a Coding Agents guide plus CLI-reference coverage of `install` and the handoff. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Agent options now read "Claude Code" / "Cursor" instead of "Fix with … (launches …)", matching react-doctor's picker. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Collapse the two display-name helpers into one, and drop the diagnosticsDir/rootDir plumbing from the handoff payload — the report directory is always .docker-doctor/, so reference the constant directly and let writeDiagnosticsDirectory return void. Co-Authored-By: Claude Fable 5 <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
Replaces the post-scan
View rules list / Skipprompt with a react-doctor-style coding-agent handoff, and addsdocker-doctor installso users can install the agent skill that previously had no distribution path.Post-scan handoff (interactive scans with findings only)
PATH(claude,codex,cursor-agent)..docker-doctor/(diagnostics.json+ one.txtper rule, auto-appended to.gitignore), and launches the agent with a prompt listing every issue, fix recipe, and affected files (errors first).--score/--json/ non-TTY runs are unchanged;rules list/rules explainare untouched.docker-doctor install--agent <id...>for non-interactive runs (any of agent-install's 50+ ids; invalid ids error with the valid list).skills/docker-doctor/) is now copied into the npm package at build time (skill/, verified vianpm pack).Docs
README step 2 becomes "Install for agents" (rules browsing moved to the docs link), new Coding Agents guide, CLI reference updated.
Notes for review
agent-install@0.0.8(pinned — it's 0.0.x). Justified as the same library react-doctor uses for skill installs.--dangerously-skip-permissions/--yolo/--force) — the user opts in by picking the agent from the menu, mirroring react-doctor..cmdshims would require a shell that mangles the multi-line prompt); Windows users get the clipboard path. Deliberate scope cut, as is remembering the last-picked agent (needs a CLI state store) and once-per-repo CI-pitch persistence.@docker-doctor/cli.Testing
bun test(15 pass),tsc --noEmit,ultracite checkclean; web app builds with the new docs..docker-doctor/+ gitignore (idempotent) and prints the prompt when no clipboard tool exists.install --agent claude-code cursoron a fixture landsSKILL.md+ references in.claude/skills//.agents/skills/; invalid id and non-TTY-without---agenterror correctly.npm pack --dry-runshipsskill/docker-doctor/**; ESM output usesimport.meta.dirname, CJS gets__dirname.🤖 Generated with Claude Code