mention-lint

mention-lint is a skill for Claude Code from jmagly/aiwg. It costs 13 tokens per session (1,136 once invoked), scanned A, original, MIT.

A checker for the style and correctness of @-mentions in a codebase.

In plain words
What is it for?
Use it to check a directory, apply fixes for supported problems, enforce strict validation, or run selected rules.
Why use it?
It finds broken paths and inconsistent mention usage before they make project links hard to trust.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is Only kernel-listed skills (`aiwg-doctor`, `aiwg-refresh`, `aiwg-status`, `aiwg-help`, `use`, `steward`) are directly invokable as slash commands. See [skill-dis.

Good fit Use it to check a directory, apply fixes for supported problems, enforce strict validation, or run selected rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jmagly/aiwg
agentmods
npx agentmods add skills/jmagly/aiwg/mention-lint

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mention-lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/jmagly/aiwg/mention-lint/github.svg)](https://agentmods.dev/skills/jmagly/aiwg/mention-lint)
Your own site
<a href="https://agentmods.dev/skills/jmagly/aiwg/mention-lint"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/mention-lint/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mention-lint

Your own site · 80×15
<a href="https://agentmods.dev/skills/jmagly/aiwg/mention-lint"><img src="https://agentmods.dev/badge/skills/jmagly/aiwg/mention-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.01136
Opus 5 $0.00006 $0.00568
Sonnet 5 $0.00003 $0.00227
Haiku 4.5 $0.00001 $0.00114

Measured 7d ago against content hash b1caf7c48616, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mention-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 7d 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.

agentic/code/addons/aiwg-utils/skills/mention-lint/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill access pattern (post-kernel-pivot, 2026.5+)

Skill names referenced in this document are AIWG skills, not slash commands. Most are not kernel-listed and cannot be invoked as /skill-name by the platform. Reach them via:

aiwg discover "<capability>"
aiwg show skill <name>

Only kernel-listed skills (aiwg-doctor, aiwg-refresh, aiwg-status, aiwg-help, use, steward) are directly invokable as slash commands. See skill-discovery rule.

@-Mention Linting

Validate @-mention style and fix common issues.

Usage

/mention-lint                    # Lint current directory
/mention-lint --fix              # Auto-fix fixable issues
/mention-lint --strict           # Exit with error on any issue
/mention-lint --rules ML001,ML005  # Run specific rules only

Options

Option Default Description
--target . Directory to lint
--fix false Auto-fix fixable issues
--strict false Exit with error on any issue
--rules all Comma-separated rule IDs

Lint Rules

Rule Description Severity Auto-fix
ML001 @-mention path does not exist error no
ML002 @-mention uses wrong case warning yes
ML003 Missing required prefix (.aiwg/, src/, test/) warning yes
ML004 Uses deprecated path pattern warning yes
ML005 Invalid ID format (UC-NNN, ADR-NNN) warning yes
ML006 Duplicate @-mentions in same file info yes
ML007 @-mention in wrong section info no
ML008 Orphan @-mention (no back-reference) info no
ML009 Circular @-mention chain warning no
ML010 @-mention exceeds max depth (>3 hops) warning no

Output Example

src/services/auth/login.ts
  L3:  ML005 @.aiwg/requirements/UC-3-auth.md should be UC-003 (auto-fixable)
  L5:  ML001 @.aiwg/architecture/adrs/ADR-999.md does not exist

test/integration/auth.test.ts
  L2:  ML003 @auth/login.ts should be @$AIWG_ROOT/src/auth/login.ts (auto-fixable)

.aiwg/architecture/software-architecture-doc.md
  L45: ML008 References @.aiwg/requirements/UC-005.md but no back-reference

Summary: 4 issues (1 error, 2 warnings, 1 info)
         3 auto-fixable (run with --fix)

Read the full file on GitHub · 140 lines

Changes

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.

  1. 7d ago First seen · 140 lines · 13 tokens per session scan A b1caf7c48616

Subscribe to this mod's changes

mention-lint is a skill published in the GitHub repository jmagly/aiwg (210 stars, last pushed today), licensed MIT. It adds 13 tokens to every session and 1,136 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-09-03.