Skip to content
Back to skills

Run Lint

ASecurity

Auto-detect project linter and run it. Internal utility skill used by feature-flow commands for the lint phase.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentpythongobash

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add sgaunet/claude-plugins --skill run-lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Run Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sgaunet-run-lint/badge)](https://www.skillsdirectory.com/skills/sgaunet-run-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: run-lint
description: Auto-detect project linter and run it. Internal utility skill used by feature-flow commands for the lint phase.
user-invocable: false
allowed-tools: Bash(task:*), Bash(make:*), Bash(golangci-lint:*), Bash(go:*), Bash(npm:*), Bash(npx:*), Bash(eslint:*), Bash(ruff:*), Bash(python:*), Bash(cargo:*), Glob
---

# Run Lint Skill

Auto-detect the project's linter from build files and run it. Returns pass/fail status with output.

## Detection Logic

Probe for build/config files using **first match wins**:

| Trigger | Command | Fallback |
|---------|---------|----------|
| Taskfile.yml (`lint` task) | `task lint` | -- |
| Makefile (`lint` target) | `make lint` | -- |
| go.mod | `golangci-lint run ./...` | `go vet ./...` |
| package.json (`lint` script) | `npm run lint` | `npx eslint .` |
| pyproject.toml / setup.py | `ruff check .` | `python -m flake8 .` |
| Cargo.toml | `cargo clippy -- -D warnings` | -- |
| None detected | Warn: "No linter detected" and skip | -- |

## Execution

1. Detect linter using the table above
2. Run the detected command
3. On success: report "Lint passed"
4. On failure: display errors, attempt auto-fix if supported (`--fix` flag for the tool), re-run once
5. Return final status (pass/fail) and output

## Working Directory

If a `working_directory` context is provided (e.g., a worktree path), run all commands prefixed with `cd <working_directory> &&`. Otherwise, use the current directory.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.