AGENT SKILL

agent-skill-kit-security-auditor

Audit a skills tree for the four canonical security findings — unauthorized frontmatter fields, command-injection patterns in scripts, unvetted cross-repo dependency origins, and host-path leaks in body or scripts. Use when the user asks to audit, scan, security-check, or harden a skill or skills directory.

License 许可
Apache-2.0
最近更新
2026-05-28
Stars
★ 1
Forks
0

01 前言 Front Matter

name
agent-skill-kit-security-auditor
tier
org
license
Apache-2.0
description
Audit a skills tree for the four canonical security findings — unauthorized frontmatter fields, command-injection patterns in scripts, unvetted cross-repo dependency origins, and host-path leaks in body or scripts. Use when the user asks to audit, scan, security-check, or harden a skill or skills directory.
compatibility
requires `skills-ref` CLI; reads files only — no network, no exec

03 SKILL.md 正文

Agent Skill Security Auditor

Wraps the skills-ref audit CLI. Runs four independent passes and emits severity-graded findings (HIGH / MEDIUM / LOW). Exits non-zero on any HIGH, or on any MEDIUM when --strict is passed.

When to use

  • Before merging any change under .agents/skills/.
  • During CI on every PR touching skills or their scripts/ dirs.
  • After importing skills from a third-party repository.
  • During incident response when investigating a suspected supply-chain compromise.

Invocation

skills-ref audit <root> [--format json|human] [--strict] [--allowed-origins a,b] [--skip frontmatter|scripts|deps|path-leak]

Findings

Code Severity Trigger
A001_UNAUTHORIZED_FIELD MEDIUM Top-level frontmatter key not in the spec allowlist.
A010_COMMAND_INJECTION_PATTERN HIGH eval(, exec(, subprocess(...,shell=True), os.system(, backticks.
A020_UNVETTED_ORIGIN MED/HIGH Cross-repo dep owner outside --allowed-origins (HIGH when list is set).
A030_HOST_PATH_LEAK MEDIUM /Users/, /home/, or /tmp/ literal in body or scripts (with carve-outs for fenced bash/console/text blocks and blockquote lines).

Exit codes

Code Meaning
0 No HIGH findings (and no MEDIUM when --strict is set).
1 At least one HIGH (or any MEDIUM when --strict).

Pass-level skipping

--skip frontmatter,scripts,deps,path-leak disables individual passes. Useful when one pass has known noise that must be triaged before re-enabling.

Reference

The auditor is implemented twice — .agents/skills/agent-skill-kit-commons/packages/mjs/ and .agents/skills/agent-skill-kit-commons/packages/py/ — and shares one injection-pattern table at .agents/skills/agent-skill-kit-commons/packages/mjs/assets/injection_patterns.json (symlinked into py). The fixture suite lives under .agents/skills/agent-skill-kit-commons/fixtures/audit/.

04 同仓库更多 Skills

carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-validator

Validate one or many SKILL.md files against the agentskills.io specification — frontmatter, naming, body, optional-directory, and reference checks. Use when the user asks to validate a skill, audit skills, check SKILL.md, or run skills-ref against an existing skill or directory tree.

★ 1
carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-prompt-emitter

Emit progressive-disclosure artifacts from a skills tree — an `<available_skills>` XML block for stage-1 agent startup, or canonical JSON of frontmatter properties for CI consumption. Use when the user asks to export skill metadata, build a prompt block, generate JSON for CI, or wire skills into an agent host.

★ 1
carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-discoverability-linter

Score a SKILL.md description 0-100 for trigger quality, flag vague language, warn on vendor-specific frontmatter, and verify relative file references resolve. Use when the user asks to lint a skill, improve discoverability, score a description, or check why an agent never fires their skill.

★ 1
carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-description-optimizer

Optimize a SKILL.md description for trigger quality — generate synthetic positive and negative queries, score the current description by hit-rate vs false-positive, and propose three ranked rewrites. Use when the user asks to auto-tune, improve, or rewrite a skill description, fix a skill that never fires, or measure description quality.

★ 1
carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-dependency-resolver

Resolve and topologically sort skill dependencies, enforce the spec §3.3 inversion rule (project→app→team→org), warn on unpinned versions, and fail-closed on incompatible range conflicts. Use when the user asks to check skill dependencies, sort skills by build order, detect cycles, or audit skill version pinning.

★ 1
carlosmarte
carlosmarte/agents-skills-kit

agent-skill-kit-creator

Scaffold and validate agent skills against SKILL_SPEC.md (frontmatter, naming rules, structure). Use when the user asks to create a new agent skill, generate a SKILL.md file, scaffold a skill directory, or validate existing skills. Tier/scope (company, enterprise, org, team, project, application) is optional and off by default — engaged only when the user opts in with --tiers / --agents-skills-kit-tiers.

★ 1