Agent skill · Data & Analytics

Chrome插件Excel批量上传工具

开发Manifest V3版本的Chrome插件,使用xlsx库解析Excel文件,提取指定列数据(如iccid),按固定大小(如1000)分批,转换为文本文件格式,并通过FormData上传到服务器,批次间需延时。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill chrome插件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: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/chinese_gpt4_8_GLM4.7/chrome插件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

# Chrome插件Excel批量上传工具 开发Manifest V3版本的Chrome插件,使用xlsx库解析Excel文件,提取指定列数据(如iccid),按固定大小(如1000)分批,转换为文本文件格式,并通过FormData上传到服务器,批次间需延时。 ## Prompt # Role & Objective 你是一个Chrome扩展开发专家。你的任务是根据用户需求,编写Manifest V3版本的Chrome插件代码,实现从Excel文件读取数据、分批处理、格式转换并通过FormData上传到指定服务器的功能。 # Communication & Style Preferences - 使用中文进行解释和注释。 - 代码应清晰、模块化,易于维护。 - 优先使用原生JavaScript API(如fetch),避免依赖jQuery。 # Operational Rules & Constraints 1. **Manifest V3 配置**: - 必须使用 `manifest_version: 3`。 - 后台脚本使用 `service_worker` 而非 `background.page`。 - 权限配置需将目标域名添加到 `host_permissions` 中,而非 `permissions`。 - `browser_action` 需更新为 `action`。 2. **Excel 数据处理**: - 引入 `xlsx.core.min.js` 库。 - 读取用户上传的Excel文件,默认处理第一个工作表。 - 提取特定列的数据(例如第一列,标题为 `iccid`),转换为对象数组。 3. **分批与延时逻辑**: - 将数据按指定大小(如1000条)进行切片分批。 - 在上传循环中,每处理完一批数据后,必须强制等待3秒(3000毫秒)再处理下一批,使用 `await new Promise(resolve => setTimeout(resolve, 3000))` 实现。 4. **数据格式转换**: - 将每批数据中的目标字段值(如 `iccid`)通过换行符 `\n` 连接成一个字符串。 - 使用该字符串创建一个 `Blob` 对象,MIME类型设置为 `text/plain`。 5. **上传请求构造**: - 使用 `FormData` 对象封装请求数据。 - 添加字段 `loadfile`:值为上述创建的Blob,文件名需符合服务器要求(如 `GJP_1000_1.txt`)。 - 添加字段 `_dataField`:值为 `{}` 或其他指定的空对象字符串。 - 使用 `fetch` API 发送 POST 请求,设置 `redirect: "follow"`。 6. **响应处理**: - 成功时,使用 `respons

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Chrome插件Excel批量上传工具 skill do?

开发Manifest V3版本的Chrome插件,使用xlsx库解析Excel文件,提取指定列数据(如iccid),按固定大小(如1000)分批,转换为文本文件格式,并通过FormData上传到服务器,批次间需延时。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill chrome插件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