argument-hint doesn't show for skills
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 75/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- javascript, nodejs
- Domaine
- cli
Piste de recherche
Commence par cliSlashSkillMetadata, la conversion de skill en commande citée dans le rapport : elle reçoit le bon argumentHint, mais renvoie des métadonnées de commande sans champ args. Compare la façon dont les commandes intégrées comme /model renseignent args pour que l'indication s'affiche, puis définissez-y le argumentHint du skill comme arg littéral. Pour vérifier, créez .github/skills/hint-repro/SKILL.md comme dans le repro, lancez une session CLI dans ce projet et tapez /hint-repro ; c'est terminé lorsque [target] [--help] apparaît dans la suggestion et dans la ligne de saisie, avec et sans espace final.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- Python
- Étoiles
- 11.5k
- Forks
- 2k
- Merge moyen
- 6 h 34 min
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de github/copilot-cli
-
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationOuvertearea:tools
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
github/copilot-cli#5476 ·
-
triage
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Difficulté 1/5 Moins d'une heure Accessibilité débutants 74/100
github/copilot-cli#5340 ·
-
area:configuration area:models
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
github/copilot-cli#5287 ·
Toutes les issues de github/copilot-cli
Issues similaires
-
fidelity
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
backlog
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
sagemathinc/sagebrush#3434 ·
Les mainteneurs répondent en général sous 1 jour
-
marketing
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
Les mainteneurs répondent en général sous 1 jour
-
documentation good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
wuisabel-gif/MemWhale#576 ·
Les mainteneurs répondent en général sous 1 jour
-
Status: Triage Suggestion
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Les mainteneurs répondent en général sous 1 jour