Avoid duplicate skill lookup for slash-invoked skills with disable-model-invocation
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Shell
- Estrellas
- 11.2k
- Forks
- 1.9k
- Merge medio
- 14 h 16 min
- PR fusionados (30 d)
- 6
Descripción
Summary
A skill that is explicitly invoked with a slash command can execute and inject its instructions into context, while another lookup path reports Skill not found, creating misleading context noise.
Reproduction
Use a skill with this frontmatter:
---
name: implement
description: "Implement a piece of work based on a spec or set of tickets."
disable-model-invocation: true
---
The local skill is C:\Users\omzig\.copilot\skills\implement\SKILL.md; the relevant setting is line 4: disable-model-invocation: true.
Then run:
/implement #1147
Observed behavior:
- The
/implementworkflow is recognized and its instructions are injected into context. - A separate skill lookup reports:
Skill not found: implement. - The command can continue, but the error is misleading and makes it appear that the skill failed to load.
Environment: Copilot CLI 1.0.80 on Windows.
Expected behavior
disable-model-invocation: true should prevent automatic/model-driven invocation. It should not make an explicit slash-command invocation unavailable. When the explicit command path succeeds, the runtime should not perform a second conflicting lookup or emit Skill not found.
Suggested fix
Distinguish explicit slash-command invocation from automatic skill invocation. Resolve the command/skill once, honor disable-model-invocation only for automatic loading, and suppress the registry error when the explicit command path has already loaded the skill successfully.
This is primarily a context-quality issue: the implementation workflow works, but the duplicate/conflicting lookup adds noise and obscures the actual result.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con la ruta de invocación explícita del comando slash y la ruta independiente de búsqueda o registro automático de skills, utilizando disable-model-invocation y /implement #1147 como términos de búsqueda. Reproduce el problema en Copilot CLI 1.0.80 y verifica después que un skill invocado explícitamente se ejecuta sin un mensaje duplicado de Skill not found, mientras la invocación automática sigue deshabilitada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell
- Área
- cli, developer-experience
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 52/100