/attribution-analysis-modeling
Perform multi-touch attribution analysis using Markov chains, Shapley values, and custom attribution models. Use when you need to analyze marketing channel effectiveness, calculate conversion attribution, optimize marketing budgets, or understand customer journey paths. Supports
$ npx -y skills add liangdabiao/claude-data-analysis-ultra-main --skill attribution-analysis-modeling --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/attribution-analysis-modeling
Context preview
The summary Claude sees to decide when to auto-load this skill.
Perform multi-touch attribution analysis using Markov chains, Shapley values, and custom attribution models. Use when you need to analyze marketing channel effectiveness, calculate conversion attribution, optimize marketing budgets, or understand customer journey paths. Supports
SKILL.md
attribution-analysis-modeling.SKILL.mdname: attribution-analysis-modeling
description: Perform multi-touch attribution analysis using Markov chains, Shapley values, and custom attribution models. Use when you need to analyze marketing channel effectiveness, calculate conversion attribution, optimize marketing budgets, or understand customer journey paths. Supports channel transition analysis, ROI calculation, and marketing optimization insights with Chinese language support.
allowed-tools: Read, Write, Bash, Glob
Marketing Attribution Analysis & Modeling
A comprehensive attribution analysis skill that evaluates marketing channel effectiveness using advanced statistical models, helping optimize marketing spend and understand customer journey patterns.
Instructions
1. Data Loading and Preparation
When users provide marketing touchpoint data:
- Load and validate channel interaction data
- Parse customer journey paths and touchpoint sequences
- Handle different data formats (CSV, JSON, Excel)
- Support both user-level and session-level attribution analysis
- Process timestamp data for chronological path analysis
2. Customer Journey Analysis
- Reconstruct customer journey paths from touchpoint data
- Calculate path lengths and conversion patterns
- Identify common conversion paths and bottlenecks
- Analyze channel sequencing and order effects
- Support both online and offline channel attribution
3. Attribution Model Implementation
- **Markov Chain Attribution**: Build transition probability matrices and calculate removal effects
- **Shapley Value Attribution**: Calculate fair channel contributions using game theory
- **First-Touch Attribution**: Assign full credit to the first channel in the path
- **Last-Touch Attribution**: Assign full credit to the last channel before conversion
- **Linear Attribution**: Distribute credit equally across all channels
- **Time-Decay Attribution**: Weight channels based on recency
- **Position-Based Attribution**: Weight first and last touches more heavily
4. Channel Performance Analysis
- Calculate conversion rates by channel and channel combinations
- Compute ROI and cost-per-acquisition (CPA) for each channel
- Analyze channel synergy and interaction effects
- Identify underperforming and overperforming channels
- Generate channel contribution percentages
5. Visualization and Reporting
- Create attribution weight distribution charts
- Generate customer journey path visualizations
- Build channel transition heatmaps and network graphs
- Produce ROI analysis and budget allocation recommendations
- Generate comprehensive attribution reports
Usage Examples
Marketing Channel Attribution
Analyze the effectiveness of our marketing channels:
[CSV with columns: user_id, timestamp, channel, conversion_status, conversion_value]
Digital Campaign Attribution
Calculate attribution for our digital marketing campaigns:
[Marketing touchpoint data with campaign, channel, timestamp, and conversion data]
E-commerce Conversion Attribution
Perform attribution analysis for e-commerce customer journeys:
[Customer path data showing touchpoints before purchase]
Budget Optimization
Help optimize our marketing budget based on attribution results:
[Channel performance data with spend and conversion metrics]
Key Features
Advanced Attribution Models
- **Markov Chain Analysis**: Probabilistic model for channel transition analysis
- **Shapley Values**: Game theory-based fair attribution calculation
- **Custom Models**: Flexible framework for custom attribution logic
- **Model Comparison**: Compare different attribution models side-by-side
Customer Journey Analysis
- **Path Reconstruction**: Automatically build conversion paths from raw data
- **Touchpoint Sequencing**: Analyze order and timing effects
- **Conversion Funnels**: Identify drop-off points in customer journeys
- **Multi-path Analysis**: Handle customers with multiple conversion paths
Channel Performance Metrics
- **Attribution Weights**: Calculate each channel's contribution to conversions
- **ROI Analysis**: Compute return on investment for each channel
- **Synergy Effects**: Measure how channels work together
- **Incremental Impact**: Estimate additional value from channel combinations
Business Intelligence
- **Budget Optimization**: Recommend optimal budget allocation
- **Channel Recommendations**: Suggest best channel combinations
- **Performance Benchmarks**: Compare channel performance against baselines
- **Trend Analysis**: Track attribution changes over time
File Requirements
Standard Touchpoint Data Format
user_id,timestamp,channel,conversion_status,conversion_value,cost
USER001,2024-01-15T10:30:00Z,paid_search,0,0,50
USER001,2024-01-16T14:20:00Z,social_media,0,0,30
USER001,2024-01-18T09:15:00Z,email,1,1000,10
Required Fields:
- **user_id**: Unique customer identifier
- **timestamp**: Touchpoint timestamp (ISO format preferred)
- **channel**: Marketing channel or touchpoint
- **conversion_status**: Binary indicator of conversion (0/1)
- **conversion_value**: Monetary value of conversion (optional)
- **cost**: Marketing cost for touchpoint (optional, for ROI analysis)
Supported Channel Types:
- Digital: paid_search, organic_search, social_media, email, display, video
- Traditional: tv, radio, print, outdoor, direct_mail
- E-commerce: marketplace, affiliate, referral
- Custom: Any channel name can be used
Output Files Generated
- **attribution_results.csv**: Complete attribution analysis with channel weights
- **channel_performance.csv**: Channel metrics including ROI and CPA
- **customer_paths.csv**: Reconstructed customer journey paths
- **transition_matrix.csv**: Markov chain transition probability matrix
- **attribution_dashboard.png**: Comprehensive visualization dashboard
- **attribution_report.md**: Detailed analysis report and recommendations
Dependencies
- **Core Analytics**: pandas, numpy,
Read more
name: attribution-analysis-modeling description: Perform multi-touch attribution analysis using Markov chains, Shapley values, and custom attribution models. Use when you need to analyze marketing channel effectiveness, calculate conversion attribution, optimize marketing budgets, or understand customer journey paths. Supports channel transition analysis, ROI calculation, and marketing optimization insights with Chinese language support. allowed-tools: Read, Write, Bash, Glob
Marketing Attribution Analysis & Modeling
A comprehensive attribution analysis skill that evaluates marketing channel effectiveness using advanced statistical models, helping optimize marketing spend and understand customer journey patterns.
Instructions
1. Data Loading and Preparation
When users provide marketing touchpoint data:
- Load and validate channel interaction data
- Parse customer journey paths and touchpoint sequences
- Handle different data formats (CSV, JSON, Excel)
- Support both user-level and session-level attribution analysis
- Process timestamp data for chronological path analysis
2. Customer Journey Analysis
- Reconstruct customer journey paths from touchpoint data
- Calculate path lengths and conversion patterns
- Identify common conversion paths and bottlenecks
- Analyze channel sequencing and order effects
- Support both online and offline channel attribution
3. Attribution Model Implementation
- **Markov Chain Attribution**: Build transition probability matrices and calculate removal effects
- **Shapley Value Attribution**: Calculate fair channel contributions using game theory
- **First-Touch Attribution**: Assign full credit to the first channel in the path
- **Last-Touch Attribution**: Assign full credit to the last channel before conversion
- **Linear Attribution**: Distribute credit equally across all channels
- **Time-Decay Attribution**: Weight channels based on recency
- **Position-Based Attribution**: Weight first and last touches more heavily
4. Channel Performance Analysis
- Calculate conversion rates by channel and channel combinations
- Compute ROI and cost-per-acquisition (CPA) for each channel
- Analyze channel synergy and interaction effects
- Identify underperforming and overperforming channels
- Generate channel contribution percentages
5. Visualization and Reporting
- Create attribution weight distribution charts
- Generate customer journey path visualizations
- Build channel transition heatmaps and network graphs
- Produce ROI analysis and budget allocation recommendations
- Generate comprehensive attribution reports
Usage Examples
Marketing Channel Attribution
Analyze the effectiveness of our marketing channels: [CSV with columns: user_id, timestamp, channel, conversion_status, conversion_value]
Digital Campaign Attribution
Calculate attribution for our digital marketing campaigns: [Marketing touchpoint data with campaign, channel, timestamp, and conversion data]
E-commerce Conversion Attribution
Perform attribution analysis for e-commerce customer journeys: [Customer path data showing touchpoints before purchase]
Budget Optimization
Help optimize our marketing budget based on attribution results: [Channel performance data with spend and conversion metrics]
Key Features
Advanced Attribution Models
- **Markov Chain Analysis**: Probabilistic model for channel transition analysis
- **Shapley Values**: Game theory-based fair attribution calculation
- **Custom Models**: Flexible framework for custom attribution logic
- **Model Comparison**: Compare different attribution models side-by-side
Customer Journey Analysis
- **Path Reconstruction**: Automatically build conversion paths from raw data
- **Touchpoint Sequencing**: Analyze order and timing effects
- **Conversion Funnels**: Identify drop-off points in customer journeys
- **Multi-path Analysis**: Handle customers with multiple conversion paths
Channel Performance Metrics
- **Attribution Weights**: Calculate each channel's contribution to conversions
- **ROI Analysis**: Compute return on investment for each channel
- **Synergy Effects**: Measure how channels work together
- **Incremental Impact**: Estimate additional value from channel combinations
Business Intelligence
- **Budget Optimization**: Recommend optimal budget allocation
- **Channel Recommendations**: Suggest best channel combinations
- **Performance Benchmarks**: Compare channel performance against baselines
- **Trend Analysis**: Track attribution changes over time
File Requirements
Standard Touchpoint Data Format
user_id,timestamp,channel,conversion_status,conversion_value,cost USER001,2024-01-15T10:30:00Z,paid_search,0,0,50 USER001,2024-01-16T14:20:00Z,social_media,0,0,30 USER001,2024-01-18T09:15:00Z,email,1,1000,10
Required Fields:
- **user_id**: Unique customer identifier
- **timestamp**: Touchpoint timestamp (ISO format preferred)
- **channel**: Marketing channel or touchpoint
- **conversion_status**: Binary indicator of conversion (0/1)
- **conversion_value**: Monetary value of conversion (optional)
- **cost**: Marketing cost for touchpoint (optional, for ROI analysis)
Supported Channel Types:
- Digital: paid_search, organic_search, social_media, email, display, video
- Traditional: tv, radio, print, outdoor, direct_mail
- E-commerce: marketplace, affiliate, referral
- Custom: Any channel name can be used
Output Files Generated
- **attribution_results.csv**: Complete attribution analysis with channel weights
- **channel_performance.csv**: Channel metrics including ROI and CPA
- **customer_paths.csv**: Reconstructed customer journey paths
- **transition_matrix.csv**: Markov chain transition probability matrix
- **attribution_dashboard.png**: Comprehensive visualization dashboard
- **attribution_report.md**: Detailed analysis report and recommendations
Dependencies
- **Core Analytics**: pandas, numpy,
基于 Claude Skill 架构的智能数据分析平台。提供两套完整的技能体系: 通用数据分析技能 - 6阶段完整分析流程 互联网数据分析技能 - 7个专业分析模块 + 1个入口技能
Other skills on claude-data-analysis-ultra-main.
- /ab-testing-analyzer
全面的AB测试分析工具,支持实验设计、统计检验、用户分群分析和可视化报告生成。用于分析产品改版、营销活动、功能优化等AB测试结果,提供统计显著性检验和深度洞察。
Open skill - /code-generator
Generates production-ready analysis code in Python, R, SQL. Invoke when user wants reusable code for data analysis, ML, or visualization.
Open skill - /content-analysis
Analyze text content using both traditional NLP and LLM-enhanced methods. Extract sentiment, topics, keywords, and insights from various content types including social media posts, articles, reviews, and video content. Use when working with text analysis, sentiment detection,
Open skill - /data-analysis
通用的 6 阶段数据分析助手:数据质量→探索性分析→假设生成→可视化→代码生成→综合报告。提供完整的方法论和模板!
Open skill - /data-exploration-visualization
自动化数据探索和可视化工具,提供从数据加载到专业报告生成的完整EDA解决方案。支持多种图表类型、智能数据诊断、建模评估和HTML报告生成。适用于医疗、金融、电商等领域的数据分析项目。
Open skill - /data-explorer
Performs exploratory data analysis, statistical analysis, and pattern discovery. Invoke when user wants to analyze data, find patterns, statistical testing, or get deep insights.
Open skill

