safelint: Skill for Claude Code

.claude/skills/add-language-support/SKILL.md

add-language-support is a skill for Claude Code from shelkesays/safelint. It costs 91 tokens per session (4,154 once invoked), scanned A, original, MIT.

A development checklist for adding a new programming language or framework preset to the safelint code-checking tool.

In plain words
What is it for?
Use it when extending safelint with languages such as Go, C, C++, or PHP, or with framework and runtime presets.
Why use it?
It helps prevent incomplete support by covering grammar packaging, implementation, tests, documentation, examples, and bundled files.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md; mentions Codex; built for cline.

This is shelkesays/safelint's own configuration. It tells Claude Code how to work on safelint itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything safelint configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shelkesays/safelint. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/shelkesays/safelint/main/.claude/skills/add-language-support/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shelkesays/safelint

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 add-language-support

README.md
[![agentmods](https://agentmods.dev/badge/skills/shelkesays/safelint/add-language-support/github.svg)](https://agentmods.dev/skills/shelkesays/safelint/add-language-support)
Your own site
<a href="https://agentmods.dev/skills/shelkesays/safelint/add-language-support"><img src="https://agentmods.dev/badge/skills/shelkesays/safelint/add-language-support/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 add-language-support

Your own site · 80×15
<a href="https://agentmods.dev/skills/shelkesays/safelint/add-language-support"><img src="https://agentmods.dev/badge/skills/shelkesays/safelint/add-language-support.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,154 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.00091 $0.04154
Opus 5 $0.00046 $0.02077
Sonnet 5 $0.00018 $0.00831
Haiku 4.5 $0.00009 $0.00415

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

Security

Grade A, and why

add-language-support 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 12d 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/add-language-support/SKILL.md · 304 lines

How it starts

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

Adding a language or framework preset to safelint

This is the development checklist for extending safelint itself. The tracked human walkthrough is docs/contributing/adding-a-language.md (read it first; it has a worked TypeScript example). This skill is the enforcement layer: every item below must be done or explicitly recorded as deliberately skipped with a rationale. History shows the misses are never the engine code - they are the docs fan-out, the counts, the examples, and the bundled skill files.

Two workflows: Part A (new language), Part B (framework / runtime preset). Part C lists the conventions and the validation gate shared by both.


Part A: Adding a new language

A1. Grammar packaging

  • pyproject.toml: add tree-sitter-<lang> as its own optional extra (every language is opt-in; the base install ships no grammars), fold it into the [all] extra (single source of truth - dev pulls safelint[all]), and extend the extras comment block.
  • uv lock regenerates; commit uv.lock.

A2. Language module: src/safelint/languages/<lang>.py

  • Optional grammar import with _GRAMMAR_AVAILABLE flag (silent except ImportError fallback carries # nosafe: SAFE203, matching the five existing modules).
  • EXTRA_NAME, GRAMMAR_INSTALL_HINT, parser factory raising ImportError with the hint when the grammar is absent.
  • LanguageDefinition (extensions, comment_node_type, comment_prefix). Line-comment directives only; block-comment nosafe is a documented non-feature.
  • Node-type string constants (rules must import these, never hardcode strings) and a FUNCTION_TYPES aggregate containing body-bearing function nodes only (see the Rust module's note on excluding signatures).

A3. Registry: src/safelint/languages/__init__.py

  • Add the parallel registration block (grammar present -> _REGISTRY; absent -> _UNAVAILABLE_EXTENSIONS + _UNAVAILABLE_EXTRA_NAMES so the CLI can hint pip install 'safelint[<lang>]'). Keep the blocks grep-parallel with the existing five.
  • Export the definition in __all__. Do NOT reach into _REGISTRY from elsewhere; supported_extensions() is the public surface.

Read the full file on GitHub · 304 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. 12d ago First seen · 304 lines · 91 tokens per session scan A a2395c5032fe

Subscribe to this mod's changes

add-language-support is a skill published in the GitHub repository shelkesays/safelint (7 stars, last pushed 7d ago), licensed MIT. It adds 91 tokens to every session and 4,154 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens

axiom-concurrency

Use when writing ANY async code, actors, threads, or seeing ANY concurrency error. Covers Swift 6 concurrency, @MainActor, Sendable, data races, async/await patterns.

CharlesWiltgen/Axiom · 43 tokens