Megalinter logo

Megalinter

Community
ulises-jeremias
megalinter

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.

Overview

Publisherulises-jeremias
Repositoryagent-toolkit
Skill namemegalinter
Stars
20
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by ulises-jeremias on GitHub. Read the source before you install it.

Installation

Install the Megalinter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/megalinter
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ulises-jeremias/agent-toolkit.git /tmp/agent-toolkit
mkdir -p .claude/skills
cp -r /tmp/agent-toolkit/plugins/agent-toolkit-complete/skills/megalinter .claude/skills/megalinter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Megalinter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Megalinter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Megalinter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 steps 3-4 at most 3 times. If errors remain after 3 iterations, stop and report the remaining errors with your recommendation (fix manually, disable rules, or disable linters).
  6. Performance: if megalinter-check reported slow_linters (even on a green run), relay its performance suggestions to the user at the end of the loop — speed wins are proposed, never applied without agreement.

Rules

  • Never commit or push on the default branch (main/master): create a branch like megalinter/fix-<topic> first.
  • Ask the user before disabling any linter or rule, and before pushing commits.
  • Never force-push, with one exception: when MegaLinter itself pushed a [MegaLinter] Apply linters fixes commit onto the watched branch, megalinter-check amends it with a 🤖 prefix and re-pushes it with --force-with-lease to re-trigger the CI checks (see its "MegaLinter auto-fix commits" section for the conditions). Never use plain --force, and never force-push in any other situation.
  • Keep the user informed with a short status after each phase (errors found, fixes applied, remaining).

Optimization: sub-agents (Claude Code and compatible agents)

If your environment supports spawning sub-agents (e.g. a Task/Agent tool) and the megalinter-watcher, megalinter-runner, megalinter-fixer agent definitions are available:

  • Installed as an agent plugin (Claude Code, Cursor, Copilot), they ship with the plugin. Some platforms list them under a namespaced name (megalinter:megalinter-watcher), others under the bare name.
  • Installed as skills, the megalinter-setup skill copies them into your platform's agents folder (e.g. .claude/agents/, .opencode/agent/, .github/agents/ where the file name ends with .agent.md) under their bare names.

Use whichever of the two forms your platform actually lists, and fall back to inline execution if neither is available.

Then:

  • Delegate CI watching to megalinter-watcher and local runs to megalinter-runner — they keep the large logs out of your context and return only a compact error list.
  • Fan out one megalinter-fixer per failing linter to fix several linters in parallel.

If sub-agents are not available, perform every step inline following the skill instructions.

Frequently asked questions

What does the Megalinter AI skill do?

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.

Why use Megalinter on TypingMind?

Because you install it once and use it with any model. Megalinter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Megalinter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ulises-jeremias/agent-toolkit/tree/main/plugins/agent-toolkit-complete/skills/megalinter. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Megalinter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Megalinter?

As many as you like. As long as a model supports skills, you can use Megalinter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Megalinter AI skill free?

Yes. It is published on GitHub by ulises-jeremias under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇