argument-hint doesn't show for skills

Abierto Apto para principiantes
#5,567 0 comentarios 0 reacciones 0 asignados Ver en GitHub

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

area:plugins
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
  1. In a local test project, create .github/skills/hint-repro/SKILL.md with 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.
  1. Start a fresh Copilot CLI session in that project
  2. Type /hint-repro without pressing Enter. Check the command suggestion and input line for [target] [--help]
  3. 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”:

https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference#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

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/copilot-cli

Todos los issues de github/copilot-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.