Coffee Prices by City for Openclaw

A powerful data retrieval skill for fetching and comparing coffee price benchmarks across major Chinese chains and cities.

realank
v1.0.0
Mar 5, 2026
0
776
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install coffee-prices

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install coffee-prices using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Coffee Prices by City?

The coffee-prices skill is a specialized utility designed for Openclaw Skills that allows users to fetch and analyze pricing data for mainstream coffee brands such as Starbucks, Luckin Coffee, and Cotti Coffee. It focuses on representative categories like Lattes and Americanos across various Chinese cities, providing a clear horizontal comparison of costs.

This skill employs a city-tier pricing logic, adjusting base prices according to the city's economic classification (Tier 1, Tier 2, or Tier 3). It is highly flexible, supporting manual city input, environment variables, or automated IP-based location detection to ensure users get relevant pricing data for their specific context.

Coffee Prices by City Use Cases

  • Benchmarking coffee prices for market research and competitive analysis across different urban tiers.
  • Generating automated pricing reports for major coffee chains in specific Chinese cities.
  • Comparing drink costs (Latte vs. Americano) across multiple brands simultaneously.
  • Exporting structured pricing data for integration into larger financial or data analytics pipelines.

How Coffee Prices by City Works

  1. The skill receives a request for a specific city or automatically detects the location via the OPENCLAW_CITY environment variable or IP geolocation.
  2. It references a built-in data model containing base prices for supported brands and categories.
  3. The system identifies the city tier (Tier 1 for major hubs like Shanghai/Beijing, Tier 2 for mid-sized cities, etc.) and applies a price coefficient.
  4. It calculates the final reference prices for the selected brands (Starbucks, Luckin, Cotti) and drinks (Latte, Americano, etc.).
  5. The data is formatted and returned as a Markdown table, JSON object, or CSV file based on the user's preference.

Coffee Prices by City Setup

To use this within the Openclaw Skills ecosystem, first install the necessary Python dependencies:

pip install -r requirements.txt

You can then run a basic query for a specific city using the following command:

python3 scripts/coffee_prices.py --city "Shanghai" --output markdown

Coffee Prices by City Data Schema & Taxonomy

The skill utilizes a structured parameter set to filter and format pricing data:

Parameter Description Default Value
--city The target Chinese city name (e.g., Beijing, Shanghai) Auto-detected via IP
--brands Comma-separated list of brands (starbucks, luckin, cotti) starbucks,luckin,cotti
--drinks Comma-separated categories (latte, americano, mocha) latte,americano,cappuccino,mocha
--output The desired format (markdown, json, csv) markdown

Coffee Prices by City Advanced Features

  • Integrated City Tiering: Automatically adjusts prices based on a city's economic tier (Tier 1-3).
  • Automated Geolocation: Uses external IP lookups to resolve the current city when no input is provided.
  • Multi-Format Export: Seamlessly generates JSON or CSV for developer workflows and data processing.
  • Extensible Data Model: Allows users to easily modify BASE_PRICES and CITY_TIERS within the script to reflect real-time market changes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*