hydr0pon1c/skills-on-the-fly/203-15
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/203-15SKILL.md
The same SKILL.md was published earlier as hydr0pon1c/skills-on-the-fly/203-15.
SKILL.md
When to use
This skill applies when you need to restructure data within an Excel workbook: creating a new sheet, copying selected headers, and transposing a single column of categorical values into separate columns (one per unique category), while preserving one row per group (e.g., per staff member). The target task may also require computing row totals in a specific cell range. Use this skill whenever the instruction involves flattening a vertical list of labeled items into a horizontal table, where each label becomes a column header and multiple rows per group collapse into one row.
Before acting, gather:
- The exact sheet names and column indices for headers and data.
- The set of known allowance/category names (e.g., "Basic", "Housing Allowance") – these are the columns to create.
- The grouping column(s) that identify each unique record (e.g., staff number).
- The answer position range (e.g., 'Output Required'!A1:M3) to know the maximum output region.
- Whether any numeric totals are required and where to place them.
Possible Failure Modes
- Hardcoded category names: Assuming the category names are exactly as given in the instruction, but the actual spreadsheet may have slight variations (spelling, extra spaces, different order). Always verify the unique values in the source column.
- Mistaking the source column index: The instruction says "column H", but the actual data might be offset if the sheet has merged cells or hidden columns. Confirm column letter or index by reading the header row.
- Overwriting existing data: Writing the output into a range that already contains content (e.g., formula, old data) without clearing it first, causing residual values.
- Omitting headers: Forgetting to copy the fixed headers (A1:G1) to the output sheet, or not writing the transposed allowance headers.
- Incorrect aggregation: For grouping, failing to iterate over each unique staff member and collect all allowance rows; instead, writing each original row as a separate output row.
- Total column misplacement: Placing the total in a column other than M (column 13), or calculating total based on wrong cells (e.g., including non-numeric).
- Using absolute paths or hardcoded names from retrieved examples (e.g., "master" sheet, yellow fill)—these are irrelevant to the target.
Possible procedures
- Inspect the source sheet structure:
- Read the first few rows to confirm header row and column order.
- Identify the column that contains allowance descriptions (e.g., column H, index 8). List its unique values – these will become new column headers in the output.
- Identify the grouping column(s) (e.g., staff number) that uniquely identify a staff member.
- Verify the fixed header range (e.g., A1:G1) is present and spans columns 1–7.
- Create or locate the output sheet:
- If the sheet 'Output Required' does not exist, create it.
- If it exists, clear all content within the answer position range (e.g., A1:M maximum row) to avoid stale data.
- Write fixed headers and dynamic headers:
- Copy the range A1:G1 from the source to the output sheet starting at A1.
- In the same row (row 1), write the allowance names as headers starting at column H (column 8) – one column per unique allowance.
- Optionally add a header "Total" in column M (column 13).
- Pivot the data from long to wide:
- Collect all rows from the source sheet below the header. For each unique staff identifier, create one output row.
- For each staff member, iterate over their allowance rows:
- Retrieve the allowance description (e.g., from column H) and the amount (e.g., from column I).
- Place the amount in the corresponding column (the one whose header matches the description).
- If a staff member has missing allowances, leave that cell blank (or zero if specified).
- Write the resulting row to the output sheet, starting from row 2.
- Compute totals:
- For each output row (starting row 2), sum all numeric values in columns H to L (or the created allowance columns) and write the result in column M (column 13).
- Use a formula or direct value; ensure the cell format matches the numeric style expected.
- Numeric and date handling:
- Convert any string amounts to floats, ignoring currency symbols if present. Keep values as numbers.
- If dates appear, preserve their datetime objects.
- Save the workbook to the given output path.
Verification Checklist
- [ ] Headers present: Row 1 in the output sheet contains exactly the original A–G headers from the source, followed by the allowance names (determined from unique values of column H), and a "Total" header in column M.
- [ ] One row per group: The number of data rows equals the number of unique staff identifiers (e.g., staff numbers). No duplicate rows for the same staff member.
- [ ] Allowance placement correct: For each staff row, the allowance amounts are placed in the correct columns matching their description. No allowance spills into a wrong column.
- [ ] Total column M: Every data row has a numeric total in column M that equals the sum of all allowance amounts in that row (use a formula check or recompute).
- [ ] Range adherence: All modifications stay within the answer_position range (e.g., 'Output Required'!A1:M3 unless more rows needed). No data written beyond max row/col.
- [ ] No leftover cells: Cells outside the intended range are not modified (e.g., columns N+, or rows below data).
- [ ] No hardcoded values from retrieved examples: Check that no sheet names like "master" or "Test" appear, and no formatting like yellow fill is applied unless explicitly required.
- [ ] Recovery check: If any step fails (e.g., missing sheet, file read error, unexpected column index), log the discrepancy and halt – do not proceed with assumptions.
- [ ] File saved correctly: The output file exists at the exact output_path and opens without error in Excel.
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/203-15/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/203-15)