Skip to content

fix(skills): agentskills.io spec compliance for tags/platforms frontmatter#31579

Closed
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/skills-spec-compliance-clean
Closed

fix(skills): agentskills.io spec compliance for tags/platforms frontmatter#31579
alaamohanad169-ship-it wants to merge 1 commit into
NousResearch:mainfrom
alaamohanad169-ship-it:fix/skills-spec-compliance-clean

Conversation

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor

Summary

Adds agentskills.io spec compliance for skill frontmatter. The spec places agent-specific fields under metadata: instead of top-level. This change makes Hermes skill loading backward-compatible with both formats:

  • Read platforms from metadata.platforms (fallback from top-level)
  • Read tags from metadata.tags (fallback from metadata.hermes.tags)
  • Read related_skills from metadata (fallback from top-level)

All 3 loader sites updated:

  • agent/prompt_builder.py — platforms list building
  • agent/skill_utils.py — platform matching
  • tools/skills_tool.py — tags/related_skills parsing

Fully backward-compatible: existing skills with top-level fields work unchanged.

Tests

6 new tests in tests/agent/test_skill_utils.py covering both legacy and agentskills.io formats.

Changes

  • agent/prompt_builder.py: fallback to metadata.platforms
  • agent/skill_utils.py: fallback to metadata.platforms in skill_matches_platform()
  • tools/skills_tool.py: fallback to metadata.tags / metadata.related_skills
  • tests/agent/test_skill_utils.py: 6 new regression tests

Fixes #30080


Replaces #31352 — rebased cleanly onto current main to remove unintended diff pollution.

@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/agent Core agent loop, run_agent.py, prompt builder tool/skills Skills system (list, view, manage) labels May 24, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

4th attempt at this fix (prior: #30105, #30978, #31241, #31352 — all closed). Fixes #30080.
Rebased cleanly per PR description. Same author (alaamohanad169-ship-it).

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

✅ Ready to Merge

All CI checks are green and this PR is mergeable.

Summary: fix(skills): agentskills.io spec compliance for tags/platforms frontmatter

CI Status: All 6 test slices passing, lint clean, no conflicts.

Requesting merge when convenient. Thanks!

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/skills-spec-compliance-clean branch from 0ba6744 to 6a2ad08 Compare May 25, 2026 10:38
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

🔄 Rebased onto latest main (0219b04). All conflicts resolved. CI green. Ready for review.

@alaamohanad169-ship-it alaamohanad169-ship-it force-pushed the fix/skills-spec-compliance-clean branch from 6a2ad08 to 0c0c1c7 Compare May 25, 2026 22:32
@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

Note: This is NOT a duplicate of the prior closed PRs (#30105, #30978, #31241, #31352, #30080).
The earlier PRs were closed because they were stale (far behind upstream main).
This version has been cherry-picked onto the latest origin/main with a clean diff
containing only the fix changes. No conflicts. CI green. Ready for review.

@alaamohanad169-ship-it

Copy link
Copy Markdown
Contributor Author

Superseded by #33968 (clean rebase with bugfix). Closing this one.

@alaamohanad169-ship-it alaamohanad169-ship-it deleted the fix/skills-spec-compliance-clean branch June 2, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strict agentskills.io spec compliance: move tags/platforms under metadata in skill frontmatter

2 participants