hydr0pon1c/skills-on-the-fly/109-21
Claude Code and agent skill by hydr0pon1c/skills-on-the-fly
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install hydr0pon1c/skills-on-the-fly/109-21SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/109-21.
SKILL.md
When to use
Apply this skill when a spreadsheet task requires processing data rows that are grouped into contiguous blocks (no blank rows within a block). For each block, you must compute a per-row attribute based on a comparison to the block’s maximum value in a specific column. The output is written to a new column, with special rules for single-row blocks and ties. The task description will specify:
- The column containing the values to compare (e.g., column K).
- The column to write the result (e.g., column Z).
- The starting row of data.
- That groups are separated by blank rows and are contiguous within each group.
- How to handle lone individuals and ties.
Before acting, gather the following evidence from the spreadsheet:
- The exact start row and output column.
- The range of rows that contain actual data (bounded by the answer position and possible blank rows).
- The values in the comparison column for all data rows.
- Whether any rows are entirely empty to confirm group boundaries.
Possible Failure Modes
- Misidentifying group boundaries: Assuming blank rows separate groups but not checking for completely empty rows. Use a robust scan: treat a row as a group separator only if all cells in the relevant columns (e.g., A:X) are None. Do not rely on partial emptiness.
- Incorrect handling of single-row blocks: Forgetting to automatically assign 'Y' when a block contains only one person. Always check block size before applying the comparison logic.
- Tie mishandling: Only marking one person as 'Y' when there are ties for the highest value. All individuals whose value equals the block maximum must receive 'Y'.
- Writing outside the answer range: Modifying cells beyond the specified output column range or outside the answer row range. Only write to the exact column position and row range given in
answer_position. - Leaving old data in the output column: Not clearing the output range before writing. Always clear the target column cells for the answer range before writing new values, or overwrite each cell explicitly.
- Floating-point comparison issues: Using exact equality for values that may be floating-point numbers. Consider using a tolerance (e.g.,
abs(a - b) < 1e-6) or ensure the data is integer. - Assuming data starts at row 1: Data starts at the specified start row. Ignore any rows above that.
- Using a wrong sheet name: The sheet name is given in
answer_position(e.g., 'Sheet1'). Verify it matches the actual sheet name in the workbook.
Possible procedures
- Load workbook and worksheet
Use openpyxl.load_workbook() to load the file. Access the sheet specified in answer_position. Do not use data_only=True unless you need computed values; for raw numbers it is not needed.
- Determine the data range and output range
- Extract the start row and output column from
answer_position(e.g.,Z5:Z43→ start row 5, column Z, up to row 43). - The actual data may end before row 43; find the last row with any content in the data columns (e.g., columns A:X).
- Use only the rows that are within both the data range and the output range.
- Detect groups (blocks)
- Iterate rows from the start row to the last data row.
- A group begins at a non-empty row. Continue adding rows to the current group until a completely empty row (all cells from A to X are None) is encountered, which marks the end of the group.
- Store groups as lists of row numbers or cell objects. Empty rows are separators and should not belong to any group.
- Process each group
- For the group, extract the values from the comparison column (e.g., column K).
- Compute the maximum value.
- For each row in the group:
- If the group size is 1 → output 'Y'.
- Else if the row's value equals the maximum (within tolerance) → output 'Y'.
- Else → output 'N'.
- Write the result to the output column for that row.
- Write results
- For each data row that falls within the answer range, write either 'Y' or 'N' into the output cell.
- Ensure cell formatting (font, alignment, etc.) is not required unless specified.
- For rows in the answer range that have no corresponding data (e.g., beyond the last data row), clear them or leave as is? Typically the task expects only the data rows to be filled; but to be safe, only write for rows that belong to the data groups.
- Save
Use wb.save(output_path).
Verification Checklist
- [ ] The output column (e.g., Z) contains exactly one 'Y' or 'N' per data row in the answer range, and no cells outside that range were modified.
- [ ] For each group of one person, the cell contains 'Y'.
- [ ] For multi-person groups, all rows with the highest value (ties) contain 'Y'; all others contain 'N'.
- [ ] No hardcoded values from retrieved examples have leaked into the output (e.g., no names, numbers, or paths from other tasks).
- [ ] The sheet name matches exactly as given in
answer_position(case-sensitive). - [ ] The row numbering is correct: data starts at the specified start row (row 5) and ends at or before the answer end row (row 43).
- [ ] Groups are correctly identified: no two groups are merged because a blank row was missed, and no group is split because a row with some content was mistakenly treated as separator.
- [ ] The workbook is saved correctly to the specified
output_path. - [ ] If any ambiguous evidence (e.g., empty cells in some columns within a block), the block detection uses all columns (A:X) to determine if a row is empty.
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/109-21/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/109-21)