skills: skill tool fails to load user skills from ~/.config/opencode/skills

Aberta
#62,859 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

triaging

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 the skill tool.

Reproduction

  1. Have a skill folder at C:\Users\Marco\.config\opencode\skills\antislop-ui\SKILL.md with a valid frontmatter (name: antislop-ui, description, allowed-tools).
  2. Start a session and call the skill tool with id: antislop-ui.
  3. Observe the error Unable to load skill antislop-ui (tool.execution).
  4. Call the Read tool on the same file: it reads correctly.
  5. Call the skill tool with the built-in report: it loads.
  6. Repeat step 2 with grilling, a skill stored in another folder with the same frontmatter shape: same error.
  7. 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.md file 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-invocation flag. The skills tested have different values for those fields.
Linguagem predominante
TypeScript
Estrelas
225k
Forks
30.4k
Merge médio
4h 16min
PRs com merge (30d)
528

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de anomalyco/opencode

Todas as issues de anomalyco/opencode

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.