codacy-issues-fetcher
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "codacy-issues-fetcher" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-052f075089a2af3ebfa8bdbac06c4d0d088dbd78f231c1f2e28d766f92e18bdc. Verify the upstream source and version against https://github.com/harumiWeb/exstruct before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Run scripts/codacy_issues.py in the ExStruct workspace to fetch and format Codacy analysis issues. Used to check Codacy results for a repository or pull request, filter by severity, or produce structured issue output for review and remediation planning.
Introduction source: third_party · harumiWeb · 0.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Inputs and outputs
- 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.
- Testing
- Not tested
Browse files
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
- 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.
Version history
-
v0.9.1
GitHub ↗
Original release notes
We have performed a security update for the dependencies. (#161 )
-
v0.9.0
GitHub ↗
Original release notes
# ExStruct v0.9.0 ExStruct v0.9.0 is a major performance-focused release that substantially reduces extraction latency, memory usage, repeated workbook parsing, and unnecessary heavy dependency loading. The biggest change is a new **direct OOXML extraction path for `light` mode**. Supported `.xlsx` and `.xlsm` files can now be read directly from the workbook ZIP package without loading openpyxl, xlwings, pandas, or SciPy on the normal path. This release also significantly improves `verbose` color extraction by avoiding thousands of unnecessary per-cell Excel COM calls while preserving Excel-rendered conditional formatting semantics. ## Highlights ### Direct OOXML extraction for `light` mode `light` mode now uses a shared direct OOXML extraction session for supported `.xlsx` and `.xlsm` workbooks. The new path extracts: - cells and shared strings - formulas - hyperlinks - merged cells - print areas - explicit and heuristic table candidates - shapes and connectors - charts A normal light extraction now opens the workbook archive once and does not import: - openpyxl - xlwings - pandas - SciPy If the direct OOXML reader encounters unsupported workbook content, ExStruct safely discards the partial result and restarts extraction through the existing openpyxl compatibility path. ### Much faster light extraction Representative local Windows benchmarks showed substantial improvements while producing identical serialized output. | Fixture | Previous light | v0.9.0 | | --- | ---: | ---: | | 24-sheet workbook | 4102 ms | **120 ms** | | Large workbook | 1596 ms | **596 ms** | | Style-heavy workbook | 535 ms | **178 ms** | | Table-heavy workbook | 242 ms | **72 ms** | After switching the default light path fully to direct OOXML, additional cold-start improvements were observed: | Fixture | openpyxl path | OOXML path | | --- | ---: | ---: | | Small | 983 ms | **428 ms** | | Sparse | 823 ms | **254 ms** | | 24 sheets | 840 ms | **333 ms** | | Large / 60,000 cells | 1626 ms | **1060 ms** | Peak Python memory usage was also lower across all measured light-mode fixtures. These are local benchmark results and should not be interpreted as universal timing guarantees. ### Faster `verbose` color extraction Previously, rendered background-color extraction queried Excel's `DisplayFormat` separately for every cell in the used range. v0.9.0 introduces a hybrid strategy: - ordinary saved RGB fills are read directly from workbook styles - Excel COM is used only for conditional-formatting candidates and ambiguous cases - unsupported or unsafe cases fall back to the previous full COM scan On the measured 300 × 20-cell fixtures: | Fixture | DisplayFormat calls | Legacy | v0.9.0 | | --- | ---: | ---: | ---: | | Static fills | 6,000 → **0** | 15.5–18.7 s | **0.084–0.100 s** | | Sparse conditional formatting | 6,000 → **30** | 12.8–17.0 s | **0.144–0.208 s** | All 24 paired color-map comparisons in the benchmark matched exactly. Excel remains the source of truth for rendered conditional-formatting colors; ExStruct does not attempt to reimplement Excel's conditional-formatting engine. ## Other performance improvements ### Removed pandas from production extraction Cell extraction no longer converts worksheets through pandas DataFrames. The production path now reads worksheet data directly while preserving existing: - value normalization - dates - cached formula values - hyperlinks - sparse-row behavior - serialized output pandas is now a development/benchmark dependency rather than a production extraction dependency. ### Shared openpyxl extraction sessions Compatibility extraction now reuses an extraction-scoped openpyxl workbook instead of repeatedly reopening the same file. For multi-sheet workbooks, this removes a major source of redundant ZIP parsing and workbook object construction. Formula extraction still opens a separate `data_only=False` workbook only when required. ### SciPy is now optional SciPy has moved out of the mandatory dependency set. Install the optional accelerator with: ```bash pip install "exstruct[fast]" ``` Without SciPy, ExStruct continues to use its Python border-clustering implementation. ### Lighter backend imports COM and rendering implementations are now loaded lazily. Light extraction no longer pays the import cost for Excel automation backends that it does not use. ## Reliability improvements - Fixed a lifecycle issue where a newly created Excel instance could remain running if workbook opening failed. - Existing/borrowed Excel applications and workbooks remain under caller ownership. - OOXML fallback restarts the complete compatibility extraction rather than mixing partial results from multiple backends. - Sparse worksheets no longer materialize large numbers of blank cells during extraction. - Improved handling of relocated OOXML workbook/drawing parts. - Preserved rich/plain shared-string segment ordering. - Reduced repeated merge and hyperlink scans for sparse worksheets. ## COM-first evaluation As part of this release, a bulk COM-based cell extraction path was prototyped and benchmarked for `standard` and `verbose` modes. It was **not adopted** as the public default. The experiment showed no consistent performance advantage and introduced semantic differences for: - Excel dates represented through `Value2` - formula recalculation - missing formula caches - unsaved workbook edits ExStruct therefore continues to use the current saved-file-first architecture for `standard` and `verbose` extraction. ## Compatibility v0.9.0 is intended to preserve the existing public extraction output contract. Performance work was validated with output-parity tests across representative workbooks, including cells, formulas, links, tables, merged ranges, shapes, charts, and color maps. Unsupported direct OOXML cases continue to use the existing compatibility backend automatically. ## Installation ```bash pip install -U exstruct ``` Optional SciPy acceleration: ```bash pip install -U "exstruct[fast]" ``` ## Summary v0.9.0 changes ExStruct's extraction architecture from: ```text repeated workbook parsing + heavyweight intermediate readers + eager backend imports + per-cell COM formatting calls ``` to: ```text shared extraction sessions + direct OOXML where possible + lazy compatibility backends + targeted COM only where Excel rendering is required ``` The result is significantly faster and lighter extraction while retaining compatibility with the existing ExStruct output model.
-
v0.8.2
GitHub ↗
Original release notes
Updated project dependencies to resolve the reported Dependabot vulnerability alerts.
-
v0.8.1
GitHub ↗
Original release notes
Applied security updates for dependent packages.
-
v0.8.0
GitHub ↗
Original release notes
# v0.8.0 Release Notes This release publishes the April 2026 extraction work: stronger pure-Python rich extraction in `light` mode, corrected print-area defaults across public entrypoints, and LibreOffice / OOXML resilience hardening. ## Highlights - `light` now acts as the pure-Python OOXML-rich baseline for `.xlsx` / `.xlsm`, so non-COM environments can emit best-effort: - shapes - connectors / arrows - charts - `light` now keeps `print_areas` by default across: - `extract(...)` - `process_excel(...)` - `ExStructEngine` - CLI extraction and `--print-areas-dir` - `libreoffice` now seeds the same OOXML baseline first and then applies UNO enrichment when available, so fallback paths preserve already recovered rich artifacts where safe. - LibreOffice workbook lifecycle handling is more robust for custom `session_factory` integrations via typed workbook handles and session-owned close semantics. - OOXML drawing parsing is more resilient and more efficient: - malformed or corrupt drawing parts now fail per sheet instead of dropping healthy workbook siblings - worksheet metrics are read with streaming XML parsing - row/column offset lookups now use cached cumulative offsets ## Compatibility Notes - No new extraction CLI commands were added in `v0.8.0`. - `light` mode behavior changed intentionally: - previous releases treated `light` as cells + table candidates only - `v0.8.0` adds best-effort OOXML shapes / connectors / charts for OOXML workbooks and keeps print areas by default - `.xls` remains outside the new OOXML-rich baseline; the new non-COM rich path applies to `.xlsx` / `.xlsm`. - Serialized backend metadata may now report `python_ooxml` provenance when backend metadata output is enabled. - MCP tool names and payload shapes remain compatible; the release changes the extraction content available behind existing interfaces rather than adding a new transport contract. ## Notes - The repository docs/build path still has a pre-existing `mkdocstrings` failure in `docs/api.md`; this issue was already reproducible before the `v0.8.0` extraction work and is not introduced by this release. - Review-driven hardening after the initial implementation also restored `process_excel()` auto-filter behavior, corrected stale README / architecture wording, and prevented OOXML baseline seeding failures from crashing the LibreOffice pipeline.
Only the five most recent versions are shown. View full version history at the source ↗
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Codacy 分析问题的检索与格式化能力,适用于代码质量审查和拉取请求检查等明确工程场景
- 支持按严重性筛选和结构化输出,满足实际开发流程中的审查与修复规划需求
Highlights
- 触发描述清晰明确,覆盖检查仓库/PR 的 Codacy 结果、按严重性筛选、生成结构化输出等核心使用场景
- 边界清晰,不易与其他 Skill 混淆
Highlights
- Workflow 步骤清晰,包含先决条件、作用域选择、命令模式和输出解析
- 提供了完整的命令示例和错误处理说明,frontmatter 完整规范
Areas to improve
-
未处理 scripts/codacy_issues.py 不存在的情况 Reported severity: Minor
文档中未说明当 scripts/codacy_issues.py 文件不存在时的处理方式或错误提示
Recommendation: 建议在错误处理部分增加对脚本文件不存在的检查和建议,例如提示用户确认脚本路径或提供脚本创建指引
Highlights
- 工具来源明确,参数说明清晰,覆盖了主要异常情况(401、token 未设置、provider 无效、输入验证)
- 输出策略明确,强调返回简洁的 triage-ready 结果而非原始日志
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.