Agent skill

codacy-issues-fetcher

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.

Stars 134
Forks 21

Install this agent skill to your Project

npx add-skill https://github.com/harumiWeb/exstruct/tree/main/.agents/skills/codacy-issues-fetcher

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.
powershell
# 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.

Expand your agent's capabilities with these related and highly-rated skills.

harumiWeb/exstruct

adr-suggester

Determine whether a change in ExStruct needs an ADR, using repository-specific governance and criteria. Use when reading an issue, PR, review thread, or diff and you need a verdict of required, recommended, or not-needed, plus candidate ADR titles and related existing ADRs.

134 21
Explore
harumiWeb/exstruct

adr-linter

Review an ExStruct ADR draft for required sections, status values, evidence quality, supersede links, and balanced consequences. Use when an ADR already exists in draft form and you need findings before review or merge.

134 21
Explore
harumiWeb/exstruct

adr-reviewer

Review an ExStruct ADR draft for decision quality, overlap with existing ADRs and specs, evidence strength, rollout risk, and human-ownership escalations. Use only after adr-linter reports no unresolved high/medium findings on the current draft, and when you need design-review findings before merge or handoff.

134 21
Explore
harumiWeb/exstruct

adr-reconciler

Audit ExStruct ADRs against current specs, tests, and source code to detect policy drift, missing ADR updates, stale references, and evidence gaps. Use after merges, during periodic ADR audits, or when a review suspects that implementation and ADRs have diverged.

134 21
Explore
harumiWeb/exstruct

adr-drafter

Draft a new ExStruct ADR or propose an update to an existing ADR from an issue, PR, diff, tests, and specs. Use when an ADR is required or recommended and you need a structured draft with context, decision, consequences, and evidence.

134 21
Explore
harumiWeb/exstruct

adr-indexer

Maintain ExStruct ADR index artifacts by scanning ADR files and synchronizing README, index.yaml, and decision-map.md metadata. Use when ADRs are added, updated, superseded, or reclassified and the repository needs a refreshed ADR map for humans and AI agents.

134 21
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results