Skip to content

fix(scripts): iterate all skill dirs instead of hardcoded glob#42

Open
klewicki7 wants to merge 2 commits intoGentleman-Programming:mainfrom
klewicki7:fix/setup-missing-skills
Open

fix(scripts): iterate all skill dirs instead of hardcoded glob#42
klewicki7 wants to merge 2 commits intoGentleman-Programming:mainfrom
klewicki7:fix/setup-missing-skills

Conversation

@klewicki7
Copy link

Summary

  • Reemplaza el glob hardcodeado (sdd-*/ skill-registry/) en install_skills() por una iteración dinámica sobre todos los subdirectorios de skills/ que contengan un SKILL.md
  • Excluye _shared/ que ya se maneja por separado antes del loop
  • Previene futuros incidentes: cualquier skill nuevo será instalado automáticamente sin necesidad de modificar el script

Contexto

El glob hardcodeado ya causó dos incidentes:

En lugar de seguir agregando entradas al glob manualmente, esta PR elimina el patrón por completo.

Closes #41

Test plan

  • Ejecutar ./scripts/setup.sh --all y verificar que todos los skills se copian (incluyendo issue-creation y branch-pr)
  • Verificar que _shared/ NO se duplica (ya se copia antes del loop)
  • Agregar un directorio dummy skills/test-skill/SKILL.md y confirmar que se instala sin modificar el script
  • Verificar que directorios sin SKILL.md se ignoran correctamente

Kevin Lewicki added 2 commits March 17, 2026 00:07
The install_skills() function only iterated over sdd-* and
skill-registry directories. Skills issue-creation and branch-pr
were added in f22181c but never included in the installer glob,
so they were silently skipped during setup.

Closes Gentleman-Programming#41
The install_skills() function used a hardcoded glob (sdd-* +
skill-registry) that silently skipped any skill not matching
those patterns. This already caused two incidents (Gentleman-Programming#30, Gentleman-Programming#41)
where new skills were not installed.

Replace the explicit glob with a dynamic iteration over all
subdirectories containing a SKILL.md, excluding _shared which
is handled separately. Future skills will be picked up
automatically without modifying the installer.

Closes Gentleman-Programming#41
Copilot AI review requested due to automatic review settings March 17, 2026 03:08
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the full setup script to install skills by dynamically scanning the skills/ directory rather than relying on a hardcoded glob, preventing newly added skills from being skipped during installation.

Changes:

  • Replace the hardcoded sdd-* / skill-registry glob in install_skills() with iteration over all skills/*/ subdirectories.
  • Skip _shared/ during the main loop since it is already copied separately.
  • Only install directories that contain a SKILL.md.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

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.

fix(scripts): setup.sh no copia los skills issue-creation y branch-pr

2 participants