github / github/copilot-cli

Options passed to a custom skill invocation are dropped before reaching the model

Ouverte
#4,548 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

area:agents
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

Describe the bug

When invoking a custom skill using /skill-name --option value, Copilot CLI records the complete input but omits the option arguments from the prompt dispatched to the skill.

Environment:

  • GitHub Copilot CLI 1.0.81-6
  • Windows
  • Session: 2da2d958-a8cd-4eeb-9760-241fac5b53ed
  • Occurred around 2026-08-21 04:10:27 UTC

The session event log contains the complete command and arguments. However, the model-visible invocation contains only that the skill was explicitly invoked plus its SKILL.md instructions. Because the arguments are absent, the skill follows its no-arguments behavior.

Affected version

1.0.81-6

Steps to reproduce the behavior
  1. Define a repository skill that supports command-line-style arguments and has different behavior when no arguments are supplied.
  2. Invoke it with arguments, for example:
    /evaluate-meeting-prep --slides week-over-week,speed,tokens --current "Model=C:\path\to\cohort"
  3. Observe that the skill loads successfully.
  4. Observe that the skill behaves as if no arguments were supplied and displays its interactive slide-selection menu.
  5. Inspect the session event log: the original user.message contains the complete command, including --slides and --current, but those arguments are absent from the prompt delivered to the model with the skill context.
Expected behavior

When a custom skill is invoked as /skill-name <arguments>, the complete argument text should be included in the model-visible skill invocation. In this example, the skill should receive --slides week-over-week,speed,tokens and the supplied cohort paths, then proceed without asking the user to select slides again.

Additional context
  • Copilot CLI: 1.0.81-6
  • Operating system: Windows x64
  • Shell: PowerShell
  • Session ID: 2da2d958-a8cd-4eeb-9760-241fac5b53ed
  • Timestamp: 2026-08-21 04:10:27 UTC

Diagnostic detail: the session's raw user.message event contains the complete 521-character invocation, including --slides, --current, --prior, and --outdir. The subsequent model-visible skill invocation contains the loaded skill instructions but none of those options. This indicates the options are lost during skill dispatch rather than input parsing.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

Reproduisez l’invocation d’une skill personnalisée dans GitHub Copilot CLI sous Windows PowerShell, puis comparez l’événement user.message brut avec l’invocation de la skill visible par le modèle. Suivez le chemin de dispatch de la skill pour trouver où le texte des options est supprimé ; c’est terminé lorsque l’ensemble des arguments, notamment --slides, --current, --prior et --outdir, parvient au modèle et que la skill ignore son comportement sans arguments.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
powershell, shell
Domaine
cli
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Active
Clarté
Clairement spécifiée
Accessibilité débutants
58/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.