B2b tender archive

From chefroger/smart-trade-ai · View interactive version

B2b tender archive is an AI agent skill from the GitHub repository chefroger/smart-trade-ai. 批量解压与归档清理 — 覆盖 7z/rar/zip/gz,嵌套包多轮解压到 0 残留,删包一律进回收站

How to use this skill

Skill file

B2B 批量解压与归档清理

批量解压压缩包、处理嵌套包,解压后按需归组清理。

输入

输出

处理方式

语言:脚本输出支持中英双语 —— 用户用英文对话时加 --lang en

(或设 TRADE_LANG=en),默认中文。

# 先看规模,不动文件
python scripts/extract_archives.py --root "<目录>" --dry-run

# 招标批量包:原包进回收站(脚本的默认模式就是 A)
python scripts/extract_archives.py --root "<目录>" --mode A

# 单文件 / 非招标:保留原包
python scripts/extract_archives.py --root "<目录>" --mode B

| 阶段 | 做什么 | 失败/异常时 |

|---|---|---|

| 摸底 | 数量、总大小、0 字节损坏数 | — |

| 安全核查 | 两次快照对比条目数 | 不一致 → 停手,报「目录正在变化」 |

| 第一轮 | 解压 + 按模式处理原包 | 单包失败记原因,不中断整批 |

| 嵌套迭代 | 重扫 → 再解压,最多 5 轮 | 到上限仍有残留 → 明确报告 |

| 最终验证 | 全目录扫描残留 | — |

| 编号归组 | 只出计划(--plan-grouping) | 需用户确认后才执行 |

使用限制

都不可用时不删,只报告。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.