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

Aperta Adatta ai principianti
#369 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli

Direzione di ricerca

Leggi parse_frontmatter in src/skills.rs e segui come vengono usati i campi analizzati durante il caricamento di una skill. Riproduci il problema con i due esempi di SKILL.md nell’issue, quindi esegui i test pertinenti di parsing o sincronizzazione delle skill. Il lavoro è completato quando una skill con una mappa metadata con valori stringa viene caricata correttamente durante la sincronizzazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Rust
Stelle
247
Fork
30
Merge medio
4g 19h
PR unite (30g)
44

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di symposium-dev/symposium

Tutte le issue di symposium-dev/symposium

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.