Skip to Content
agore-skill
Reference

lint

Reference for agore-skill lint — flags, strictness, exit codes, and JSON output.

Usage

Usage
agore-skill lint [target...] [--flags]

Flags

FlagDefaultDescription
--changedoffOnly lint skills changed since workspace.base, including uncommitted working-tree changes
--strictoffTreat warnings as failures
--jsonoffPrint diagnostics as JSON
--configagore.yamlGlobal flag: path to the config file
--verboseoffGlobal flag: verbose diagnostics

Behavior

lint runs all ten deterministic rules — in the fixed order SPEC-001, SPEC-002, SPEC-003, LAYOUT-001, TRIG-001, CTX-001, CTX-002, CTX-003, SEC-001, SEC-002 — against each target skill. Rules listed in skill.lint.ignore are skipped entirely.

Strictness combines two sources: the --strict flag forces strict mode on; otherwise the skill.lint.strict value from agore.yaml applies (default false).

Exit code:

  • 1 when any diagnostic has severity Error, or — in strict mode — when any diagnostic has severity Warning. The message is Lint found blocking diagnostics.
  • 0 otherwise, including warnings in non-strict mode.

Zero-config: without an agore.yaml, the built-in defaults (including the default budgets) apply.

Empty sets: no discovered skills prints No skills found. (or [] with --json) and exits 0; --changed with nothing changed prints No changed skills. and exits 0.

File set. The files a skill exposes for scanning come from the same funnel inspect and release use: dotfiles and dot-directories, the workspace-root dist/ directory, agore.yaml at the skill root, .gitignore rules and the skill.exclude globs. Funnel-skipped files are not scanned — SEC-001 never sees them, and binary files (a NUL byte within the first 512 bytes) are skipped by SEC-001 too. Rule-level detail is in Lint rules reference.

Rendering

Without --json, a clean run prints ✓ No lint issues found. Any diagnostics render as a table with the columns Skill, Rule, Severity, File, Message, followed by a summary line <N> error(s), <M> warning(s).

JSON output

--json emits a flat JSON array of Diagnostic objects (indented two spaces), across all linted skills. Example with two diagnostics:

[
  {
    "rule_id": "TRIG-001",
    "severity": "Warning",
    "skill": "broken-skill",
    "file": "SKILL.md",
    "message": "description should clearly state trigger conditions (e.g., \"Use when...\") and be at least 40 chars"
  },
  {
    "rule_id": "CTX-002",
    "severity": "Error",
    "skill": "broken-skill",
    "file": "references/missing.md",
    "message": "referenced file \"references/missing.md\" does not exist in skill directory"
  }
]

Field definitions: JSON schemas. A clean run is [].

Interaction with release

The release command runs the same rule engine as a gate before bundling and aborts on any Error diagnostic. Warnings do not block releases.

Error cases

ConditionMessageExit
Blocking diagnosticsLint found blocking diagnostics.1
Target matches nothingSkill target "<t>" not found (use a skill name or a directory containing SKILL.md).1
--changed cannot resolve basecannot compute changed skills from <base>...HEAD: ...1

Note on degraded files: if a target directory exists but its SKILL.md cannot be parsed, lint still produces diagnostics (typically SPEC-001) rather than crashing; it lints what it could parse.

On this page