github / github/copilot-cli

skillDirectories Does Not Take Effect at Repo Level

Aperta
#3,822 0 commenti 2 reazioni 0 assegnatari Vedi su GitHub
area:configuration area:plugins
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the feature or problem you'd like to solve

Working with skills spread across multiple repos or in subdirectories of mono-repos are currently not possible to include without a lot of copying around and cleaning up.

### Proposed solution

Support `skillDirectories` setting both in `.github/copilot/settings.json` and `.github/copilot/settings.local.json` so that we can customise which skills are exposed based on the type of work, the sub-path in a mono-repo and when working across multiple repos. All three scenarios are fairly common in a medium to large enterprise.

### Example prompts or workflows

Let's say I'm working on a frontend-repo and I notice that the backend is not adhering to the contract. I'd like from my frontend-repo to invoke the following skill that lives in backend-repo:
`/investigate-backlog to see if there's a bug on data path of controller Foo where it returns a string instead of a guid`

It wouldn't make sense for me to have it in my user settings since it's dependent upon the type of work I'm doing and the repo I'm currently using. If I duplicate the skill in frontend-repo's .github folder, then I can't be sure when backend folks update something on their end and I get outdated results.

### Additional context

A bit similar to the following issues but not the same IMO:
- #3688
- #3505

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando come skillDirectories viene attualmente letto dalle impostazioni dell'utente e come vengono caricate le impostazioni del repository. Confronta il comportamento di .github/copilot/settings.json e .github/copilot/settings.local.json, inclusi gli skill presenti in altri repository e nelle sottodirectory di un monorepo. Il lavoro è completato quando entrambi i file a livello di repository possono personalizzare le directory degli skill esposti senza copiare gli skill.

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

Valutazione

Stack tecnologico
shell
Ambito
cli, developer-experience
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.