[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M790C99SXJC6SBVW2GRAX8S3":3,"skill-same:01M790C99SXJC6SBVW2GRAX8S3":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M790C99SXJC6SBVW2GRAX8S3","flexport-cost-tuning",null,"Optimize Flexport API usage costs through efficient pagination, caching,\nwebhook-driven updates, and monitoring API call volume.\nTrigger: \"flexport costs\", \"flexport API usage\", \"reduce flexport calls\", \"flexport billing\".","jukeyman\u002Fjukeyman-skills","jukeyman","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142960420?v=4","01M78FR4Y3DHMMCBCC0GXXNB3F","RICK JEFFERSON","01M78FR4Z8RVQRAD31Y5J7V6EB",1,"MIT","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--flexport-pack--flexport-cost-tuning\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: flexport-cost-tuning\ndescription: |\n  Optimize Flexport API usage costs through efficient pagination, caching,\n  webhook-driven updates, and monitoring API call volume.\n  Trigger: \"flexport costs\", \"flexport API usage\", \"reduce flexport calls\", \"flexport billing\".\nallowed-tools: Read, Write, Edit\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, logistics, flexport]\ncompatible-with: claude-code\n---\n\n# Flexport Cost Tuning\n\n## Overview\n\nReduce Flexport API costs by minimizing unnecessary calls. Key strategies: use webhooks instead of polling, cache aggressively, maximize page sizes, and batch operations.\n\n## Instructions\n\n### Strategy 1: Webhooks Over Polling\n\n```typescript\n\u002F\u002F BAD: Polling every 5 minutes (288 API calls\u002Fday per shipment)\nsetInterval(async () => {\n  const shipment = await flexport(`\u002Fshipments\u002F${id}`);\n  if (shipment.data.status !== lastStatus) updateDB(shipment);\n}, 5 * 60 * 1000);\n\n\u002F\u002F GOOD: Webhook-driven (0 API calls — Flexport pushes updates)\napp.post('\u002Fwebhooks\u002Fflexport', (req, res) => {\n  const event = req.body;\n  if (event.type === 'shipment.milestone') {\n    updateDB(event.data);  \u002F\u002F Only processes real changes\n  }\n  res.sendStatus(200);\n});\n\u002F\u002F Savings: 100 shipments * 288 calls\u002Fday = 28,800 calls\u002Fday eliminated\n```\n\n### Strategy 2: Maximize Page Size\n\n```typescript\n\u002F\u002F BAD: Default pagination (per=25)\n\u002F\u002F 1000 shipments = 40 API calls\n\n\u002F\u002F GOOD: Max pagination (per=100)\n\u002F\u002F 1000 shipments = 10 API calls (75% reduction)\nconst shipments = await flexport('\u002Fshipments?per=100&page=1');\n```\n\n### Strategy 3: Cache with Smart TTLs\n\n| Data Type | Change Frequency | Cache TTL | Impact |\n|-----------|-----------------|-----------|--------|\n| Products | Rarely | 1 hour | ~95% fewer calls |\n| Shipment list | Every few hours | 5 minutes | ~90% fewer calls |\n| Shipment detail | On milestones | Until webhook | ~99% fewer calls |\n| Purchase orders | Daily | 15 minutes | ~85% fewer calls |\n| Freight invoices | Monthly | 1 hour | ~95% fewer calls |\n\n### Strategy 4: Monitor API Usage\n\n```typescript\n\u002F\u002F Track API call volume per endpoint\nconst apiMetrics = new Map\u003Cstring, { count: number; lastReset: Date }>();\n\nfunction trackAPICall(endpoint: string) {\n  const key = endpoint.split('?')[0];  \u002F\u002F Strip query params\n  const metric = apiMetrics.get(key) || { count: 0, lastReset: new Date() };\n  metric.count++;\n  apiMetrics.set(key, metric);\n}\n\n\u002F\u002F Report daily usage\nfunction reportUsage() {\n  console.log('=== Flexport API Usage ===');\n  for (const [endpoint, { count }] of apiMetrics) {\n    console.log(`  ${endpoint}: ${count} calls`);\n  }\n}\n```\n\n## Cost Reduction Checklist\n\n- [ ] Replace polling with webhooks for shipment tracking\n- [ ] Use `per=100` on all list endpoints\n- [ ] Cache product catalog (1hr TTL)\n- [ ] Cache shipment data, invalidate on webhooks\n- [ ] Eliminate duplicate calls in page loads\n- [ ] Monitor API call volume weekly\n\n## Resources\n\n- [Flexport Webhook Endpoints](https:\u002F\u002Fapidocs.flexport.com\u002Fv2\u002Ftag\u002FWebhook-Endpoints\u002F)\n- [Flexport API Reference](https:\u002F\u002Fapidocs.flexport.com\u002F)\n\n## Next Steps\n\nFor architecture design, see `flexport-reference-architecture`.\n","# Flexport Cost Tuning\n\n## Overview\n\nReduce Flexport API costs by minimizing unnecessary calls. Key strategies: use webhooks instead of polling, cache aggressively, maximize page sizes, and batch operations.\n\n## Instructions\n\n### Strategy 1: Webhooks Over Polling\n\n```typescript\n\u002F\u002F BAD: Polling every 5 minutes (288 API calls\u002Fday per shipment)\nsetInterval(async () => {\n  const shipment = await flexport(`\u002Fshipments\u002F${id}`);\n  if (shipment.data.status !== lastStatus) updateDB(shipment);\n}, 5 * 60 * 1000);\n\n\u002F\u002F GOOD: Webhook-driven (0 API calls — Flexport pushes updates)\napp.post('\u002Fwebhooks\u002Fflexport', (req, res) => {\n  const event = req.body;\n  if (event.type === 'shipment.milestone') {\n    updateDB(event.data);  \u002F\u002F Only processes real changes\n  }\n  res.sendStatus(200);\n});\n\u002F\u002F Savings: 100 shipments * 288 calls\u002Fday = 28,800 calls\u002Fday eliminated\n```\n\n### Strategy 2: Maximize Page Size\n\n```typescript\n\u002F\u002F BAD: Default pagination (per=25)\n\u002F\u002F 1000 shipments = 40 API calls\n\n\u002F\u002F GOOD: Max pagination (per=100)\n\u002F\u002F 1000 shipments = 10 API calls (75% reduction)\nconst shipments = await flexport('\u002Fshipments?per=100&page=1');\n```\n\n### Strategy 3: Cache with Smart TTLs\n\n| Data Type | Change Frequency | Cache TTL | Impact |\n|-----------|-----------------|-----------|--------|\n| Products | Rarely | 1 hour | ~95% fewer calls |\n| Shipment list | Every few hours | 5 minutes | ~90% fewer calls |\n| Shipment detail | On milestones | Until webhook | ~99% fewer calls |\n| Purchase orders | Daily | 15 minutes | ~85% fewer calls |\n| Freight invoices | Monthly | 1 hour | ~95% fewer calls |\n\n### Strategy 4: Monitor API Usage\n\n```typescript\n\u002F\u002F Track API call volume per endpoint\nconst apiMetrics = new Map\u003Cstring, { count: number; lastReset: Date }>();\n\nfunction trackAPICall(endpoint: string) {\n  const key = endpoint.split('?')[0];  \u002F\u002F Strip query params\n  const metric = apiMetrics.get(key) || { count: 0, lastReset: new Date() };\n  metric.count++;\n  apiMetrics.set(key, metric);\n}\n\n\u002F\u002F Report daily usage\nfunction reportUsage() {\n  console.log('=== Flexport API Usage ===');\n  for (const [endpoint, { count }] of apiMetrics) {\n    console.log(`  ${endpoint}: ${count} calls`);\n  }\n}\n```\n\n## Cost Reduction Checklist\n\n- [ ] Replace polling with webhooks for shipment tracking\n- [ ] Use `per=100` on all list endpoints\n- [ ] Cache product catalog (1hr TTL)\n- [ ] Cache shipment data, invalidate on webhooks\n- [ ] Eliminate duplicate calls in page loads\n- [ ] Monitor API call volume weekly\n\n## Resources\n\n- [Flexport Webhook Endpoints](https:\u002F\u002Fapidocs.flexport.com\u002Fv2\u002Ftag\u002FWebhook-Endpoints\u002F)\n- [Flexport API Reference](https:\u002F\u002Fapidocs.flexport.com\u002F)\n\n## Next Steps\n\nFor architecture design, see `flexport-reference-architecture`.\n",{"name":5,"tags":24,"author":28,"license":15,"version":29,"description":30,"allowed-tools":31,"compatible-with":32},[25,26,27],"saas","logistics","flexport","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Optimize Flexport API usage costs through efficient pagination, caching,\nwebhook-driven updates, and monitoring API call volume.\nTrigger: \"flexport costs\", \"flexport API usage\", \"reduce flexport calls\", \"flexport billing\".\n","Read, Write, Edit","claude-code","main","99825ad3f3bcc6597ddcc7294a14e6e922f2b67b","skills\u002Fsaas-packs--flexport-pack--flexport-cost-tuning",0,"https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills","https:\u002F\u002Fgithub.com\u002Fjukeyman","https:\u002F\u002FRJBUSINESSSOLUTIONS.ORG","Credit and Finance Expert | Developer\r\n\r\nI'm Rick Jefferson, a seasoned credit and finance expert with over a decade of experience in financial literacy,","2026-07-13 07:03:29",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add jukeyman\u002Fjukeyman-skills --skill flexport-cost-tuning",{"tool":48,"command":49},"bunx","bunx skills add jukeyman\u002Fjukeyman-skills --skill flexport-cost-tuning",{"tool":51,"command":52},"pnpm","pnpm dlx skills add jukeyman\u002Fjukeyman-skills --skill flexport-cost-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsaas-packs--flexport-pack--flexport-cost-tuning\u002FSKILL.md",true,[],[57,64,71,78,85,93],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79ANS2SM329NEP5ZCX106RR","zustand-store-creator","Create zustand store creator operations. Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like \"zustand store creator\", \"zustand creator\", \"zustand\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79AMZKP4YDEZ7EHG1Y7PP74","zero-trust-config-helper","Configure with zero trust config helper operations. Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like \"zero trust config helper\", \"zero helper\", \"zero\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79AMJSBCEJQNBTYNAHYN5HM","zapier-integration-helper","Assist with zapier integration helper operations. Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like \"zapier integration helper\", \"zapier helper\", \"zapier\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79AHJZGVMARS13VFQYRR1MP","yaml-config-validator","Validate yaml config validator operations. Auto-activating skill for DevOps Basics.\nTriggers on: yaml config validator, yaml config validator\nPart of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like \"yaml config validator\", \"yaml validator\", \"yaml\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fyaml-config-validator\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":89,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M79AHGDZRN0020RDQSQDPAM8","xvary-stock-research","Thesis-driven equity analysis from public SEC EDGAR and market data; \u002Fanalyze, \u002Fscore, \u002Fcompare workflows with bundled Python tools (Claude Code, Cursor, Codex).","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxvary-stock-research\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79AHCYJ9FV9RMHQ24HDRN33","xss-vulnerability-scanner","Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals.\nTriggers on: xss vulnerability scanner, xss vulnerability scanner\nPart of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like \"xss vulnerability scanner\", \"xss scanner\", \"xss\".","https:\u002F\u002Fgithub.com\u002Fjukeyman\u002Fjukeyman-skills\u002Fblob\u002Fmain\u002Fskills\u002Fxss-vulnerability-scanner\u002FSKILL.md",[],[]]