/bretfisher-devops:super-lintingfrom bretfisher-devops
Sets up local development linting by selecting the right linter per file type, recording them as pre-commit checks in AGENTS.md/CLAUDE.md and a `make lint` target. Uses super-linter's linter list with local install and run commands.
Ships in bretfisher-devops. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pick one linter for each file type the project uses, and make those linters a required step before every
commit: a ## Linting section in the project's agent guide, plus a make lint target a human can run.
The goal is a fast local loop that catches problems while code is written. CI workflows belong to the
github-actions-workflow-pro skill.
"Lint before every commit" and "make them run before any commit" are met by the ## Linting section and
make lint: that section is what makes every agent session lint before it commits. Add a git hook
(.githooks/, core.hooksPath, or a .pre-commit-config.yaml) only when the user names a git hook or a
pre-commit hook, because a hook changes how every commit works for every person on the repo. In all other
cases, finish the agent guide and make lint, then ask the hook question in step 6.
The linter choices come from the super-linter project's list of linters per language. This skill ships that list with local install and run commands, and each reference file gives the date it was last checked. Read the references for every linter choice, because they are the complete source for this skill.
git status, files the user is about to create): cover only those file types.Map files to languages with the table in linter-commands.md. A file type that table sends elsewhere is in more-linters.md; read that file only then.
Use the Primary linter from the references (Python → ruff, Shell → shellcheck, Dockerfile →
hadolint, YAML → yamllint, Terraform → tflint). Name the other super-linter tools for that language
as optional extras and install none of them by default, because a wall of linters is the fastest way to get
linting abandoned. Name a formatter separately, because formatting and linting are different jobs.
Security scanners (Checkov, Trivy, zizmor) are extras for infrastructure-heavy repos.
Check each linter with command -v <tool>. For each missing one, show the install command from the
references; on macOS prefer Homebrew. Ask the user to confirm before you install anything, because
installs change their machine.
Edit AGENTS.md or CLAUDE.md, whichever exists (when one is a symlink, edit the real file). When
neither exists, ask whether to create AGENTS.md. Add or update this section, with one row per file type
the project uses:
## Linting
Before committing, lint every file type you changed and fix what the linter reports, so problems are
caught locally. Commit only after the relevant linters pass. Run `make lint` to check everything at once.
| File type | Linter | Run |
| -------------- | ---------- | -------------------- |
| Python (`.py`) | ruff | `ruff check <files>` |
| Shell (`.sh`) | shellcheck | `shellcheck <files>` |
Optional extra linters for this project: <list, or "none">.
make lint and document itAdd a lint target to the Makefile (create one when there is none) that runs each primary linter across
the repo, and mention make lint in README.md. Match the existing Makefile and README style.
.PHONY: lint
lint: ## Run all project linters
ruff check .
git ls-files -z --cached --others --exclude-standard '*.sh' | xargs -0 -r shellcheck
Report the file types found, the linters chosen (primary and optional) and why, what is installed and what still needs an install, and the files you edited. Then ask:
"Linting is now in your agent guide and
make lint. Do you also want a git pre-commit hook that blocks a commit when a linter fails, or is the agent guide andmake lintenough?"
Add .githooks/ and a make hooks target (or a .pre-commit-config.yaml) only when the user says yes,
because a hook changes how every commit works and the user did not ask for one.
## Linting section that says to lint before committing, one row per file type in scopeMakefile lint target runs each primary linter, and README.md mentions make lintWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
super-linter, linting-setup, pre-commit, make-lint, agent-guide
6 skills in this plugin
/docker-proCreate, edit, and modernize Dockerfiles, .dockerignore, Docker Bake files, and Compose files using Bret Fisher's strongly opinionated modern Docker + BuildKit rules. Use this skill whenever the user asks about a Dockerfile, containerizing or "dockerizing" an app, base image choice, digest/SHA pinning of image tags, multi-stage builds, BuildKit, build caching or secrets, .dockerignore, docker-bake.hcl / `docker buildx bake`, hardened or distroless images (Chainguard, Docker Hardened Images / DHI), a compose.yaml / docker-compose file, or local dev environments with Compose — even for a small change to any of these files./gha-auditAudit the GitHub Actions workflows in this repo for security, speed, and correctness, and report findings with a proposed diff./github-actions-workflow-proCreate, edit, audit, and speed up GitHub Actions workflows using Bret Fisher's opinionated DevOps rules. Use it when the user asks to create a workflow or CI/CD pipeline, edit or add a job to an existing `.github/workflows/*` file (even a one-line change), review or harden a workflow for security, speed up slow CI, publish a container image from CI, automate releases, or mentions GHA, action pinning, or findings from gasa, zizmor, poutine, pinact, or actionlint, even if they don't say "GitHub Actions"./k8s-catch-upKubernetes features that reached beta or GA in v1.35 to v1.37 (Dec 2025 to Aug 2026), newer than most models' training data. Use it whenever the user writes Kubernetes manifests or Helm templates, runs kubectl, configures the kubelet, scheduler, or API server, works with DRA, autoscaling, storage, or admission, or asks what a recent Kubernetes version can do, even without naming a version. Also use it to update or extend this skill./k8s-podspec-proWrites and reviews Kubernetes pod specs against Bret Fisher's hardened pod spec recommendations (github.com/BretFisher/podspec) for security context, user namespaces, service account tokens, probes, resources, and graceful shutdown. Use it when the user creates or edits a Deployment, StatefulSet, DaemonSet, Job, CronJob, or Pod, changes a Helm chart or Kustomize base that renders one, asks to review or harden a workload for production, or asks why a pod spec setting matters, even if they only say "deploy this to Kubernetes".npx claudepluginhub bretfisher/skills --plugin bretfisher-devopsOther plugins' skills for the same job