skills: skill tool fails to load user skills from ~/.config/opencode/skills
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- tooling
Direzione di ricerca
Start by tracing the skill tool's lookup path for user skills under ~/.config/opencode/skills, then compare it with the path used for built-in skills. Reproduce with the provided antislop-ui/SKILL.md example and inspect relevant tests for skill loading. Done when valid global user skills load in the skill tool and a regression test covers the failure.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The skill tool fails with Unable to load skill <id> for user skills in the global skills folder, while the same SKILL.md files are readable with the Read tool. Built-in skills (for example report) load correctly in the same session, so the failure appears limited to user skills.
Environment
- opencode version: 2.2.5
- OS: Windows_NT 10.0.26200 (win32 x64)
- Terminal: TERM=xterm-256color
- Shell: C:\Program Files\Git\usr\bin\bash.exe
- Install/channel: latest
- Active plugins: ccgs-hooks, changelog-generator, drift-detector, job-search-bridge (from
~/.config/opencode/opencode.json). None of them intercepts theskilltool.
Reproduction
- Have a skill folder at
C:\Users\Marco\.config\opencode\skills\antislop-ui\SKILL.mdwith a valid frontmatter (name: antislop-ui,description,allowed-tools). - Start a session and call the
skilltool withid: antislop-ui. - Observe the error
Unable to load skill antislop-ui(tool.execution). - Call the Read tool on the same file: it reads correctly.
- Call the
skilltool with the built-inreport: it loads. - Repeat step 2 with
grilling, a skill stored in another folder with the same frontmatter shape: same error. - Restart the application: same error. A worker started with
orca orchestration worker-start(a separate opencode session): same error.
Expected Behavior
The skill tool loads user skills from the global skills folder, as it does for built-in skills.
Actual Behavior
Unable to load skill <id> for every user skill tested (antislop, antislop-ui, antislop-layoutmobile, grilling, prototype), including after restart and in a worker session. The log/opencode.log file shows no error line for these loads, so the cause is not recorded there.
Additional Context
- Frequency: consistent, in every session tested.
- Workaround: read the
SKILL.mdfile directly with the Read tool, which works. - Not yet tested: whether the failure depends on the folder name, the frontmatter fields, or the
disable-model-invocationflag. The skills tested have different values for those fields.
- Lingua principale
- TypeScript
- Stelle
- 225k
- Fork
- 30.4k
- Merge medio
- 4h 16m
- PR unite (30g)
- 528
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di anomalyco/opencode
-
reproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 61/100
anomalyco/opencode#62873 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#62822 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
anomalyco/opencode#62601 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
reproduced
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/opencode#62516 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
anomalyco/opencode#62374 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di anomalyco/opencode
Issue simili
-
code-quality good-first-issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
OpenRailAssociation/netzgrafik-editor-frontend#1481 ·
I maintainer di solito rispondono entro 1 giorno
-
🙌 icon request
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
lucide-icons/lucide#5183 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 81/100
cloudflare/capnweb#293 ·
I maintainer di solito rispondono entro 2 giorni
-
bug implicit-state
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
-
area:models enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno