Dxcdt 1557/install claude skills with auth0 cli#1525
Open
KartikJha wants to merge 3 commits into
Open
Conversation
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.
🔧 Changes
Introduces a new
internal/ai/skillspackage that provides an agent registry and detection layer for AI coding agents. Thisis the foundation for the
auth0 ai skills installcommand, enabling the CLI to discover which agents are present on a user'smachine and resolve the correct skills directory for each.
New types and functions:
AgentConfig— describes a single AI coding agent with its ID, display name, global/project skills directories, anddetection hints (filesystem markers and binary names)
AgentConfig.IsInstalled()— returnstrueif any marker path exists on disk or any binary is found in$PATHSupportedAgents— registry of 20 agents: Claude Code, Cursor, GitHub Copilot, Gemini CLI, Roo Code, Goose, OpenCode,Codex, Windsurf, Continue, Amp, Junie, Kiro CLI, Cline, Augment, AiderDesk, Warp, OpenHands, Trae, and a Universal fallback
DetectedAgents()— returns the subset ofSupportedAgentsthat are installed, plus the Universal agent; result is cachedvia
sync.OnceFastPriorityAgents()— returns detected agents sorted by priority order (Claude Code → Cursor → GitHub Copilot → GeminiCLI → others → Universal last), used by the
--fastinstall modeCleanup:
qsType,qsAppName,qsPort) fromquickstarts.gothat were no longer referencedquickstart_detect.goandquickstart.go🔬 Testing
All new behaviour is covered by unit tests in
internal/ai/skills/agent_test.go:TestIsInstalled— marker path existence, binary lookup, empty-string skipping, fallback from marker miss to binary hitTestSupportedAgents— non-empty registry, unique IDs, non-empty skill dirs, presence of universal, agents with nildetection markers
TestDetectedAgents— universal always present, deterministic caching, all results are subsets ofSupportedAgentsTestFastPriorityAgents— universal last, no duplicates, all detected agents present, priority ordering invariant, lengthequality
Run with:
go test ./internal/ai/skills/...
No external services or credentials are required;
IsInstalledchecks are exercised usingt.TempDir()andt.Setenv("PATH", ...).