Skip to content

Loop Goal Command Templates

DDClaw edited this page Aug 3, 2026 · 4 revisions

Loop & Goal Command Templates

58 battle-tested /loop and /goal command templates for Amazon, Walmart, TikTok Shop, and cross-platform e-commerce automation. Covers beginner to professional seller stages.

Overview

These templates are designed for Claude Code's loop/goal system. Each template is a self-contained instruction that:

  • /goal — Runs until a completion condition is met (e.g., "output a ranked list of 10 candidates"). Stops when done or at turn cap.
  • /loop — Runs on a recurring schedule (e.g., every 7 days). Continues until canceled.

How to use: Templates use <placeholder> so you can adapt to your own products and categories. Look for the Try This box under high-frequency templates — those are ready-to-run with verified values, no editing needed.

⚠️ Methodology Principle: Full-Rank, Never Pre-Filter

All HPI (Hidden Profit Index) and product discovery commands follow the Sorftime methodology:

  1. Pull full ranking first — never apply hard thresholds (price/sales/reviews) as input filters
  2. Exclude only safety risks — the 4-tier risk filter removes genuinely dangerous categories (food, supplements, medical), NOT low-price or low-review products
  3. Analyze, then flag — after ranking, show the seller what traditional thresholds would have missed

Why: A product at $8.99 with HPI 13.22 and 444 monthly sales is a genuine hidden gem. A price<$15 filter kills it. The tool's job is to rank and reveal — the seller decides.

Example of what NOT to do: potential_product with price $15-45 and monthly_sales >200 — this hard-threshold pre-filter eliminates both the #1 HPI product ($59.99) and the #7 HPI product ($8.99) in the same query. See Exclusive Methodology for the full rationale.


Group A — Beginner Sellers (Low Budget, Amazon Only)

A1 — Single-Keyword Blue Ocean Validation

/goal Use sorftime-seller-agent to run blueocean sourcing for keyword "<keyword>" 
      (Amazon <site>), newbie profile. Output a comparison table: ASIN/Price/Monthly 
      Sales/Reviews/FBA Fee/Risk Level, minimum 5 candidates. If all are filtered 
      out by safety mode, auto-retry with 3 synonym keywords and merge results. 
      stop after 12 turns

A2 — Candidate Profit Calculation

/goal Use sorftime-seller-agent to calculate profit for 3 candidate ASINs:
      Price <P1>/<P2>/<P3>, Cost <C1>/<C2>/<C3>, Weight <W1>/<W2>/<W3>.
      Output comparison: Gross Margin / Breakeven Daily Sales / Net Profit at 
      3%-5%-10% return rates. Flag which fits <budget> best. stop after 8 turns

A3 — Pre-Order Risk Audit

/goal Use sorftime-seller-agent to audit ASIN <ASIN> for risk:
      Product details (dimensions/weight/FBA fee) + category 4-tier risk filter 
      + brand monopoly level. Output "Go / Caution / Skip" with reasoning. 
      stop after 8 turns

Try This: /goal Use sorftime-seller-agent to audit B0CVM8TXHP for risk. Product details + category 4-tier risk filter + brand monopoly level. Output Go / Caution / Skip with reasoning. stop after 8 turns

A4 — Competitor Keyword Reverse-Lookup

/goal Use sorftime-seller-agent to reverse-lookup keywords for 3 competitor 
      ASINs: <ASIN1>/<ASIN2>/<ASIN3>. Output shared keywords ranked by search 
      volume. Identify keywords where they rank top-10 but you have zero presence. 
      stop after 10 turns

A5 — Category First-Time Exploration

/goal Use sorftime-seller-agent to explore category <category name> on 
      Amazon <site>: category tree → subcategory report → top 20 products 
      with price/reviews/sales. Output category overview with entry feasibility 
      rating. stop after 10 turns

A6 — Review Pain Point Mining

/goal Use sorftime-seller-agent to pull 1-3 star reviews for ASIN <ASIN> 
      (last 100 reviews). Cluster complaints by keyword frequency. Output top 5 
      pain points with occurrence count and whether each is fixable via product 
      improvement. stop after 8 turns

A7 — New Product Listing Optimization

/goal Use sorftime-seller-agent to audit listing quality for ASIN <ASIN>:
      keyword coverage analysis (title/bullets/search terms), image count, 
      A+ content status, review sentiment trends. Output improvement checklist 
      ordered by ROI. stop after 8 turns

A8 — Weekly Candidate Pool Refresh (Hidden Profit Index)

/loop 7d Use sorftime-seller-agent to run Hidden Profit Index TOP20 for keywords 
      "<kw1>/<kw2>/<kw3>". Compare with last week's results. Highlight top 3 
      products with the fastest-rising index. Write to this week's candidate pool.

Try This: /loop 7d Run Hidden Profit Index TOP20 for yoga mat, resistance bands, and pilates bar on Amazon US. Compare with last week. Flag top 3 fastest-rising products. stop after 10 turns


Group B — Growing Sellers (Medium Budget, Amazon Focus)

B1 — Multi-ASIN Competitive Deep-Dive

/goal Use sorftime-seller-agent to deep-dive 5 competitor ASINs: <list>.
      For each: product_detail + traffic_terms + keyword reverse-lookup + 
      review analysis. Output competitive threat matrix with threat score 
      (1-10). stop after 15 turns

B2 — Category Brand Monopoly Analysis

/goal Use sorftime-seller-agent to analyze brand concentration in category 
      <nodeId> on Amazon <site>. Output: top 10 brands by market share, 
      Amazon Basics penetration, brand monopoly fragility index, recommended 
      entry strategy. stop after 10 turns

B3 — Keyword Strategy Full Pipeline

/goal Use sorftime-seller-agent to build keyword strategy for ASIN <ASIN>:
      traffic_terms → filter by search volume >500 → competitor_product_keywords 
      for top 3 competitors → identify coverage gaps → recommend 10 priority 
      keywords with search volume/CPC/difficulty. stop after 12 turns

B4 — Seasonal Product Positioning

/goal Use sorftime-seller-agent to analyze seasonal opportunity for keyword 
      "<keyword>": category_trend for past 24 months → identify peak months → 
      calculate seasonal burst index → output optimal launch timeline (90/60/30 
      days before peak). stop after 10 turns

B5 — Pricing Strategy by Price Band

/goal Use sorftime-seller-agent to analyze price band distribution in category 
      <nodeId>: demand density per $5 band → competitor density per band → 
      price band opportunity index. Recommend optimal pricing sweet spot. 
      stop after 10 turns

B6 — FBA Fee Optimization Audit

/goal Use sorftime-seller-agent to audit FBA fees for ASIN <ASIN>:
      current dimensional tier → check if product falls near a tier boundary → 
      calculate savings from packaging optimization → compare FBA vs FBM 
      unit economics. stop after 8 turns

B7 — Advertising Keyword Harvesting

/goal Use sorftime-seller-agent to analyze search term report for ASIN <ASIN>:
      keyword_extends for top converting terms → filter by CPC <$0.50 and 
      search volume >200 → output 15 new keyword targets for ad campaigns. 
      stop after 10 turns

B8 — Inventory Restocking Alert System

/loop 3d Use sorftime-seller-agent to check inventory for watchlist ASINs: 
      product_detail for each → calculate days of inventory remaining → 
      flag any ASIN with <30 days cover → output restocking priority list. 
      stop after 8 turns per run

B9 — Competitor Price Change Monitor

/loop 1d Use sorftime-seller-agent to check prices for competitor ASINs: 
      <list>. Compare with yesterday's prices. Flag any change >5%. 
      Output alert table with old price/new price/change %. 
      stop after 8 turns per run

B10 — Review Sentiment Trend Monitor

/loop 7d Use sorftime-seller-agent to analyze recent reviews for ASIN <ASIN>:
      compare sentiment distribution (positive/neutral/negative) vs previous 
      week. Flag if negative sentiment increased >10%. Output trend chart 
      with key complaint themes. stop after 8 turns

Group C — Professional Sellers (Multi-Platform, Cross-Border)

C1 — Cross-Platform Price Gap Discovery

/loop 7d Use sorftime-seller-agent to scan cross-platform price gaps for 
      keyword "<keyword>": Amazon product_search → Walmart product_detail 
      for matching products → calculate price gap % → flag gaps >15% → 
      output arbitrage opportunity table. stop after 12 turns

Try This: /loop 7d Scan cross-platform price gaps for yoga mat on Amazon US vs Walmart US. Flag products where Amazon price exceeds Walmart price by >15%. Output arbitrage opportunity table. stop after 12 turns

C2 — Walmart Category Blue Ocean Scan

/goal Use sorftime-seller-agent to run blueocean sourcing for keyword 
      "<keyword>" on Walmart US: category_report → filter by reviews <200 
      AND monthly sales >300 AND price $15-40 → output top 10 candidates 
      with WFS eligibility. stop after 12 turns

C3 — TikTok Shop Trend-to-Amazon Arbitrage

/loop 7d Use sorftime-seller-agent to scan TikTok Shop trending products 
      in category <category>: tiktok_category_report → cross-reference 
      with Amazon product_search → identify products with high TikTok 
      engagement but low Amazon competition. Output early-signal table. 
      stop after 12 turns

C4 — Shopee Market Entry Feasibility

/goal Use sorftime-seller-agent to assess Shopee <country> market entry 
      for product category <category>: shopee_category_request → analyze 
      price distribution, seller density, cross-border seller presence → 
      output feasibility score (1-10) with key barriers. stop after 12 turns

C5 — 1688 Sourcing Cost Validation

/goal Use sorftime-seller-agent to validate sourcing costs for 5 products 
      on Amazon: for each ASIN → ali1688_similar_product to find supplier 
      prices → calculate landed cost → compare with FBA all-in cost → 
      output margin analysis table ranked by ROI. stop after 15 turns

C6 — Multi-Platform Inventory Allocation

/goal Use sorftime-seller-agent to recommend inventory split for product 
      "<product>" across platforms: Amazon/Walmart/TikTok Shop sales velocity 
      → FBA/WFS capacity → calculate optimal allocation by platform → 
      output split recommendation with rationale. stop after 10 turns

C7 — Temu Competitive Intelligence

/loop 14d Use sorftime-seller-agent to scan Temu category <category>:
      temu_product_search → compare price floor with Amazon/Walmart → 
      identify categories where Temu presence is accelerating → output 
      competitive threat assessment. stop after 10 turns

C8 — Weekly Store Health Dashboard

/loop 7d Use sorftime-seller-agent to generate weekly dashboard for all 
      tracked ASINs: sales trend / price changes / review changes / BSR 
      movement / keyword ranking shifts. Highlight top 3 risks and top 3 
      opportunities. stop after 15 turns

C9 — Hidden Profit Index Monthly Full-Market Scan

/loop 30d Use sorftime-seller-agent to run potential_product on Amazon US
      with NO search_name and NO filters — full-market scan, ranked by 
      potential_index only. Pull TOP50.
      Cross-reference against 4-tier risk filter: flag any products in 
      hard-blocked categories (food/supplements/medical/etc.) as EXCLUDED.
      For remaining TOP30: analyze price distribution, category clusters, 
      review count patterns, seller geography.
      Then answer: "Which of these TOP20 would common hard thresholds 
      (reviews<100, price<$15, rating<4.2) have eliminated?"
      Compare with previous month: flag new entries and exits.
      stop after 12 turns

Try This: /loop 30d Run full-market Hidden Profit Index scan on Amazon US — no search_name, no filters, ranked by potential_index only. Pull TOP50. Exclude food/supplements/medical. For TOP30: analyze price bands, category clusters, review patterns. Flag what hard thresholds would miss. Compare with last month. stop after 12 turns

C9b — Hidden Profit Index Category Cross-Mining (No Pre-Filter)

C9b — Hidden Profit Index Category Cross-Mining (No Pre-Filter)

/goal Run HPI cross-mining for category <category name> on Amazon US:
  1. potential_product(search_name="<keyword>", NO price/sales/review filters)
     → get TOP15 by potential_index ONLY
  2. Cross-reference against 4-tier risk filter:
     - 🚫 Hard-blocked categories → EXCLUDE
     - ⚠️ Capital-intensive / trap signals → FLAG but keep
  3. For remaining products: pull product_detail for each (price, FBA fee,
     review_count, BSR, subcategory, brand, delivery_type)
  4. Calculate Composite Treasure Score = potential_index × 
     monthly_sales_volume / (review_count + 1)
  5. Output TOP10 ranked by Composite Treasure Score with full detail table
  6. FOR EVERY TOP10 PRODUCT, answer: "Would this product survive these 
     common hard thresholds?" — reviews≥100? price≥$15? rating≥4.2? 
     monthly_sales≥200? If ANY answer is NO, flag: "⚠️ MISSED BY 
     HARD THRESHOLDS — invisible to traditional filtering tools."
  stop after 15 turns

Try This: /goal Run HPI cross-mining for kitchen storage on Amazon US. Full-rank by potential_index — no price/sales filters. Exclude hard-blocked categories. For TOP10: pull product_detail, calculate Opportunity Score (potential × sales / reviews). Output investment briefs: opportunity, numbers, risks, next step. stop after 15 turns

C9c — HPI Verified Shortlist (Discovery → Auto-Check → Curated Output) ⭐

/goal Use sorftime-seller-agent to produce a verified HPI shortlist
for kitchen storage on Amazon US:
Step 1: potential_product(search_name="kitchen storage", NO filters) → TOP15
Step 2: Remove food/supplements/medical. Remove rating <3.8.
Step 3: For TOP8: product_detail → price, FBA fee, reviews, sales, brand
Step 4: Calculate Estimated Margin = (price - price×0.30 - FBA_fee) / price
        Calculate Review Barrier = sales / (reviews + 1)
        Composite Score = potential_index × Review Barrier
Step 5: Remove products with margin <20%.
Step 6: For TOP3: product_reviews(star="10", page_size=15) → check for
        broke/broken/defective/dangerous/fire/injury/rust/leak
Step 7: Output verified shortlist table + "Here's how to verify manually"
stop after 18 turns

Verified output (2026-08-03): 8 of 8 passed screening. HERJOY Under Sink Organizer $59.99 / 1,872 sales / 90 reviews / 51.9% margin / Score 275.6. HKJ Chef Containers $30.99 / 945 / 92 / 36.4%. Yecuip Can Organizer $32.99 / 709 / 80 / 41.3%. Full results

Try This: Copy the command above. Replace "kitchen storage" with your category. Run. Get a verified shortlist with margin estimates and red-flag screening in under 30 seconds.

C10 — New Product Burst Radar (Full-Rank, No Hard Filters)

/loop 3d Use sorftime-seller-agent to scan new products for keyword 
      "<keyword>" on Amazon US. Pull ALL products with online_date within 
      180 days — NO sales or review filters. Calculate burst index for each:
      (monthly_sales_volume × sales_growth_rate) / (review_count + 1).
      Rank by burst index descending. Output TOP10 with full detail.
      Then flag: "Which of these would be missed by a filter of 
      reviews≥50 AND monthly_sales≥100?" — highlight those as early signals.
      stop after 10 turns

Group D — Cross-Platform Workflows (Sorftime CLI)

D1 — Batch Product Research Pipeline

/goal Complete batch product research for ASIN list <file>:
      1. sf-batch.py ProductRequest --input-file asins.txt --domain 1
      2. sf-batch.py AsinSalesVolume for top 20 by sales
      3. Cross-reference with category benchmarks
      Output structured research report. stop after 15 turns

D2 — Keyword Monitoring Deployment

/goal Deploy keyword monitoring for keywords <list> on Amazon <site>:
      KeywordBatchSubscription for each keyword → verify tasks created → 
      output monitoring dashboard URL and alert thresholds. 
      stop after 10 turns

D3 — Cross-Platform Price Comparison

/goal Run cross-platform comparison for keyword "<keyword>":
      Amazon product_search → Walmart product_search → Shopee product_search 
      → merge by product name similarity → calculate price gaps → output 
      opportunity table. stop after 15 turns

D4 — Automated Category Trend Report

/loop 7d Generate category trend report for nodeId <id> on domain <N>:
      CategoryTrend with indices "0,3,6" → sf-trend.py merge → output 
      trend visualization and key changes from last week. 
      stop after 8 turns

D5 — FBM-to-FBA Conversion Scanner

/goal Scan FBM products in category <nodeId> for FBA conversion opportunities:
      ProductSearch with shippingType=FBM and monthly sales >100 → for each, 
      calculate FBA fee estimate → compare FBM vs FBA unit economics → 
      output ranked conversion opportunity list. stop after 12 turns

Group E — Account & Operations

E1 — Daily Account Health Check

/loop 1d Check sorftime-seller-agent account health: CoinQuery → 
      RequestStreamMonth → verify MCP connectivity → alert if coin balance 
      <100 or request quota <500. stop after 5 turns

E2 — Schema Freshness Auto-Sync

/loop 7d Run sorftime-seller-agent schema health check: tests/auto_sync.py 
      → if schema outdated by >7 days, trigger sync → verify tool count → 
      notify if new tools were added. stop after 8 turns

E3 — Unsupported Request Log Review

/loop 14d Review ~/.sorftime-cache/unsupported-requests.log → cluster by 
      request type → output top 5 most common unsupported requests → 
      suggest alternative approaches or feature requests. stop after 8 turns

How to Use These Templates

  1. Copy the template you need
  2. Replace <placeholders> with your actual values:
    • <keyword> — search keyword (e.g., "yoga mat")
    • <ASIN> — Amazon ASIN (e.g., "B08N5WRWNW")
    • <site> — marketplace (US, UK, DE, JP, etc.)
    • <nodeId> — category node ID
    • <N> — numeric values (budget, price, threshold)
  3. Run in Claude Code with /goal or /loop prefix
  4. Monitor/goal runs until condition met or turn cap; /loop runs on schedule

Customization

  • Adjust stop after N turns to control max runtime (lower = faster completion, higher = more thorough)
  • Change /loop frequencies: 1d (daily), 3d (every 3 days), 7d (weekly), 14d (biweekly), 30d (monthly)
  • Add --profile <name> to target specific seller risk profiles (newbie/grower/pro/factory/brand)
  • Combine multiple goals into a pipeline: output of one goal becomes input for the next

Related Pages

Clone this wiki locally