hydr0pon1c/skills-on-the-fly/1563
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/1563SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/1563.
SKILL.md
When to use
Use this skill when you need to fill blank cells in a target column of an Excel spreadsheet by copying the value from the nearest non-blank cell above it in the same column or in a related source column. The task explicitly asks for a single operation that completes the entire column B based on a forward-fill pattern (also known as “carry forward” or “last non‑blank” fill).
Before acting, gather the following evidence from the task description and spreadsheet content:
- Source column – the column that contains the mixture of values and blanks (usually column A, as stated in the instruction).
- Target column – the column to be filled (usually column B).
- Answer range – the exact cell range to modify (e.g.,
B2:B30). Do not change cells outside this range. - Header row – confirm that row 1 is a header and data starts at row 2.
- Initial state of target column – check if the target column already contains any values; if it does, decide whether those should be overwritten or only blanks filled (the instruction typically implies a complete fill).
- Output path – where the modified workbook must be saved.
Possible failure modes
- Off‑by‑one row indexing – Excel rows are 1‑indexed; data starts at row 2 (row 1 is header). Writing to row numbers that are off by one will place values in the wrong cells.
- Ignoring the answer range – modifying cells outside
answer_positionor failing to modify all cells inside it. - Leaving missing values as `None` instead of empty string – some evaluators treat
Noneas blank, but others expect an empty string""; check the initial content style. - Using the wrong source column – e.g., using column B as source when column A is the intended source.
- Forward‑fill logic error – not updating the “last non‑blank” value when encountering a non‑blank cell, or incorrectly skipping rows that are blank in the source but contain a value in the target.
- Writing formulas where static values are expected – if the instruction says “fill” or “generate results”, use computed values, not Excel formulas, unless explicitly asked for a formula.
- Not preserving unrelated columns – modifying columns other than the target column (e.g., accidentally writing to column A or C).
- Hard‑coding or copying values from retrieved examples – the target’s source column content is different; never copy literal names or numbers from other tasks.
Possible procedures
- Load the workbook using
openpyxl.load_workbook(input_path)and get the active worksheet (usuallySheet1). - Read the source column (e.g., column A) for the row range specified by
answer_position. Convert to a list of values, using.valuefor each cell. - Determine the starting row – typically
answer_positionbegins at row 2 (e.g.,B2:B30means start row = 2). Use the integer row number directly. - Forward‑fill logic:
- Initialize a variable
last_non_blank = None. - Iterate over each row from the start row to the end row (inclusive).
- For each row, get the source cell value.
- If the source value is not
Noneand not an empty string, setlast_non_blankto that value. - Then set the target cell in that row to the value of
last_non_blank. - This ensures every row in the target column gets the most recent non‑blank source value, even if the source row itself is blank.
- Write only to the target column within the answer range. Use
ws.cell(row=row_num, column=target_column_number).value = last_non_blank. - Save the workbook to the specified
output_path. Do not save to any other location.
Decision points:
- If the source column contains purely numeric values and the target should also be numeric, ensure you do not accidentally convert to string.
- If the target column already has some non‑blank cells, decide whether to overwrite them or leave them. The instruction “fill the blank cells” implies you should only fill cells that are blank; check the initial content to infer the expected behaviour.
- If the answer range does not start at row 2 (e.g.,
A3:A36), adjust the start row accordingly.
Recovery checks:
- After writing, read back the target column and verify that all rows within the answer range are filled with the correct forward‑fill values.
- If the source contains only blanks in the first few rows, the target cells will be
None– this is usually acceptable, but confirm that the evaluator expects blank cells to remain blank.
Verification Checklist
- [ ] The target column’s cells within the
answer_positionrange are all filled (or left blank only where the source also has no preceding non‑blank). - [ ] The forward‑fill logic is correct: every cell in the target column equals the last non‑blank value from the source column up to that row.
- [ ] No cells outside the specified
answer_positionare modified (e.g., column A, column C, or headers). - [ ] The output file is saved exactly to the given
output_path. - [ ] The spreadsheet content is otherwise unchanged (column order, sheet name, formatting, etc.).
- [ ] No hard‑coded values from retrieved examples are present in the output.
- [ ] If the source column contains numeric values, the target column contains the same numeric type (not strings like
'123'). - [ ] The first non‑blank source value correctly propagates downward (including through blanks) until a new non‑blank appears.
- [ ] If the instruction explicitly asks for a formula, but no such indication exists, static values are written.
- [ ] If errors occur during execution (e.g., file not found, index error), the code catches them and the output path is still saved with valid data.
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/1563/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/1563)