272 lines
No EOL
8.6 KiB
Markdown
272 lines
No EOL
8.6 KiB
Markdown
---
|
|
name: market-data-pipeline-cskill
|
|
description: Complete end-to-end pipeline for processing market data from raw sources to actionable insights. Created by Agent-Skill-Creator.
|
|
---
|
|
|
|
# Market Data Processing Pipeline -cskill
|
|
|
|
This skill demonstrates a complete pipeline architecture that transforms raw market data through multiple processing stages to deliver actionable investment insights.
|
|
|
|
## About This Pipeline Skill
|
|
|
|
This is a **Claude Skill** created by the Agent-Skill-Creator that embodies **"expertise reutilizível"** presented as a **"standard operational procedure"**. It represents a complete end-to-end flow from data extraction to insight generation.
|
|
|
|
**Type**: Pipeline Skill (End-to-End Processing)
|
|
**Created by**: Agent-Skill-Creator
|
|
**Architecture**: Sequential Pipeline with 4 Processing Stages
|
|
**Naming Convention**: Follows "-cskill" suffix for clear identification
|
|
|
|
## When to Use This Pipeline Skill
|
|
|
|
Use this skill when you need to:
|
|
- Process raw market data into actionable insights automatically
|
|
- Execute a complete market analysis workflow from start to finish
|
|
- Transform unstructured financial data into structured reports
|
|
- Automate the entire data-to-decision pipeline
|
|
|
|
**Activation Examples**:
|
|
- "Process latest market data using market-data-pipeline-cskill"
|
|
- "Execute complete market analysis pipeline for tech stocks"
|
|
- "Transform raw market data into investment insights"
|
|
- "Run end-to-end market data processing pipeline"
|
|
|
|
## Pipeline Architecture: Standard Operational Procedure
|
|
|
|
This skill implements a **complete end-to-end pipeline** where each stage processes the output of the previous stage:
|
|
|
|
### **Stage 1: Raw Data Acquisition**
|
|
```
|
|
Input: Market Data Sources (APIs, Files, Feeds)
|
|
↓
|
|
Process: Data Collection and Validation
|
|
↓
|
|
Output: Validated Raw Data (JSON/CSV)
|
|
```
|
|
|
|
### **Stage 2: Data Processing & Enrichment**
|
|
```
|
|
Input: Validated Raw Data from Stage 1
|
|
↓
|
|
Process: Cleaning, Normalization, Enrichment
|
|
↓
|
|
Output: Processed Structured Data
|
|
```
|
|
|
|
### **Stage 3: Technical Analysis**
|
|
```
|
|
Input: Processed Structured Data from Stage 2
|
|
↓
|
|
Process: Indicator Calculation, Pattern Recognition
|
|
↓
|
|
Output: Technical Analysis Results
|
|
```
|
|
|
|
### **Stage 4: Insight Generation & Reporting**
|
|
```
|
|
Input: Technical Analysis Results from Stage 3
|
|
↓
|
|
Process: Signal Generation, Report Creation
|
|
↓
|
|
Output: Actionable Investment Insights
|
|
```
|
|
|
|
## Core Philosophy: Expertise as Executable Procedure
|
|
|
|
This pipeline skill represents **captured expertise** from financial analysis methodologies, transformed into an **executable standard procedure**:
|
|
|
|
### **Expertise Source**:
|
|
- Technical analysis methodologies
|
|
- Market data processing best practices
|
|
- Quantitative finance research papers
|
|
- Professional trading procedures
|
|
|
|
### **Procedure Implementation**:
|
|
```python
|
|
class MarketDataPipeline:
|
|
"""
|
|
End-to-end pipeline implementing standard operational procedure
|
|
for market data processing and analysis
|
|
"""
|
|
|
|
def __init__(self):
|
|
# Initialize all pipeline stages
|
|
self.stages = [
|
|
DataAcquisitionStage(), # Stage 1
|
|
DataProcessingStage(), # Stage 2
|
|
TechnicalAnalysisStage(), # Stage 3
|
|
InsightGenerationStage() # Stage 4
|
|
]
|
|
|
|
def execute_pipeline(self, input_config):
|
|
"""
|
|
Execute complete end-to-end pipeline
|
|
Demonstrates flow: Raw Data → Insights
|
|
"""
|
|
current_data = input_config
|
|
|
|
for stage in self.stages:
|
|
print(f"🔄 Executing {stage.name}...")
|
|
current_data = stage.process(current_data)
|
|
current_data = stage.validate(current_data)
|
|
print(f"✅ {stage.name} completed")
|
|
|
|
return current_data # Final insights
|
|
```
|
|
|
|
## Implementation Details
|
|
|
|
### **Pipeline Characteristics**:
|
|
- **End-to-End Flow**: Data flows through all stages automatically
|
|
- **Sequential Processing**: Each stage depends on previous output
|
|
- **Value Transformation**: Each stage adds value to the data
|
|
- **Error Propagation**: Issues in early stages affect downstream processing
|
|
- **Quality Assurance**: Validation at each transition point
|
|
|
|
### **Data Flow Example**:
|
|
```python
|
|
# Example of complete pipeline execution
|
|
pipeline = MarketDataPipeline()
|
|
|
|
# Input: Raw market data configuration
|
|
input_config = {
|
|
"tickers": ["AAPL", "MSFT", "GOOGL"],
|
|
"period": "1y",
|
|
"data_sources": ["yahoo_finance", "alpha_vantage"]
|
|
}
|
|
|
|
# Execute complete pipeline
|
|
results = pipeline.execute_pipeline(input_config)
|
|
|
|
# Output: Actionable insights
|
|
print("📊 Generated Insights:")
|
|
print(f"- analyzed {len(results['processed_stocks'])} stocks")
|
|
print(f"- generated {len(results['signals'])} trading signals")
|
|
print(f"- confidence score: {results['confidence']}%")
|
|
```
|
|
|
|
## Pipeline vs Component Architecture
|
|
|
|
This skill demonstrates why **pipeline architecture** is superior for this use case:
|
|
|
|
### **Pipeline Approach (This Skill)**:
|
|
✅ **Complete Solution**: One command executes entire workflow
|
|
✅ **Data Flow**: Automatic data passing between stages
|
|
✅ **Consistency**: Uniform processing across all stages
|
|
✅ **Efficiency**: No manual data transfer between components
|
|
|
|
### **Component Approach (Alternative)**:
|
|
❌ **Manual Coordination**: User must manage 4 separate skills
|
|
❌ **Data Transfer**: Manual output/input handling between stages
|
|
❌ **Complexity**: Higher cognitive load for user
|
|
❌ **Error Prone**: More opportunities for user error
|
|
|
|
## Practical Applications
|
|
|
|
### **Use Case 1: Daily Market Analysis**
|
|
```
|
|
User Command: "Run today's market analysis pipeline"
|
|
|
|
Pipeline Execution:
|
|
1. Fetch latest market data for all watchlist stocks
|
|
2. Process and clean the data
|
|
3. Calculate technical indicators and signals
|
|
4. Generate daily investment report with recommendations
|
|
|
|
Output: Complete daily analysis report ready for decision making
|
|
```
|
|
|
|
### **Use Case 2: Sector Analysis**
|
|
```
|
|
User Command: "Analyze technology sector pipeline"
|
|
|
|
Pipeline Execution:
|
|
1. Acquire data for all tech sector stocks
|
|
2. Process and normalize across companies
|
|
3. Calculate sector-specific technical indicators
|
|
4. Generate sector comparison report
|
|
|
|
Output: Sector performance analysis with relative rankings
|
|
```
|
|
|
|
### **Use Case 3: Risk Assessment**
|
|
```
|
|
User Command: "Execute risk analysis pipeline for portfolio"
|
|
|
|
Pipeline Execution:
|
|
1. Gather historical data for portfolio holdings
|
|
2. Process volatility and correlation data
|
|
3. Calculate risk metrics (VaR, beta, etc.)
|
|
4. Generate risk assessment report
|
|
|
|
Output: Comprehensive risk analysis for portfolio management
|
|
```
|
|
|
|
## Technical Specifications
|
|
|
|
### **Dependencies**:
|
|
- Python 3.8+
|
|
- pandas, numpy (data processing)
|
|
- yfinance, requests (data acquisition)
|
|
- matplotlib, plotly (visualization)
|
|
- scikit-learn (analysis algorithms)
|
|
|
|
### **Configuration**:
|
|
```json
|
|
{
|
|
"pipeline_settings": {
|
|
"cache_duration": 3600,
|
|
"parallel_processing": true,
|
|
"quality_threshold": 0.95,
|
|
"error_handling": "graceful_degradation"
|
|
},
|
|
"data_sources": {
|
|
"yahoo_finance": {"enabled": true, "rate_limit": 2000},
|
|
"alpha_vantage": {"enabled": true, "rate_limit": 5}
|
|
},
|
|
"analysis_config": {
|
|
"indicators": ["RSI", "MACD", "Bollinger_Bands"],
|
|
"signals": ["buy", "sell", "hold"],
|
|
"confidence_threshold": 0.7
|
|
}
|
|
}
|
|
```
|
|
|
|
### **Installation & Usage**:
|
|
```bash
|
|
# Install as Claude plugin
|
|
cd market-data-pipeline-cskill
|
|
/plugin marketplace add ./
|
|
|
|
# Use the pipeline
|
|
"Execute complete market data analysis pipeline for my portfolio"
|
|
```
|
|
|
|
## The Power of Pipeline Skills
|
|
|
|
This example demonstrates the core concept that **Claude Skills represent captured expertise** as **executable standard procedures**:
|
|
|
|
### **Expertise Captured**:
|
|
- Financial analysis methodologies
|
|
- Technical analysis procedures
|
|
- Market data processing workflows
|
|
- Investment research practices
|
|
|
|
### **Procedure Implemented**:
|
|
- Automatic execution of complex multi-stage workflows
|
|
- Seamless data flow between processing stages
|
|
- Quality assurance and validation at each step
|
|
- Consistent application of domain expertise
|
|
|
|
### **Value Delivered**:
|
|
- **Complete Solution**: End-to-end processing in one command
|
|
- **Expertise Access**: Professional analysis without manual effort
|
|
- **Consistency**: Standardized procedure every time
|
|
- **Efficiency**: Complex workflows executed automatically
|
|
|
|
## Conclusion
|
|
|
|
This **market-data-pipeline-cskill** exemplifies how Claude Skills transform **"expertise reutilizível"** into **executable "standrd operational procedures"** that deliver complete end-to-end solutions.
|
|
|
|
The pipeline architecture ensures that complex multi-stage workflows can be executed automatically, transforming raw data into actionable insights through a sequence of well-defined processing stages.
|
|
|
|
**This is the essence of Claude Skills: captured expertise made executable as standard procedures.** |