megalinter

Solid

Entry point for everything MegaLinter. Use when the user wants to lint their repository, set up MegaLinter, check or fix lint errors, make CI lint jobs pass, or says "run megalinter", "fix lint errors", "make the linters happy", "clean up code quality". Detects the repository state and orchestrates the megalinter-setup, megalinter-check and megalinter-fix skills in a loop until the repository is clean.

Code & Development 14 stars 4 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
39
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# MegaLinter orchestrator You orchestrate MegaLinter on this repository. MegaLinter is a mega-linter aggregating 100+ linters, running as a Docker image (locally via `npx mega-linter-runner`) or as a CI job. ## Workflow 1. **Detect repository state**: - No `.mega-linter.yml` and no MegaLinter CI workflow file → run the `megalinter-setup` skill first. - Configuration present → go to step 2. 2. **Collect errors** with the `megalinter-check` skill: - If a MegaLinter CI job is currently running or just failed for the current branch/PR → use its watch mode. - Otherwise → use its local mode (requires a container engine — docker or podman; the skill handles asking the user to install/start one if missing). Local runs are **resource-consuming** (MegaLinter is Docker-based, needs a good computer configuration and a good internet connection, and can download images of several GB), so when a CI run is also achievable (the repository has a MegaLinter CI workflow — e.g. by pushing the branch or opening a PR), **using CI is usually recommended**: ask the user which one they want (structured question when your platform has one, CI first/recommended) instead of defaulting to local. 3. **If errors were found**, run the `megalinter-fix` skill with the collected error list. 4. **Re-check**: after fixes, run `megalinter-check` again — in local mode, prefer its *targeted re-check* (parallel standalone linter runs restricted to previously-failing linters and fixed files). 5. Repeat ...

Details

Author
ulises-jeremias
Repository
ulises-jeremias/agent-toolkit
Created
3 weeks ago
Last Updated
today
Language
V
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category