Skip to content

fix(skills): load ray-data and ray-train by quoting YAML extras#196

Open
Yiğit ERDOĞAN (Yigtwxx) wants to merge 1 commit into
synthetic-sciences:mainfrom
Yigtwxx:fix/skill-frontmatter-yaml-extras
Open

fix(skills): load ray-data and ray-train by quoting YAML extras#196
Yiğit ERDOĞAN (Yigtwxx) wants to merge 1 commit into
synthetic-sciences:mainfrom
Yigtwxx:fix/skill-frontmatter-yaml-extras

Conversation

@Yigtwxx

Copy link
Copy Markdown

What does this PR do?

Fixes two bundled skills, ray-data and ray-train, that never load.

Their frontmatter declared dependencies as [ray[data], ...] and [ray[train], ...]. Inside a YAML flow sequence the [ in ray[data] opens a nested sequence, so gray-matter/js-yaml cannot parse the frontmatter. Skill.compute() catches the parse error and drops the skill, so both were missing from skill list, the / picker, and the Skills panel with no user-visible error. Quoting the extras makes each entry a plain scalar and both skills load again.

I also added a test that parses every bundled SKILL.md and validates its frontmatter, so a malformed block fails the suite instead of silently dropping a skill.

Fixes #187

How did you verify your code works?

  • Added test/skill/bundled-skills.test.ts. It fails on the two files before the quoting change and passes after.
  • bun test in backend/cli: the new tests pass and there are no new failures versus the base branch.
  • openscience skill list --all now lists ray-data and ray-train.

Checklist

  • bun run typecheck passes
  • bun test (in backend/cli) passes
  • bunx prettier --check . is clean
  • Linked an issue (Fixes #187)
  • Screenshots or a short video for UI changes (not a UI change)

Both SKILL.md files declared dependencies as [ray[data], ...] and
[ray[train], ...]. In a YAML flow sequence the inner [ opens a nested
sequence, so gray-matter/js-yaml cannot parse the frontmatter. The skill
loader catches the parse failure and drops both skills, so they never
appear in `skill list`, the / picker, or the Skills panel, with no
user-visible error. Quote the extras so each entry is a plain scalar.

Add a test that parses every bundled SKILL.md and validates its skill
frontmatter, so a malformed block fails CI instead of silently dropping
a skill.

Fixes synthetic-sciences#187
@vercel

vercel Bot commented Jul 17, 2026

Copy link
Copy Markdown

Yiğit ERDOĞAN (@Yigtwxx) is attempting to deploy a commit to the InkVell Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Two bundled skills (ray-data, ray-train) silently fail to load: unquoted ray[train] breaks YAML frontmatter

1 participant