Agent SkillsharumiWeb/exstruct › codacy-issues-fetcher

codacy-issues-fetcher

GitHub

通过运行脚本获取并格式化 Codacy 代码分析缺陷,支持按仓库或 PR 筛选,过滤严重程度,输出结构化问题列表以便审查和修复规划。

.agents/skills/codacy-issues-fetcher/SKILL.md harumiWeb/exstruct

Trigger Scenarios

用户请求检查代码库的 Codacy 发现结果 用户要求按严重程度筛选 Codacy 缺陷 用户需要生成结构化的问题输出用于修复计划

Install

npx skills add harumiWeb/exstruct --skill codacy-issues-fetcher -g -y
More Options

Non-standard path

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

Use without installing

npx skills use harumiWeb/exstruct@codacy-issues-fetcher

指定 Agent (Claude Code)

npx skills add harumiWeb/exstruct --skill codacy-issues-fetcher -a claude-code -g -y

安装 repo 全部 skill

npx skills add harumiWeb/exstruct --all -g -y

预览 repo 内 skill

npx skills add harumiWeb/exstruct --list

SKILL.md

Frontmatter
{
    "name": "codacy-issues-fetcher",
    "description": "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."
}

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.

Version History

  • 92bc120 Current 2026-07-05 14:54

Same Skill Collection

.agents/skills/adr-drafter/SKILL.md
.agents/skills/adr-indexer/SKILL.md
.agents/skills/adr-linter/SKILL.md
.agents/skills/adr-reconciler/SKILL.md
.agents/skills/adr-reviewer/SKILL.md
.agents/skills/adr-suggester/SKILL.md
.agents/skills/exstruct-cli/SKILL.md

Metadata

Files
0
Version
92bc120
Hash
343f7af6
Indexed
2026-07-05 14:54

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 17:12
浙ICP备14020137号-1 $bản đồ khách truy cập$