skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 72/100
- Type d'issue
- Bug
- Clarté
- Clairement spécifiée
- Activité
- Active
- Stack technique
- typescript
- Domaine
- tooling
Piste de recherche
La correction doit aller dans la branche if (parsed._tag === "Parsed") du chargeur de compatibilité dans packages/core/src/config/plugin/compatibility.ts, qui ignore actuellement silencieusement les résultats Skipped. Étudie la façon dont agent.ts (vers les lignes 153 et 175) et command.ts (vers les lignes 142 et 150) journalisent un fichier qui existe mais ne peut pas être utilisé, et reprends cette même forme. C'est terminé lorsqu'un avertissement nomme le fichier et la raison des ignorations de markdown et frontmatter, et qu'un test confirme que le message apparaît.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- TypeScript
- Étoiles
- 228k
- Forks
- 31k
- Merge moyen
- 5 h 16 min
- PR mergées (30 j)
- 464
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de anomalyco/opencode
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksPeut-être pris @argszero l’a pris il y a 1 jour. Ouvertearea/tui platform/wsl status/repro-simulated type/bug version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
anomalyco/opencode#66773 · 4 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
area/sdk-api platform/linux type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
anomalyco/opencode#66604 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
console: Go vs Go Plus comparison bars on /console/go understate 4x limits due to log scalingOuvertearea/web inference/go reproduced type/bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
anomalyco/opencode#66475 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
[FEATURE]: More colorful built-in Dracula theme for the desktop appPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouvertearea/desktop type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anomalyco/opencode#66446 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2Ouvertearea/desktop platform/windows type/feature version/v2
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
anomalyco/opencode#66079 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de anomalyco/opencode
Issues similaires
-
area:tui enhancement platform:macos
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Ouverteapproved check:passed streams:add
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
Les mainteneurs répondent en général sous 1 jour
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Peut-être pris @chaitanya0305 l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
i-am-bee/beeai-framework#2049 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
ardia-browser/ardia#4778 ·
Les mainteneurs répondent en général sous 1 jour
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Peut-être pris @G-darshan-32 l’a pris aujourd’hui. Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
clipy-recorder/clipy#164 · 1 commentaire ·