Robust excel pairwise

From XuShuwenn/RedAct · View interactive version

Robust excel pairwise is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Analyze semi-structured Excel data (with possible side-by-side tables) and compute odd/even pairwise comparisons with strong validation and fallback document parsing.

How to use this skill

Skill file

Robust Excel Pairwise Analysis

This skill guides an agent to extract rules from a background document, ingest semi-structured Excel data reliably (including sheets with repeated or side-by-side tables), validate group completeness, and compute odd vs even pairwise comparisons (e.g., game 1 vs 2, 3 vs 4) to produce a single numeric result.

Use this when the prompt:

Core Principle

Separate concerns and verify each stage:

1) Extract pairing/scoring rules from the background document.

2) Load the Excel robustly (discover headers, detect side-by-side tables, normalize columns).

3) Validate grouping completeness and resolve anomalies before computing.

4) Compute per-group scores according to the rules.

5) Pair odd vs even groups, apply tie policy, and compute the final difference deterministically.

When to Use

Activate this skill when you must:

Workflow

Phase 1: Extract and Confirm Rules (from background PDF)

1) a primary PDF parser (e.g., pdfminer.six or your platform's default)

2) a secondary parser (e.g., PyPDF2)

3) a text-based fallback (e.g., pdftotext) if available

Phase 2: Inspect and Load the Excel Workbook

Phase 3: Validate Grouping and Data Completeness

Phase 4: Compute Per-Group Scores

Phase 5: Pairing and Comparison (Odd vs Even)

Phase 6: Output and Formatting

Verification

Perform the following checks before finalizing:

Common Pitfalls and How to Avoid Them

Optional Script Usage

This skill includes a helper script to:

Example flows:

Note: The script does not implement dataset-specific scoring rules. You must compute the per-group scores according to the background document and then pass the resulting table into the pairwise step.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.