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.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adr-drafterSkill
- adr-indexerSkill
- adr-linterSkill
- adr-reconcilerSkill
- adr-reviewerSkill
- adr-suggesterSkill
- exstruct-cliSkill
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
- Very specific: line 8
Run scripts/codacy_issues.py as the primary interface to Codacy issue retrieval.
- Distinctive: line 9
Avoid reimplementing API calls unless the script itself must be changed.
- Very specific: line 14
Run from repository root so scripts/codacy_issues.py is reachable.
- Very specific: line 15
Ensure CODACY_API_TOKEN is set and valid.
- Very specific: line 16
Prefer explicit org and repo if user provides them.
- Distinctive: line 24
Run one of the command patterns.
- Very specific: line 54
If no issues match the selected --min-level, state that explicitly.
≈ “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.
Files
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
- Confirm prerequisites.
- Run from repository root so
scripts/codacy_issues.pyis reachable. - Ensure
CODACY_API_TOKENis set and valid. - Prefer explicit
organdrepoif user provides them; otherwise rely on Gitoriginauto-detection.
- 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 effectivelygh).
- 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- Parse output JSON and respond with actionable summary.
- Trust payload fields:
scope,organization,repository,pullRequest,minLevel,total,issues. issuesentries 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 refreshCODACY_API_TOKEN.CODACY_API_TOKEN is not set: export the environment variable before retrying.Invalid --provider: use onlygh,gl, orbb.- 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.
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
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.

