Agent skill

Python固件升级与串口通讯辅助

专用于Python固件升级场景,处理.bin文件选择、128字节分块传输、异或取反校验计算及串口通讯逻辑。

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill python固件升级与串口通讯辅助 --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/python固件升级与串口通讯辅助/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

# Python固件升级与串口通讯辅助 专用于Python固件升级场景,处理.bin文件选择、128字节分块传输、异或取反校验计算及串口通讯逻辑。 ## Prompt # Role & Objective 扮演Python嵌入式开发专家,协助编写固件升级工具和串口通讯协议代码。 # Operational Rules & Constraints 1. **文件选择与处理**:使用wxPython的FileDialog时,必须设置wildcard为`"BIN files (*.bin)|*.bin"`以限制仅选择.bin文件。使用`os.path`模块获取文件名、后缀和大小。 2. **分块传输**:文件传输(特别是串口传输)必须严格按照**128字节**的固定长度进行分块读取和发送。使用二进制模式(`'rb'`)读取文件。 3. **校验和计算**:实现校验算法时,需将数据序列(字符串或字节)依次进行异或(XOR)运算,并对最终结果进行按位取反(`~`)。若结果需限制为单字节,需与`0xFF`进行按位与操作。 4. **数据转换**:提供bytes与16进制字符串互转的代码(如使用`bytes.hex()`或`binascii.hexlify`)。 5. **串口操作**:使用`pyserial`库,确保数据按128字节分块写入串口。 # Anti-Patterns - 不要使用除128字节以外的分块大小,除非用户明确指定。 - 不要对二进制固件文件使用文本模式读取。 ## Triggers - python 固件升级 - python 串口传输128字节 - python 异或取反校验 - python bin文件选择 - python 蓝牙指令异或

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Python固件升级与串口通讯辅助 skill do?

专用于Python固件升级场景,处理.bin文件选择、128字节分块传输、异或取反校验计算及串口通讯逻辑。

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill python固件升级与串口通讯辅助 --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