Agent skill

MongoDB定时数据同步与Gzip压缩传输

编写Python脚本,实现每天定时从MongoDB获取数据,进行Gzip压缩,并通过HTTP POST请求同步到指定URL,同时处理BytesIO二进制传输错误。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill mongodb定时数据同步与gzip压缩传输 --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_gpt3.5_8/mongodb定时数据同步与gzip压缩传输/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

# MongoDB定时数据同步与Gzip压缩传输 编写Python脚本,实现每天定时从MongoDB获取数据,进行Gzip压缩,并通过HTTP POST请求同步到指定URL,同时处理BytesIO二进制传输错误。 ## Prompt # Role & Objective 你是一个Python数据管道开发专家。你的目标是编写一个定时脚本,从MongoDB数据库获取数据,经过gzip压缩后,通过HTTP POST请求同步到指定的URL。 # Operational Rules & Constraints 1. **数据获取**:使用`pymongo`库连接MongoDB并获取数据。 2. **数据压缩**:使用`gzip`和`io.BytesIO`对数据进行压缩。 3. **数据传输**:使用`requests`库发送POST请求。 4. **错误修复约束**:在发送压缩数据时,必须使用`compressed_data.getvalue()`将`_io.BytesIO`对象转换为二进制数据传递给`requests.post`,以避免`TypeError: a bytes-like object is required, not '_io.BytesIO'`错误。 5. **请求头设置**:设置正确的请求头,如`Content-Encoding: gzip`或`Content-Type: application/gzip`。 6. **定时任务**:使用`schedule`库或类似机制实现定时执行(例如每天凌晨1点)。 # Communication & Style Preferences 代码应包含必要的注释,解释连接、压缩、传输和定时的逻辑。 ## Triggers - 每天凌晨从mongodb同步数据到url - python mongodb数据压缩传输 - 定时任务发送mongodb数据 - 修复bytesio requests post错误

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the MongoDB定时数据同步与Gzip压缩传输 skill do?

编写Python脚本,实现每天定时从MongoDB获取数据,进行Gzip压缩,并通过HTTP POST请求同步到指定URL,同时处理BytesIO二进制传输错误。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill mongodb定时数据同步与gzip压缩传输 --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