New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@skillmds/core

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skillmds/core

SKILL.md parser, lint rules, security scanner, quality score, and text/JSON/SARIF/GitHub report formatters for Agent Skills.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@skillmds/core

npm version license

The SKILL.md engine behind SkillMD: parser, lint rules, security scanner, quality score, and report formatters for Agent Skills. The same code runs in the SkillMD registry, the skillmd CLI, and the skillmds MCP server — so a skill that lints clean locally is valid everywhere.

ESM-only. No runtime dependencies beyond yaml. Runs unchanged in Node (≥18), browsers, and edge runtimes.

Install

npm i @skillmds/core

Usage

import { lint } from "@skillmds/core";

const result = lint(rawSkillMd, { slug: "my-skill" });

result.ok;           // false when any error-severity diagnostic fired
result.score;        // quality score 0–100
result.diagnostics;  // [{ id: "SK011", severity: "warn", message: "...", line? }]
result.security;     // { flags: ["network_calls", ...], findings: [...] }

API surface

ExportWhat it does
lint(raw, options?)Parse → rules → security scan → quality score, in one call.
parseSkillMd(raw, type?)Parse SKILL.md frontmatter + body into a ParsedSkill (or a parse error).
runRules(skill, ctx?) / RULESRun (or inspect) the individual lint rules.
scanSecurity(body)Line-aware scan for scripts, network calls, and secret access.
qualityScore(diagnostics, security, opts?)The 0–100 score used across SkillMD.
toText / toJson / toSarif / toGithubReport formatters (SARIF uploads to GitHub Code Scanning).
skillMdFor(skill) / reconstructSkillMd(skill)Materialize an installable SKILL.md from a registry response.
isAllowedSourceUrl(url)Client-side SSRF guard for companion-file downloads.
slugify(name) / categorize(...)Naming + category helpers shared with the registry.

Full rule reference: docs/rules.md.

License

MIT

Keywords

agent-skills

FAQs

Package last updated on 07 Sep 2026

Related posts