lint-docs

lint-docs is a skill for Claude Code from MuhammadUsmanGM/claude-code-best-practices. It costs 55 tokens per session (394 once invoked), scanned A, original, MIT.

A documentation and shell-script quality checker for a repository. It runs the same ShellCheck, Markdownlint, and repository-specific documentation checks used by the project's continuous-integration system.

In plain words
What is it for?
Use it to validate shell scripts, selected Markdown files, and Claude instruction templates without changing any files.
Why use it?
It helps catch documentation formatting issues and shell-script problems before opening a pull request or sending changes to CI.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Bash(shellcheck:*), Bash(markdownlint:*), Bash(bash tools/lint-claude-md.sh:*), Bash(find:*), Bash(git status:*), Read.

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/MuhammadUsmanGM/claude-code-best-practices
agentmods
npx agentmods add skills/muhammadusmangm/claude-code-best-practices/lint-docs

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 lint-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/muhammadusmangm/claude-code-best-practices/lint-docs.svg)](https://agentmods.dev/skills/muhammadusmangm/claude-code-best-practices/lint-docs)
Your own site
<a href="https://agentmods.dev/skills/muhammadusmangm/claude-code-best-practices/lint-docs"><img src="https://agentmods.dev/badge/skills/muhammadusmangm/claude-code-best-practices/lint-docs.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00055 $0.00394
Opus 5 $0.00028 $0.00197
Sonnet 5 $0.00011 $0.00079
Haiku 4.5 $0.00006 $0.00039

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

Security

Grade A, and why

lint-docs 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 6d 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.

.claude/skills/lint-docs/SKILL.md · 38 lines

What it actually says

Lint Docs

Run the same three checks CI runs and report pass/fail per check.

Steps

  1. shellcheck — find every .sh under the repo and run shellcheck on it.
    find . -name '*.sh' -not -path './.git/*' -print0 | xargs -0 shellcheck
    
  2. markdownlint — run markdownlint on README.md, CONTRIBUTING.md, CHANGELOG.md, and everything under guides/, examples/, plugins/, tools/hooks/. Use .markdownlint.json at repo root.
  3. lint-claude-md — run bash tools/lint-claude-md.sh against every examples/claude-md-*.md template and the repo's own CLAUDE.md.

Output

Print a single summary table, one row per check:

Check Status Details

If any check fails, print the first 20 lines of its output below the table and stop. Do not try to auto-fix unless the user asks.

Rules

  • If shellcheck or markdownlint isn't installed, say so and skip that check — don't silently pass.
  • Do not modify files. This skill is diagnostic only.
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. 6d ago First seen · 38 lines · 55 tokens per session scan A be23428c6714

Subscribe to this mod's changes

lint-docs is a skill published in the GitHub repository MuhammadUsmanGM/claude-code-best-practices (78 stars, last pushed 2mo ago), licensed MIT. It adds 55 tokens to every session and 394 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

dart-language

Dart 3.x language feature standards: null safety, records, sealed classes, switch pattern matching, extensions, and async/await. Use when using !, ?., ??, late, sealed classes, record types, switch expressions, or async patterns — and before introducing any new Dart 3.x construct to confirm the modern idiomatic…

HoangNguyen0403/agent-skills-standard · 73 tokens

flutter-auto-route-navigation

Implement typed routing, nested routes, and auth guards using autoroute in Flutter. Use when the task explicitly uses autoroute or its generated router; defer generic deep-link setup and other routing libraries.

HoangNguyen0403/agent-skills-standard · 44 tokens

flutter-dependency-injection

Configure service locator setup using injectable and getit in Flutter. Use when wiring dependency injection with getit or injectable.

HoangNguyen0403/agent-skills-standard · 29 tokens

flutter-getx-state-management

Implement reactive state with GetX controllers, bindings, and observables in Flutter. Use when managing app state with GetxController, Obx, GetBuilder, or dependency lifecycle—not unit tests for existing controllers.

HoangNguyen0403/agent-skills-standard · 48 tokens

dart-best-practices

Dart code quality conventions: naming, const/final/var hierarchy, single quotes, trailing commas, collection idioms, tear-offs, and import organization. Use only for Dart style-focused changes or reviews; never activate for configuration-only lint setup, unrelated feature work, or widget tests.

HoangNguyen0403/agent-skills-standard · 64 tokens

dart-tooling

Dart static analysis, linting, formatting, and code-generation standards. Use only for analysisoptions.yaml, buildrunner, dart format, DCM, lefthook, or analyze/format CI failures; defer Dart language, null-safety, Flutter tests, and generic CI questions.

HoangNguyen0403/agent-skills-standard · 62 tokens