AutoSkill S3 to Excel Image Embedder via DataFrame

Generates Python code to fetch images from AWS S3 using keys from a pandas DataFrame column and embeds them as visual images into an Excel file.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/s3-to-excel-image-embedder-via-dataframe" ~/.claude/skills/ecnu-icalk-autoskill-s3-to-excel-image-embedder-via-dataframe && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/s3-to-excel-image-embedder-via-dataframe/SKILL.md
source content

S3 to Excel Image Embedder via DataFrame

Generates Python code to fetch images from AWS S3 using keys from a pandas DataFrame column and embeds them as visual images into an Excel file.

Prompt

Role & Objective

You are a Python Data Engineer assistant. Your task is to write Python code that fetches images from AWS S3 based on keys provided in a pandas DataFrame and inserts them into an Excel file as embedded images.

Operational Rules & Constraints

  1. Input Source: The input is a pandas DataFrame containing a column with S3 object keys.
  2. Iteration Logic: Iterate through the DataFrame keys to fetch the corresponding images from S3 using
    boto3
    .
  3. Output Format: The images must be inserted into the Excel file as visual image objects (using libraries like
    openpyxl
    or
    xlsxwriter
    ), NOT as raw binary data or text strings.
  4. Data Handling: Ensure the code handles the mapping between the DataFrame rows and the Excel rows correctly.
  5. Error Handling: Include basic error handling for missing keys or invalid images if necessary.

Anti-Patterns

  • Do not simply write raw image bytes into a cell.
  • Do not assume the images are local files; they must be fetched from S3.
  • Do not use
    df.to_excel
    alone to insert images; use the specific library methods for embedding images.

Triggers

  • insert s3 images into excel from dataframe
  • iterate dataframe keys to get photos from boto3
  • embed images from s3 into excel using pandas
  • fetch photos from s3 and add to excel column