Ops package

From davepoon/buildwithclaude · View interactive version

Ops package is an AI agent skill from the GitHub repository davepoon/buildwithclaude. Ship parcels via any configured carrier — MyParcel, Sendcloud, DHL Parcel NL, PostNL, DPD, UPS, FedEx. Auto-selects the first carrier whose credentials are configured, or pass --carrier <name> to override. Verbs: ship, label, track, list, carriers.

How to use this skill

Skill file

OPS ► PACKAGE — multi-carrier shipping

One skill, seven carriers. The router picks the carrier automatically based on which credentials are configured.

Which carrier do I get?

| Condition | Selected carrier |

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

| --carrier <name> flag passed | That carrier (validated) |

| Exactly one carrier has credentials | That carrier |

| Multiple carriers have credentials | First match in this order |

| No carrier has credentials | Exit 2 with setup help |

Preference order: myparcel → sendcloud → dhl → postnl → dpd → ups → fedex.

Credential resolution

Each carrier resolves its credential(s) from, in order:

  1. Environment variable(s) listed below.
  2. preferences.json key (lowercase of the env var name) at ${CLAUDE_PLUGIN_DATA_DIR:-$HOME/.claude/plugins/data/ops-ops-marketplace}/preferences.json.
  3. Doppler: doppler secrets get <NAME> --plain.

| Carrier | Env vars required | Docs |

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

| MyParcel | MYPARCEL_API_KEY | https://developer.myparcel.nl/api-reference/ |

| Sendcloud | SENDCLOUD_PUBLIC_KEY + SENDCLOUD_PRIVATE_KEY | https://api.sendcloud.dev/docs/ |

| DHL NL | DHL_PARCEL_USER_ID + DHL_PARCEL_KEY | https://api-gw.dhlparcel.nl/docs |

| PostNL | POSTNL_API_KEY + POSTNL_CUSTOMER_CODE + POSTNL_CUSTOMER_NUMBER | https://developer.postnl.nl/ |

| DPD | DPD_DELIS_ID + DPD_PASSWORD | https://esolutions.dpd.com/ |

| UPS | UPS_CLIENT_ID + UPS_CLIENT_SECRET + UPS_SHIPPER_NUMBER | https://developer.ups.com/api/reference/shipping |

| FedEx | FEDEX_CLIENT_ID + FEDEX_CLIENT_SECRET + FEDEX_ACCOUNT_NUMBER | https://developer.fedex.com/api/en-us/catalog/ |

Routing

All API calls are delegated to ${CLAUDE_PLUGIN_ROOT}/skills/ops-package/ops-package.sh. Do not re-implement curl logic inline — pass args through.

| First token | Action |

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

| carriers | Show configured vs unconfigured carriers |

| ship | Create a shipment |

| label | Download + open label PDF |

| track | Show status + tracking barcode |

| list | List last 10 shipments (MyParcel / Sendcloud; others unsupported) |

| (empty) | Show usage |

ship

Required: --to "<address>". Address format:

"Person / Company, Street 12A, 1011AB Amsterdam, NL"

Flags (not every carrier honours every flag — unsupported flags are safely ignored per adapter):

Invocation

${CLAUDE_PLUGIN_ROOT}/skills/ops-package/ops-package.sh \
  [--carrier myparcel|sendcloud|dhl|postnl|dpd|ups|fedex] \
  ship --to "$TO" [--from "$FROM"] [--weight "$W"] \
       [--signature] [--insurance "$INS"] [--description "$DESC"] \
       [--package-type "$TYPE"] [--pickup]

Returns:

{"carrier": "<name>", "shipment_id": "<id>", "response": { /* raw carrier JSON */ }}

Summarise to the user as:

Shipment created — <carrier> #<id>
Next: /ops:ops-package label <id>  to download the PDF.

Offer via AskUserQuestion (≤4 options):

label `<shipment-id>`

${CLAUDE_PLUGIN_ROOT}/skills/ops-package/ops-package.sh label "$ID"

Behaviour per carrier:

track `<shipment-id>`

Returns a normalised object across all carriers:

{"carrier":"<n>","id":"<id>","status":"<s>","barcode":"<b>","tracking_url":"<u>","recipient":<o>,"updated":"<ts>"}

list

MyParcel returns the last 10 shipments. Sendcloud returns the last 10 parcels. All other carriers return {"shipments":[],"note":"..."} because their APIs don't expose a customer-facing list endpoint — track by id instead.

carriers

Prints which carriers are configured (✓) vs which are missing credentials (·). Use this when deciding which --carrier to pass.

Error handling

[Paste key now] [Open carriers doc] [Skip — configure later]

On "Paste key now", collect via AskUserQuestion free-text and write to preferences.json.

Verification status

| Carrier | Status |

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

| MyParcel | Verified against api.myparcel.nl v1.1 (same working reference) |

| Sendcloud | Verified request/response shapes against Sendcloud Panel API v3 |

| DHL NL | UNVERIFIED — modelled on My DHL Parcel Swagger, needs live account |

| PostNL | UNVERIFIED — modelled on Send API v2.2 docs, needs live account |

| DPD | UNVERIFIED — modelled on DPD eSolutions REST, needs live account |

| UPS | UNVERIFIED — modelled on UPS v2403 Ship/Track REST, needs account |

| FedEx | UNVERIFIED — modelled on FedEx Ship v1 + Track v1 REST |

Unverified adapters are tagged with # UNVERIFIED - pending live test with account in the source. Payloads match the documented contract; adjustments may be needed when tested against live accounts.

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.