github / github/copilot-cli

Explicit slash skill is redundantly reloaded through model registry and fails with “Skill not found”

Aperta
#4,451 0 commenti 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

area:agents
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

Describe the bug

An explicitly invoked interactive slash skill is successfully resolved and expanded into the conversation, but the assistant then attempts to load the same skill through the model-facing skill() tool. For skills excluded from model invocation, that redundant call fails with Skill not found, and the requested workflow does not start.

This differs from #4438: the interactive /skill resolver succeeds and provides the skill context. The failure happens afterward because the assistant routes the already-resolved explicit invocation back through the model-only registry.

Affected version

GitHub Copilot CLI 1.0.79

Steps to reproduce the behavior
  1. Create a personal skill at %USERPROFILE%\.agents\skills\implement.

  2. Configure agents\openai.yaml:

    interface:
      display_name: "Implement"
      short_description: "Build work from a spec or tickets"
    policy:
      allow_implicit_invocation: false
    
  3. Start an interactive Copilot CLI session using GPT-5.6 Sol.

  4. Invoke the skill directly:

    /implement 5514365
    
  5. The CLI successfully injects an explicit invocation message and <skill-context name="implement"> containing the skill's base directory and instructions.

  6. Instead of following that supplied context, the assistant calls the model-facing tool:

    skill: "implement"
    
  7. The tool returns:

    Skill not found: implement
    

The same session shows that skills with allow_implicit_invocation: false are absent from the model-facing registry, while skills without that policy are present. Skills under %USERPROFILE%\.copilot\skills without this policy are also present.

Expected behavior

Once an interactive slash command has resolved a skill and supplied its <skill-context>, the assistant should execute those instructions directly. It should not call the model-facing skill() tool again.

allow_implicit_invocation: false should prevent automatic model selection without breaking a direct /skill invocation that the CLI has already resolved.

Additional context
  • OS: Microsoft Windows 10.0.26200, x64
  • PowerShell: 7.6.4
  • Model: GPT-5.6 Sol
  • Related registry/filtering issue: #4438

Debug logs available on request.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia dal resolver interattivo /skill e dal percorso del registro skill() rivolto al modello, usando come contesto la policy agents/openai.yaml e il comportamento descritto nella issue #4438. Traccia il modo in cui un'invocazione esplicita viene passata dopo la risoluzione, quindi verifica che allow_implicit_invocation: false continui a escludere le skills dalla selezione automatica senza causare una seconda ricerca; riproduci il caso con /implement 5514365 per confermare che il workflow venga avviato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
shell
Ambito
cli
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
58/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.