skills: a Claude-compatible SKILL.md that fails to parse is dropped without any log
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- tooling
Hướng nghiên cứu
Bản sửa nằm trong nhánh if (parsed._tag === "Parsed") của trình nạp tương thích trong packages/core/src/config/plugin/compatibility.ts, hiện nhánh này đang bỏ qua âm thầm các kết quả Skipped. Hãy xem cách agent.ts (quanh dòng 153 và 175) và command.ts (quanh dòng 142 và 150) ghi log cho một tệp tồn tại nhưng không thể sử dụng, rồi làm theo cùng cấu trúc đó. Hoàn thành khi một cảnh báo nêu tên tệp và lý do bị bỏ qua cho cả markdown và frontmatter, và một bài kiểm thử xác nhận thông báo xuất hiện.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 228k
- Fork
- 31k
- Merge trung bình
- 5 giờ 16 phút
- Pull request đã merge (30 ngày)
- 464
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode
-
tui: Mermaid renderer displays <b>/<strong> tags literally and ignores \n line breaksCó thể đã có người làm @argszero đã nhận 1 ngày trước. Đang mởarea/tui platform/wsl status/repro-simulated type/bug version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
anomalyco/opencode#66773 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/sdk-api platform/linux type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
anomalyco/opencode#66604 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
console: Go vs Go Plus comparison bars on /console/go understate 4x limits due to log scalingĐang mởarea/web inference/go reproduced type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
anomalyco/opencode#66475 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE]: More colorful built-in Dracula theme for the desktop appCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởarea/desktop type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#66446 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
desktop: app-version.v1 in drafts.sqlite is never refreshed — reports 1.19.4 while running 2.3.2Đang mởarea/desktop platform/windows type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
anomalyco/opencode#66079 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
area:tui enhancement platform:macos
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anthropics/claude-code#112838 ·
-
Add: Sports First TV (US)Đang mởapproved check:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RequirementAgent treats list -> add -> list as a tool call cycle and drops the second list call (Python)Có thể đã có người làm @chaitanya0305 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
i-am-bee/beeai-framework#2049 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ardia-browser/ardia#4778 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[M09] Silence parser misreads ffmpeg times in scientific notation (6.25e-05 → 6.25 s)Có thể đã có người làm @G-darshan-32 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
clipy-recorder/clipy#164 · 1 bình luận ·