skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- tooling
Línea de trabajo
La corrección pertenece a la rama if (parsed._tag === "Parsed") del cargador de compatibilidad en packages/core/src/config/plugin/compatibility.ts, que actualmente descarta silenciosamente los resultados Skipped. Lee cómo agent.ts (alrededor de las líneas 153 y 175) y command.ts (alrededor de las líneas 142 y 150) registran un archivo que existe pero no se puede usar, y sigue esa misma forma. Está terminado cuando una advertencia nombra el archivo y el motivo de las omisiones de markdown y frontmatter, y una prueba confirma que el mensaje aparece.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
The compatibility loader reads SKILL.md files from Claude and agent skill roots (packages/core/src/config/plugin/compatibility.ts). When SkillFile.parse returns Skipped, the file is simply not added to the loaded map:
const parsed = SkillFile.parse(resolved, filepath, content)
if (parsed._tag === "Parsed") loaded.set(parsed.skill.id, parsed.skill)
There is no log call on the other branch, so a skill that exists but cannot be parsed disappears without a trace at every log level, including DEBUG. The model then works without instructions the user believes are loaded.
This is the same symptom as #66716, which covers the native skill loader (skill.ts, which logs the skip at logDebug). This loader is the only one of the three that reports nothing at all.
Environment
- opencode version: 2.4.2, and
devat2204311e - Client: TUI / shared service
- Model and provider: Not relevant
- OS: Linux 6.x x86_64
- Terminal: xterm-kitty, truecolor
- Shell: /bin/bash
- Install/channel: latest (release)
- Active plugins: none related
Reproduction
-
Create a skill under a compatibility root, for example
~/.claude/skills/repro/SKILL.md, with frontmatter that parses as YAML but does not decode into the expected shape:--- name: repro description: [not, a, string] --- body -
Make sure that root is part of
compatibility.claudesoConfigCompatibilityPluginscans it. -
Start opencode and open the skills list (
/skills). -
The skill is absent.
-
Search the log for the path: there is no line naming the file, at the default level or with
OPENCODE_LOG_LEVEL=DEBUG.
Expected Behavior
A warning that names the file and the reason it was skipped, in the same shape the other two loaders already use for a file that exists but cannot be used (agent.ts:153/agent.ts:175, command.ts:142/command.ts:150). Both skip reasons should be reported, since both mean the file was found and then dropped.
Actual Behavior
No log output at any level; the skill is silently missing from the catalog.
Additional Context
SkillFile.parse returns { _tag: "Skipped", reason: "markdown" } when the frontmatter block cannot be read at all, and { _tag: "Skipped", reason: "frontmatter", issue } when it decodes into the wrong shape. Both are currently discarded by the if above.
- Lenguaje dominante
- TypeScript
- Estrellas
- 228k
- Forks
- 31k
- Merge medio
- 5 h 16 min
- PR fusionados (30 d)
- 464
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPosiblemente ocupada @argszero la tomó hace 1 día. Abiertoarea/tui platform/wsl status/repro-simulated type/bug version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
anomalyco/opencode#66773 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
area/sdk-api platform/linux type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
anomalyco/opencode#66604 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
console: Go vs Go Plus comparison bars on /console/go understate 4x limits due to log scalingAbiertoarea/web inference/go reproduced type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
anomalyco/opencode#66475 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
[FEATURE]: More colorful built-in Dracula theme for the desktop appQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abiertoarea/desktop type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anomalyco/opencode#66446 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2Abiertoarea/desktop platform/windows type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
anomalyco/opencode#66079 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
area:tui enhancement platform:macos
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Abiertoapproved check:passed streams:add
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Posiblemente ocupada @chaitanya0305 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
i-am-bee/beeai-framework#2049 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ardia-browser/ardia#4778 ·
Los mantenedores suelen responder en 1 día
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Posiblemente ocupada @G-darshan-32 la tomó hoy. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
clipy-recorder/clipy#164 · 1 comentario ·