Skills whose SKILL.md frontmatter has a `metadata` map are dropped
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
src/skills.rs の parse_frontmatter を読み、スキルの読み込み時に解析されたフィールドがどのように使われるかを追ってください。issue にある 2 つの SKILL.md の例で再現し、その後、関連するスキルの解析テストまたは同期テストを実行してください。文字列値を持つ metadata マップを含むスキルが同期中に正常に読み込まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
parse_frontmatter in src/skills.rs requires every frontmatter value to be a string (SKILL.md frontmatter field {key} must be a string). The Agent Skills specification defines metadata as an optional map of string keys to string values, so a skill that follows the spec and uses it fails to parse.
The failure is only a WARN in the log. cargo agents status still shows the plugin as active, and sync -v reports the skill group as matched with 0 skill(s) found, so the author sees no error and the user gets no skill.
Steps to reproduce
With symposium 0.5.1, a path plugin source containing two skills:
fmtest/
SYMPOSIUM.toml # name = "fmtest", depends-on = ["*"], [[skills]] source.path = "."
plain/SKILL.md
with-metadata/SKILL.md
plain/SKILL.md:
---
name: plain
description: test
---
body
with-metadata/SKILL.md:
---
name: with-metadata
description: test
metadata:
author: someone
---
body
Run cargo agents sync -v in any workspace. plain is installed. with-metadata is not, and the log has WARN symposium::skills: failed to load skill ... failed to parse frontmatter in .../with-metadata/SKILL.md.
The same happens through a source.git group.
Expected
metadata (a map of strings) is accepted, as the specification allows, whether it is kept or ignored. More generally, a field Symposium does not use could be skipped instead of failing the whole skill. A skill that fails to load could also show up as an error in status and sync, not only in the log.
Environment
symposium 0.5.1 (cargo install symposium). The same check is on main at 9c045ff4.
- 主要言語
- Rust
- スター
- 247
- フォーク
- 30
- 平均マージ
- 4日 19時間
- マージ済み PR(30日)
- 44
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
symposium-dev/symposium のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
symposium-dev/symposium#530 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
symposium-dev/symposium#406 ·
メンテナーはふだん 5 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
symposium-dev/symposium#208 ·
メンテナーはふだん 5 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
symposium-dev/symposium#531 ·
メンテナーはふだん 5 日以内に返信
-
ACP test setup leaks session settings into the test process対応中かも @gmemuriuki が今日担当しました。 オープンbug
symposium-dev/symposium#527 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
symposium-dev/symposium の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
topgrade-rs/topgrade#2540 ·
メンテナーはふだん 1 日以内に返信
-
Invalid JSON options for ngram and edge_ngram silently use defaults対応中かも @Tilendlesa が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
noemaforge/vimanam#153 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 3 日以内に返信