Skip to content

Add the doctor command to detect installed tools - #2

Merged
DominicFrei merged 1 commit into
mainfrom
gaf-667-2-detect-the-installed-tools-and-report
Jul 30, 2026
Merged

Add the doctor command to detect installed tools#2
DominicFrei merged 1 commit into
mainfrom
gaf-667-2-detect-the-installed-tools-and-report

Conversation

@DominicFrei

Copy link
Copy Markdown
Contributor

Fixes GAF-667

gaffa doctor reports which target AI coding tools are on the machine, where each keeps its config, and whether the gaffa skills are already set up in it. Reads only, writes nothing, no new runtime dependency.

Detected by config directory rather than a PATH binary, since an IDE may put nothing on the path. A config env override (CLAUDE_CONFIG_DIR, CODEX_HOME, COPILOT_HOME) moves both detection and the skills lookup. Skills are reported present or absent for now. Drift against a written receipt comes with the install command (GAF-668). --json gives the same result as structured output.

Paths, verified per tool:

Tool Config root Skills dirs Source
Claude Code ~/.claude (CLAUDE_CONFIG_DIR) .claude/skills, ~/.claude/skills docs + spike
Codex ~/.codex (CODEX_HOME) .agents/skills docs + spike
Copilot ~/.copilot (COPILOT_HOME) .agents/skills, .claude/skills (repo), ~/.copilot/skills, ~/.agents/skills docs + spike
Cursor ~/.cursor .agents/skills, .claude/skills docs + spike
Antigravity ~/.gemini/antigravity-cli .agents/skills, .agent/skills, ~/.gemini/config/skills Google docs

Two paths I could not confirm per OS from primary docs and treated as the logical ~ expansion: Codex and Antigravity on Windows. Antigravity's IDE-app config dir is also undocumented, so detection uses its CLI dir.

gaffa doctor reports which of the target AI coding tools are on the
machine, where each keeps its config, and whether the gaffa skills are
already set up in it. It reads only and writes nothing, and adds no
runtime dependency.

Tools: Claude Code, Codex, GitHub Copilot, Cursor and Antigravity. Each
is detected by its config directory rather than a binary on the path,
since an IDE may put nothing on the path. Paths come from each tool's own
docs, cross-checked against the plugin spike where a tool was installed
for real. A config env override (CLAUDE_CONFIG_DIR, CODEX_HOME,
COPILOT_HOME) moves both the detection and the skills lookup.

Skills detection reports present or absent for now. Drift against a
written receipt comes with the install command.

Add --json for machine output, and unit plus integration tests.
@DominicFrei
DominicFrei merged commit 75dab27 into main Jul 30, 2026
6 checks passed
@DominicFrei
DominicFrei deleted the gaf-667-2-detect-the-installed-tools-and-report branch July 30, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants