hydr0pon1c/skills-on-the-fly/17111
Claude Code and agent skill by hydr0pon1c/skills-on-the-fly
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install hydr0pon1c/skills-on-the-fly/17111SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/17111.
SKILL.md
When to use
Use this skill when solving spreadsheet tasks that require conditional summing across two or more criteria tables. The typical scenario:
- You have a
data sheetcontaining rows with numeric values and multiple categorical columns (status, name, type, date, etc.). - You have a
summary sheet(output area) where each cell corresponds to a unique combination of criteria (e.g., name × type). - The instruction asks to sum values from the data sheet based on matching multiple categorical conditions, possibly with an OR set of allowed values for one criteria column (e.g., status = "completed" OR "not completed").
Before acting, gather evidence by:
- Loading the workbook with
openpyxlorpandasand printing all rows of each sheet to understand the exact layout (which columns hold what data, header rows, empty rows). - Identifying the exact answer position – usually a range of cells that need formulas or computed values.
- Checking whether the summary sheet already contains example numbers (these are expected results you can verify against).
- Looking for any user-provided partial formula in the instruction – it reveals which columns they intended to use and what syntax they tried.
Possible Failure Modes
- Incorrect row/column mapping – assuming the first row of data is row 1 when it is actually row 2 or later; misidentifying which column corresponds to the sum range, name, type, or status.
- Case sensitivity or whitespace in text criteria – using exact match when the data has different capitalization or extra spaces. The instruction may refer to lowercase "completed" but the spreadsheet has "Completed" (capitalized). Use
UPPER(),TRIM(), or SUMPRODUCT withEXACT()for robustness. - Using a single SUMIFS when an OR condition is needed – SUMIFS by default applies AND logic. Summing for two acceptable statuses requires either adding two SUMIFS or using SUMPRODUCT with array multiplication.
- Absolute vs. relative references – when dragging formulas across columns, the column header reference must be relative for horizontal fill and absolute for the criteria column (e.g.,
$A2for the name column locked to column A,B$1for type header locked to row 1). - Assuming all data is contiguous – empty rows or headers within the data range break SUMIFS/SUMPRODUCT if the range is fixed. Use entire columns (e.g.,
$A:$A) or a generous row count to avoid missing data. - Overwriting existing example values – the summary sheet may already contain correct numbers (like a sample). Do not erase them; verify your computed formula yields the same values. If it does not, re-check your logic.
- Using a hardcoded constant in the formula – rely on cell references (e.g.,
$A2,B$1) for criteria, never on literal text inside the formula unless the instruction explicitly states fixed values.
Possible procedures
- Read and map the spreadsheet layout
Use a first Python action to load the workbook and print every row of every sheet. Identify:
- Sum column (the numeric values).
- Row identifier column (e.g., person name).
- Column identifier row (e.g., type like HD, SD – often in a header row of the summary sheet, like
Summary!B$1). - Status column, and note the exact strings used ("Completed", "Not Completed" – check for spaces, hyphens, etc.).
- Construct the conditional-sum expression
- For an OR on status, use either:
=SUMIFS(sum_range, criteria_range1, criteria1, criteria2, criteria2, ...) + SUMIFS(...)- Or SUMPRODUCT with two boolean arrays separated by
+to represent OR. SUMPRODUCT avoids extra functions and is more compact. - Example building block for each cell:
``` =SUMPRODUCT(Sheet1!$D$2:$D$1000
- (Sheet1!$B$2:$B$1000 = $A2)
- (Sheet1!$C$2:$C$1000 = B$1)
- ((Sheet1!$A$2:$A$1000 = "Completed") + (Sheet1!$A$2:$A$1000 = "Not Completed"))
) ```
- Adjust ranges to match actual sheet names and column letters. Use
$to lock the criteria reference for correct drag behavior.
- Write formulas to the answer range
- Use a loop over rows and columns in the answer position. For each cell, construct the formula string referencing the current row's name (
$A{row}) and column's type ({col_letter}$1or{col_letter}$2depending on header row). - If the answer range is small (e.g., 5×2), you can manually set each cell; but a loop is more reliable for larger ranges.
- After setting formulas, save the workbook to the required output path.
- Recovery check
- If you see
#VALUE!errors after saving, inspect the formula syntax (extra parentheses, missing multiplication or*signs, string quotes, etc.). - If the computed values are zeros, verify that the criteria strings (status, name) exactly match the data – use
UPPER()orTRIM()in the formula to normalise.
Verification Checklist
Before marking the task complete, run these concrete checks:
- [ ] The workbook is saved to the specified
output_path. - [ ] All cells in the answer range (e.g.,
Summary!B2:C6) contain an actual formula (strings starting with=) or a numeric value computed by Python (if using code to fill values). - [ ] For each formula, verify that the sum range and all criteria ranges cover all data rows (including rows not shown in the content preview). Use entire columns or a generous range like
$2:$1000to avoid missing records. - [ ] If the summary sheet already contained example numbers, compare your computed values (by manual calculation or by reading the file back) to those numbers. Discrepancies indicate a logic error.
- [ ] The status condition correctly includes both "Completed" and "Not Completed" (case-insensitive if needed). If a status like "In Progress" exists in the data, it must not affect the sum.
- [ ] The formula references use correct sheet names (e.g.,
Sheet1notSheet1$orData). - [ ] For Python-fill solutions (not formulas), ensure the saved values match the expected output exactly for every cell in the answer range.
- [ ] No cells outside the
answer_positionrange have been modified or erased (preserve unrelated state). - [ ] Re-read the workbook after saving and print the answer range to double-check the values or formulas are present.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingprompt_optimizer/runs/example/spreadsheet/task_skills/17111/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hydr0pon1c/skills-on-the-fly/17111)