argument-hint doesn't show for skills
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 75/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, nodejs
- Área
- cli
Línea de trabajo
Empieza en cliSlashSkillMetadata, la conversión de skill a comando que menciona el informe: recibe el argumentHint correcto, pero devuelve metadatos del comando sin un campo args. Compara cómo los comandos integrados, como /model, llenan args para que la pista se muestre, y luego establece el argumentHint del skill allí como un arg literal. Para verificarlo, crea .github/skills/hint-repro/SKILL.md como en el repro, inicia una sesión de CLI en ese proyecto y escribe /hint-repro; está listo cuando [target] [--help] aparece en la sugerencia y en la línea de entrada, con y sin un espacio al final.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
A skill's description appears when typing its slash command, but its argument hint doesn't. The installed SKILL.md has a quoted, top-level argument-hint field in its YAML frontmatter
Affected version
1.0.115-8
Steps to reproduce the behavior
- In a local test project, create
.github/skills/hint-repro/SKILL.mdwith this content:
---
name: hint-repro
description: Test whether skill argument hints are displayed.
argument-hint: "[target] [--help]"
---
If invoked, reply with "Hint test." Do not use tools.
- Start a fresh Copilot CLI session in that project
- Type
/hint-reprowithout pressing Enter. Check the command suggestion and input line for[target] [--help] - Add a trailing space and check again
The configured argument hint should be displayed. There is no need to submit the command or execute the skill
Expected behavior
The configured argument hint should appear when selecting or typing the skill's slash command, as described under “Skill frontmatter fields”:
Additional context
Reproduced on macOS ARM64
Built-in commands such as /model show their argument hints in the same terminal
While investigating, I found that cliSlashSkillMetadata receives the correct argumentHint, but the returned command metadata has no args field. In a temporary test process, adding this to the returned command made the full hint appear:
command.args = [{ type: "literal", text: skill.argumentHint }];
Removing that change made the hint disappear again
That seems to narrow it down to the skill-to-command conversion
I only tested the display behaviour, so the snippet above isn't intended as a complete fix
- Lenguaje dominante
- Python
- Estrellas
- 11.5k
- Forks
- 2k
- Merge medio
- 6 h 34 min
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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.
Más de github/copilot-cli
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationAbiertoarea:tools
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
github/copilot-cli#5476 ·
-
triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
github/copilot-cli#5340 ·
-
area:configuration area:models
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
github/copilot-cli#5287 ·
Todos los issues de github/copilot-cli
Issues similares
-
fidelity
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
backlog
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
sagemathinc/sagebrush#3434 ·
Los mantenedores suelen responder en 1 día
-
marketing
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
documentation good first issue help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wuisabel-gif/MemWhale#576 ·
Los mantenedores suelen responder en 1 día
-
Status: Triage Suggestion
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Los mantenedores suelen responder en 1 día