Skip to content

feat: add a first-class SKILL.md wrapper for the standalone CodeGraph CLI#1019

Open
mvanhorn wants to merge 1 commit into
colbymchenry:mainfrom
mvanhorn:fix/676-cli-skill-wrapper
Open

feat: add a first-class SKILL.md wrapper for the standalone CodeGraph CLI#1019
mvanhorn wants to merge 1 commit into
colbymchenry:mainfrom
mvanhorn:fix/676-cli-skill-wrapper

Conversation

@mvanhorn

Copy link
Copy Markdown

Summary

Author a single agent-agnostic skill document at skills/codegraph-cli/SKILL.md that describes when to reach for CodeGraph and documents the standalone CLI surface (index, query, callers, callees, context, and the other read commands) with concrete invocation examples and output expectations, framed so any skill-aware agent (Claude Code, hermes, etc.) can load it without MCP. Model the structure on the existing developer skills under .claude/skills/*/SKILL.md for front-matter/format consistency, but keep this one user-facing and tool-call-oriented (the "prefer the CLI over reading whole files" guidance the maintainer described). Add a short "Use as an agent skill" subsection to README.md and a cross-link from the CLI reference doc (site/src/content/docs/reference/cli.md) pointing at the new skill file so it is discoverable.

Why this matters

Users running agents in containers (e.g. hermes) hit setup friction wiring the CodeGraph MCP server across host/container boundaries. The maintainer (colbymchenry) clarified on 2026-06-20 that CodeGraph already ships a full CLI that works completely independently of the MCP server (codegraph index, codegraph query, codegraph callers, codegraph callees, codegraph context, etc.), so agents can call it directly with no MCP server, volume-sharing, or network alias. The reporter (doctorcolossus) responded that what he wants is exactly "at least one SKILL.md file specifically for the CLI" — an agent-agnostic, pre-packaged skill that wraps these commands so an agent prefers them instead of the operator hand-wiring each call.

See #676.

Testing

  • Happy path: a skill-aware agent loads skills/codegraph-cli/SKILL.md and can run each documented command verbatim against an indexed repo.
  • Edge case: every CLI command/flag named in the skill matches the actual codegraph CLI surface (no invented or renamed commands).
  • Doc integrity: the README subsection and reference/cli.md link resolve to the new file path; no broken relative links.

Fixes #676

@mvanhorn mvanhorn mentioned this pull request Jun 27, 2026
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.

add CLI skills

1 participant