feat(autoskills): add interactive agent selection prompt#86
Open
damenordev wants to merge 1 commit 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.
🎯 Qué resuelve esto
Cuando usas
autoskills, el CLI detecta todos los agentes que tienes instalados (Claude Code, Cursor, Cline, Codex, etc.) y les instala los skills a todos de golpe. No hay forma de elegir.Esto está bien si solo usas uno o dos, pero si tienes 10+ agentes instalados (como yo 😅), quizás no quieras instalar en todos.
✨ Qué cambia
Ahora aparece un prompt interactivo para elegir en qué agentes instalar, justo después de seleccionar los skills:
◆ Select skills to install (9 found)
❯ ◼ astrolicious › astro
◼ wshobson › typescript-advanced-types
...
◆ Select target agents (11 detected)
❯ ◼ claude-code
◼ cursor
◼ cline
◼ codex
◼ opencode
...
↑↓ move · space toggle · a all · n none · enter confirm (11/11)
🛠️ Cómo funciona
multiSelect()que ya existe enui.ts(sin dependencias nuevas 🙌)"universal"siempre se incluye, no se muestra en el prompt[n] nonepara deseleccionar todos rápidouniversalcon un mensaje informativo📋 Cuándo NO aparece el prompt
-y(auto-yes)-a cursor claude-codemultiSelect)📁 Archivos modificados
Solo un archivo:
packages/autoskills/main.ts(+45 líneas, -4 líneas)selectAgents()— el prompt interactivoselectSkills()y antes deinstallAll()✅ Tests
Los 55 tests existentes pasan sin cambios. No se agregaron tests nuevos porque la funcionalidad es interactiva (TTY) y los tests existentes cubren el dry-run y la detección de agentes.