lint-rules
Use when fixing a bug, the user corrects the same mistake twice or says "you missed some", a review comment or gotcha recurs, or you are about to write a…
Skill by AnthonyPoschen
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/anthonyposchen-lint-rules
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/lint-rules
What's inside
- Skill name
lint-rules- Description
- Use when fixing a bug, the user corrects the same mistake twice or says "you missed some", a review comment or gotcha recurs, or you are about to write a "don't do X"/"always do Y" into AGENTS.md, docs, a skill or a comment: the default answer is a repo-local lint rule. Also use when setting up or tightening linting, or contributing a rule back. Detects languages, wires shared rules into the linter and CI, and turns patterns into custom rules with failing examples.
- License
- MIT
- Instructions
- 99 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (82)
- CATALOG.md
- SKILL.md
- README.md · rules/css/
- create-config.cjs · rules/css/
- bad.css · rules/css/fixtures/
- builtin-color-bad.css · rules/css/fixtures/
- builtin-color-good.css · rules/css/fixtures/
- clipped-heading-bad.css · rules/css/fixtures/
- clipped-heading-good.css · rules/css/fixtures/
- colors-in-theme-bad.css · rules/css/fixtures/
- colors-in-theme-good.css · rules/css/fixtures/
- good.css · rules/css/fixtures/
- hex-bad.css · rules/css/fixtures/
- hex-good.css · rules/css/fixtures/
- hygiene-bad.css · rules/css/fixtures/
- hygiene-good.css · rules/css/fixtures/
- inline-color-bad.html · rules/css/fixtures/
- inline-color-good.html · rules/css/fixtures/
- layout-animation-bad.css · rules/css/fixtures/
- layout-animation-good.css · rules/css/fixtures/
- old-scheme-bad.css · rules/css/fixtures/
- old-scheme-good.css · rules/css/fixtures/
- page-component-bad.css · rules/css/fixtures/
- page-component-good.css · rules/css/fixtures/
- placeholder-bad.css · rules/css/fixtures/
- placeholder-good.css · rules/css/fixtures/
- svg-palette-bad.svg · rules/css/fixtures/
- svg-palette-good.svg · rules/css/fixtures/
- theme.css · rules/css/fixtures/
- unknown-token-bad.css · rules/css/fixtures/
- unknown-token-good.css · rules/css/fixtures/
- package-lock.json · rules/css/
- package.json · rules/css/
- colors-in-theme.js · rules/css/plugins/
- inline-color.js · rules/css/plugins/
- no-clipped-heading.js · rules/css/plugins/
- no-hex-color.js · rules/css/plugins/
- no-layout-animation.js · rules/css/plugins/
- no-old-scheme.js · rules/css/plugins/
- no-page-component-css.js · rules/css/plugins/
- no-placeholder-color.js · rules/css/plugins/
- svg-palette.js · rules/css/plugins/
- unknown-token.js · rules/css/plugins/
- stylelint.config.cjs · rules/css/
- test.js · rules/css/
- .golangci.yml · rules/go/fixture/
- calls.go · rules/go/fixture/bad/
- sql.go · rules/go/fixture/bad/
- go.mod · rules/go/fixture/
- main.go · rules/go/fixture/good/cmd/
- env.go · rules/go/fixture/good/config/
- print_test.go · rules/go/fixture/good/
- sql.go · rules/go/fixture/good/
- golangci.yml · rules/go/
- bufio-scanner-set-buffer.go · rules/go/semgrep/
- bufio-scanner-set-buffer.yml · rules/go/semgrep/
- errorf-wrap-with-w.go · rules/go/semgrep/
- errorf-wrap-with-w.yml · rules/go/semgrep/
- no-bare-todo.go · rules/go/semgrep/
- no-bare-todo.yml · rules/go/semgrep/
- …and 22 more
SKILL.md (first lines)
# Lint Rules
Stock linters are the baseline. Custom rules catch the patterns that keep
coming back. Every rule ships with a failing example and a catalog entry.
If a linter can check it, it is a lint rule, not prose. Prose (AGENTS.md,
docs, skills, comments) holds only the why and what no linter can check.
Rules break the build; prose gets skipped.
## Rules Explain Themselves
Every message states the problem, why it matters (one line, or a link to the
catalog row or decision note) and the fix, so an agent hitting it can act
without reading anything else.
```yaml
message: >-
Do not branch on error text. Messages change and wrapping breaks the match.
Compare with errors.Is against a sentinel, or errors.As into a typed error.
```
```toml
{ path = "std::thread::sleep", reason = "fixed sleeps waste time when fast and flake when slow; wait on an event or a bounded deadline" },
```
## Apply The Rules To A Repo
1. Detect languages: `go.mod` (Go), `Cargo.toml` (Rust), Kubernetes YAML
(`kind:` + `apiVersion:`, kustomize or Helm output), CSS (`*.css` or a
Stylelint config).
2. Go: enable golangci-lint with the settings in
[rules/go/golangci.yml](rules/go/golangci.yml). Copy the `*.yml` files in
[rules/go/semgrep/](rules/go/semgrep/) to `lint/semgrep/` and run
`semgrep --config lint/semgrep --exclude vendor`.
3. Rust: merge [rules/rust/Cargo-lints.toml](rules/rust/Cargo-lints.toml) into
`[workspace.lints]` and opt in library crates only, as its header says, and
merge [rules/rust/clippy.toml](rules/rust/clippy.toml) into `clippy.toml`.
Run `cargo clippy --all-targets -- -D warnings`. On an existing crate, gate
new code first: the cast lints alone hit hundreds of existing `as` casts.
Land the config with the current hits allowed at crate level, block new
ones in CI, then remove the allows as you burn them down.
4. Kubernetes: run kubeconform as in [rules/k8s/README.md](rules/k8s/README.md)
and copy the `*.yml` files in [rules/k8s/semgrep/](rules/k8s/semgrep/).
Run them on rendered output (`kustomize build`), so placeholder image names
are already replaced.
5. CSS: copy [rules/css/](rules/css/) (or merge
[rules/css/create-config.cjs](rules/css/create-config.cjs)). Set `themeFile`,
`prefix`, and `deprecated` for your palette. Install `stylelint@16.23.1`
and `postcss-html`, and run Stylelint as in
[rules/css/README.md](rules/css/README.md).
6. Wire each linter into CI so a failure blocks merge. On an existing codebase,
gate only new code first (golangci-lint `new-from-rev`, semgrep
`--baseline-commit`), then burn down the backlog.
7. Run [rules/test.sh](rules/test.sh) here (or `semgrep --test` on the repo's
rule directory) so every rule's failing example still fails.
## Write A New Rule
1. A problem happens: a bug, a gotcha, a review comment, or a "don't do X"
you were about to write down. One occurrence is enough for a repo-local
rule when a linter can catch it.
2. Pick the cheapest tool that can express it: a linter setting, then semgrep
or ruleguard for Go, Clippy `disallowed_methods`/`disallowed_types` or a
dylint lint for Rust, Stylelint for CSS, semgrep for YAML.
3. Write the failing example first (`// ruleid: <id>` lines for semgrep, a
fixture for others) and one passing example (`// ok: <id>`). One rule per
file: `<id>.yml` plus `<id>.go`, `<id>.test.yaml`, or `<id>.gomod`. Clippy
rules get a line in [rules/rust/fixture](rules/rust/fixture/src/lib.rs)
and in the `want` list in `rules/test.sh`.
4. Measure: run it over the repo (every repo you can reach for a global
rule), count hits and read a sample. Keep it only if most hits are real.
5. Add the rule, its failing example and a catalog row (rule, why, bad
example, date, origin, hits) in the same PR as the fix. If the repo has no
`lint/` yet, scaffold the minimum: `lint/semgrep/` plus one CI step running
`semgrep --test lint/semgrep && semgrep --error --config lint/semgrep`, or
a `[lints.clippy]` table plus `clippy.toml`.
6. Wire it into CI so a violation fails the build.
7. Delete any AGENTS.md, doc, skill or comment text the rule now enforces.
8. When you later hit a rule, read its message and fix the code. Propose
loosening the rule only if it is wrong, with the hits that show it.
9. When the same rule recurs across repos, promote it here (see below).
## Global Versus Repo-Local
- **Global** (lives here): true in any codebase, names no product, employer,
internal package or domain type. Example: no bare `TODO`.
- **Repo-local** (lives in the repo's `lint/` and `docs/lint-rules.md`):
mentions the repo's own types, packages, APIs or business rules. Example:
"use `billing.Cents`, not `int64`, for money".
## Contribute A Rule Back
When a repo-local rule turns out to be general, open a PR to agent-skills that
adds the rule file, its failing example and a [CATALOG.md](CATALOG.md) row.
Strip work or employer-specific code, names, paths and identifiers. Rewrite the
example from scratch rather than copying work code. Set origin to a generic
description, never the employer or internal repo name.From AnthonyPoschen/agent-skills, MIT.
More from AnthonyPoschen/agent-skills
- 0.603score
frontend-design
AnthonyPoschen
Design, build, restyle, or review polished frontend interfaces for web apps, dashboards, tools, landing pages, components, and responsive workflows.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
git
AnthonyPoschen
Git commits, worktrees, and releases.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
scripted-verification
AnthonyPoschen
Use when you are about to read logs, screenshots, diffs, timings, or benchmark numbers to decide whether something passed; when writing a "check", "verify"…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
coding
AnthonyPoschen
ALWAYS activate for programming-language work and code-adjacent project work: implementation, refactoring, debugging, code review, tests, CI fixes…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
create-verification-skill
AnthonyPoschen
Create a project-local verification skill by reading the codebase.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
eyes-on
AnthonyPoschen
Look at a rendered change the way a person would, before calling it done.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
dockerfile
AnthonyPoschen
Create, review, or update Dockerfiles and container build workflows.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
maintain-verification-skill
AnthonyPoschen
Keep a project's verification skill and feature map honest.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
makefile
AnthonyPoschen
Use when creating, reviewing, or editing Makefiles, make targets, make recipes, task runners, or documentation that tells users to run make commands.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
omarchy-development
AnthonyPoschen
Develop, test, debug, or contribute to Omarchy source code in an isolated environment.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
flux
AnthonyPoschen
FluxCD GitOps work.
SkillAFreshness: A★ 2Claude Code +9 - 0.598score
context-management
AnthonyPoschen
Use when a task involves large logs, long files, broad search results, screenshots, repeated reads, or fan-out planning.
SkillAFreshness: A★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 20, 2026 (8 days ago)
- Last release
- Oct 14, 2026 (14 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/AnthonyPoschen/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from AnthonyPoschen
- 0.603score
coding
AnthonyPoschen
ALWAYS activate for programming-language work and code-adjacent project work: implementation, refactoring, debugging, code review, tests, CI fixes…
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
frontend-design
AnthonyPoschen
Design, build, restyle, or review polished frontend interfaces for web apps, dashboards, tools, landing pages, components, and responsive workflows.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
create-verification-skill
AnthonyPoschen
Create a project-local verification skill by reading the codebase.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
dockerfile
AnthonyPoschen
Create, review, or update Dockerfiles and container build workflows.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
eyes-on
AnthonyPoschen
Look at a rendered change the way a person would, before calling it done.
SkillAFreshness: A★ 2Claude Code +9 - 0.603score
git
AnthonyPoschen
Git commits, worktrees, and releases.
SkillAFreshness: A★ 2Claude Code +9
Cite this page
lint-rules skill. Agent Mart. https://agentmart.dev/skills/anthonyposchen-lint-rules (last updated 2026-10-24)