hydr0pon1c/skills-on-the-fly/15380
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/15380SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/15380.
SKILL.md
When to use
Use this skill when you need to extract a substring or a token from one column of a spreadsheet, then look up that token in a separate two-column reference table (or named ranges) and write the corresponding value into another column for each row. The target task description provides:
- Source column (e.g., column A) containing text strings with an embedded code/ID.
- Two lookup ranges: one for the search keys (e.g., “codes2”) and one for the return values (e.g., “month”).
- The output column (e.g., column B) and the exact cell range to fill (e.g., B3:B14).
- The instruction type is “Cell-Level Manipulation” – only specified cells are to be modified.
Before acting, you must:
- Examine the spreadsheet content (sheet name, column headers, row positions) to locate the source column, the lookup table columns (their column letters/indices), and the exact answer range.
- Verify that the reference ranges (e.g., “codes2” and “month”) are present and aligned (same number of rows).
- Understand the extraction rule: how to isolate the token from the source string (e.g., split by underscore, use regex, or fixed-length substring).
Possible Failure Modes
- Off-by-one row indexing: Assuming Excel’s first data row is row 1 when openpyxl uses 1‑based indexing and headers may skip row 1. Always print a few cells to confirm row numbers.
- Wrong column letter: The reference columns may not be the ones you guess (e.g., “codes2” might be column C, not D). Load the workbook and introspect column headers.
- Case mismatches: Lookup keys or source substrings may differ in case. Normalize to lower/upper before comparison.
- Partial substring not matching: The extracted token may contain extra whitespace or characters. Strip and ensure exact match with lookup keys.
- Missing values: Some rows may have no matching lookup key. Decide whether to leave the output cell empty or write a placeholder (the description says “If no answer is found, output an empty string”).
- Modifying unintended cells: Only write to cells within the
answer_positionrange. Do not touch other columns or rows. - Saving to wrong output path: The final workbook must be saved to the exact
output_pathprovided in the task context.
Possible procedures
- Load and introspect: Use
openpyxl.load_workbook(). Determine the active sheet or the sheet named in the context. Print all column indices and first few rows to verify the location of:
- Source column (e.g., column A).
- Lookup key column (e.g., where “codes2” values reside).
- Lookup value column (e.g., where “month” values reside).
- Output column (e.g., column B).
- Build lookup dictionary: Iterate over the rows of the lookup table. For each row, store a mapping from the key (normalized, e.g., lowercase) to the corresponding value. Handle cases where the key appears multiple times (usually first match wins).
- Parse the source cell: For each row in the
answer_positionrange:
- Read the source cell value.
- Extract the token using a robust method: if the pattern is fixed (e.g., the second underscore‑delimited part), use
str.split('_')and index. If it’s a variable position, use a regex liker'_(\d+)_'or search for known patterns. - Trim whitespace and normalize case as needed.
- Lookup and write: Use the extracted token to query the dictionary. If found, write the corresponding value (preserving its original case, e.g., “SEP”) to the output cell. If not found, write an empty string or
None(empty cell).
- Preserve unrelated state: Do not modify any cell outside the answer range. The workbook already contains other data (e.g., headers, existing formulas) that must remain unchanged.
- Save: Write the workbook to
output_path. Verify the file exists.
Verification Checklist
- [ ] The answer range (e.g., B3:B14) contains the expected values and nothing else is written outside it.
- [ ] The reference key column and value column are correctly identified (not swapped) by examining the spreadsheet content.
- [ ] Lookup key extraction from the source string is correct: test a few edge cases (e.g., missing delimiter, leading/trailing spaces).
- [ ] All rows in the answer range are processed, even if the source cell is empty (write empty string).
- [ ] Case sensitivity is handled: the extracted token matches the lookup key (compare lowercased or as‑is as required by the reference).
- [ ] No other parts of the workbook (other sheets, other columns, formatting) have been altered.
- [ ] The final file is saved to the exact
output_pathand can be opened without errors. - [ ] If an error occurs (e.g., missing sheet, invalid column), the agent should print diagnostic info and re‑inspect rather than fail silently.
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/15380/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/15380)