hydr0pon1c/skills-on-the-fly/17-35

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/17-35

SKILL.md

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

SKILL.md

When to use

Apply this skill when you need to filter rows from a spreadsheet data range based on date criteria (start/end dates stored in specific cells) and copy the filtered results to a target range while preserving the original cell formatting (fonts, fills, borders, alignment, number formats). The instruction typically specifies:

  • A data range (e.g., A1:E315) containing a date column.
  • Criteria cells (e.g., I2 for start date, J2 for end date).
  • A target output start cell (e.g., I6) and an output range that matches the data columns.
  • The requirement to maintain formatting of each original row.

Evidence to gather before acting:

  • Load the workbook with openpyxl (not just pandas) to access cell styles.
  • Identify the exact row indices for headers vs. data rows.
  • Locate the date column index and the criteria cell values; convert dates to datetime objects (handle serial numbers if needed).
  • Determine the column mapping from data range to output range (e.g., data columns A–E map to output I–M).
  • Note the maximum output rows (derived from answer_position, e.g., I6:M295 gives 290 rows).

Possible Failure Modes

  1. Incorrect date comparison – Using < or > instead of <= / >=, or comparing strings instead of datetime objects.
  2. Formatting loss – Using pandas to filter and overwrite cells; always iterate cells with openpyxl and copy each cell’s style (font, fill, border, alignment, number_format).
  3. Overflow/missing rows – Not calculating the maximum number of available output rows; writing beyond answer_position or leaving blanks.
  4. Wrong sheet or column offset – Mixing up 1‑based vs. 0‑based indices, or mapping data column A to output column F instead of I.
  5. Uncleared output range – Not clearing previous content (e.g., from earlier test runs) before writing new results.
  6. Date storage format – Dates stored as serial numbers (Excel integers) instead of datetime objects; must convert both criteria and data dates to the same type.
  7. Header in data rows – Including header row or empty/partial rows; skip them explicitly.

Possible procedures

  1. Load workbook and inspect structure

Use load_workbook to get ws. Iterate over a few rows to locate:

  • The header row(s) and the first data row.
  • The column index of the date field (e.g., column A = 1).
  • The criteria cell positions (e.g., I2 = row 2, column 9; J2 = row 2, column 10).
  • The output start cell (e.g., I6 = row 6, column 9).
  1. Read and normalize dates
  • Extract start and end dates from criteria cells. Convert to datetime if they are strings or Excel serial numbers.
  • For each data row, read the date value. Convert to datetime consistently.
  1. Filter rows

Create an empty list for filtered row numbers (1‑based). For each data row (skip headers): ``python if start_date <= cell_date <= end_date: # inclusive example; adjust per instruction filtered_rows.append(original_row_number) ``

  1. Copy rows with formatting
  • Determine output columns: if data is A–E (cols 1–5), output is I–M (cols 9–13).
  • For each filtered row orig_row, compute target_row = start_target_row + index.
  • Clear the entire output range first (set values to None, styles can be left or overwritten).
  • For each column offset col_offset from 0 to 4:

``python src_cell = ws.cell(orig_row, data_first_col + col_offset) tgt_cell = ws.cell(target_row, output_first_col + col_offset) tgt_cell.value = src_cell.value # Copy style tgt_cell.font = copy(src_cell.font) tgt_cell.fill = copy(src_cell.fill) tgt_cell.border = copy(src_cell.border) tgt_cell.alignment = copy(src_cell.alignment) tgt_cell.number_format = src_cell.number_format ``

  • Use copy from copy module to avoid reference issues.
  1. Boundary and overflow check
  • If len(filtered_rows) > max_output_rows, truncate silently or raise a warning (instruction may imply all should fit).
  • Ensure target rows stay within answer_position end.
  1. Save to output_path

``python wb.save(output_path) ``

Verification Checklist

  • [ ] The output file opens without errors and contains the correct sheet name (not accidentally saved to a different sheet).
  • [ ] The output range exactly matches answer_position (e.g., I6:M295). No data spills outside.
  • [ ] Each filtered row’s formatting (font, fill, border, alignment, number format) is identical to the corresponding original row.
  • [ ] Date filter is correct: all rows with date >= start and date <= end are included; rows outside this range are absent.
  • [ ] No duplicate rows are introduced; ordering matches original row order.
  • [ ] The output does not copy any header rows from the input.
  • [ ] If criteria cells were empty, the expected fallback behaviour (e.g., no filter) is correctly implemented.
  • [ ] The solution does not contain hard‑coded values from retrieved examples (e.g., names, specific dates, file paths except input_path/output_path from instructions).
  • [ ] A quick recovery check: if any source cell value is None or a formula, it is handled gracefully (copied as‑is).

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/17-35/badge)](https://verified-skill.com/skills/hydr0pon1c/skills-on-the-fly/17-35)

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