Skills whose SKILL.md frontmatter has a `metadata` map are dropped

オープン 初心者向け
#369 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
cli

調査の方向性

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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

symposium-dev/symposium のほかの issue

symposium-dev/symposium の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。