hydr0pon1c/skills-on-the-fly/12864
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/12864SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/12864.
SKILL.md
When to use
This skill applies when the target task requires writing Index/Match formulas into a range of cells to perform a two-dimensional lookup across sheets. The typical contract is:
- You are given a source sheet (Sheet1) and a target sheet (Sheet2).
- You must fill a specified cell range on Sheet2 with formulas that look up values based on a match key in another column.
- The instruction explicitly names Index/Match as the desired approach.
- The answer_position tells you exactly which cells to modify (e.g.,
'Sheet2'!B2:B12). - The task may also mention retrieving associated data from multiple columns, but only the answer_position range must be filled.
Before acting, gather evidence:
- Inspect the actual sheet layouts (column headers, rows, cell types) using code (openpyxl or pandas).
- Verify which columns in Sheet1 and Sheet2 are the lookup key and which is the return column. The instruction may be ambiguous; use the provided spreadsheet_content as a guide, then confirm with code.
- Check for empty or placeholder cells in the answer range — they are to be replaced with formulas, not static values.
- Note the exact sheet names and cell references used in any user-provided formulas (they often contain clues but may be wrong).
Possible Failure Modes
- Mismatched column references: Assuming the lookup column is Column D in Sheet1 but it is actually Column C, or mixing up sheet names. Always verify by printing row/column values.
- Forgetting to handle missing matches: The task often requires blank cells (or a specific fallback like "NEW") when no match exists. Use
IFERROR(..., "")orIFNA(...). - Writing static values instead of formulas: The instruction explicitly asks for Index/Match, so the cells must contain the formula string, not the computed result.
- Incorrect absolute/relative references: When the formula is dragged across rows and columns, the reference to the lookup key must be relative (e.g., $A2 for column A absolute, row relative) and the table array absolute (e.g., Data!$A$1:$Z$100).
- Misunderstanding the data structure: For example, dates may be stored as datetime objects, requiring conversion before matching. Always compare types.
- Overwriting existing data: If the answer_range overlaps with existing formulas or values, only overwrite the intended range. Use openpyxl to write only to those cells.
- Ignoring the answer_position boundaries: Write exactly to the specified range (e.g., B2:B12), not to entire columns.
Possible procedures
- Load the workbook with openpyxl, retaining formatting.
- Inspect the relevant sheets: print dimensions, column headers, sample rows, and the type of key values (e.g., strings vs dates).
- Identify the lookup table:
- Which sheet contains the source data? (Often Sheet1 or a "Data" sheet)
- Which column in that sheet is the lookup key? (e.g., match against a column of IDs, names, or dates)
- Which column contains the values to return? (e.g., a column of prices, dates, or names)
- Construct the Index/Match formula:
- Use
INDEX(return_range, MATCH(lookup_value, lookup_range, 0)) - Wrap with
IFERRORto handle missing matches:=IFERROR(INDEX(...), "")(or the blank string""for blank cells). - For two-dimensional lookups (match both row and column), use two MATCH functions:
INDEX(table, MATCH(row_key, row_range, 0), MATCH(col_key, col_range, 0)).
- Adapt the formula for the answer range:
- The lookup_value should reference the cell in the same row that contains the key (e.g., for Sheet2!B2, if the key is in Sheet2!A2, use
$A2orA2depending on whether you need absolute column). - Use absolute references for the lookup ranges (e.g.,
Sheet1!$D:$D) so the formula can be copied.
- Write the formula to each cell in the answer range:
- loop over rows (e.g., for row in range(2, 13):
ws.cell(row=row, column=2).value = f'=IFERROR(INDEX(Sheet1!$B:$B, MATCH(A{row}, Sheet1!$D:$D, 0)), "")'). - Ensure the column letter and row number are correctly interpolated.
- Save the workbook to the given output_path.
Verification Checklist
- [ ] The formula is written as a string starting with
=and uses valid Excel syntax. - [ ] The formula is placed in every cell of the specified answer_position range, and only there.
- [ ] The lookup key column is correctly referenced (absolute for the column if it should not change when copied across columns; relative for the row if it should change per row).
- [ ] The return column is correct (the column containing the desired value in the source sheet).
- [ ] The result handles missing matches: returns blank (empty string), not
#N/Aor0. - [ ] The formula does not reference any cells from the retrieved examples (e.g., "F:F" or "Data" sheet names) unless they match the target sheet names exactly.
- [ ] The workbook is saved to the output_path and no other cells are modified.
- [ ] If the task involves dates, verify that the date types are compatible (both datetime objects) and that the MATCH uses exact match (0).
- [ ] Run a quick check: print the first few formula cells to confirm they contain the expected string.
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/12864/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/12864)