shift: Skill for Claude Code

.agents/skills/add-lint/SKILL.md

add-lint is a skill for Claude Code, Codex from shift-editor/shift. It costs 141 tokens per session (1,153 once invoked), scanned A, original, Apache-2.0.

A guide for turning an unwanted code pattern into an automated check. Depending on the pattern, it places the check in an Oxlint rule, a Rust Clippy setting, or a TypeScript/Rust scanning report, then addresses the existing violations.

In plain words
What is it for?
Use it when a recurring coding pattern should be blocked by linting or reported by a scanner in TypeScript or Rust projects.
Why use it?
It stops teams from repeatedly catching the same mistake in code review. The process first agrees on real examples and an acceptable near-match so the check does not flag valid code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is shift-editor/shift's own configuration. It tells Claude Code and Codex how to work on shift 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 shift configures →

Reuse

Borrowing it

Nothing to install: this file belongs to shift-editor/shift. 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/shift-editor/shift/main/.agents/skills/add-lint/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/shift-editor/shift

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shift-editor/shift/add-lint"><img src="https://agentmods.dev/badge/skills/shift-editor/shift/add-lint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,153 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.
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.00141 $0.01153
Opus 5.5 $0.00056 $0.00461
Sonnet 5.5 $0.00028 $0.00231
Haiku 4.5 $0.00014 $0.00115

Measured yesterday against content hash 44753af1271c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-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 yesterday.

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.

.agents/skills/add-lint/SKILL.md · 77 lines

How it starts

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

/add-lint — Catch a pattern once, not in every review

Every pattern the user has to point out twice should be found by a tool after that. A rule that blocks is better than a report; a report is better than a reviewer remembering.

1. Pin the pattern down

Write a before/after for the pattern from real code (file:line), and one case that looks similar but is fine. Show it with show_code and agree it with the user before writing the check: a rule that flags the wrong thing teaches everyone to ignore it.

2. Pick where it lives

The pattern is Put it in Effect
Decidable in one TypeScript file, from syntax a rule in scripts/oxlint/shift-plugin.mjs, enabled in .oxlintrc.json blocks in pnpm lint:check and CI
Covered by an existing clippy lint [workspace.lints.clippy] in Cargo.toml blocks in clippy and CI
Covered by an oxlint built-in or a plugin rule (@shadcn/lint for the design system) .oxlintrc.json (the root, or a package's for its own rules) blocks
Needs other files, types, or a reviewer's judgement (TypeScript) a kind in scripts/scan/scan-ts.mjs pnpm scan:ts reports
Rust structure clippy can't see (free functions, shared shapes, chains) a Kind in crates/shift-scan pnpm scan:rust reports

Prefer the first row that fits. A scanner kind is right when some hits are correct code (a free numeric helper, a cache that really is a cache), so it can't block.

Read the full file on GitHub · 77 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. yesterday First seen · 77 lines · 141 tokens per session scan A 44753af1271c

Subscribe to this mod's changes

add-lint is a skill published in the GitHub repository shift-editor/shift (379 stars, last pushed today), licensed Apache-2.0. It adds 141 tokens to every session and 1,153 once invoked, about $0.0006 per session on Opus 5.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-10-28.

Related

Other skills, from other repositories