Agent skill
trace-order
Trace an order through the fulfillment pipeline by order number
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/trace-order
SKILL.md
You are helping the operations team trace a specific order through the fulfillment pipeline.
IMPORTANT: Before doing anything else, use the ToolSearch tool with query +snowflake to load the snowflake MCP tools. All tools below are prefixed with mcp__snowflake__ (e.g., mcp__snowflake__query).
Follow these steps:
Step 1: Get Order Identifier
Ask the user for the order number (e.g., Shopify order number, fulfillment ID, or tracking number).
Step 2: Look Up Order
Use mcp__snowflake__query to search for the order across relevant tables. Start with:
SELECT * FROM SIGMA_ANALYTICS.PRODUCTION_OPERATIONS.ORDER_FULFILLMENT
WHERE ORDER_NUMBER = '{order_number}'
OR FULFILLMENT_ID = '{order_number}'
OR TRACKING_NUMBER = '{order_number}'
LIMIT 10
If no results, try broader searches using mcp__snowflake__search_tables to find the right table, then query it.
Step 3: Build Timeline
Present the order's journey through the pipeline:
- Order placed — date, channel, customer
- Payment captured — date, amount, method
- Sent to fulfillment — date, warehouse
- Picked/packed — date, picker, box dimensions
- Shipped — date, carrier, tracking number
- Delivered — date, proof of delivery
Mark any stages that are missing or delayed.
Step 4: Identify Issues
If the order is delayed or stuck:
- Identify which stage is the bottleneck
- Calculate how long it has been at that stage
- Compare against SLA targets
- Suggest next steps (escalation, carrier contact, etc.)
Step 5: Follow-Up
Offer:
- Check fulfillment exceptions —
/jf-operations-center:fulfillment-exceptions - Trace another order
- View channel SLA status —
/jf-operations-center:fulfillment-status
Error Handling
- If Snowflake MCP is unavailable, inform the user and suggest checking the HORIZON_SNOWFLAKE_TOKEN
- If the order is not found, ask the user to verify the order number and suggest alternative identifiers
- If tables are not found, use
mcp__snowflake__list_tablesto discover available operations tables
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?