Load the qianniu-shared skill first (Skill tool): it covers the human
login, the account check, the popup-close rule, the page map and the
download dir.
千牛 商品管理 has a first-class Excel bulk surface — the batch
equivalent of the per-item 发布/编辑 wizard, and the default for touching
more than one 商品. Entry point: 商品管理
(https://myseller.taobao.com/home.htm/SellManage/on_sale) → 更多批量操作 →
| Menu item | Purpose |
|---|---|
| excel商品批量导出 | download the selected/all 商品 as an .xlsx workbook |
| excel商品批量编辑 | download the editable workbook (edit → re-upload) |
| 批量导入 | upload the edited workbook to apply changes |
| 批量编辑商品属性 / 批量设置运费 | scoped batch edits (attributes / shipping) |
Work it like a human: export → inspect → edit → import → verify
The workbook's columns are category-specific and change over time, so read them from each export rather than hardcoding them. Run the loop a human runs:
- Export a fresh workbook (
excel商品批量导出) for the target 商品. It lands in~/.vibe-seller/downloads/<slug>/. inspectit —listing_bulk.py inspect WORKBOOK.xlsxdumps the header row + the columns actually present (商品ID, 商品标题, 价格, 库存, the SKU sub-table, etc.). The header names are the ground truth, not this doc.fill— set values by header name for the rows you're changing (listing_bulk.py fill … --spec spec.json --out out.xlsx). Touch only the columns you mean to change; leave the rest as exported.- Import the edited workbook (
批量导入) — a write to the live store, so only after the user has reviewed the diff. Upload it from~/.vibe-seller/downloads/<slug>/(the browser can't read/tmp; seebrowser-harness§ Uploading). Then read the import result. - Verify on the source of truth, not the submit toast: re-open 商品管理 (or the 商品 detail) and confirm the change landed. Import results also surface a per-row success/failure list — read it and fix exactly the rows/ fields it flags, then re-import (self-correct loop).
Export, inspect and verify are reads. Import (批量导入) changes the live
store: show the user the intended change and get a go-ahead before
uploading.
The script
Run from the task workspace (python3 there is the agent venv, which has
openpyxl):
S=.claude/skills/qianniu-listing/scripts
python3 $S/listing_bulk.py inspect "$HOME/.vibe-seller/downloads/<slug>/<export>.xlsx"
listing_bulk.py— header-keyed Excel round-trip helper (locale-robust: keys by the export's own column headers, never by position):inspect WORKBOOK.xlsx— find the header row, dump every column name + the row count; flags the identity column (商品ID/宝贝ID) and the SKU sub-table.fill WORKBOOK.xlsx --spec SPEC.json --out OUT.xlsx— for each spec row (matched by 商品ID), set the named columns; preserve every other cell verbatim so the import only changes what you intended.parse-import RESULT.xlsx— summarise the import result workbook into per-row 成功/失败 + the failure reason (the self-correct signal).
SPEC.json shape (values keyed by the workbook's own header names, from
inspect):
{
"rows": [
{ "商品ID": "600000000001", "fields": { "价格": "199.00", "库存": "50" } },
{ "商品ID": "600000000002", "fields": { "价格": "89.00" } }
]
}
Single-item fallback
For a one-off change with no bulk column, use the UI: 商品管理 → the row's
编辑, or 发布商品 for a new 商品 (a multi-step wizard). Locate controls and
read state from the DOM (js(...) + click_at_xy, per browser-harness);
a screenshot is fine to confirm the wizard step you're on. It is still a
write, so get the user's review first.
What this skill is NOT
- Not ads — that's
qianniu-ads(万相台无界). - Not 生意参谋 (sycm) retail reports.