[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FK2TBAE7ETJ6J3PX9JFDXW":3,"skill-same:01M6FK2TBAE7ETJ6J3PX9JFDXW":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":54},"01M6FK2TBAE7ETJ6J3PX9JFDXW","price-api",null,"Fetch construction material prices from open APIs. Track price trends, regional variations, and update cost databases.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdatadrivenconstruction\u002Fprice-api\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"api","price","price api","update","open","fetch","cost","databases","material","trends","2026-11-10 10:12:30",false,"---\r\nslug: \"price-api\"\r\ndisplay_name: \"Price API\"\r\ndescription: \"Fetch construction material prices from open APIs. Track price trends, regional variations, and update cost databases.\"\r\n---\r\n\r\n# Price API for Construction Materials\r\n\r\n## Overview\r\nMaterial prices fluctuate constantly. This skill fetches prices from open sources, tracks trends, and updates cost databases with current market data.\r\n\r\n## Python Implementation\r\n\r\n```python\r\nimport requests\r\nimport pandas as pd\r\nfrom typing import Dict, Any, List, Optional\r\nfrom dataclasses import dataclass, field\r\nfrom datetime import datetime, timedelta\r\nfrom enum import Enum\r\nimport json\r\n\r\n\r\nclass MaterialCategory(Enum):\r\n    \"\"\"Construction material categories.\"\"\"\r\n    CONCRETE = \"concrete\"\r\n    STEEL = \"steel\"\r\n    LUMBER = \"lumber\"\r\n    COPPER = \"copper\"\r\n    ALUMINUM = \"aluminum\"\r\n    CEMENT = \"cement\"\r\n    AGGREGATES = \"aggregates\"\r\n    ASPHALT = \"asphalt\"\r\n\r\n\r\n@dataclass\r\nclass MaterialPrice:\r\n    \"\"\"Material price point.\"\"\"\r\n    material: str\r\n    price: float\r\n    unit: str\r\n    currency: str\r\n    source: str\r\n    date: datetime\r\n    region: str = \"\"\r\n\r\n\r\n@dataclass\r\nclass PriceTrend:\r\n    \"\"\"Price trend analysis.\"\"\"\r\n    material: str\r\n    current_price: float\r\n    week_change: float\r\n    month_change: float\r\n    year_change: float\r\n    trend_direction: str  # 'up', 'down', 'stable'\r\n\r\n\r\nclass OpenPriceAPI:\r\n    \"\"\"Client for open material price APIs.\"\"\"\r\n\r\n    # Commodity price sources\r\n    FRED_BASE = \"https:\u002F\u002Fapi.stlouisfed.org\u002Ffred\u002Fseries\u002Fobservations\"\r\n\r\n    # FRED Series IDs for construction commodities\r\n    FRED_SERIES = {\r\n        'steel': 'WPU101',\r\n        'lumber': 'WPS0811',\r\n        'concrete': 'WPU133',\r\n        'copper': 'PCOPPUSDM',\r\n        'aluminum': 'PALUMUSDM'\r\n    }\r\n\r\n    def __init__(self, fred_api_key: Optional[str] = None):\r\n        self.fred_api_key = fred_api_key\r\n\r\n    def get_fred_prices(self, material: str,\r\n                        start_date: str = None,\r\n                        end_date: str = None) -> List[MaterialPrice]:\r\n        \"\"\"Get prices from FRED API.\"\"\"\r\n\r\n        if material.lower() not in self.FRED_SERIES:\r\n            return []\r\n\r\n        series_id = self.FRED_SERIES[material.lower()]\r\n\r\n        if start_date is None:\r\n            start_date = (datetime.now() - timedelta(days=365)).strftime('%Y-%m-%d')\r\n        if end_date is None:\r\n            end_date = datetime.now().strftime('%Y-%m-%d')\r\n\r\n        params = {\r\n            'series_id': series_id,\r\n            'observation_start': start_date,\r\n            'observation_end': end_date,\r\n            'file_type': 'json'\r\n        }\r\n\r\n        if self.fred_api_key:\r\n            params['api_key'] = self.fred_api_key\r\n\r\n        try:\r\n            response = requests.get(self.FRED_BASE, params=params)\r\n            if response.status_code != 200:\r\n                return []\r\n\r\n            data = response.json()\r\n            observations = data.get('observations', [])\r\n\r\n            prices = []\r\n            for obs in observations:\r\n                try:\r\n                    price = float(obs['value'])\r\n                    prices.append(MaterialPrice(\r\n                        material=material,\r\n                        price=price,\r\n                        unit='index',\r\n                        currency='USD',\r\n                        source='FRED',\r\n                        date=datetime.strptime(obs['date'], '%Y-%m-%d'),\r\n                        region='US'\r\n                    ))\r\n                except (ValueError, KeyError):\r\n                    continue\r\n\r\n            return prices\r\n\r\n        except Exception as e:\r\n            print(f\"Error fetching FRED data: {e}\")\r\n            return []\r\n\r\n    def to_dataframe(self, prices: List[MaterialPrice]) -> pd.DataFrame:\r\n        \"\"\"Convert prices to DataFrame.\"\"\"\r\n        data = [{\r\n            'material': p.material,\r\n            'price': p.price,\r\n            'unit': p.unit,\r\n            'currency': p.currency,\r\n            'source': p.source,\r\n            'date': p.date,\r\n            'region': p.region\r\n        } for p in prices]\r\n        return pd.DataFrame(data)\r\n\r\n\r\nclass ConstructionPriceTracker:\r\n    \"\"\"Track and analyze construction material prices.\"\"\"\r\n\r\n    # Default regional factors\r\n    REGIONAL_FACTORS = {\r\n        'US_National': 1.0,\r\n        'US_Northeast': 1.15,\r\n        'US_Southeast': 0.95,\r\n        'US_Midwest': 0.92,\r\n        'US_West': 1.10,\r\n        'Germany': 1.25,\r\n        'UK': 1.20,\r\n        'France': 1.18\r\n    }\r\n\r\n    def __init__(self):\r\n        self.price_cache: Dict[str, pd.DataFrame] = {}\r\n\r\n    def calculate_trend(self, prices: pd.DataFrame) -> PriceTrend:\r\n        \"\"\"Calculate price trend from historical data.\"\"\"\r\n\r\n        if prices.empty or 'price' not in prices.columns:\r\n            return None\r\n\r\n        prices = prices.sort_values('date')\r\n        current = prices['price'].iloc[-1]\r\n\r\n        # Calculate changes\r\n        week_ago_idx = len(prices) - 7 if len(prices) >= 7 else 0\r\n        month_ago_idx = len(prices) - 30 if len(prices) >= 30 else 0\r\n        year_ago_idx = len(prices) - 365 if len(prices) >= 365 else 0\r\n\r\n        week_price = prices['price'].iloc[week_ago_idx]\r\n        month_price = prices['price'].iloc[month_ago_idx]\r\n        year_price = prices['price'].iloc[year_ago_idx]\r\n\r\n        week_change = ((current - week_price) \u002F week_price * 100) if week_price else 0\r\n        month_change = ((current - month_price) \u002F month_price * 100) if month_price else 0\r\n        year_change = ((current - year_price) \u002F year_price * 100) if year_price else 0\r\n\r\n        # Determine trend\r\n        if month_change > 5:\r\n            trend = 'up'\r\n        elif month_change \u003C -5:\r\n            trend = 'down'\r\n        else:\r\n            trend = 'stable'\r\n\r\n        return PriceTrend(\r\n            material=prices['material'].iloc[0],\r\n            current_price=current,\r\n            week_change=round(week_change, 2),\r\n            month_change=round(month_change, 2),\r\n            year_change=round(year_change, 2),\r\n            trend_direction=trend\r\n        )\r\n\r\n    def apply_regional_factor(self, base_price: float,\r\n                              region: str) -> float:\r\n        \"\"\"Apply regional price factor.\"\"\"\r\n        factor = self.REGIONAL_FACTORS.get(region, 1.0)\r\n        return base_price * factor\r\n\r\n    def update_cost_database(self, cost_df: pd.DataFrame,\r\n                             price_updates: Dict[str, float],\r\n                             date_column: str = 'last_updated') -> pd.DataFrame:\r\n        \"\"\"Update cost database with new prices.\"\"\"\r\n        updated = cost_df.copy()\r\n\r\n        for material, price in price_updates.items():\r\n            # Find rows with this material\r\n            mask = updated['material'].str.lower() == material.lower()\r\n            if mask.any():\r\n                # Calculate adjustment factor\r\n                old_price = updated.loc[mask, 'unit_price'].mean()\r\n                factor = price \u002F old_price if old_price > 0 else 1\r\n\r\n                # Update prices\r\n                updated.loc[mask, 'unit_price'] *= factor\r\n                updated.loc[mask, date_column] = datetime.now()\r\n\r\n        return updated\r\n\r\n\r\nclass MaterialPriceEstimator:\r\n    \"\"\"Estimate material prices when API data unavailable.\"\"\"\r\n\r\n    # Reference prices (USD per unit, as of 2024)\r\n    REFERENCE_PRICES = {\r\n        'concrete_m3': 120,\r\n        'rebar_ton': 800,\r\n        'structural_steel_ton': 1200,\r\n        'lumber_mbf': 450,\r\n        'copper_wire_kg': 12,\r\n        'brick_1000': 550,\r\n        'cement_ton': 130,\r\n        'sand_m3': 35,\r\n        'gravel_m3': 40,\r\n        'drywall_m2': 8,\r\n        'insulation_m2': 25\r\n    }\r\n\r\n    def estimate_price(self, material: str,\r\n                       region: str = 'US_National',\r\n                       inflation_adjustment: float = 0) -> float:\r\n        \"\"\"Estimate current price for material.\"\"\"\r\n        base_price = self.REFERENCE_PRICES.get(material, 0)\r\n\r\n        if base_price == 0:\r\n            return 0\r\n\r\n        # Apply inflation\r\n        adjusted = base_price * (1 + inflation_adjustment)\r\n\r\n        # Apply regional factor\r\n        tracker = ConstructionPriceTracker()\r\n        return tracker.apply_regional_factor(adjusted, region)\r\n\r\n    def bulk_estimate(self, materials: List[str],\r\n                      region: str = 'US_National') -> pd.DataFrame:\r\n        \"\"\"Estimate prices for multiple materials.\"\"\"\r\n        estimates = []\r\n        for material in materials:\r\n            price = self.estimate_price(material, region)\r\n            estimates.append({\r\n                'material': material,\r\n                'estimated_price': price,\r\n                'region': region,\r\n                'source': 'estimate',\r\n                'date': datetime.now()\r\n            })\r\n        return pd.DataFrame(estimates)\r\n```\r\n\r\n## Quick Start\r\n\r\n```python\r\n# Initialize price API\r\napi = OpenPriceAPI(fred_api_key=\"your_key\")\r\n\r\n# Get steel prices\r\nsteel_prices = api.get_fred_prices('steel')\r\ndf = api.to_dataframe(steel_prices)\r\nprint(df.tail())\r\n\r\n# Analyze trend\r\ntracker = ConstructionPriceTracker()\r\ntrend = tracker.calculate_trend(df)\r\nprint(f\"Steel trend: {trend.trend_direction}, YoY: {trend.year_change}%\")\r\n```\r\n\r\n## Common Use Cases\r\n\r\n### 1. Update Cost Database\r\n```python\r\ntracker = ConstructionPriceTracker()\r\n\r\n# New prices from market\r\nupdates = {'steel': 1250, 'concrete': 135, 'lumber': 480}\r\n\r\n# Update database\r\nupdated_db = tracker.update_cost_database(cost_df, updates)\r\n```\r\n\r\n### 2. Regional Pricing\r\n```python\r\nbase_price = 120  # concrete USD\u002Fm3\r\nberlin_price = tracker.apply_regional_factor(base_price, 'Germany')\r\nprint(f\"Berlin price: ${berlin_price}\u002Fm3\")\r\n```\r\n\r\n### 3. Bulk Estimation\r\n```python\r\nestimator = MaterialPriceEstimator()\r\n\r\nmaterials = ['concrete_m3', 'rebar_ton', 'lumber_mbf']\r\nestimates = estimator.bulk_estimate(materials, region='US_West')\r\nprint(estimates)\r\n```\r\n\r\n## Resources\r\n- **DDC Book**: Chapter 2.2 - Open Data Sources\r\n- **FRED API**: https:\u002F\u002Ffred.stlouisfed.org\u002Fdocs\u002Fapi\u002F\r\n","# Price API for Construction Materials\r\n\r\n## Overview\r\nMaterial prices fluctuate constantly. This skill fetches prices from open sources, tracks trends, and updates cost databases with current market data.\r\n\r\n## Python Implementation\r\n\r\n```python\r\nimport requests\r\nimport pandas as pd\r\nfrom typing import Dict, Any, List, Optional\r\nfrom dataclasses import dataclass, field\r\nfrom datetime import datetime, timedelta\r\nfrom enum import Enum\r\nimport json\r\n\r\n\r\nclass MaterialCategory(Enum):\r\n    \"\"\"Construction material categories.\"\"\"\r\n    CONCRETE = \"concrete\"\r\n    STEEL = \"steel\"\r\n    LUMBER = \"lumber\"\r\n    COPPER = \"copper\"\r\n    ALUMINUM = \"aluminum\"\r\n    CEMENT = \"cement\"\r\n    AGGREGATES = \"aggregates\"\r\n    ASPHALT = \"asphalt\"\r\n\r\n\r\n@dataclass\r\nclass MaterialPrice:\r\n    \"\"\"Material price point.\"\"\"\r\n    material: str\r\n    price: float\r\n    unit: str\r\n    currency: str\r\n    source: str\r\n    date: datetime\r\n    region: str = \"\"\r\n\r\n\r\n@dataclass\r\nclass PriceTrend:\r\n    \"\"\"Price trend analysis.\"\"\"\r\n    material: str\r\n    current_price: float\r\n    week_change: float\r\n    month_change: float\r\n    year_change: float\r\n    trend_direction: str  # 'up', 'down', 'stable'\r\n\r\n\r\nclass OpenPriceAPI:\r\n    \"\"\"Client for open material price APIs.\"\"\"\r\n\r\n    # Commodity price sources\r\n    FRED_BASE = \"https:\u002F\u002Fapi.stlouisfed.org\u002Ffred\u002Fseries\u002Fobservations\"\r\n\r\n    # FRED Series IDs for construction commodities\r\n    FRED_SERIES = {\r\n        'steel': 'WPU101',\r\n        'lumber': 'WPS0811',\r\n        'concrete': 'WPU133',\r\n        'copper': 'PCOPPUSDM',\r\n        'aluminum': 'PALUMUSDM'\r\n    }\r\n\r\n    def __init__(self, fred_api_key: Optional[str] = None):\r\n        self.fred_api_key = fred_api_key\r\n\r\n    def get_fred_prices(self, material: str,\r\n                        start_date: str = None,\r\n                        end_date: str = None) -> List[MaterialPrice]:\r\n        \"\"\"Get prices from FRED API.\"\"\"\r\n\r\n        if material.lower() not in self.FRED_SERIES:\r\n            return []\r\n\r\n        series_id = self.FRED_SERIES[material.lower()]\r\n\r\n        if start_date is None:\r\n            start_date = (datetime.now() - timedelta(days=365)).strftime('%Y-%m-%d')\r\n        if end_date is None:\r\n            end_date = datetime.now().strftime('%Y-%m-%d')\r\n\r\n        params = {\r\n            'series_id': series_id,\r\n            'observation_start': start_date,\r\n            'observation_end': end_date,\r\n            'file_type': 'json'\r\n        }\r\n\r\n        if self.fred_api_key:\r\n            params['api_key'] = self.fred_api_key\r\n\r\n        try:\r\n            response = requests.get(self.FRED_BASE, params=params)\r\n            if response.status_code != 200:\r\n                return []\r\n\r\n            data = response.json()\r\n            observations = data.get('observations', [])\r\n\r\n            prices = []\r\n            for obs in observations:\r\n                try:\r\n                    price = float(obs['value'])\r\n                    prices.append(MaterialPrice(\r\n                        material=material,\r\n                        price=price,\r\n                        unit='index',\r\n                        currency='USD',\r\n                        source='FRED',\r\n                        date=datetime.strptime(obs['date'], '%Y-%m-%d'),\r\n                        region='US'\r\n                    ))\r\n                except (ValueError, KeyError):\r\n                    continue\r\n\r\n            return prices\r\n\r\n        except Exception as e:\r\n            print(f\"Error fetching FRED data: {e}\")\r\n            return []\r\n\r\n    def to_dataframe(self, prices: List[MaterialPrice]) -> pd.DataFrame:\r\n        \"\"\"Convert prices to DataFrame.\"\"\"\r\n        data = [{\r\n            'material': p.material,\r\n            'price': p.price,\r\n            'unit': p.unit,\r\n            'currency': p.currency,\r\n            'source': p.source,\r\n            'date': p.date,\r\n            'region': p.region\r\n        } for p in prices]\r\n        return pd.DataFrame(data)\r\n\r\n\r\nclass ConstructionPriceTracker:\r\n    \"\"\"Track and analyze construction material prices.\"\"\"\r\n\r\n    # Default regional factors\r\n    REGIONAL_FACTORS = {\r\n        'US_National': 1.0,\r\n        'US_Northeast': 1.15,\r\n        'US_Southeast': 0.95,\r\n        'US_Midwest': 0.92,\r\n        'US_West': 1.10,\r\n        'Germany': 1.25,\r\n        'UK': 1.20,\r\n        'France': 1.18\r\n    }\r\n\r\n    def __init__(self):\r\n        self.price_cache: Dict[str, pd.DataFrame] = {}\r\n\r\n    def calculate_trend(self, prices: pd.DataFrame) -> PriceTrend:\r\n        \"\"\"Calculate price trend from historical data.\"\"\"\r\n\r\n        if prices.empty or 'price' not in prices.columns:\r\n            return None\r\n\r\n        prices = prices.sort_values('date')\r\n        current = prices['price'].iloc[-1]\r\n\r\n        # Calculate changes\r\n        week_ago_idx = len(prices) - 7 if len(prices) >= 7 else 0\r\n        month_ago_idx = len(prices) - 30 if len(prices) >= 30 else 0\r\n        year_ago_idx = len(prices) - 365 if len(prices) >= 365 else 0\r\n\r\n        week_price = prices['price'].iloc[week_ago_idx]\r\n        month_price = prices['price'].iloc[month_ago_idx]\r\n        year_price = prices['price'].iloc[year_ago_idx]\r\n\r\n        week_change = ((current - week_price) \u002F week_price * 100) if week_price else 0\r\n        month_change = ((current - month_price) \u002F month_price * 100) if month_price else 0\r\n        year_change = ((current - year_price) \u002F year_price * 100) if year_price else 0\r\n\r\n        # Determine trend\r\n        if month_change > 5:\r\n            trend = 'up'\r\n        elif month_change \u003C -5:\r\n            trend = 'down'\r\n        else:\r\n            trend = 'stable'\r\n\r\n        return PriceTrend(\r\n            material=prices['material'].iloc[0],\r\n            current_price=current,\r\n            week_change=round(week_change, 2),\r\n            month_change=round(month_change, 2),\r\n            year_change=round(year_change, 2),\r\n            trend_direction=trend\r\n        )\r\n\r\n    def apply_regional_factor(self, base_price: float,\r\n                              region: str) -> float:\r\n        \"\"\"Apply regional price factor.\"\"\"\r\n        factor = self.REGIONAL_FACTORS.get(region, 1.0)\r\n        return base_price * factor\r\n\r\n    def update_cost_database(self, cost_df: pd.DataFrame,\r\n                             price_updates: Dict[str, float],\r\n                             date_column: str = 'last_updated') -> pd.DataFrame:\r\n        \"\"\"Update cost database with new prices.\"\"\"\r\n        updated = cost_df.copy()\r\n\r\n        for material, price in price_updates.items():\r\n            # Find rows with this material\r\n            mask = updated['material'].str.lower() == material.lower()\r\n            if mask.any():\r\n                # Calculate adjustment factor\r\n                old_price = updated.loc[mask, 'unit_price'].mean()\r\n                factor = price \u002F old_price if old_price > 0 else 1\r\n\r\n                # Update prices\r\n                updated.loc[mask, 'unit_price'] *= factor\r\n                updated.loc[mask, date_column] = datetime.now()\r\n\r\n        return updated\r\n\r\n\r\nclass MaterialPriceEstimator:\r\n    \"\"\"Estimate material prices when API data unavailable.\"\"\"\r\n\r\n    # Reference prices (USD per unit, as of 2024)\r\n    REFERENCE_PRICES = {\r\n        'concrete_m3': 120,\r\n        'rebar_ton': 800,\r\n        'structural_steel_ton': 1200,\r\n        'lumber_mbf': 450,\r\n        'copper_wire_kg': 12,\r\n        'brick_1000': 550,\r\n        'cement_ton': 130,\r\n        'sand_m3': 35,\r\n        'gravel_m3': 40,\r\n        'drywall_m2': 8,\r\n        'insulation_m2': 25\r\n    }\r\n\r\n    def estimate_price(self, material: str,\r\n                       region: str = 'US_National',\r\n                       inflation_adjustment: float = 0) -> float:\r\n        \"\"\"Estimate current price for material.\"\"\"\r\n        base_price = self.REFERENCE_PRICES.get(material, 0)\r\n\r\n        if base_price == 0:\r\n            return 0\r\n\r\n        # Apply inflation\r\n        adjusted = base_price * (1 + inflation_adjustment)\r\n\r\n        # Apply regional factor\r\n        tracker = ConstructionPriceTracker()\r\n        return tracker.apply_regional_factor(adjusted, region)\r\n\r\n    def bulk_estimate(self, materials: List[str],\r\n                      region: str = 'US_National') -> pd.DataFrame:\r\n        \"\"\"Estimate prices for multiple materials.\"\"\"\r\n        estimates = []\r\n        for material in materials:\r\n            price = self.estimate_price(material, region)\r\n            estimates.append({\r\n                'material': material,\r\n                'estimated_price': price,\r\n                'region': region,\r\n                'source': 'estimate',\r\n                'date': datetime.now()\r\n            })\r\n        return pd.DataFrame(estimates)\r\n```\r\n\r\n## Quick Start\r\n\r\n```python\r\n# Initialize price API\r\napi = OpenPriceAPI(fred_api_key=\"your_key\")\r\n\r\n# Get steel prices\r\nsteel_prices = api.get_fred_prices('steel')\r\ndf = api.to_dataframe(steel_prices)\r\nprint(df.tail())\r\n\r\n# Analyze trend\r\ntracker = ConstructionPriceTracker()\r\ntrend = tracker.calculate_trend(df)\r\nprint(f\"Steel trend: {trend.trend_direction}, YoY: {trend.year_change}%\")\r\n```\r\n\r\n## Common Use Cases\r\n\r\n### 1. Update Cost Database\r\n```python\r\ntracker = ConstructionPriceTracker()\r\n\r\n# New prices from market\r\nupdates = {'steel': 1250, 'concrete': 135, 'lumber': 480}\r\n\r\n# Update database\r\nupdated_db = tracker.update_cost_database(cost_df, updates)\r\n```\r\n\r\n### 2. Regional Pricing\r\n```python\r\nbase_price = 120  # concrete USD\u002Fm3\r\nberlin_price = tracker.apply_regional_factor(base_price, 'Germany')\r\nprint(f\"Berlin price: ${berlin_price}\u002Fm3\")\r\n```\r\n\r\n### 3. Bulk Estimation\r\n```python\r\nestimator = MaterialPriceEstimator()\r\n\r\nmaterials = ['concrete_m3', 'rebar_ton', 'lumber_mbf']\r\nestimates = estimator.bulk_estimate(materials, region='US_West')\r\nprint(estimates)\r\n```\r\n\r\n## Resources\r\n- **DDC Book**: Chapter 2.2 - Open Data Sources\r\n- **FRED API**: https:\u002F\u002Ffred.stlouisfed.org\u002Fdocs\u002Fapi\u002F\r\n",{"slug":5,"description":7,"display_name":33},"Price API","main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fdatadrivenconstruction\u002Fprice-api",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add kbarbel640-del\u002Fskills --skill price-api",{"tool":47,"command":48},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill price-api",{"tool":50,"command":51},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill price-api","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdatadrivenconstruction\u002Fprice-api\u002FSKILL.md",true,[55],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"_meta.json","REFERENCE","参考文档",286,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdatadrivenconstruction\u002Fprice-api\u002F_meta.json",[62,87,111,128,133,153],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":28},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[69,70,18,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86],"crowd prompting","prompting","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":28},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[94,18,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,75,110],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":28},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[118,119,120,121,122,123,124,71,23,108,110,125,18,126,127],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","read","http","via",{"skillNo":129,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":28},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[121,120,119,118,127,123,124,71,122,108,110,23,125,18,126],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":28},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[140,141,142,143,144,145,146,147,148,149,150,151,152],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":28},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[160,161,162,163,71,164,165,34,166,125,167,168,169,170,171,84,172,173,174],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]