skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- tooling
調査の方向性
修正は packages/core/src/config/plugin/compatibility.ts の互換性ローダーにある if (parsed._tag === "Parsed") のブランチに入れてください。現在このブランチは Skipped の結果を黙って破棄しています。agent.ts(153行目と175行目付近)と command.ts(142行目と150行目付近)が、存在するが使用できないファイルをどのように記録しているかを読み、同じ形式に合わせてください。markdown と frontmatter のスキップについて、警告にファイル名と理由が含まれ、テストでそのメッセージが表示されることを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 228k
- フォーク
- 31k
- 平均マージ
- 5時間 16分
- マージ済み PR(30日)
- 464
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
anomalyco/opencode のほかの issue
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaks対応中かも @argszero が 1 日前に担当しました。 オープンarea/tui platform/wsl status/repro-simulated type/bug version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
anomalyco/opencode#66773 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
area/sdk-api platform/linux type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
anomalyco/opencode#66604 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/web inference/go reproduced type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
anomalyco/opencode#66475 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[FEATURE]: More colorful built-in Dracula theme for the desktop app再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンarea/desktop type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anomalyco/opencode#66446 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2オープンarea/desktop platform/windows type/feature version/v2
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
anomalyco/opencode#66079 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
anomalyco/opencode の issue をすべて見る
似ている issue
-
area:tui enhancement platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
anthropics/claude-code#112838 ·
-
approved check:passed streams:add
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)対応中かも @chaitanya0305 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
i-am-bee/beeai-framework#2049 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
ardia-browser/ardia#4778 ·
メンテナーはふだん 1 日以内に返信
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)対応中かも @G-darshan-32 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
clipy-recorder/clipy#164 · コメント 1 件 ·