agentleFS
d-oitd-oit/rust-2026-template/.agents/skills/codacy/SKILL.md

codacy

Skill15 starsChanged 5 months agoMITView on GitHub

Use Codacy static analysis CLIs to query PR analysis, triage issues, suppress false positives, and run local analysis. Use when Codacy blocks a PR, when asked to fix Codacy issues, suppress false positives, query PR quality data, or integrate Codacy into CI/CD workflows. Also use when the user mentions "Codacy", "static analysis check", "code quality gate", or "Codacy is failing".

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always cross-reference with Cloud CLI for full PR data.

    line 60

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codacy Static Analysis

Installation & Auth

# Analysis CLI (for local runs)
npm i -g @codacy/analysis-cli

# Cloud CLI (for PR data and suppressions)
npm i -g @codacy/codacy-cloud-cli

export CODACY_API_TOKEN=<your-api-token>

PR Triage Workflow

  1. Get PR analysis: codacy pull-request gh <org> <repo> <prNumber> --output json > /tmp/codacy-pr.json
  2. Categorize issues:
    • False positives → Suppress via Cloud CLI.
    • Real issues → Fix in code.
  3. Suppress false positives: codacy pull-request gh <org> <repo> <prNumber> --ignore-issue <numeric-resultDataId> --ignore-reason FalsePositive Note: Use numeric resultDataId, NOT hash IDs.
  4. Fix issues: Batch fix patterns and verify with local lint/tests.

Local Analysis

# Initialize configuration (generates .codacy.yml)
codacy-analysis init --default

# Run local analysis
codacy-analysis analyze --pr --output-format json

Known Limitations

Tool CategoryStatusNote
JS/TS/Shell✅ WorksESLint9, Stylelint, ShellCheck
Rust⚠️ LimitedLocal analysis uses jscpd and Lizard; Cloud uses Opengrep
Python/Ruby❌ FailsMissing runtimes/venv issues
Java/PMD❌ FailsMissing Java runtime

Always cross-reference with Cloud CLI for full PR data.

Rationalizations

RationalizationReality
"Local analysis shows 0 issues, so we are good."Analysis CLI has limited local tool support; Cloud CLI is the source of truth.
"I'll use the issue hash for suppression."Codacy CLI requires the numeric resultDataId for suppressions.

Red Flags

  • Relying solely on local codacy-analysis for Rust/Python/Java projects.
  • Attempting to suppress issues without a valid --ignore-reason.
  • Ignoring the resultDataId field in JSON output in favor of hashes.

References

  • references/config-format.md - .codacy.yml schema and advanced options
  • references/output-format.md - JSON schema for PR analysis
  • references/supported-tools.md - Local vs Cloud tool availability

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.