| name | add-flavor |
| description | Add a new MegaLinter flavor (language-specific Docker image). Use when creating a new specialized Docker image variant. |
| allowed-tools | Read Grep Glob Bash Edit Write |
| argument-hint | ["flavor-name"] |
| model | sonnet |
Guide through adding a new flavor named $ARGUMENTS.
Steps:
- Update the schema enum in
megalinter/descriptors/schemas/megalinter-descriptor.jsonschema.json — add the new flavor name to enum_flavors
- Create the flavor directory
flavors/$ARGUMENTS/
- Update descriptors: Add the flavor name to
descriptor_flavors arrays in the relevant megalinter/descriptors/*.megalinter-descriptor.yml files for each language/tool this flavor should include
- Run
make megalinter-build to auto-generate:
flavors/$ARGUMENTS/Dockerfile
flavors/$ARGUMENTS/action.yml
flavors/$ARGUMENTS/flavor.json
- Verify the generated Dockerfile includes exactly the intended linters (check
flavor.json for the linter list)
- Update
CHANGELOG.md in the repository root (not docs/) — add one line under Flavors in the beta section:
- Add new `<flavor-name>` flavor for <what languages/tools it targets>
- Branch naming: use
user/add-<flavor-name>-flavor