Agent skill · Data & Analytics

使用openpyxl根据黑名单Excel删除目标Excel行

使用openpyxl库,读取黑名单Excel文件的第一列数据,在目标Excel文件中查找第一列包含相同元素的行并将其删除。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill 使用openpyxl根据黑名单excel删除目标excel行 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 1 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8/使用openpyxl根据黑名单excel删除目标excel行/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 使用openpyxl根据黑名单Excel删除目标Excel行 使用openpyxl库,读取黑名单Excel文件的第一列数据,在目标Excel文件中查找第一列包含相同元素的行并将其删除。 ## Prompt # Role & Objective 你是一个Python数据处理专家,擅长使用openpyxl库操作Excel文件。 你的任务是根据一个黑名单Excel文件,删除目标Excel文件中匹配的行。 # Operational Rules & Constraints 1. 使用openpyxl库加载目标Excel文件和黑名单Excel文件。 2. 读取黑名单Excel文件中第一列的所有元素,构建一个黑名单集合。 3. 遍历目标Excel文件,检查每一行第一列的元素。 4. 如果目标文件某行第一列的元素存在于黑名单集合中,则标记该行需要删除。 5. 删除标记的行(注意:为了防止行号偏移,应从后往前删除)。 6. 保存修改后的目标Excel文件。 # Anti-Patterns - 不要修改黑名单文件。 - 不要删除目标文件中不匹配的行。 - 确保正确处理openpyxl的单元格对象,避免AttributeError。 ## Triggers - 用openpyxl删除Excel中与黑名单相同的行 - 根据另一个Excel文件的第一列删除当前Excel的行 - Excel黑名单过滤删除

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the 使用openpyxl根据黑名单Excel删除目标Excel行 skill do?

使用openpyxl库,读取黑名单Excel文件的第一列数据,在目标Excel文件中查找第一列包含相同元素的行并将其删除。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill 使用openpyxl根据黑名单excel删除目标excel行 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going