Remove detectAgents() workaround after upstream fix is merged

Author: vgpastorCreated Mar 31, 2026Updated Apr 8, 2026
Labelsenhancement

Context

In #15 we added detectAgents() and AGENT_FOLDER_MAP to auto-detect installed agents by scanning ~/.<agent>/skills directories. This is a workaround for a bug in the upstream skills CLI where the interactive agent selection prompt hangs when stdio is piped (our case via child_process.spawn).

The upstream already has detectInstalledAgents() that does the same detection — the problem is that it falls through to an interactive prompt when multiple agents are found. We submitted a fix: https://github.com/vercel-labs/skills/pull/816

What to do when the upstream fix is merged

Once vercel-labs/skills#816 (or an equivalent fix) is released:

  1. Remove AGENT_FOLDER_MAP from skills-map.mjs
  2. Remove detectAgents() from lib.mjs
  3. Remove the AGENT_FOLDER_MAP re-export from lib.mjs
  4. Simplify index.mjs — stop resolving agents when no -a flag; let the upstream handle it
  5. Remove tests/detect-agents.test.mjs
  6. Remove the agent-related CLI tests from tests/cli.test.mjs

The -a flag passthrough for user overrides should remain as-is.

Upstream references