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.

Replace <placeholders> with your actual values before running.


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

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.

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

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 pull Hidden Profit Index TOP50 
      (no keyword filter — full market scan). Compare with previous month. 
      Output newly entered products with pattern analysis: price band / 
      category / review threshold / common traits. 
      stop after 12 turns

C9b — Hidden Profit Index Targeted Category Cross-Filter

/goal Complete Hidden Profit Index cross-mining for category <category name>:
  1. category_name_search to find target category nodeId
  2. category_report to pull category TOP100 products
  3. For each TOP100 ASIN: product_detail (price/reviews/brand/sales/margin)
  4. potential_product for category keywords → Hidden Profit Index TOP30
  5. Cross-rank: category_report sales rank × potential_product HPI rank → composite score
  6. Output TOP10 composite ranking (ASIN/Price/Reviews/Brand/Monthly Sales/HPI/Score)
  7. Flag "high HPI but low sales" products (hidden gems filtered out by traditional methods)
  stop after 12 turns

C10 — New Product Burst Radar

/loop 3d Use sorftime-seller-agent to scan new product burst signals for 
      keyword "<keyword>": filter by online_date within 90 days AND monthly 
      sales >100 AND reviews <50 → calculate burst index → output top 5 
      with growth trajectory. 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