Communitygithub.com

AaronShine-X/ecommerce-inventory-ops-assistant

E-commerce inventory operations assistant: Xiaohongshu e-commerce inventory, production, cost, supply pricing, and Tencent Docs readback verification skill for Codex.

What is ecommerce-inventory-ops-assistant?

This skill serves as the master entry point for Xiaohongshu e-commerce inventory, production, and cost table workflows. It leverages Tencent Docs as its live data source, reading and writing inventory, production receipts, shipments, returns, and cost tables. The skill enforces strict data integrity rules: it never overwrites formula rows or summary cells, always previews writes before committing, and requires explicit user approval for most table modifications. It supports advanced correction workflows when users send images with specific approval keywords, parses OCR text, and performs targeted cell corrections. The skill reads private Tencent Docs configuration from a local file (never committed), routes to specific reference files based on the task at hand (e.g., cost table, production advice, inventory analysis), and produces concise table outputs with clear separation of confirmed facts and items needing confirmation. It is designed for Codex agents and integrates with the tencent-docs tooling for secure, auditable data manipulation.

Works with~Claude Code✓Codex CLI~Cursor
npx skills add AaronShine-X/ecommerce-inventory-ops-assistant

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Xiaohongshu

Xiaohongshu is the master entry point for Xiaohongshu e-commerce inventory, production, and cost table workflows. Tencent Docs workbook, sheet names, and sheet IDs must be read from private local configuration and should not be written in the public skill file.

Core Rules

  • Always use live Tencent Docs data for inventory, production, receipt, shipment, return-to-inventory, and cost-table writes.
  • Use memory and prior chat only for boundaries, mappings, or warnings; do not reuse old figures without live verification.
  • Preview before writing any Tencent Docs table. Write only after the user clearly approves.
  • Exception: when the user sends an image and the accompanying text says 修正数量 / 修正一下数量 / 修正做货数量, treat it as explicit approval to correct existing production quantities. Follow references/production-table.md correction workflow directly: parse the image, let text corrections override OCR, re-read target rows and date columns, write only existing 做货数量 detail cells, then read back details, G, and the summary row.
  • After writing, re-read target cells/ranges and report exact cells plus readback values.
  • Never overwrite summary/formula rows.
  • In the configured production/receipt sheet, the unreceived-quantity column is formula-owned and read-only. Preserve existing formulas; never set, clear, overwrite, or manually fill it. If formulas look wrong or do not update, report it and ask before any repair.
  • If a value, row, mapping, quantity, or target category is unclear, mark 需确认.
  • Preserve the latest user correction over older notes.
  • For 做货建议/配码, distinguish verified demand from user hypotheses and explicit cutting instructions; use references/production-advice.md to combine demand, current stock, timely in-transit, and cutting constraints. Do not turn a hypothetical ratio into a confirmed sales pattern.
  • Do not create new cost categories or table meanings unless the user explicitly asks.
  • When using Tencent Docs, prefer the tencent-docs skill/tooling. If MCP tools are not visible, use the target environment's configured Tencent Docs connector or credential store.

Reference Routing

Read only the reference file(s) needed for the current task.

TaskRead
Cost table, fabric cost, processing cost, shrinkage, accessories, miscellaneous fees, buttons, washing fee, factory shipment quantity writereferences/cost-table.md
Production, receipt, fill tables, production plan, scheduling, not yet received, reverse sync inventoryreferences/production-table.md
Xiaohongshu orders, SKU statistics, inventory analysis, replenishment suggestions, past 7 days consumption, inventory alerts, return ratereferences/inventory-orders.md
Production suggestions, size ratio, fabric allocation per piece, integer/round to tens, size-out-of-stock replenishmentreferences/production-advice.md (also read inventory-orders; when checking production schedule or writing, also read production-table)
Supply to others, breakeven, return risk, contract cycle pricing, closing inventory, capital cost, order volume fluctuation, target profitreferences/supply-project-profit.md
Style number mapping, handwriting/OCR error-prone points, user latest corrections, error libraryreferences/mappings-errors.md

For mixed tasks, read all relevant references. For example, "Fill cost table based on payment image" requires cost-table.md and often mappings-errors.md.

Private Tencent Docs Config

Public repositories should keep only config/tencent-docs.example.json.

For a real deployment, read private Tencent Docs routing from config/tencent-docs.local.json in the installed skill directory, or from the target environment's private configuration. Do not commit the local config.

Expected roles:

Config keyMeaning
workbookTencent Docs workbook metadata
sheets.inventoryInventory sheet
sheets.production_receiptDefault production/receipt sheet
sheets.legacy_productionOptional legacy production sheet
sheets.costCost table

If private config is missing, ask the user to configure the workbook and sheet IDs before reading or writing Tencent Docs.

Default Output Style

  • Use concise tables for SKU, style, quantity, cost, and write previews.
  • Separate confirmed facts from 需确认 items.
  • State totals and reconciliation differences clearly.
  • For reminders or chasing messages, provide a short WeChat version and a structured Feishu version when requested.

Required Cost-Table Preview Shape

When writing extracted costs to the cost table, preview at least:

Style / ItemStore attributionFill locationItem rowProposed amount

Also mention target file, target sheet, target date column, current target-cell values, and source-total reconciliation.

Required Write Completion Report

After a write, report:

  • Target file and sheet.
  • Exact cells written.
  • Values read back from Tencent Docs.
  • Summary/formula rows checked.
  • Any unresolved 需确认 items.

Cross-skill routing

  • Jushuitan exception-order handling, review submission, and supplier-amount monitoring belong to the separate jushuitan-order-monitor skill; do not execute them inside this Xiaohongshu workflow.

Related Skills