Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-draft-order-cleanupgit clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-draft-order-cleanup)<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-draft-order-cleanup"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-draft-order-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/40rty-ai/shopify-admin-skills/shopify-admin-draft-order-cleanup"><img src="https://agentmods.dev/badge/skills/40rty-ai/shopify-admin-skills/shopify-admin-draft-order-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.01269 |
| Opus 5.5 | $0.00011 | $0.00508 |
| Sonnet 5.5 | $0.00005 | $0.00254 |
| Haiku 4.5 | $0.00003 | $0.00127 |
Grade A, and why
shopify-admin-draft-order-cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Purpose
Queries open draft orders older than a configurable age and optionally deletes them. Draft orders accumulate from abandoned B2B quotes, incomplete manual orders, or old integrations and clutter the admin. Stale drafts also inflate pending revenue metrics.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_orders,write_orders - API scopes:
read_orders,write_orders
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| older_than_days | integer | no | 30 | Delete drafts older than this many days |
| dry_run | bool | no | true | Preview drafts to delete without executing mutation |
| format | string | no | human | Output format: human or json |
Safety
⚠️
draftOrderDeletepermanently deletes draft orders. Deleted drafts cannot be recovered. Run withdry_run: trueto review the list before committing. Check that no stale drafts represent active B2B quotes awaiting customer approval before deleting.
Workflow Steps
-
OPERATION:
draftOrders— query Inputs:query: "status:open created_at:<='<NOW - older_than_days days>'",first: 250, pagination cursor Expected output: Stale open draft orders; paginate untilhasNextPage: false -
OPERATION:
draftOrderDelete— mutation Inputs:id: <draft_order_id>Expected output:deletedId,userErrors
GraphQL Operations
# draftOrders:query — validated against api_version 2025-01
query StaleDraftOrders($query: String!, $after: String) {
draftOrders(first: 250, after: $after, query: $query) {
edges {
node {
id
name
status
createdAt
updatedAt
totalPriceSet {
shopMoney {
amount
currencyCode
}
}
customer {
id
displayName
defaultEmailAddress {
emailAddress
}
}
tags
note
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 166 lines · 27 tokens per session scan A a0a886b24ce8
shopify-admin-draft-order-cleanup is a skill published in the GitHub repository 40RTY-ai/shopify-admin-skills (200 stars, last pushed 7d ago), licensed MIT. It adds 27 tokens to every session and 1,269 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-13.
Other skills, from other repositories
prismer-product-price-monitor
Watch product, flight, or listing prices; alert on target.
parcel-tracking
Track parcels and check delivery status for Australian and international couriers. Searches Gmail for dispatch/shipping emails and provides tracking links for all major Australian couriers including AusPost, StarTrack, Aramex, CouriersPlease, Sendle, Toll, Team Global Express, DHL, FedEx, TNT, Hunter Express, Border…
snack-batching
Weekly snack-request batching for {{officechannel}}. Collects Slack shortcut submissions since the last order, consolidates duplicates and standing staples, builds a cart against {{preferredvendor}} within {{weeklybudget}}, and posts it for the office manager to approve before anything is placed.
run-campaign
Builds a 7-day SMB campaign kit: one offer with value, deadline, and an honest reason-why; channels picked from what the owner already has (email list, socials, storefront, partners); a day-by-day calendar; every asset drafted (three emails, three social posts, flyer copy); a simple spend/leads/sales tracking sheet…
post-merge-cleanup
Clean up an already-merged local branch after proving containment. Confirm each discard and preserve unique work.
workflow-assistant
A workflow skill for handling multi-step tasks that connect different business areas and may require combined analysis. Its documented workflows include reviewing orders, creating orders, shipping, confirming receipt, and exporting data.