lint-rule

lint-rule is a skill for Claude Code from langwatch/langwatch. It costs 122 tokens per session (2,491 once invoked), scanned A, original, Apache-2.0.

A guide for adding or changing a custom oxlint rule, which is an automated check for source-code patterns. It covers the rule, its tests, registration, configuration, and generated reference documentation.

In plain words
What is it for?
Use it when deciding whether a rule belongs in file linting or whole-project architecture checks, then adding its fixtures, registration, and configuration.
Why use it?
It keeps a new check consistently enabled, documented, and tested instead of leaving it disconnected from the project's linting system.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Good fit Use it when deciding whether a rule belongs in file linting or whole-project architecture checks, then adding its fixtures, registration, and configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langwatch/langwatch/lint-rule
About the project

LangWatch is a platform for testing, evaluating, and monitoring LLM-powered agents before release and in production. Teams use it to run agent simulations, trace and evaluate behavior, improve prompts and models, review failures, and manage provider costs and governance.

langwatch/langwatch · 5,059 stars · on GitHub · langwatch.ai

Install

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.

Any agent
npx skills add langwatch/langwatch --skill lint-rule
Clone the repo
git clone --depth 1 https://github.com/langwatch/langwatch

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-rule

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/langwatch/langwatch/lint-rule"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/lint-rule.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,491 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00122 $0.02491
Opus 5.5 $0.00049 $0.00996
Sonnet 5.5 $0.00024 $0.00498
Haiku 4.5 $0.00012 $0.00249

Measured 1mo ago against content hash ecfa7adedb56, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lint-rule scanned grade A with 1 finding 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- No `fs`, `child_process`, `new Date()` or JSON parsing inside `create` or a visitor.
.claude/skills/lint-rule/SKILL.md · 168 lines

How it starts

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

Add or change a langwatch lint rule

Every rule lives in packages/oxlint-rules/src/rules/<rule>.rule.mjs, is registered once in the rules map of packages/oxlint-rules/src/index.mjs (keyed by the name its defineRule declaration carries), and is enabled once, at error, in packages/architecture-enforcer/oxlint.architecture.jsonc (which .oxlintrc.plugin.jsonc extends; pnpm lint runs it beside the native config, ARCHITECTURE.md §17). The plugin-config guard (packages/oxlint-rules/tests/plugin-config.unit.test.mjs) refuses a rule at warn, a registered rule no config enables, and a configured rule the registry does not hold. dev/docs/lint-rules.md is generated from those declarations — read it before writing a new rule, so you extend the house grammar.

1. Decide the instrument first

  • A rule when the fact is per-file, syntactic, and the fix is mechanical enough to state in one sentence.
  • An architecture-enforcer policy (packages/architecture-enforcer/src/policies/, registered in policies/index.ts) when it needs the import graph, package manifests or the whole catalogue. It runs under pnpm lint:architecture, not pnpm lint.
  • A native oxlint rule or overrides block when a built-in already means the same thing (ADR-135: the lowest layer that can express it). Put it in the split config pnpm lint loads, .oxlintrc.native.jsonc for stock rules (.oxlintrc.types.jsonc for type-aware ones); .oxlintrc.jsonc only extends those for a scoped run.
  • A test in the owning package when only one module must hold the property.
  • A doc in dev/docs/best_practices/ when the rule cannot name a fix. Do not lint taste.

2. Measure before you write

Put the rule at error in a scratch config under $TMPDIR, never in the repo:

cat > "$TMPDIR/one-rule.json" <<EOF
{
  "plugins": [],
  "jsPlugins": [{ "name": "langwatch", "specifier": "$PWD/packages/architecture-enforcer/oxlint-plugin.mjs" }],
  "rules": { "langwatch/<rule>": "error" }
}
EOF
pnpm --silent exec oxlint --disable-nested-config -c "$TMPDIR/one-rule.json" \
  apps packages modules enterprise sdks/typescript/src mcp/typescript/src | grep -c '<rule>'

Read the full file on GitHub · 168 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. 1mo ago Changed · +5 lines ecfa7adedb56
  2. 1mo ago First seen · 163 lines · 122 tokens per session scan A e5aa489a6fb9

Subscribe to this mod's changes

lint-rule is a skill published in the GitHub repository langwatch/langwatch (5,059 stars, last pushed today), licensed Apache-2.0. It adds 122 tokens to every session and 2,491 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.

Related

lint-rule compared with skills from other repositories

lint-rule next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lint-rulelangwatch/langwatchSkill5.1ktodayApache-2.0A122Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
trulens-diagnosistruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
evalscopemodelscope/evalscopeSkill3.7k2d agoApache-2.0A195Claude Code, Codex
trulens-evaluation-workflowtruera/trulensSkill3.7k2d agoMITA18Claude Code, Codex
trulens-dataset-curationtruera/trulensSkill3.7k2d agoMITA19Claude Code, Codex
qaSkyvern-AI/skyvernSkill24ktodayAGPL-3.0A33Claude Code, Codex