roi-analysis — Claude Code skill: what it does, how to install
roi-analysis calculates marketing ROI and ad efficiency on Xiaohongshu. Helps justify budgets to stakeholders using concrete financial performance metrics.
no license 175 installs ★ 564 updated 2026-01-23
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a claude-codeWhat roi-analysis does
This skill guides financial evaluation of Xiaohongshu marketing campaigns. It calculates six core figures: ROAS, general ROI, acquisition costs (CPA and CAC), customer lifetime value, and payback speed. The methodology covers direct outlays like sponsored creator fees and production expenses, as well as team labor rates.
The workflow outlines expense categorization across spreadsheets or accounting tools alongside revenue tracking via shop analytics, UTM parameters, and promo codes. It applies attribution setups ranging from last-touch credit to multi-touch journeys.
Do not use it for evaluating follower growth or post engagement. The skill focuses strictly on revenue attribution and campaign profitability.
What it helps with
- calculate campaign ROAS and net ROI
- measure customer acquisition cost across channels
- defend marketing budgets with financial attribution
- reallocate ad spend toward profitable channels
Example prompts for the agent
- Calculate ROAS and CAC for our latest Xiaohongshu launch using these sales numbers
- Compare channel profitability and suggest how to reallocate the ad spend
- Build a payback period model factoring in influencer costs and creative production
How to install roi-analysis
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a claude-code2Manually: put the files in place
~/.claude/skills/roi-analysis/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/roi-analysis/
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a codex2Manually: put the files in place
.agents/skills/roi-analysis/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a cursor2Manually: put the files in place
.cursor/skills/roi-analysis/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install vivy-yi/xiaohongshu-skills skills/03-数据分析/roi-analysis2Manually: put the files in place
.github/skills/roi-analysis/SKILL.md1Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a gemini-cli2Platform CLI
gemini skills install https://github.com/vivy-yi/xiaohongshu-skills --path skills/03-数据分析/roi-analysisManually: put the files in place
.devin/skills/roi-analysis/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about roi-analysis
How do I install roi-analysis in Claude Code?
Run npx skills add vivy-yi/xiaohongshu-skills --skill roi-analysis -a claude-code in your terminal.
What does roi-analysis do?
It measures financial performance for Xiaohongshu marketing, computing ROAS, ROI, CPA, CAC, CLV, and investment payback timelines.
Can roi-analysis track follower counts or post likes?
No. The skill tracks monetary returns and customer acquisition metrics rather than engagement statistics.