Delegate independent tasks to specialized agents working concurrently with isolated context.
Competitive Price Analysis Pipeline
competitive-price-analysis-pipeline
Performs competitive price analysis by comparing internal pricing data with competitor information from different sources (PDFs, CSVs, spreadsheets), calculates price differences, generates insights, and stores results in BigQuery for decision-making.
SKILL.md
Full skill instructions
Instructions
1. Initial Setup & Discovery
- List the workspace directory to identify available files.
- Read the requirements document (e.g.,
requirement.md) to understand the target BigQuery dataset, table, and required schema. - Read the internal pricing file (CSV or Excel) to understand the structure and product list.
2. Extract Competitor Pricing Data
- Inspect the competitor PDF to understand its structure (page count, layout).
- Read all pages of the competitor PDF to extract text content containing product names and prices.
3. Data Processing & Matching
- Parse the internal pricing data. The key columns are
Product NameandOur Price. - Parse the competitor PDF text. Identify product names and their corresponding prices. Use fuzzy matching or keyword mapping (e.g., "SmartWidget Pro" → "SmartWidget Professional Edition") based on the trajectory example.
- Create a matched product list. For each internal product, find the corresponding competitor product and price. If a direct match isn't found, log it for manual review.
- Calculate the price difference for each matched product:
Price Difference = Our Price - Competitor Price.
4. Prepare Output & Load to BigQuery
- Create a CSV file (
price_comparison.csv) with the exact columns specified in the requirements:Product Name(String)Our Price(Float)Competitor Price(Float)Price Difference(Float)
- Verify the BigQuery dataset exists. If it doesn't, you may need to create it (though the trajectory shows it pre-existing).
- Load the CSV data into the specified BigQuery table (
dataset_id.table_id). UseWRITE_TRUNCATEmode to replace any existing data, as per the trajectory. - Run a validation query to confirm the data was loaded correctly and matches the expected row count and schema.
5. Generate Summary & Finalize
- Provide a concise summary of the analysis, including:
- Number of products processed.
- Count of products priced higher/lower than the competitor.
- The product with the largest price advantage (most negative difference).
- The product with the largest price disadvantage (most positive difference).
- Claim the task as done.
Key Considerations
- Product Matching Logic: This is a high-freedom, interpretive step. Use the provided
scripts/match_products.pyas a starting point, but be prepared to adjust matching rules (keywords, categories) based on the specific data. - BigQuery Permissions: Ensure the agent has the necessary permissions to list datasets and load data to the specified table.
- Data Types: Ensure numeric prices are parsed as floats. Handle currency symbols and commas appropriately.
- Error Handling: If the PDF extraction yields poor results, consider using the
pdf-tools-search_pdffunction to find specific product names or prices.
More Other skills
brand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
Fundamental design principles for writing maintainable, testable Python code.
responsive-design
Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.
Generate Playwright tests from scenarios using interactive browser exploration and validation.
Automated website exploration and test case generation using Playwright.
Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.
gdpr-data-handling
GDPR-compliant data handling with consent management, data subject rights, and privacy controls.
Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.
refactor-plan
Detailed multi-file refactor planning with safety checks and rollback guidance.
