Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SkillSpec — the conformance standard for Agent Skills

Read the spec → SKILLSPEC.md · JSON Schema · Governance · RFCs

SkillSpec grades any SKILL.md into three conformance levels, with a security scan at every level:

Level Requires
L1 Loadable Valid frontmatter: kebab-case name matching the folder, a description with "Use when …" trigger conditions (that's what makes auto-discovery work)
L2 Structured Declared inputs ("Required Inputs" / "What This Skill Produces") and an Output section
L3 Trustworthy L2 + Quality Checks and Anti-Patterns — the skill can verify its own output

The security scan bans prompt-injection phrasing, unvetted network calls, data-exfiltration instructions, and embedded credentials. Security findings are always errors.

The validator: skillspec-check

The reference implementation lives in this repo (cli.mjs). Zero dependencies, Node ≥ 18.

npx skillspec-check                    # scan the current directory for SKILL.md files
npx skillspec-check skills/            # a specific tree
npx skillspec-check --min-level 2      # CI gate: every skill must be at least L2 Structured
npx skillspec-check --strict --json    # warnings fail; machine-readable output

Exit codes: 0 clean · 1 errors / below --min-level / warnings with --strict · 2 usage.

CI in one line

- run: npx skillspec-check --min-level 1   # add to any workflow; exits 1 on findings

pre-commit

repos:
  - repo: https://github.com/mohitagw15856/skillspec
    rev: v1.0.0
    hooks:
      - id: skillspec

The badge

A live-graded shield for any public repo — the badge service fetches your SKILL.md files, grades them with this validator, and reports the minimum level across the repo:

![SkillSpec](https://img.shields.io/endpoint?url=https%3A%2F%2Fpm-skills-mcp.pm-claude-skills.workers.dev%2Fbadge%3Frepo%3DYOURUSER%2FYOURREPO)

For OpenClaw skill authors

OpenClaw reads the same SKILL.md standard this spec formalizes, and its dialect is compatible: a skill carrying OpenClaw's homepage, user-invocable, or metadata.openclaw block (emoji, requires, os gating) validates cleanly — the metadata object is reserved in the spec precisely for runtime extensions, and RFC-0003 formalizes tolerance for the top-level keys.

Why lint before you publish to ClawHub: the registry is open by design, which is exactly why hidden-instruction and exfiltration-pattern skills have shown up there. skillspec-check runs the same security scan a 496-skill curated library gates its CI on — prompt-injection phrasing, unvetted network calls, data-exfiltration instructions, embedded credentials — plus the conformance grade:

npx skillspec-check my-skill/          # lint one skill before clawhub publish
npx skillspec-check ~/.openclaw/skills # audit everything you've installed

Add the badge to your skill repo so installers can see the grade before they trust you (see The badge above).

Governance

Changes to conformance levels, security patterns, or the schema land as RFCs with a 14-day comment window (template). Maintainership is earned by adoption — the two largest non-fork adopters found by each quarterly census hold standing invitations. See GOVERNANCE.md, and RFC-0001, which ratifies SkillSpec 1.0 as-is.

Adopters

Add yourself by PR to GOVERNANCE.md. Largest implementation: pm-claude-skills — 496 skills held at L3 by a CI gate.

Fix mode & advisories (v1.1)

npx skillspec-check fix skills/ --dry-run   # scaffold missing L2/L3 sections (TODOs, never invented judgment)
npx skillspec-check --advisories https://mohitagw15856.github.io/pm-claude-skills/advisories.json

fix makes a repo structurally conformant and leaves TODO warnings where a human must write the actual judgment. The advisories feed is a CVE-style pattern list published after releases — new attack patterns found in open registries land there before they land in a spec revision.

About

SkillSpec — the conformance standard for Agent Skills (SKILL.md). Spec, JSON Schema, zero-dep validator, RFC governance.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages