Agent Skillsknowledgestack/excel-parser › excel-extraction-pipeline-improver

excel-extraction-pipeline-improver

GitHub

基于反馈和测试迭代优化Excel解析管道,采用TDD模式修复提取缺口并提升覆盖率。

.claude/skills/excel-extraction-pipeline-improver/SKILL.md knowledgestack/excel-parser

触发场景

修复Excel数据提取遗漏或错误 根据用户反馈改进解析器表现 解决测试失败以提升覆盖范围

安装

npx skills add knowledgestack/excel-parser --skill excel-extraction-pipeline-improver -g -y
更多选项

非标准路径

npx skills add https://github.com/knowledgestack/excel-parser/tree/main/.claude/skills/excel-extraction-pipeline-improver -g -y

不安装直接使用

npx skills use knowledgestack/excel-parser@excel-extraction-pipeline-improver

指定 Agent (Claude Code)

npx skills add knowledgestack/excel-parser --skill excel-extraction-pipeline-improver -a claude-code -g -y

安装 repo 全部 skill

npx skills add knowledgestack/excel-parser --all -g -y

预览 repo 内 skill

npx skills add knowledgestack/excel-parser --list

SKILL.md

Frontmatter
{
    "name": "excel-extraction-pipeline-improver",
    "description": "Iteratively improves the xlsx_parser extraction pipeline using feedback, test failures, and golden outputs. Use when fixing extraction gaps, addressing parser feedback, or improving coverage on stress workbooks. Follows TDD with instrumentation."
}

Feedback-Driven Extraction Pipeline Iteration

Given extraction output, test failures, and user feedback, iteratively improve the Excel ingestion pipeline until it passes golden tests and reaches high coverage.

Inputs

Input Description
repo_path Path to the xlsx_parser repository
stress_workbooks_dir Directory containing stress test workbooks
golden_expected_dir Golden expectations (expected_extraction_min.json)
current_output_dir Latest extraction output
feedback Human notes, failure logs, diffs
time_budget_minutes Default 120

Operating Procedure (TDD + Instrumentation)

1. Baseline

  • Run unit and integration tests
  • Run extraction on stress workbooks
  • Produce coverage report with:
    • % cells with value
    • % cells with formula
    • % tables detected
    • % charts detected
    • % objects with anchors/bboxes
    • % conditional formats captured

2. Triage

Classify each failure:

Class Meaning
Parsing gap Not extracted
Schema gap Extracted but not represented in DTO
Normalization gap Extracted but wrong type / wrong display_text
Linking gap Refs not resolved
Performance regression Slower than before

3. Fix One Class at a Time

  • Add/adjust DTO fields only when needed
  • Add a focused test (golden assertion) before writing code
  • Implement extraction improvements
  • Add debug logs (behind a flag) for formula parsing, table mapping, object anchors/bboxes

4. Regression

  • Re-run extraction on all stress workbooks
  • Update coverage report
  • Update golden outputs only when:
    • Change is clearly correct
    • Accompanied by rationale in CHANGELOG.md or test comment

Must-Have Behaviors

  • Lossless references: raw formula string + resolved dependency list (ranges/names)
  • Display semantics: display_text + number_format
  • Layout semantics: merged cells, row/col sizing, anchors/bboxes for objects
  • Deterministic output ordering for stable diffs

Deliverables per Iteration

A PR-style commit (or patch) with:

  • Tests added
  • Code changes
  • Updated coverage report
  • Before/after diff summary

Acceptance Criteria

  • Passes all golden tests for expected_extraction_min.json
  • No new regressions on prior workbooks
  • Coverage increases monotonically for targeted categories
  • Extraction output stable across runs

Reference

See DESIGN.md for pipeline stages and src/xlsx_parser/pipeline.py for orchestration.

版本历史

  • 4834382 当前 2026-08-16 15:40

同 Skill 集合

.claude/skills/excel-stress-tester-builder/SKILL.md
.claude/skills/recall-failure-triage/SKILL.md

元信息

文件数
0
版本
4834382
Hash
2aa27b0c
收录时间
2026-08-16 15:40

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 23:34
浙ICP备14020137号-1 $访客地图$