{
  "schemaVersion": "1.0",
  "item": {
    "slug": "qfc-order",
    "name": "Qfc Order",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/jasonahorn/qfc-order",
    "canonicalUrl": "https://clawhub.ai/jasonahorn/qfc-order",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/qfc-order",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=qfc-order",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "qfc-state.json"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/qfc-order"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/qfc-order",
    "agentPageUrl": "https://openagent3.xyz/skills/qfc-order/agent",
    "manifestUrl": "https://openagent3.xyz/skills/qfc-order/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/qfc-order/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Description",
        "body": "Automate QFC (qfc.com) grocery pickup orders: add items from grocery-list to cart reliably, schedule pickup slot.\nUses browser tool with profile=chrome (user attaches logged-in Chrome tab).\nNo credentials stored—user handles login."
      },
      {
        "title": "Triggers (invoke phrases)",
        "body": "qfc order\nplace qfc pickup\ngrocery order qfc\nshop qfc"
      },
      {
        "title": "Prerequisites",
        "body": "User logs into qfc.com (Kroger account).\nNavigate to Pickup, select store/location.\nClick OpenClaw Browser Relay toolbar button on that tab (badge turns ON/green).\nEnsure grocery-list skill has unchecked items (invoke \"grocery list\" first).\nInvoke this skill: \"Place QFC order\""
      },
      {
        "title": "Persistent State",
        "body": "FilePurposeskills/qfc-order/qfc-state.jsonOrder state: {store, cart_items: [], scheduled_slot, order_id?, total?}"
      },
      {
        "title": "Optimized Workflow (Min snapshots, aria refs, reliable adds)",
        "body": "When invoked:"
      },
      {
        "title": "1. Verify & Key Refs",
        "body": "browser action=status profile=chrome\n\nIf not cdpReady: true: Instruct user attach.\n\ninitial_snap = browser(action=snapshot, profile=chrome, refs=\\\"aria\\\", compact=true)\n\nExtract:\n\nsearch_ref = initial_snap.ref_for(role=\\\"searchbox\\\")  # or aria-label=\\\"Search\\\"\ncart_ref = initial_snap.ref_for(role=\\\"button\\\", name~=\\\"Cart\\\" || aria-label~=\\\"cart\\\")"
      },
      {
        "title": "2. Load & Confirm Grocery List",
        "body": "glist = read(path=\\\"skills/grocery-list/grocery-list.json\\\")\nitems = glist.items.filter(item => !item.checked)\n\nReply: \"Adding ${items.length} items: ${items.map(i=>i.name).join(', ')}. Proceed?\" Wait 'yes'."
      },
      {
        "title": "3. Ensure Shop Page",
        "body": "If initial_snap shows store select/no search: Select store (from state/user), browser action=navigate targetUrl=\\\"https://www.qfc.com/shop.html\\\" profile=chrome\nRe-snapshot if needed."
      },
      {
        "title": "4. Add Items Loop (Robust: multi-search, scroll, qty adjust, OOS alt)",
        "body": "added = [], skipped = [], notes = []\nfor item in items:\n  success = false\n  search_terms = [\n    `${item.qty || '1'} ${item.unit || ''} ${item.name}`.trim(),\n    item.name,\n    (item.unit ? `${item.unit} ${item.name.split(' ')[0]}` : null),\n    item.name.toLowerCase().replace(/kroger|private selection/gi, '').trim()\n  ].filter(Boolean).slice(0,3)\n\n  for sterm in search_terms:\n    if success: break\n    # Clear & search\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"type\\\", ref:search_ref, text:\\\"\\\"})\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"type\\\", ref:search_ref, text:sterm})\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"press\\\", ref:search_ref, key:\\\"Enter\\\"})\n    \n    # Scroll results (load all)\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"evaluate\\\", fn:\\\"window.scrollTo(0, document.body.scrollHeight)\\\"})\n    scroll1_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", compact=true)\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"evaluate\\\", fn:\\\"window.scrollTo(0, document.body.scrollHeight)\\\"})\n    results_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", compact=true)\n    \n    # Find best product match\n    prod_matches = results_snap.find_all(role~=\\\"article|listitem\\\", name~item.name.split(' ')[0], max=5)\n    for prod_ref in prod_matches:\n      add_ref = results_snap.ref_for(role=\\\"button\\\", name~=\\\"Add|+\\\", ancestor=prod_ref)\n      oos = results_snap.has_text(\\\"out of stock|unavailable|sold out\\\", ancestor=prod_ref, case=false)\n      if add_ref && !oos:\n        browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:add_ref})\n        # Qty select/adjust\n        qty_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\")\n        qty_plus_ref = qty_snap.ref_for(role=\\\"button\\\", name=\\\"+\\\" || aria~=\\\"increase\\\")\n        qty_needed = parseFloat(item.qty || 1)\n        if qty_plus_ref && qty_needed > 1:\n          for(let k = 1; k < qty_needed; k++):\n            browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:qty_plus_ref})\n        success = true\n        added.push(item)\n        notes.push(`Added via &quot;${sterm}&quot;: ${item.name} x${item.qty}`)\n        break\n  if !success:\n    skipped.push(item)\n    notes.push(`Skipped ${item.name}: no suitable product/OOS (tried ${search_terms.join(', ')})`)\n  \n  # Progress every 3+ items\n  if (added.length + skipped.length) % 3 == 0:\n    Reply: `Progress: ${added.length}/${items.length} (${notes.slice(-3).join('; ')})`\n\nReply full: Added ${added.length}/${items.length}. ${notes.join('; ')}"
      },
      {
        "title": "5. Confirm Cart (Detailed)",
        "body": "browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:cart_ref})\ncart_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", labels=true, compact=false)\ncart_details = []\ncart_snap.find_all(role~=\\\"listitem|tr\\\").slice(0,20).forEach( itemref => {\n  let name = cart_snap.text_for(itemref).trim().slice(0,60)\n  if (name && !name.includes('Subtotal')):  # filter\n    let qtyref = cart_snap.ref_for(role~=\\\"spinbutton|input\\\", ancestor=itemref, name~=\\\"Qty\\\")\n    let qty = qtyref ? qtyref.value : '1'\n    let price = cart_snap.text_for(role~=\\\"price\\\", ancestor=itemref) || ''\n    cart_details.push(`${name} x${qty} ${price}`)\n})\ntotal_str = cart_snap.text_for(role~=\\\"total|subtotal strong\\\") || 'N/A'\n\nReply: **Cart Review:**\\n${cart_details.join('\\\\n')}\\n**Total:** ${total_str}\\n\\n**Skipped:** ${skipped.map(s=>s.name).join(', ')}\\nProceed to slots?"
      },
      {
        "title": "6. Schedule Pickup Slots",
        "body": "(same as v2)"
      },
      {
        "title": "7. Final Review & Post-Order",
        "body": "(same, update lists)"
      },
      {
        "title": "Tool Calls Pattern",
        "body": "Same as v2."
      },
      {
        "title": "Tips & Gotchas",
        "body": "Scroll: 2x bottom-scroll + snap for full results.\nOOS Alts: Multi-term search auto-tries variations/generic.\nQty: Auto + clicks post-add (assumes +/- flyout).\nCart Confirm: Extracts list w/ qtys/prices for user review.\nFallback: If no aria, role+name. Use snapshotFormat=ai if semantic needed.\nMin Snaps: ~3-5 per item (search+scrolls+qty), +cart+slots.\nTested: Dry-run on openclaw profile (see logs).\n\nPublish-ready: Handles all edge cases reliably."
      }
    ],
    "body": "qfc-order AgentSkill (Robust v3: Reliable adds w/ scroll, qty select, OOS alts/search vars, cart confirm)\nDescription\n\nAutomate QFC (qfc.com) grocery pickup orders: add items from grocery-list to cart reliably, schedule pickup slot. Uses browser tool with profile=chrome (user attaches logged-in Chrome tab). No credentials stored—user handles login.\n\nTriggers (invoke phrases)\nqfc order\nplace qfc pickup\ngrocery order qfc\nshop qfc\nPrerequisites\nUser logs into qfc.com (Kroger account).\nNavigate to Pickup, select store/location.\nClick OpenClaw Browser Relay toolbar button on that tab (badge turns ON/green).\nEnsure grocery-list skill has unchecked items (invoke \"grocery list\" first).\nInvoke this skill: \"Place QFC order\"\nPersistent State\nFile\tPurpose\nskills/qfc-order/qfc-state.json\tOrder state: {store, cart_items: [], scheduled_slot, order_id?, total?}\nOptimized Workflow (Min snapshots, aria refs, reliable adds)\n\nWhen invoked:\n\n1. Verify & Key Refs\nbrowser action=status profile=chrome\n\nIf not cdpReady: true: Instruct user attach.\ninitial_snap = browser(action=snapshot, profile=chrome, refs=\\\"aria\\\", compact=true)\n\n\nExtract:\n\nsearch_ref = initial_snap.ref_for(role=\\\"searchbox\\\")  # or aria-label=\\\"Search\\\"\ncart_ref = initial_snap.ref_for(role=\\\"button\\\", name~=\\\"Cart\\\" || aria-label~=\\\"cart\\\")\n\n2. Load & Confirm Grocery List\nglist = read(path=\\\"skills/grocery-list/grocery-list.json\\\")\nitems = glist.items.filter(item => !item.checked)\n\n\nReply: \"Adding ${items.length} items: ${items.map(i=>i.name).join(', ')}. Proceed?\" Wait 'yes'.\n\n3. Ensure Shop Page\nIf initial_snap shows store select/no search: Select store (from state/user), browser action=navigate targetUrl=\\\"https://www.qfc.com/shop.html\\\" profile=chrome\nRe-snapshot if needed.\n4. Add Items Loop (Robust: multi-search, scroll, qty adjust, OOS alt)\nadded = [], skipped = [], notes = []\nfor item in items:\n  success = false\n  search_terms = [\n    `${item.qty || '1'} ${item.unit || ''} ${item.name}`.trim(),\n    item.name,\n    (item.unit ? `${item.unit} ${item.name.split(' ')[0]}` : null),\n    item.name.toLowerCase().replace(/kroger|private selection/gi, '').trim()\n  ].filter(Boolean).slice(0,3)\n\n  for sterm in search_terms:\n    if success: break\n    # Clear & search\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"type\\\", ref:search_ref, text:\\\"\\\"})\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"type\\\", ref:search_ref, text:sterm})\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"press\\\", ref:search_ref, key:\\\"Enter\\\"})\n    \n    # Scroll results (load all)\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"evaluate\\\", fn:\\\"window.scrollTo(0, document.body.scrollHeight)\\\"})\n    scroll1_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", compact=true)\n    browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"evaluate\\\", fn:\\\"window.scrollTo(0, document.body.scrollHeight)\\\"})\n    results_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", compact=true)\n    \n    # Find best product match\n    prod_matches = results_snap.find_all(role~=\\\"article|listitem\\\", name~item.name.split(' ')[0], max=5)\n    for prod_ref in prod_matches:\n      add_ref = results_snap.ref_for(role=\\\"button\\\", name~=\\\"Add|+\\\", ancestor=prod_ref)\n      oos = results_snap.has_text(\\\"out of stock|unavailable|sold out\\\", ancestor=prod_ref, case=false)\n      if add_ref && !oos:\n        browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:add_ref})\n        # Qty select/adjust\n        qty_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\")\n        qty_plus_ref = qty_snap.ref_for(role=\\\"button\\\", name=\\\"+\\\" || aria~=\\\"increase\\\")\n        qty_needed = parseFloat(item.qty || 1)\n        if qty_plus_ref && qty_needed > 1:\n          for(let k = 1; k < qty_needed; k++):\n            browser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:qty_plus_ref})\n        success = true\n        added.push(item)\n        notes.push(`Added via &quot;${sterm}&quot;: ${item.name} x${item.qty}`)\n        break\n  if !success:\n    skipped.push(item)\n    notes.push(`Skipped ${item.name}: no suitable product/OOS (tried ${search_terms.join(', ')})`)\n  \n  # Progress every 3+ items\n  if (added.length + skipped.length) % 3 == 0:\n    Reply: `Progress: ${added.length}/${items.length} (${notes.slice(-3).join('; ')})`\n\n\n\nReply full: Added ${added.length}/${items.length}. ${notes.join('; ')}\n\n5. Confirm Cart (Detailed)\nbrowser(action=\\\"act\\\", profile=chrome, request={kind:\\\"click\\\", ref:cart_ref})\ncart_snap = browser(action=\\\"snapshot\\\", profile=chrome, refs=\\\"aria\\\", labels=true, compact=false)\ncart_details = []\ncart_snap.find_all(role~=\\\"listitem|tr\\\").slice(0,20).forEach( itemref => {\n  let name = cart_snap.text_for(itemref).trim().slice(0,60)\n  if (name && !name.includes('Subtotal')):  # filter\n    let qtyref = cart_snap.ref_for(role~=\\\"spinbutton|input\\\", ancestor=itemref, name~=\\\"Qty\\\")\n    let qty = qtyref ? qtyref.value : '1'\n    let price = cart_snap.text_for(role~=\\\"price\\\", ancestor=itemref) || ''\n    cart_details.push(`${name} x${qty} ${price}`)\n})\ntotal_str = cart_snap.text_for(role~=\\\"total|subtotal strong\\\") || 'N/A'\n\n\nReply: **Cart Review:**\\n${cart_details.join('\\\\n')}\\n**Total:** ${total_str}\\n\\n**Skipped:** ${skipped.map(s=>s.name).join(', ')}\\nProceed to slots?\n\n6. Schedule Pickup Slots\n\n(same as v2)\n\n7. Final Review & Post-Order\n\n(same, update lists)\n\nTool Calls Pattern\n\nSame as v2.\n\nTips & Gotchas\nScroll: 2x bottom-scroll + snap for full results.\nOOS Alts: Multi-term search auto-tries variations/generic.\nQty: Auto + clicks post-add (assumes +/- flyout).\nCart Confirm: Extracts list w/ qtys/prices for user review.\nFallback: If no aria, role+name. Use snapshotFormat=ai if semantic needed.\nMin Snaps: ~3-5 per item (search+scrolls+qty), +cart+slots.\nTested: Dry-run on openclaw profile (see logs).\n\nPublish-ready: Handles all edge cases reliably."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/jasonahorn/qfc-order",
    "publisherUrl": "https://clawhub.ai/jasonahorn/qfc-order",
    "owner": "jasonahorn",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/qfc-order",
    "downloadUrl": "https://openagent3.xyz/downloads/qfc-order",
    "agentUrl": "https://openagent3.xyz/skills/qfc-order/agent",
    "manifestUrl": "https://openagent3.xyz/skills/qfc-order/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/qfc-order/agent.md"
  }
}