Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/gaia-react/gaia/lintgit clone --depth 1 https://github.com/gaia-react/gaiaWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00018 | $0.00853 |
| Opus 5 | $0.00009 | $0.00426 |
| Sonnet 5 | $0.00004 | $0.00171 |
| Haiku 4.5 | $0.00002 | $0.00085 |
Grade A, and why
lint scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Immutability lint pass
Fired automatically by spec-kit on the after_specify event (mandatory hook). The agent reads this skill and audits the SPEC that /speckit-specify (or the GAIA preset's wrap) just produced.
Locate the artifact
The lint target is the SPEC artifact written by the preceding /speckit-specify invocation. In a GAIA project the preset redirects writes into .gaia/local/specs/SPEC-NNN/SPEC.md; in a bare spec-kit project the artifact lives at specs/<NNN>-<slug>/spec.md.
Resolve the path in this order:
- If
$ARGUMENTScarries an explicit path, use it. - Otherwise inspect
.gaia/local/specs/SPEC-*/SPEC.mdfor a SPEC file modified within the last five minutes (the just-written artifact). - Otherwise fall back to
.specify/feature.json(spec-kit's pointer to the active feature directory) and resolve<feature-dir>/spec.md.
If no candidate resolves, surface:
after_specifylint skipped: no SPEC artifact found at expected paths.
Run the lint helper
Run using the Bash tool:
bash .specify/extensions/gaia/lib/lint.sh <resolved-spec-path>
The helper emits a JSON result on stdout: {"ok": true, "findings": []} on pass; {"ok": false, "findings": [...]} on fail. Exit codes: 0 pass, 1 fail, 2 usage error.
Surface results
-
Pass. Emit:
after_specifylint passed: -
Fail. Emit each finding's
code,message, andwherefield on its own line. Then announce:after_specifylint failed: finding(s). Fix the SPEC and re-run, or invoke/gaia-specagain to amend before save. -
Usage error (exit 2). Treat as a tooling problem, not a SPEC problem; report the stderr message and skip the lint without blocking the lifecycle.
What the helper checks (reference; helper is the source of truth)
- Frontmatter present and well-formed.
- Required keys:
spec_id,type,status,immutable,wiki_promote_default,chain_trigger,intent,success_criteria,uats,scope_boundaries,clarifications,research_summary,created,updated. immutable: true.status∈ {in-progress,reopened,closed}.spec_idmatchesSPEC-NNN.- Every UAT entry has a frozen
uat_id: UAT-NNN. - No placeholder text (
[PLACEHOLDER],<TODO>,<TBD>,FIXME, bareTBD). - For
status: reopened: body contains## Reopen rationaleand## UAT diffsections (the reopen ceremony).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 62 lines · 18 tokens per session scan A d4f8e23d9473
lint is a command published in the GitHub repository gaia-react/gaia (22 stars, last pushed 2d ago), licensed MIT. It adds 18 tokens to every session and 853 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
pr-description
Generate a pull request description based on the changes in the current branch.
push-changes
If no topic provided, just document the recent changes. If a topic is provided, focus on documenting that topic.
create-PR
Command "create-PR" from bartstc/vite-ts-react-template, covering create a pr against this branch: $arguments, follow these steps and remember.
security-sast
Static Application Security Testing (SAST) for code vulnerability analysis across multiple languages and frameworks.
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.