Agent skill

Shopify Admin Demand Forecast Reorder

by 40RTY-ai in 40RTY-ai/shopify-admin-skills

Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities.

MITAuto-check passedData & Analytics

Install Shopify Admin Demand Forecast Reorder

skills CLI
$ npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-demand-forecast-reorder -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 40RTY-ai/shopify-admin-skills shopify-admin-demand-forecast-reorder --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/merchandising/shopify-admin-demand-forecast-reorder .claude/skills/shopify-admin-demand-forecast-reorder && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
shopify-admin-demand-forecast-reorder
GitHub stars
194
Token cost
~1.9k tokens
SKILL.md length
457 words
Files
1
Skills in repo
116
Repo updated
First seen
Licence
MIT

At a glance

Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities.

  • Works in 6 steps: OPERATION: orders — query → Calculate per-variant sales velocity → OPERATION: productVariants — query → …
  • Tasks that involve Forecasting and time series
  • SKILL.md covers Purpose, Prerequisites, Parameters and Safety, plus 6 more sections
  • Calls shopify

What it does

Shopify Admin Demand Forecast Reorder is an agent skill from 40RTY-ai/shopify-admin-skills. Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Claude Code, Cursor, Codex, Gemini CLI

It sits in Data & Analytics, covering Forecasting and time series and Forms and invoices. It works with Shopify. The repository describes itself as: Community-maintained AI agent skills for operating Shopify stores — workflows, optimization, reports and more. The licence is MIT.

When your agent uses it

  • Tasks that involve Forecasting and time series
  • Tasks that involve Forms and invoices

Example prompts

  • “/shopify-admin-demand-forecast-reorder”

Requirements

  • Compatibility (from SKILL.md): Claude Code, Cursor, Codex, Gemini CLI

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. OPERATION: orders — query
  2. Calculate per-variant sales velocity
  3. OPERATION: productVariants — query
  4. OPERATION: inventoryLevels — query
  5. Calculate reorder metrics
  6. Sort by urgency: items closest to stockout first

What it can do on your machine

Read from SKILL.md and the folder at commit 6765cb4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • shopify

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code, Cursor, Codex, Gemini CLI

    From compatibility in the SKILL.md frontmatter.

Context cost

Shopify Admin Demand Forecast Reorder loads about 1.9k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 457 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~46
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from 40RTY-ai/shopify-admin-skills at commit 6765cb4, republished under its MIT licence (© 40RTY-ai). 457 words, ~1,867 tokens.

Download SKILL.mdSave it as .claude/skills/shopify-admin-demand-forecast-reorder/SKILL.md (or your agent's skills folder).
name
shopify-admin-demand-forecast-reorder
description
Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities.
compatibility
Claude Code, Cursor, Codex, Gemini CLI
role
merchandising
toolkit
shopify-admin, shopify-admin-execution
api_version
2025-01
graphql_operations
orders:query, productVariants:query, inventoryItems:query, inventoryLevels:query
status
stable

Purpose

Forecasts future demand for each SKU based on historical sales velocity, trend analysis, and optional seasonality adjustments. Calculates reorder points (when to order) and suggested reorder quantities (how much to order) factoring in vendor lead times and safety stock. Read-only — no mutations.

Prerequisites

  • Authenticated Shopify CLI session: shopify store auth --store <domain> --scopes read_orders,read_products,read_inventory
  • API scopes: read_orders, read_products, read_inventory

Parameters

ParameterTypeRequiredDefaultDescription
storestringyes—Store domain
days_backintegerno90Historical sales window for velocity calculation
forecast_daysintegerno30Days into the future to forecast demand
lead_time_daysintegerno14Default vendor lead time in days
safety_stock_daysintegerno7Extra days of safety stock buffer
vendor_filterstringno—Scope to specific vendor
only_low_stockbooleannofalseOnly show items projected to stock out within forecast window
formatstringnohumanOutput format: human or json

Safety

ℹ️ Read-only skill — no mutations are executed. Safe to run at any time.

Workflow Steps

  1. OPERATION: orders — query Inputs: query: "created_at:>='<NOW - days_back days>'", first: 250, select createdAt, lineItems { variant { id }, quantity }, pagination cursor Expected output: All orders with line items for sales velocity calculation

  2. Calculate per-variant sales velocity:

    • Daily sales rate = total units sold / days_back
    • Weekly trend: compare last 30 days vs prior 30 days for trend direction
    • Forecasted demand = daily_rate × forecast_days × trend_multiplier
  3. OPERATION: productVariants — query Inputs: All variant IDs with sales history, first: 250, pagination cursor Expected output: Variant details (SKU, title, product title, vendor)

  4. OPERATION: inventoryLevels — query Inputs: Inventory item IDs for stocked variants Expected output: Current available quantities per location

  5. Calculate reorder metrics:

    • Days of Stock = current_inventory / daily_sales_rate
    • Reorder Point = (lead_time_days + safety_stock_days) × daily_sales_rate
    • Reorder Quantity = forecast_days × daily_sales_rate + safety_stock - current_inventory
    • Stockout Date = today + (current_inventory / daily_sales_rate) days
    • Order-By Date = stockout_date - lead_time_days
  6. Sort by urgency: items closest to stockout first

Show full SKILL.md (158 more words)Show less

GraphQL Operations

graphql
# orders:query — validated against api_version 2025-01
query SalesHistory($query: String!, $after: String) {
  orders(first: 250, after: $after, query: $query) {
    edges {
      node {
        createdAt
        lineItems(first: 50) {
          edges {
            node {
              quantity
              variant { id }
            }
          }
        }
      }
    }
    pageInfo { hasNextPage endCursor }
  }
}
graphql
# productVariants:query — validated against api_version 2025-01
query VariantInfo($ids: [ID!]!) {
  nodes(ids: $ids) {
    ... on ProductVariant {
      id
      sku
      title
      product { id title vendor }
      inventoryQuantity
      inventoryItem { id }
    }
  }
}
graphql
# inventoryItems:query — validated against api_version 2025-01
query InventoryItemDetails($ids: [ID!]!) {
  nodes(ids: $ids) {
    ... on InventoryItem {
      id
      unitCost { amount currencyCode }
      tracked
      inventoryLevels(first: 10) {
        edges {
          node {
            quantities(names: ["available"]) {
              name
              quantity
            }
            location { id name }
          }
        }
      }
    }
  }
}
graphql
# inventoryLevels:query — validated against api_version 2025-01
query LocationInventory($locationId: ID!, $after: String) {
  location(id: $locationId) {
    inventoryLevels(first: 250, after: $after) {
      edges {
        node {
          quantities(names: ["available"]) { name quantity }
          item { id variant { id sku product { title } } }
        }
      }
      pageInfo { hasNextPage endCursor }
    }
  }
}

Session Tracking

Claude MUST emit the following output at each stage. This is mandatory.

On start, emit:

╔══════════════════════════════════════════════╗
║  SKILL: Demand Forecast & Reorder Planner    ║
║  Store: <store domain>                       ║
║  Started: <YYYY-MM-DD HH:MM UTC>             ║
╚══════════════════════════════════════════════╝

After each step, emit:

[N/TOTAL] <QUERY|MUTATION>  <OperationName>
          → Params: <brief summary of key inputs>
          → Result: <count or outcome>

On completion, emit:

For format: human (default):

══════════════════════════════════════════════
DEMAND FORECAST & REORDER PLAN  (<days_back>d history → <forecast_days>d forecast)
  SKUs analyzed:       <n>
  Avg daily velocity:  <n> units/day
  ─────────────────────────────
  ⚠️  URGENT (stockout <7 days):
    "<product>" SKU:<sku>  Stock:<n>  Days left:<n>  ORDER BY: <date>
    Reorder qty: <n> units  Est. cost: $<n>

  ⏰ PLAN AHEAD (stockout 7-30 days):
    "<product>" SKU:<sku>  Stock:<n>  Days left:<n>  ORDER BY: <date>

  ✅ HEALTHY (>30 days stock):
    <n> SKUs with adequate stock

  Output: reorder_plan_<date>.csv
══════════════════════════════════════════════

For format: json, emit:

json
{
  "skill": "demand-forecast-reorder",
  "store": "<domain>",
  "history_days": 90,
  "forecast_days": 30,
  "lead_time_days": 14,
  "skus_analyzed": 0,
  "urgent_reorders": [],
  "planned_reorders": [],
  "healthy_skus": 0,
  "output_file": "reorder_plan_<date>.csv"
}

Output Format

CSV file reorder_plan_<YYYY-MM-DD>.csv with columns: variant_id, sku, product_title, vendor, current_stock, daily_velocity, trend, days_of_stock, stockout_date, reorder_point, reorder_qty, order_by_date, est_cost

Error Handling

ErrorCauseRecovery
THROTTLEDAPI rate limit exceededWait 2 seconds, retry up to 3 times
Zero sales velocityProduct never sold in windowSkip from reorder calc — flag as "no demand data"
No inventory trackingVariant not trackedSkip — cannot forecast untracked items

Best Practices

  • Set lead_time_days per vendor if possible; default 14 is conservative.
  • Use safety_stock_days: 14 for high-value or slow-ship items.
  • Run weekly and pipe output into a purchase order workflow.
  • Cross-reference with stock-velocity-report for velocity validation.
  • Use with dead-stock-identifier to avoid reordering items that aren't selling.
  • For seasonal products, use a longer days_back (180-365) to capture seasonal patterns.

© 40RTY-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/merchandising/shopify-admin-demand-forecast-reorder of 40RTY-ai/shopify-admin-skills.

Open the folder on GitHubat commit 6765cb4

Compare with similar skills

Shopify Admin Demand Forecast Reorder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Shopify Admin Demand Forecast Reorder compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Shopify Admin Demand Forecast Reorder this skill40RTY-ai/shopify-admin-skills194—~1.9kAutomated safety check: PassMIT
Shopify Inventory Managementnexscope-ai/eCommerce-Skills1.1k—~480Automated safety check: PassMIT
Fee BillingJoelLewis/finance_skills206—~6.8kAutomated safety check: PassMIT
13 Data Analysis Globalminhnv0807/ai-business-skills609—~4kAutomated safety check: PassMIT
Trend AnalysisMichaelYang-lyx/AIDABench1111 repos~818Automated safety check: PassNone
Shopify B2b Wholesalejeremylongshore/tons-of-skills-marketplace2.8k—~1.6kAutomated safety check: PassMIT

Similar skills

  • Shopify Inventory Management

    nexscope-ai/eCommerce-Skills

    Multi-location inventory — transfers, low stock alerts, demand forecasting, safety stock, ABC analysis

    1.1k GitHub stars~480 tokensUpdated 1 mo ago
    Data & AnalyticsAuto-check passed
  • Fee Billing

    JoelLewis/finance_skills

    Build and manage advisory fee billing operations from fee schedule design through calculation, collection, revenue recognition, and compliance disclosure.

    206 GitHub stars~6.8k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • 13 Data Analysis Global

    minhnv0807/ai-business-skills

    A skill your agent uses when raw data exists — Meta, Google, TikTok, GA4, Shopify, a CRM export, or a spreadsheet — and has to become insight and decisions: descriptive, diagnostic, predictive, and…

    609 GitHub stars~4k tokensUpdated 29 days ago
    Data & AnalyticsAuto-check passed
  • Trend Analysis

    MichaelYang-lyx/AIDABench

    基于多维度数据进行分级评估与趋势预测,通过设定差异化增长率计算预测值,并生成对比可视化图表,适用于绩效评估、目标设定等场景。

    111 GitHub starsUsed in 1 repo~818 tokens
    Data & AnalyticsAuto-check passed
  • Shopify B2b Wholesale

    jeremylongshore/tons-of-skills-marketplace

    Build Shopify Plus B2B features with companies, catalogs, and wholesale pricing.

    2.8k GitHub stars~1.6k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Visual Skills

    npc-live/clawfirm

    A skill your agent uses whenever the user provides data (CSV, JSON, table, pasted numbers, or any structured dataset) and expects a visual output — even if they don't say 'chart' or 'visualize'.

    156 GitHub stars~7.4k tokensUpdated 3 mo ago
    Data & AnalyticsAuto-check passed

More from 40RTY-ai/shopify-admin-skills

All 116 skills in this repo
  • Shopify Admin Abandoned Cart Recovery

    40RTY-ai/shopify-admin-skills

    Query checkouts abandoned in the last N days, generate unique discount codes per customer, and tag them for re-engagement.

    194 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Address Correction

    40RTY-ai/shopify-admin-skills

    Update the shipping address on an unfulfilled order before it ships.

    194 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Agentic Crawler Access

    40RTY-ai/shopify-admin-skills

    Edit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog.

    194 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Rewrite thin product descriptions into structured, fact-rich copy (materials, fit, use-cases, the words shoppers actually type) so AI agents have something concrete to quote and match.

    194 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Agentic Image Alt Text

    40RTY-ai/shopify-admin-skills

    Generate and set descriptive alt text on product images so AI agents (which can't 'see' pixels) can understand and recommend what each product looks like.

    194 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Shopify Admin Agentic LLMs Txt

    40RTY-ai/shopify-admin-skills

    Generate and publish an /llms.txt guide (brand summary, flagship products, key policies, contact) via a theme template so AI assistants get a curated, machine-readable map of the store.

    194 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Shopify Admin Demand Forecast Reorder

What does Shopify Admin Demand Forecast Reorder do?

Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities. Shopify Admin Demand Forecast Reorder is an agent skill from 40RTY-ai/shopify-admin-skills. Read-only: forecasts demand per SKU using sales velocity and seasonality, then calculates reorder points and suggested purchase order quantities.

When should I use Shopify Admin Demand Forecast Reorder?

Shopify Admin Demand Forecast Reorder fits situations like: tasks that involve Forecasting and time series; tasks that involve Forms and invoices.

How do I install Shopify Admin Demand Forecast Reorder in Claude Code?

Run `npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-demand-forecast-reorder -a claude-code`. Or copy the skill folder (skills/merchandising/shopify-admin-demand-forecast-reorder in 40RTY-ai/shopify-admin-skills) into .claude/skills/shopify-admin-demand-forecast-reorder in your project. Claude Code loads it when a task matches its description.

How do I install Shopify Admin Demand Forecast Reorder in Codex?

Run `npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-demand-forecast-reorder -a codex`. Or copy the skill folder (skills/merchandising/shopify-admin-demand-forecast-reorder in 40RTY-ai/shopify-admin-skills) into .agents/skills/shopify-admin-demand-forecast-reorder in your project. Codex loads it when a task matches its description.

Can I use Shopify Admin Demand Forecast Reorder in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-demand-forecast-reorder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/shopify-admin-demand-forecast-reorder, .gemini/skills/shopify-admin-demand-forecast-reorder, .github/skills/shopify-admin-demand-forecast-reorder and .opencode/skills/shopify-admin-demand-forecast-reorder in your project.

What does Shopify Admin Demand Forecast Reorder need to run?

Going by SKILL.md and its folder, Shopify Admin Demand Forecast Reorder needs the command-line tools its instructions call (shopify). Compatibility (from SKILL.md): Claude Code, Cursor, Codex, Gemini CLI.

Does Shopify Admin Demand Forecast Reorder access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Shopify Admin Demand Forecast Reorder safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Shopify Admin Demand Forecast Reorder use?

Shopify Admin Demand Forecast Reorder is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Shopify Admin Demand Forecast Reorder use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Shopify Admin Demand Forecast Reorder?

Skills that share tags, products or a category with Shopify Admin Demand Forecast Reorder: Shopify Inventory Management (nexscope-ai/eCommerce-Skills, 1.1k stars), Fee Billing (JoelLewis/finance_skills, 206 stars), 13 Data Analysis Global (minhnv0807/ai-business-skills, 609 stars) and Trend Analysis (MichaelYang-lyx/AIDABench, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Shopify Admin Demand Forecast Reorder?

40RTY-ai (a GitHub organization) maintains it in 40RTY-ai/shopify-admin-skills, which has 194 GitHub stars. The repository holds 116 skills in this directory. The repository was last updated on August 14, 2026.

Source: 40RTY-ai/shopify-admin-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.