agentleFS
harumiWebharumiWeb/exstruct/.agents/skills/codacy-issues-fetcher/SKILL.md

codacy-issues-fetcher

Skill200 starsChanged 7 months agoBSD-3-ClauseView on GitHub

Retrieve and format Codacy analysis issues by running `scripts/codacy_issues.py` in the ExStruct workspace. Use when users ask to inspect repository or pull-request Codacy findings, filter by severity, or produce structured issue output for review and fix planning.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run scripts/codacy_issues.py as the primary interface to Codacy issue retrieval.

    line 8
  2. Distinctive:

    Avoid reimplementing API calls unless the script itself must be changed.

    line 9
  3. Very specific:

    Run from repository root so scripts/codacy_issues.py is reachable.

    line 14
  4. Very specific:

    Ensure CODACY_API_TOKEN is set and valid.

    line 15
  5. Very specific:

    Prefer explicit org and repo if user provides them.

    line 16
  6. Distinctive:

    Run one of the command patterns.

    line 24
  7. Very specific:

    If no issues match the selected --min-level, state that explicitly.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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 Issues Fetcher

Run scripts/codacy_issues.py as the primary interface to Codacy issue retrieval. Avoid reimplementing API calls unless the script itself must be changed.

Workflow

  1. Confirm prerequisites.
  • Run from repository root so scripts/codacy_issues.py is reachable.
  • Ensure CODACY_API_TOKEN is set and valid.
  • Prefer explicit org and repo if user provides them; otherwise rely on Git origin auto-detection.
  1. Choose scope and severity.
  • Repository scope: omit --pr.
  • Pull request scope: pass --pr <number>.
  • Severity filter (--min-level): Error, High, Warning, Info.
  • Provider (--provider): gh, gl, bb (default is effectively gh).
  1. Run one of the command patterns.
# Repository issues (explicit target)
python scripts/codacy_issues.py <org> <repo> --provider gh --min-level Warning

# Pull request issues (explicit target)
python scripts/codacy_issues.py <org> <repo> --pr <number> --provider gh --min-level Warning

# Pull request issues (auto-detect org/repo from git origin)
python scripts/codacy_issues.py --pr <number> --min-level Warning
  1. Parse output JSON and respond with actionable summary.
  • Trust payload fields: scope, organization, repository, pullRequest, minLevel, total, issues.
  • issues entries are formatted as: <level> | <file_path>:<line_no> | <rule> | <category> | <message>
  • Report high-severity findings first, then summarize counts.

Error Handling

  • HTTP 401 / Unauthorized: token invalid or missing permissions. Ask user to set or refresh CODACY_API_TOKEN.
  • CODACY_API_TOKEN is not set: export the environment variable before retrying.
  • Invalid --provider: use only gh, gl, or bb.
  • Segment validation errors (Invalid org/repo/pr): sanitize input and rerun.

Output Policy

  • Return concise triage-ready results, not raw command logs.
  • Include the exact command you used when reproducibility matters.
  • If no issues match the selected --min-level, state that explicitly.

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.