用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/oxsecurity/megalinter --skill add-reporter命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Guided workflow for adding a new linter to MegaLinter. Use when a contributor needs to add support for a new linting tool.
Fix the errors reported by MegaLinter. Use after megalinter-check found errors, or when the user pastes MegaLinter/CI lint errors and wants them fixed. Applies safe fixes automatically (auto-fix linters first, then guided manual fixes using per-linter fix guides), asks the user when fixing is ambiguous, and can disable rules or linters with user confirmation. Never pushes to the default branch.
Collect MegaLinter lint errors for the current repository. Use when the user wants to know if the code passes linting, why the MegaLinter CI job fails, or before/after fixing lint errors. Two modes - watch a CI job (GitHub Actions, GitLab CI, Azure Pipelines, Bitbucket Pipelines) and parse its logs, or run MegaLinter locally with Docker (full run or fast parallel standalone linter runs).
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-reporter |
| description | Add a new output reporter to MegaLinter. Use when adding support for a new CI system or output format. |
| allowed-tools | Read Grep Glob Edit Write |
| argument-hint | [reporter-name] |
| model | sonnet |
| metadata | {"internal":true} |
Guide through adding a new reporter named $ARGUMENTS to MegaLinter.
Steps:
megalinter/reporters/<Name>Reporter.py extending megalinter.Reportermanage_activation() — check env var like <NAME>_REPORTER=true to enable/disableproduce_report() — generate the report outputinitialize(), add_report_item()megalinter/MegaLinter.pyConsoleReporter.py, TapReporter.pyGithubCommentReporter.py, GitlabCommentReporter.pyJsonReporter.py, SarifReporter.pyApiReporter.py, EmailReporter.pyCHANGELOG.md in the repository root (not docs/) — add one line under Reporters in the beta section:
- Add <ReporterName>: <what CI system or output format it supports, one sentence>
user/add-<reporter-name>-reporter