hydr0pon1c/skills-on-the-fly/13284

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/13284

SKILL.md

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

SKILL.md

When to use

Apply this skill when you need to perform a cross-sheet lookup with multiple match conditions in a spreadsheet, where one condition is an exact match on a text column and another is a numeric range check (value between a minimum and maximum). The target task involves:

  • Two sheets: a "Base" sheet where results are written, and a "Streets" (or lookup) sheet containing the reference data.
  • Exact match: a column from Base must exactly equal a column in the lookup sheet.
  • Range match: a numeric column from Base must fall within a range defined by two columns in the lookup sheet (inclusive).
  • Row filtering: only consider lookup rows where both the start and end columns are populated (non‑empty).
  • Output column: write the matched value (from a specific column in the lookup sheet) into a designated column in Base; if no match, write an empty string.
  • Cell‑level manipulation: the answer is placed in a contiguous range of cells, typically one row per Base row.

Before coding, gather evidence:

  • Identify the exact column letters/cell ranges from the task description and the spreadsheet preview.
  • Check whether lookup rows with missing start or end values truly exist and how they affect matches.
  • Confirm data types (e.g., numeric columns are actually numbers, not strings).
  • Note the output path and ensure it is used in the final save.

Possible Failure Modes

  • Misinterpreting range inclusiveness: The condition "falls within the range" is usually inclusive of both ends. Confirm with sample values. If the task says "between", treat it as >= and <=.
  • Forgetting to exclude incomplete rows: Rows where either the start or end is empty should be skipped entirely. Including them may produce false matches (e.g., comparing against None).
  • Type mismatch: Numeric values may be stored as strings (especially if read from CSV). Always convert to float/int before comparison.
  • Over‑writing beyond target range: The answer position is fixed (e.g., 'Base'!E2:E26). Writing only those cells; do not modify other cells.
  • Assuming unique matches: Multiple lookup rows may satisfy the conditions for a given Base row. The task doesn’t specify handling duplicates; assume the first match found (or task expects a unique match). Verify with ground truth.
  • Using Excel formulas instead of computed values: The solution requires setting cell values directly (e.g., ws.cell(row, col).value = result), not writing formulas.
  • Off‑by‑one row indexing: Answer range often starts at row 2 (header in row 1). Ensure loops start correctly.
  • Case sensitivity: The exact match on text values may be case‑sensitive depending on the spreadsheet engine. If unsure, treat as case‑sensitive unless evidence shows otherwise.
  • Not preserving other sheets: Only modify the target sheet; do not add, delete, or rename sheets.

Possible procedures

  1. Load the workbook using openpyxl.load_workbook(path).
  2. Access the sheets by name (e.g., wb['Base'] and wb['Streets']).
  3. Determine row ranges:
  • For Base: from row 2 to max_row (or the explicit answer range end).
  • For Streets: from row 2 to max_row (skip header row 1).
  1. Read all Streets data into a list of dictionaries for faster lookup. For each row, extract:
  • The exact‑match column value (e.g., Streets!B).
  • The start and end values (e.g., Streets!C and Streets!D). Convert to float (or int) if present.
  • The return column value (e.g., Streets!F).
  • Filter out rows where either start or end is `None` or empty.
  1. Iterate over each Base row (from row 2 to the answer range end):
  • Read the exact‑match key from Base column (e.g., Base!C).
  • Read the numeric value to check (e.g., Base!D).
  • Search the filtered Streets data for a row where:
  • Steets_exact equals Base_exact (string equality).
  • Base_number >= Steets_start and Base_number <= Steets_end.
  • If found, assign the return value to the result; else assign an empty string.
  1. Write the result to the target Base column (e.g., Base!E at the same row).
  2. Save the workbook to the specified output path.

Decision points:

  • If Streets has multiple matching rows, you may need to define a tie‑breaker (e.g., first encountered, smallest range). The task does not specify; default to the first match in order of occurrence.
  • If the numeric value is None or non‑numeric in Base, treat as no match (return empty string).
  • If the exact match column in Base is empty, skip that row (return empty string).

Recovery checks:

  • After initial read, print a few rows of Streets data to confirm start/end types and the presence of missing values.
  • After writing, manually check a few known output cells (from task description) against expected results.

Verification Checklist

  • [ ] Output range is exactly `'Base'!E2:E26` – no other cells are modified.
  • [ ] Every cell in that range contains either a string from Streets!F or an empty string ("").
  • [ ] Rows in Base with no match receive an empty string (not None, not a formula).
  • [ ] Rows in Streets where Start or End is missing are completely ignored (do not cause any match).
  • [ ] Numeric comparison is done inclusively: Base!D >= Streets!C and Base!D <= Streets!D.
  • [ ] Exact match on text is case‑sensitive (match sample: e.g., "Avenida Braz de Pina" equals streets entry).
  • [ ] Unrelated columns in Base (e.g., A, B, C, D, F) remain unchanged.
  • [ ] Other sheets (if any) are untouched.
  • [ ] Output file is saved to the exact path specified in output_path, overwriting if necessary.
  • [ ] No errors during code execution (e.g., TypeError from comparing non‑numeric types).
  • [ ] Sample verification: For known examples from the task context (e.g., Basilio → Mario, Cecilia → Celia), confirm the computed values match. If any discrepancy, re‑examine filtering and comparison logic.
  • [ ] Edge cases: Base rows where number is exactly at the boundary (e.g., 568.0 should match the range 568.0–987.0). Test with a quick manual check.

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

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