Skip to content

The skill security scan

Every pull request that changes .agents/skills/ is scanned at each new commit by SkillSpector, in an isolated Kubernetes Job with no token, no credential and no network. The factory App posts the scan findings and authoring lint as a pull request comment, while the merger App sets the commit status maku/skill-scan.

Scan outcomes

Resultmaku/skill-scan
No finding, or only low and medium onessuccess
A high or critical findingfailure: held as skill_security
The scan could not runfailure: held as skill_security
The pull request changes no skillsuccess, “no skill files changed”
The list of changed skill files is over GitHub’s compare capfailure: input_too_large

Every head is compared against the repository’s default branch, whatever the pull request’s base. A transient GitHub read or a scan that cannot start posts nothing and is retried: the pending required status keeps the merge blocked meanwhile.

Override a held commit

A maintainer who has read a held pull request clears it with a comment naming its head commit in full: /factory skill-override <the 40-hex head sha> <why>. The scan comment prints the exact command to copy. A shorter form of the sha is ignored, so an override of one commit never applies to another that shares its first digits. A new push is scanned again. A pull request over the compare cap needs the same override. Only the factory App’s own scan comment counts as the scan’s record; a lookalike comment from anyone else is ignored, and so is an edited override.

Authoring lint rules

The lint informs and never holds a pull request. Its rules, by the name each note carries:

RuleNotes a skill whose
frontmatterfrontmatter does not parse, or breaks the name or description rule
keysfrontmatter has a key outside the Agent Skills standard’s (put it under metadata)
description_shortdescription is under 40 bytes
description_whendescription does not say when to use the skill: it has neither “use when”, “use for” nor “use to”, nor a clause opening on “when”, “before”, “after”, “whenever” or “if” followed by a word ("…before opening a pull request…")
body_sizeSKILL.md is over 500 lines or near its size limit
script_missingSKILL.md cites a file the directory does not have
network_callscript makes a network call

Repository setup

Configure a branch ruleset requiring the status check maku/skill-scan from the merger App (GitHub’s “expected source”), so a status posted by any other token does not satisfy it. Because a ruleset cannot filter checks by path, it applies to every pull request on the branch — which is why the merger App posts success (“no skill files changed”) on pull requests that touch no skill. Without the ruleset requirement, the hold is advisory and the scan comment says so.

For cluster-side skillScan configuration, merger App permissions (statuses: write), and how the scan pod’s network deny policy is verified before scanning, see How the scan pod is isolated.