drivethru-digitize-outsourcing
БесплатноЗапускает вложенные скриптыНе проверенOutsource embroidery digitizing end to end for BaconCo (Odoo). On a routine, read the `digitize.demand` records that are Ready to send out, pull the…
от zmtucker713 установок в других каталогахОб этом скилле
Digitize outsourcing (Odoo → outside digitizer)
You run the embroidery digitizing outsourcing loop. Embroidery artwork must
be digitized (turned into a stitch file) before it can be sewn; when that work
goes to an outside digitizer, the record that tracks it is an Odoo
digitize.demand. Your job, on a routine, is to send the Ready ones out and
mark them Outsourced.
This is the ERP half of the loop. The portal half — actually posting the
job into the digitizer's web form — is the separate
artworklady-digitizing skill, which you
invoke. Keep the two responsibilities separate: this skill decides what to
send and updates Odoo; that skill sends it.
SEND leg:
digitize_demand_search (Ready, non-custom) → pull decoration art + specs
→ download the PNG + AI files to disk
→ build the brief (H × W + thread codes + colours)
→ artworklady-digitizing submit (dry run, then confirm; standard turnaround)
→ on status=="submitted": digitize_demand_outsource (Ready → Outsource)
RETURN leg:
digitize_demand_search (state=outsource) → fetch the vendor's returned files
→ file them on your machine (persistent job archive + manifest)
→ digitize_demand_upload (Outsource → Sew Out)
→ parse_worksheet (the PDF) → stitch count, size, Stop-Sequence colours
→ digitize_demand_apply_worksheet (dims + stitch count + thread colours)
Transport
Odoo is driven through the drivethru_mcp MCP server via scripts/odoo_mcp.py:
python3 scripts/odoo_mcp.py tools # discover tools + schemas
python3 scripts/odoo_mcp.py call <tool> '{"...":"..."}' # call a tool
echo '{"...":"..."}' | python3 scripts/odoo_mcp.py call <tool>
Every call prints one JSON object, or {"error": {...}} with a non-zero exit.
ODOO_MCP_URL / ODOO_MCP_TOKEN must be set — if not, stop and tell the user.
Run tools first and trust its inputSchema over any signature below.
The routine, step by step
1. Read the Ready queue
python3 scripts/odoo_mcp.py call digitize_demand_search '{"is_custom": false}'
This returns Ready, non-custom demands — the queue (custom-text demands use a
different digitizing flow, so exclude them). Send only demands whose
decoration_method is exactly "Embroidery" — skip "Embroidery (Tackle Twill)",
Puff/3D embroidery, and any other variant. Also skip any demand whose decoration
already has a Shopworks ID (shopworks_design_number set): those are already
digitized in Shopworks and only need their file uploaded, not outsourcing — report
them so a human can upload, but never send them. Read the roll-up
(sendable_count, blocked_count, rush_count) and each row. Work at most ~20
per run, soonest earliest_ship_date first; anything beyond that is picked up
next run:
| Field | Use |
|---|---|
outsource_ready / blockers |
Only send rows where outsource_ready is true. Report the blocked ones (with their blockers), don't force them. |
decoration_method |
Send only when it is exactly "Embroidery" — skip Tackle Twill, Puff, and any other variant. |
shopworks_design_number |
If set, skip — already digitized in Shopworks; it only needs its file uploaded, not outsourcing. Report it for manual upload. |
decoration.id |
The job reference you send to the digitizer, and the record whose files you download. |
art.embroidery_png, art.ai_file |
The two files to download (cdn_url / web_url, present). |
art.height_in, art.width_in, art.color_names |
The brief — size and thread colours. |
earliest_ship_date, days_until_ship, is_rush |
Informational only — surfaced, not acted on (see §3). |
Skip anything already outsourced. The queue is Ready-only by default, so a
demand that has been sent is already gone from it; never widen with
include_all/is_outsourced and then send those.
2. Download the two files
For each sendable demand, get the decoration's embroidery production PNG and
its AI source file with digitize_demand_files — one call returns both:
python3 scripts/odoo_mcp.py call digitize_demand_files '{"demand_id": <DEMAND_ID>}'
Each entry comes back with filename, mimetype, size_bytes, source, and
data_base64 (or error). Decode each data_base64 to a file (e.g.
emb_<demand_id>.png, emb_<demand_id>.ai) and confirm it's non-empty.
Do not try to fetch the row's art.*.cdn_url yourself: on production those
binaries live on a CDN firewalled to Odoo's IP, so an agent can't reach it —
that's exactly why digitize_demand_files fetches them server-side and hands
you the bytes. If a file comes back with error (missing, or over the 20 MB
guard), that demand isn't sendable — report it and move on. See
references/routine.md for details.
3. Rush is informational — submit everyth
Установить drivethru-digitize-outsourcing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл drivethru-digitize-outsourcing?
Outsource embroidery digitizing end to end for BaconCo (Odoo). On a routine, read the `digitize.demand` records that are Ready to send out, pull the decoration's embroidery artwork + specs (production PNG, AI source file, height/width, thread-colour names, ship date), download the two files, decide rush from the ship date, submit the job to the outside digitizer via the `artworklady-digitizing` skill with a brief that states the size and colours, and — only on a confirmed submission — transition the demand to Outsource in Odoo. Talks to Odoo through the `drivethru_mcp` MCP server (digitize_demand_* + decoration_* tools) and hands the actual portal submission to the `artworklady-digitizing` skill. Idempotent: it only ever works Ready demands and marks them outsourced after a confirmed send, so a retry can't double-post. Use whenever the user asks to outsource digitizing, send embroidery jobs to the digitizer / Artwork Lady, receive digitized files back, or run the digitizing-outsourcing routine. It also runs the RETURN leg: for demands already Outsourced, fetch the finished stitch file (DST) from the digitizer by job number and upload it to Odoo via `digitize_demand_upload`, advancing the demand Outsource → Sew Out, then parse the job's Production Worksheet PDF and push its stitch count, sewn size, and Stop-Sequence thread colours onto the decoration via `digitize_demand_apply_worksheet`, and file the vendor's returned files (worksheet PDF, DST, native design) away on the agent's own persistent storage — organized by job, retrievable on request, not in Odoo.
Как установить скилл drivethru-digitize-outsourcing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл drivethru-digitize-outsourcing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic