Skip to Content
agore-skill
Reference

Lint rules reference

All ten rules with severity, exact trigger logic, and message templates.

Lint runs ten rules per skill, always in this order. Severity values are Error and Warning. A rule whose ID appears in skill.lint.ignore is skipped. Messages below are the exact templates with placeholders in % style (as the implementation formats them).

Rules

SPEC-001 — valid frontmatter (Error)

Triggers when SKILL.md is missing, does not start with ---\n, has no closing --- line, its YAML frontmatter fails to parse, or the frontmatter contains unknown top-level fields — anything outside the allowed set name, description, license, compatibility, allowed-tools, metadata. The typical typo is allowed_tools (underscore); the real key is allowed-tools. Field names are reported sorted and comma-joined:

SKILL.md must start with a valid YAML frontmatter block delimited by ---
unknown frontmatter field(s) %s (allowed: name, description, license, compatibility, allowed-tools, metadata)

SPEC-002 — name validity (Error)

Triggers when the frontmatter name is empty, longer than 64 characters, does not match ^[a-z0-9]+(-[a-z0-9]+)*$, or differs from the skill directory's base name.

frontmatter name "%s" must be kebab-case (1-64 chars) and match directory name "%s"

SPEC-003 — description bounds (Error)

Triggers when description is empty after trimming whitespace, longer than 1024 characters, or compatibility is longer than 500 characters.

description must be 1-1024 chars (got %d); compatibility must be <= 500 chars

LAYOUT-001 — discoverable depth (Error)

Triggers when the skill directory's path relative to the workspace root is neither . (the root itself) nor exactly two segments (<anything>/<skill-name>), i.e. nesting deeper than one level.

skill directory "%s" is nested too deeply for skills.sh discovery (use root or skills/<name>)

TRIG-001 — trigger description (Warning)

Triggers when the trimmed description is shorter than 40 characters, or its lowercase form contains none of these substrings: use when, use this, trigger, when the user, when working, applies when, for (with trailing space), and the CJK forms 适用于 and 当.

description should clearly state trigger conditions (e.g., "Use when...") and be at least 40 chars

CTX-001 — context budget (Warning)

Triggers when any of: L1 tokens exceed skill.lint.budgets.description_max_tokens; L2 tokens exceed body_max_tokens; L2 lines exceed body_max_lines. Budgets of zero or less fall back to the defaults (120 / 2500 / 300).

context budget exceeded: L1=%d/%d tokens, L2=%d/%d tokens (%d/%d lines)

CTX-002 — dead reference (Error)

Triggers per broken reference: a relative path reachable from SKILL.md that does not exist in the skill directory. References come from Markdown links and from explicit references/, scripts/ and assets/ path mentions; URLs, anchors and paths escaping the skill directory are excluded. Extraction tolerates an optional ./ prefix (./references/guide.md) and strips trailing sentence punctuation, so Read references/guide.md. and Run `./scripts/run.sh`. extract correctly. Reachability is transitive: starting from the references SKILL.md mentions, the search follows references through references/*.md files breadth first (cycle-safe), resolving relative links inside the skill — so a missing multi-hop target (SKILL.md → references/a.md → references/b.md) is also broken.

referenced file "%s" does not exist in skill directory

CTX-003 — disclosure orphan (Warning)

Triggers per orphan: a file under references/ or scripts/ (only those two categories — files under assets/ are exempt) that is never reachable from SKILL.md, directly or transitively through the references/*.md graph. A file mentioned by a reached reference file is not an orphan.

file "%s" is never referenced in SKILL.md (progressive disclosure orphan)

SEC-001 — secrets and local paths (Error)

Triggers per match, scanning SKILL.md and every existing attached text file, for the regex (sk-[a-zA-Z0-9]{20,}|ghp_[a-zA-Z0-9]{36}|AKIA[0-9A-Z]{16}|/Users/[a-zA-Z0-9._-]+|/home/[a-zA-Z0-9._-]+|[A-Z]:\\Users\\). That is: OpenAI-style sk- keys, GitHub personal access tokens, AWS access key IDs, and absolute paths under /Users/ or /home/ or Windows user profiles. Binary files — a NUL byte within the first 512 bytes — are skipped, as are files removed by the inspect/release file funnel. Duplicate matches within one file report once.

potential hardcoded secret or local absolute path detected in %s: %s

SEC-002 — script hygiene (Warning)

Triggers per script file under scripts/ that lacks executable permission (mode bits 0111) or lacks a #! shebang on its first line.

script "%s" should have executable permissions (+x) and a #! shebang line

Summary table

Rule IDSeverityTrigger (condensed)
SPEC-001ErrorMissing/invalid frontmatter, or unknown top-level frontmatter fields
SPEC-002ErrorBad or mismatched name
SPEC-003ErrorEmpty/oversized description or compatibility
LAYOUT-001ErrorDepth beyond root or one parent level
TRIG-001WarningShort description without trigger wording
CTX-001WarningL1/L2 token or line budget exceeded
CTX-002ErrorReferenced file missing, directly or via the references/*.md graph
CTX-003WarningUnreachable file in references/ or scripts/
SEC-001ErrorCredential or local absolute path pattern (text files only)
SEC-002WarningScript without +x or shebang

Fix instructions per rule live in How to enforce lint in CI. How to add a rule of your own: How to add a lint rule.

On this page