hydr0pon1c/skills-on-the-fly/142-12

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/142-12

SKILL.md

The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/142-12.

SKILL.md

When to use

This skill applies when you need to perform a conditional row-by-row update in a spreadsheet: iterate over two columns, check for an exact text match in one column and a numeric condition (whole number) in another, and replace the text in the first column with a new value. The task description will specify the exact column letters, target text, numeric condition, and replacement text. You also have an answer_position that defines the exact cell range to modify (e.g., 'Sheet1'!F1:J15) – only cells within that range should be changed. The instruction may request VBA, but you should implement the logic using Python (openpyxl or similar) to produce the modified spreadsheet at the provided output_path.

Before acting, gather:

  • The full spreadsheet content (at least column headers and a few rows) to confirm the exact column positions and data types.
  • The answer_position string to determine the row and column limits (e.g., 'Sheet1'!F2:J15 means rows 2 to 15, columns F=6, J=10).
  • The exact text strings to match (case-sensitive) and the replacement text.
  • The condition for “whole number without any cents” – usually meaning the numeric value has no fractional part (e.g., integer or float with .0).

Possible Failure Modes

  • Off-by-one row/column indices: Mistaking 0-indexed vs 1-indexed rows/columns. Always map the answer_position range carefully: column letters to 1-indexed numbers, row numbers inclusive.
  • Case sensitivity: The target text may be case-sensitive (“Marble Slab Creamery” exact). Ensure string comparisons are exact (not upper/lower) unless instructed otherwise.
  • Whole number check on non-numeric data: The value in Column J might be stored as a string. Convert to float or check if it’s numeric before comparing. Also handle None.
  • Modifying cells outside answer_position: The answer_position is the maximum range. Only change cells within that rectangle (rows and columns). Do not alter cells outside.
  • Overwriting header row: If answer_position includes the header row (e.g., row 1), ensure the header is not mistakenly treated as data. Typically start from row 2.
  • Leaving cells with previous formatting or values: If a row does not meet the condition, do not clear or change any cells unless explicitly required.
  • Forgetting to save the output workbook to the specified path using wb.save(output_path).

Possible procedures

  1. Load workbook and select sheet

Use openpyxl.load_workbook(spreadsheet_path) and select the sheet by name (from answer_position part before !).

  1. Parse answer_position

Extract sheet name, starting cell, and ending cell. Compute the integer row range (min_row, max_row) and column indices (min_col, max_col) using openpyxl.utils.column_index_from_string. Remember columns are 1-indexed.

  1. Iterate only over the specified rows in the range

Use for row in range(min_row, max_row + 1): to avoid touching other rows.

  1. Read target columns

Use ws.cell(row=row, column=F_col).value for column F and ws.cell(row=row, column=J_col).value for column J.

  1. Apply conditions
  • Check column F text: compare exactly (string equality). Ensure to convert to string and handle None.
  • Check column J value: first verify it is numeric (isinstance(val, (int, float))), then test if it is a whole number. A robust check: val == int(val) (works for float that is integer-valued). Do not rely on val % 1 == 0 if there might be rounding issues. Consider negative numbers: whole number check on magnitude? The target says “whole number without any cents”, meaning no fractional part, sign doesn’t matter.
  1. Update column F when both conditions met

Set ws.cell(row=row, column=F_col).value = 'New Text'.

  1. Do not modify any other cells (unless additional instructions like clearing backgrounds exist). Leave all other columns untouched.
  2. Save the workbook to output_path.

Decision point: If the value in column J is not numeric (e.g., string "12.00"), you may need to convert it. But typically the spreadsheet stores numbers. If unsure, inspect the cell type with type(cell.value).

Recovery: If iteration fails due to empty rows, skip rows where column F is None (unless the condition should still apply? Usually not – only update if F has the exact text). If column J is None, the condition fails.

Verification Checklist

  • [ ] Only cells within the answer_position range (rows and columns) were examined or modified. No cells outside that rectangle were changed.
  • [ ] Only rows where column F exactly matches the target text AND column J is a numeric whole number (no fractional part) had their column F updated to the new text.
  • [ ] All other cells, including those not meeting conditions, retain their original values and formatting (unless formatting change was explicitly requested, which it is not in this target).
  • [ ] The header row (if within range) was not mistakenly treated as data and left unchanged.
  • [ ] The output file was saved to the exact output_path specified.
  • [ ] No concrete values (text strings, numbers) from retrieved examples were copied – only the pattern was used. The skill is generic.
  • [ ] The spreadsheet has the same structure (same number of sheets, sheet names, column widths, etc.) except for the intended modifications.
  • [ ] Test with a small sample: run a quick sanity check by printing the modified rows before saving, or load the saved file and verify a few rows.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hydr0pon1c/skills-on-the-fly/142-12/badge)](https://verified-skill.com/skills/hydr0pon1c/skills-on-the-fly/142-12)

Something wrong with this skill or its page? Tell us.