Skip to Content
agore-skill
Reference

JSON schemas

Field-by-field reference for inspect reports and lint diagnostics.

Two commands emit JSON: inspect --json (an array of reports) and lint --json (a flat array of diagnostics). Field names below are the exact JSON keys.

inspect Report

Emitted by inspect --json: a JSON array with one object per skill.

FieldTypeMeaning
skill_namestringThe frontmatter name, or the directory base name when empty.
skill_dirstringSkill directory relative to the workspace root (. for a root skill).
l1_tokensintEstimated tokens of name + " " + description (trimmed).
l2_tokensintEstimated tokens of the SKILL.md body (everything after the frontmatter).
l2_linesintLine count of the body; a trailing newline does not count.
l3_total_tokensintSum of token estimates over all scanned files (not only referenced ones). Binary files contribute nothing.
latest_versionstringThe newest <skill>/v* SemVer tag for this skill (e.g. v1.2.0), without the skill prefix. Omitted when no such tag exists; a root-level skill also falls back to plain v* tags.
unreleased_commitsintCommits since latest_version that touch the skill directory (git log <tag>..HEAD -- <skill rel path>). Omitted when zero or when there is no latest version.
files[]FileStatEvery scanned file, plus one synthetic entry per broken reference.
broken_refs[]stringReferenced relative paths that do not exist (sorted).
orphan_files[]stringFiles under references/ or scripts/ never reachable from SKILL.md (sorted).

FileStat

One element of files. Files are sorted by rel_path.

FieldTypeMeaning
rel_pathstringSlash-separated path relative to the skill directory.
categorystring"references", "scripts", "assets" when under that top-level directory, else "other". Broken references use the category derived from their path.
tokensintToken estimate of the file content (0 for broken references and binary files).
linesintLine count (0 for broken references and binary files).
bytesint64File size (0 for broken references).
referencedboolWhether the path is reachable from SKILL.md, directly or through the references/*.md graph.
existsboolfalse marks a broken reference (referenced but absent).
executableboolTrue when any execute bit (mode & 0111) is set.
has_shebangboolTrue when the content starts with #!.
binaryboolTrue when a NUL byte (0x00) appears within the first 512 bytes. Omitted when false. Tokens and lines are 0 and the file is excluded from l3_total_tokens.

Notes on the scan: the same file funnel as inspect applies — dotfiles and dot-directories at any depth, the workspace-root dist/ directory and agore.yaml at the skill root are always skipped, then .gitignore rules (read from the workspace root and the skill directory) and the skill.exclude globs. Details: Release format — Exclude globs. Only regular files are listed, and SKILL.md itself is not included in files.

lint Diagnostic

Emitted by lint --json: a flat JSON array of diagnostics across all linted skills (not grouped per skill).

FieldTypeMeaning
rule_idstringOne of the ten rule IDs (SPEC-001 … SEC-002).
severitystring"Error" or "Warning".
skillstringThe frontmatter name of the offending skill; empty when unparseable.
filestringFile the diagnostic applies to — usually SKILL.md, otherwise the offending relative path. Omitted when empty.
messagestringThe human-readable message, formatted from the rule's template.

Examples and the full rule table: Lint rules reference.

Token estimate

Both levels use the same deterministic offline estimator (EstimateTokens): ASCII bytes count as one quarter token each — (asciiBytes + 3) / 4 — and each non-ASCII rune (CJK and friends) counts as 1.5 tokens. Non-empty text never estimates below 1. The estimate needs no network, no model and no dictionary, so the same content always yields the same number on every machine.

On this page