hydr0pon1c/skills-on-the-fly/267-18

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/267-18

SKILL.md

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

SKILL.md

When to use

Use this skill when you need to conditionally modify Excel formulas or cell values based on cell formatting (e.g., background color, font style) across a specified range. The target task involves applying a formula transformation — adding a fixed prefix to an existing concatenation pattern — but only to rows whose cells (often in a specific column) are highlighted with a particular color (e.g., yellow). This is a Sheet-Level Manipulation where the change applies to a defined answer_position but is gated by formatting.

Before acting, gather:

  • The exact color name or RGB value of the highlight (e.g., 'FFFF00' for yellow).
  • The column that contains the formatting to check (usually the column to be modified or a row marker).
  • The existing formula pattern in the target cells (often a concatenation inside brackets).
  • The answer_position range to limit modifications.
  • Any additional formatting or content that must be preserved (e.g., other columns, header rows).

Possible Failure Modes

  • Incorrect color detection: Using a wrong or approximate color code. Yellow might be 'FFFFFF00' or 'FFFF00'; verify by inspecting cell fills in the spreadsheet.
  • Misidentifying which row is highlighted: The highlight might be on a different column than the one you modify. Check each row in the target column for fill; if multiple columns are highlighted, pick the one most likely to mark the row (e.g., the first column, or the column mentioned in the instruction).
  • Applying the prefix to all cells instead of only highlighted rows: Always query cell fill before applying changes; do not assume all rows in answer_position are highlighted.
  • Corrupting existing formula syntax: When modifying a formula, ensure you keep the original concatenation intact. For a prefix, prepend the string to the very beginning (inside or outside the formula as appropriate). For example, if the formula is ="["&... then change it to ="//["&... or wrap with CONCAT.
  • Using formula strings that cause errors: Hard‑coding row references without making them relative can break when copied. Use relative references (no $) unless the source range is fixed.
  • Over‑shading or removing existing formatting: If the instruction asks to keep everything else as is, do not apply new fills unless explicitly told. Only highlight cells that are part of the change if required.
  • Overwriting unrelated cells: Strictly adhere to answer_position; do not modify cells outside that range, even if they appear similar.

Possible procedures

  1. Load the workbook and target sheet using openpyxl.load_workbook(). Keep data_only=False to preserve formulas.
  2. Identify the highlight color. Inspect a known highlighted cell’s fill:

``python cell.fill.start_color.rgb ` Yellow usually returns 'FFFFFF00' (or 'FFFF00' for some older formats). Convert to a string like '00FFFF00'? Standard openpyxl gives 'FFFFFF00'` (ARGB). Use exact comparison.

  1. Define the target range from answer_position (e.g., G1:G2). Parse start and end row/column.
  2. Iterate over rows in the range. For each row:
  • Check if the cell in the column that is highlighted (often the column to modify) has a fill matching the target color.
  • If yes, retrieve the current formula or value from that cell.
  • Modify the formula by prepending the prefix. For a prefix "//" to a concatenation that starts with [, you might need to change = "[" & ... to = "//[" & ... or use = "/" & "/" & "[" & .... Keep the original concatenation logic.
  • If the cell contains a plain text value, apply the transformation directly.
  1. Write back only cells that meet the condition. Do not change others.
  2. Preserve existing formatting and other content. Avoid modifying any cells outside the condition.
  3. Save the workbook to the specified output_path.

Decision points:

  • If the highlight color is used as a row marker (e.g., entire row is yellow), check that row’s first column or a marker column instead of the target column.
  • If no cells match the condition, leave the range unchanged; do not assume all cells should be modified.
  • If the instruction mentions “apply formula”, you may need to insert a formula (e.g., an array formula) rather than just prepend a string. In that case, replace the entire cell content with the new formula for highlighted rows only.

Recovery checks:

  • After writing, verify that only the highlighted rows have been changed (by re‑reading fills and formulas).
  • If errors occur (e.g., #VALUE!), inspect the formula syntax and ensure references are correct for each row.

Verification Checklist

  • [ ] Only highlighted rows modified: Confirm that cells in answer_position that do not have the target fill remain unchanged (same value, same formula).
  • [ ] Prefix applied correctly: For every highlighted row, the new formula or value begins with the required prefix (e.g., //). Check a sample cell.
  • [ ] Original pattern intact: The rest of the concatenation (e.g., the brackets, internal strings) is preserved exactly as before.
  • [ ] No accidental shading: Do not add any new cell fills unless explicitly required. The target instruction only mentions modifying the formula, not changing colors.
  • [ ] Output saved to correct path: The file is saved to the exact output_path provided.
  • [ ] Other sheet data untouched: Ensure no changes were made to other sheets or columns outside answer_position.
  • [ ] Error cells avoided: No cell contains #VALUE! or other errors after modification. If an error occurs, re‑evaluate the formula for that row.
  • [ ] Relative references correct: If formulas need to be copied down, verify that row references are relative (no $) unless the source is fixed.
  • [ ] No copy from retrieved examples: The solution must be derived from the current task context; do not reuse exact strings, paths, or colors from other examples.

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

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