Skip to content

Share the skills ecosystem with openclaw — one SKILL.md world #47

Open

Description

@melvincarvalho

jsclaw already implements openclaw's SKILL.md format (YAML frontmatter, keyword/regex/attachment triggers, prompt injection) and has jsclaw skill list|install|remove — but install is local-path-only and format parity has never been verified against real openclaw skills. The opportunity: openclaw has a living ecosystem of skills; jsclaw should consume and contribute to it rather than fork it.

Scope

  • Format parity audit: take a representative set of real openclaw skills and run them through parseSkill/matchSkills; fix every delta (frontmatter fields, trigger semantics, attachment handling, prompt-injection placement). Parity is testable: a fixtures dir of upstream skills that must parse and trigger identically.
  • Install from anywhere: jsclaw skill install <url|owner/repo|path> — fetch a SKILL.md (or skill folder) over HTTPS/git, not just local paths. Zero-dep: fetch + git CLI.
  • Registry/hub compatibility: whatever discovery mechanism openclaw uses for sharing skills (hub, repo convention, index), support the same source format so one published skill serves both ecosystems.
  • Contribute back: publish jsclaw-grown skills in the same format; document "works with openclaw and jsclaw" as the authoring target.
  • Per-agent skills: skills currently load from a global skillsDir; agents should also pick up agents/<id>/skills/ so a pod/workspace can carry its own (matters for the JSS integration, jsclaw integration — agent containers on Solid pods JavaScriptSolidServer/JavaScriptSolidServer#199).

Why this matters

Skills are the unit of capability-sharing. Compatible gateways (#45, protocol umbrella) make the clients shared; compatible skills make the behaviors shared. Together they mean jsclaw is a lightweight engine inside the openclaw ecosystem rather than an island.

Related: #44, #45, jsclaw/docs#1.

Activity

  1. melvincarvalho commented on Jun 11, 2026

    @melvincarvalho
    ContributorAuthor

    Parity audit (2026-06-11) — real skills as fixtures

    Ran all 58 skills bundled with openclaw 2026.6.1 plus 17 Anthropic-format skills from a live ~/.claude/skills through jsclaw's parseSkill/loadSkills/matchSkills. Verdict: format-compatible on paper, ecosystem-incompatible in practice. Findings, ranked:

    1. Zero openclaw skills load — folder discovery missing (blocker)

    loadSkills reads only flat *.md files in skillsDir. 74/75 real skills are folders (<name>/SKILL.md + scripts/resources). Parsing works; discovery doesn't. installSkill has the same single-file assumption, and folder skills reference their resources relatively, so install must copy the folder.

    2. Trigger model is semantically wrong for upstream skills (architectural)

    jsclaw fires skills via host-side trigger: keyword/regex, defaulting to * = always inject the body. openclaw/Anthropic skills have no trigger field — the model is description-driven: agents always see name+description and decide when to pull the body. Consequence today: installing the 58 openclaw skills injects all 58 bodies into every prompt — a token bomb. Parity means adopting description-driven surfacing (inject a skills index; body on demand), with jsclaw's trigger matching kept as an optional extension.

    3. Skills aren't wired into the runtime at all

    matchSkills/buildSkillContext have exactly one consumer: the CLI skill test command. Gateway, channels, and heartbeat never load or inject skills. The system is currently demo-ware — fixing 1 and 2 matters only once something consumes them on the message path.

    4. Parsing is solid: 58/58 openclaw skills parse

    (73/75 overall — both failures were local files with no frontmatter at all, not upstream skills.) The zero-dep YAML parser survives openclaw's nested JSON-in-YAML metadata without crashing.

    5. Meaningful frontmatter silently dropped

    metadata.openclaw.requires/install (dependency gating + installer machinery), user-invocable, allowed-tools, uses, author, homepage — parsed past and discarded. Minimum viable: preserve metadata on the Skill object and respect user-invocable; the installer machinery can stay unsupported-but-documented.

    Revised scope order for this issue

    1. Folder skills (discovery + install) — unlocks every fixture
    2. Description-driven surfacing — the real compatibility work
    3. Wire skills into the gateway message path
    4. Preserve upstream frontmatter; document what's honored vs ignored
    5. skill install <url|repo> and per-agent agents/<id>/skills/ as originally scoped

    Fixture sources for regression: openclaw's bundled skills/ dir (58) + Anthropic-format skills (17).

  2. added 3 commits that reference this issue on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions