hydr0pon1c/skills-on-the-fly/178-22
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/178-22SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/178-22.
SKILL.md
When to use
This skill applies when you must filter rows from one spreadsheet sheet based on multiple conditions (on multiple columns) and copy the selected rows to another sheet at a specific row offset, potentially including headers. The target contract defines the source sheet, filter conditions, target sheet, and exact positions for headers and data.
Before acting, gather these evidence from the instruction:
- Source sheet name and column indices (or names) used in filter conditions.
- Filter conditions: exact values and logical operators (AND/OR).
- Target sheet name, row number for headers, first data row number, and the output range (answer_position) which is the maximum area you may modify.
- Any requirement to preserve existing content in other parts of the target sheet.
- The output path for the modified workbook.
Possible Failure Modes
- Off‑by‑one row/column errors: Using 0‑based indexing (e.g., pandas) when openpyxl uses 1‑based rows and columns, or mis‑mapping A1 notation to column letters.
- Ignoring the header row position: Placing headers at row 1 instead of the explicitly given row (e.g.,
A2means row 2), or writing data starting at the wrong row. - Incorrect condition logic: Using the wrong logical operator (AND vs OR), comparing against wrong column, or case‑sensitivity mismatches (e.g., 'TELIVISION' vs 'Television').
- Modifying cells outside answer_position: Overwriting cells beyond the specified
'Sheet2'!A1:C18range, violating the constraint that only that area may be changed. - Not clearing existing content in the output range: If the target sheet already contains data, forgetting to clear old rows before writing new ones can leave residual values.
- Treating missing values as strings: Comparing a cell value that is
None(Python) orNaN(pandas) to a string will always fail — check forNonebefore comparison. - Assuming column names instead of column indices: The instruction uses column letters (B, C) — map them to numeric indices (1‑based) correctly.
Possible procedures
- Open workbook and load sheets using
openpyxl.load_workbook(). Keep both source and target sheet objects.
- Determine column indices from column letters:
- Column B = 2, Column C = 3 (1‑based).
- If the instruction refers to column names (e.g., “CLASS”), confirm they appear in the same column position.
- Read the source sheet with
ws.iter_rows(min_row=2, max_row=ws.max_row, values_only=True)to skip the header row. For each row, extract values from the relevant columns.
- Apply filter logic:
- For each row, check if any condition is satisfied (OR logic).
- Use exact string equality (str(value) == 'TELIVISION') but beware of leading/trailing spaces; use
str(value).strip()if needed. - Handle
Noneby skipping the row or treating it as not equal.
- Collect qualifying rows in a list, preserving the full row data (all columns) if you need to copy several columns.
- Write headers to the target sheet at the specified row (e.g., row 2). Source headers are already in row 1 of the source sheet; copy them verbatim.
- Write data starting at the specified data row (e.g., row 3). Iterate over the collected rows and write each cell value to the corresponding column in the target sheet.
- Only modify cells within `answer_position` — if the collected rows exceed the allowed range, either truncate or report an error. Do not write outside the rectangle
(min_row, min_col)to(max_row, max_col)specified.
- Save the workbook to the given
output_path.
Recovery check: After writing, verify that the number of rows written (including header) fits within answer_position. If not, raise a warning and only write up to the boundary.
Verification Checklist
- [ ] Condition logic correct: I used OR between conditions, not AND. I compared column B to 'TELIVISION' and column C to both 'CLASS III' and 'CLASS IV', each independently.
- [ ] Row indices match the instruction: Headers placed at row specified (e.g., row 2), data starts at row specified (e.g., row 3). No data written in row 1 unless explicitly required.
- [ ] Column indices correct: Mapped column letter B to 2, C to 3. If the source sheet has a different layout, confirm by inspecting the actual first row.
- [ ] No modification outside `answer_position`: I verified that all write operations fall within the rectangle (e.g., row 1‑18, col 1‑3 for
'Sheet2'!A1:C18). - [ ] Existing content preserved: I only cleared or overwrote cells inside the output range; cells outside remain unchanged.
- [ ] No copy‑paste from retrieved examples: I did not use any concrete values, paths, or names from the retrieved examples. The condition values and sheet names come solely from the target instruction.
- [ ] Output file saved: The workbook is saved to the exact
output_pathprovided. - [ ] Error recovery: If any cell value was
Nonein the filter columns, I handled it gracefully without crashing or assuming a match.
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/178-22/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/178-22)