skilldoctor
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 46 GitHub stars
Code Uyari
- process.env — Environment variable access in dist/action.js
- process.env — Environment variable access in dist/color.js
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Quality gate for Agent Skills: lint, security audit, and Claude/Cursor/Codex/OpenCode compatibility.
skilldoctor
Quality gate for Agent Skills. Lint the spec, audit unsafe instructions, and check whether a SKILL.md actually works on Claude Code, Cursor, Codex, and OpenCode.
Agent Skills 的质量门禁:校验官方规范、审计危险指令,并检查同一个 SKILL.md 在 Claude Code、Cursor、Codex、OpenCode 上能不能移植。
Vercel npx skills installs skills. skilldoctor decides whether you should keep them.
Vercel 的 npx skills 负责安装。skilldoctor 负责判断该不该留。
Install / 安装
npx --yes github:xyiqq/skilldoctor --help
npx --yes github:xyiqq/skilldoctor lint .
npx --yes github:xyiqq/skilldoctor audit .
npx --yes github:xyiqq/skilldoctor compat .
npx --yes github:xyiqq/skilldoctor ci .
From a clone / 从源码:
git clone https://github.com/xyiqq/skilldoctor.git
cd skilldoctor
npm install
npm run build
node dist/cli.js --help
Requires Node.js 18.18 or newer.
Commands / 命令
npx --yes github:xyiqq/skilldoctor lint ./my-skill
npx --yes github:xyiqq/skilldoctor audit ./my-skill
npx --yes github:xyiqq/skilldoctor compat ./my-skill
npx --yes github:xyiqq/skilldoctor ci ./my-skill
npx --yes github:xyiqq/skilldoctor scan
npx --yes github:xyiqq/skilldoctor init pdf-processing
npx --yes github:xyiqq/skilldoctor rules
scan is also available as skilldoctor doctor.
path can be one skill directory or a repository root. skilldoctor walks the tree and finds every SKILL.md.
path 可以是单个 Skill 目录,也可以是仓库根目录。skilldoctor 会向下查找全部 SKILL.md。
Options / 参数
| Flag | Values | Default |
|---|---|---|
--format |
human, json |
human |
--fail-on |
error, warning, never |
error |
--quiet |
off |
skilldoctor ci . --format json --fail-on warning
Example / 示例
skilldoctor ci 1 skill(s)
✔ release-notes examples/release-notes
1 skills 0 errors 0 warnings 0 info
A failing audit looks like this / 失败的审计类似:
✖ audit-injection test/fixtures/audit-injection
error audit/prompt-injection SKILL.md:8 instructions try to override system or hidden-user policy
GitHub Action
name: skilldoctor
on:
pull_request:
push:
branches: [main]
jobs:
skills:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: xyiqq/[email protected]
with:
path: .
fail-on: error
Or run the CLI from this repository / 或者直接跑本仓库 CLI:
- run: npx --yes github:xyiqq/skilldoctor ci .
What it checks / 检查什么
- lint —
name,description, directory match, YAML, metadata types, 500-line budget, brokenreferences//scripts//assets/links - audit — prompt injection, hardcoded secrets, credential paths,
Bash(*),curl | sh, dump hosts, self-modifying skills - compat — which frontmatter fields survive outside Claude Code
- scan — skills already installed for local agents, including duplicate names
Rule IDs are stable: docs/RULES.en.md / docs/RULES.zh-CN.md
Why not another installer? / 为什么不再做安装器?
The installer slot is taken. This tool is the missing CI gate: authors add one command, reviewers see annotations, users run audit before a skill touches ~/.codex/skills.
安装器赛道已经有人占了。这个工具补的是 CI 门禁:作者加一条命令,审查者能在 PR 里看到 annotation,用户在 Skill 进 ~/.codex/skills 之前先跑 audit。
Development / 开发
npm install
npm test
npm run build
node dist/cli.js lint examples
See CONTRIBUTING.md.
License
MIT
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi