Use this skill for service operations only. DO NOT use this skill for CLI implementation lifecycle work such as creating, testing, updating, troubleshooting, validating, removing, or documenting the CLI tool itself; delegate those tasks to cli-tool-expert. MANDATORY: Execute Americasthriftsupply operations using the `americasthriftsupply` CLI tool. CLI interface for America's Thrift Supply (americasthriftsupply.com), a Shopify storefront selling LEGO mystery boxes and other liquidation/mystery-box products. Public, unauthenticated catalog reads only -- no login required. Triggers: americasthriftsupply, americasthriftsupply cli, lego mystery box, thrift supply mystery box
Resources
1Install
npx skillscat add adbertram/cli-tools/americasthriftsupply-cli Install via the SkillsCat registry.
| Task | Command |
|---|---|
| List/search products | americasthriftsupply products list --filter "title:ilike:%lego%" --table |
| List products in one collection (server-side) | americasthriftsupply products list --collection mystery-box --table |
| Newest products first (default) / oldest first | americasthriftsupply products list --sort newest [--desc] |
| Products by price low->high / high->low | americasthriftsupply products list --sort price [--desc] |
| Get one product by handle | americasthriftsupply products get lego-mystery-box --table |
| Crawl the full catalog (~1806 products, multi-page) | americasthriftsupply products list --limit 2000 --page-delay 30 |
| List collections (categories) | americasthriftsupply collections list --table |
| Get one collection by handle | americasthriftsupply collections get mystery-box --table |
| </quick_start> |
Known-good rates: collection-scoped requests (--collection item-shop, last-chance, vintage-shop — roughly 150-200 products each, one page) succeed reliably when spaced about 60 seconds apart. A full-catalog crawl is ~1806 products across 8 pages of 250 and WILL be rate-limited if paged back-to-back.
--page-delay SECONDS (default 5) on products list and collections list waits between two consecutive live page requests. It never delays a single-page request (--limit up to 250), and never delays a page served from cache. For a full-catalog crawl, start at --page-delay 30:
americasthriftsupply products list --limit 2000 --page-delay 30Prefer collection-scoped requests over full-catalog crawls whenever the target category is known.
- A crawl that dies partway through keeps its completed pages. Re-running the same command resumes at the first uncached page — cached pages cost no request and no
--page-delaywait. - Page size is fixed at 250, so a page cached by one run is reused by runs with a different
--limit. - The resume window is
CACHE_TTL(default 3600s). - Do NOT pass
--no-cacheto a multi-page crawl. It disables page persistence, so a rate-limited crawl restarts at page 1 with nothing salvaged. americasthriftsupply cache cleardiscards cached pages and forces a fresh crawl.
Error: HTTP 429: local_rate_limited
Crawl of /products.json stopped after 7 page(s) yielding 1750 products.
Those 7 page(s) are cached at <cache dir> - re-run the same command to resume from page 8 without re-requesting them (cache TTL 3600s).
Retry with a slower pace, e.g. --page-delay 30 (current: 5s). Run 'americasthriftsupply cache clear' to discard cached pages and start over.Recovery: re-run the SAME command with a larger --page-delay. Do not treat the non-zero exit as "no data available" — the reported pages are on disk and the retry only fetches what is missing. If the message instead says caching is disabled, the run used --no-cache; drop that flag before retrying.
</essential_principles>