Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计通过

prod-fairflow-calculatorprod fairflow calculator 命令行

Agent Skill

prod-fairflow-calculator 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

238

周安装

10

GitHub Stars

2

下载量

83
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prod-fairflow-calculator(prod fairflow calculator 命令行)
来源仓库:https://github.com/hungv47/agent-skills
仓库路径:skills/prod-fairflow-calculator
安装命令:
npx skills add https://github.com/hungv47/agent-skills --skill prod-fairflow-calculator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hungv47/agent-skills --skill prod-fairflow-calculator

简介

用于计算产品流动效率或生产节拍相关指标。prod-fairflow-calculator 属于待分类类 Skill,可作为该场景下的辅助能力补充。

  • 适合在生产排程、瓶颈识别或产能评估中使用。
  • 通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。
  • 使用时需提供时间、数量或工序参数作为输入。
  • 安装前建议确认权限范围,避免触发敏感计算或导出操作。

SKILL.md

FairFlow Campaign Calculator

Help users plan, calculate, and evaluate FairFlow liquidity mining campaigns with data-driven projections and efficiency metrics.

Philosophy

Sustainable yield beats speculation. Good liquidity mining campaigns have:

  • Data-driven projections - Calculations based on realistic assumptions, not hopium
  • Efficiency tracking - Cost per $1M volume, cost per $1 TVL matter more than raw spend
  • EG honesty - Equilibrium Gains are market-dependent and unpredictable; model scenarios, don't guess
  • Clear graduation path - Every campaign should have criteria for reducing LM dependency
  • ROI focus - Fee revenue vs LM spend determines long-term viability

This skill answers three questions:

  1. What to spend? - LM budget to achieve target APR
  2. What to expect? - Projected TVL, volume, and efficiency metrics
  3. When to adjust? - Decision rules for scaling, maintaining, or killing campaigns

Mode Detection

Determine the operating mode based on user input:

Plan Mode (Design a new campaign):

  • User says "plan a FairFlow campaign", "new campaign", "design a campaign"
  • User has a pair in mind but no projections yet
  • User wants help setting LM budget and targets

Analysis Mode (Calculate specific metrics):

  • User says "calculate LP APR", "what's the LM APR", "estimate break-even"
  • User has specific numbers and wants calculations
  • User wants to understand a single metric

Review Mode (Evaluate existing campaign):

  • User says "evaluate campaign", "review my campaign", "is my campaign efficient"
  • User has an active campaign with actual data
  • User wants to compare actuals vs projections

If unclear, ask: *"Do you want to (1) plan a new campaign, (2) calculate specific metrics, or (3) review an existing campaign?"*


Plan Mode

Use this when helping users design new FairFlow campaigns.

Plan Mode Overview

Inputs → APR Calculations → Efficiency Projections → EG Scenarios → Validation

Step 1: Gather Campaign Inputs

Ask (using AskUserQuestion):

Pool Configuration - What pair? (e.g., MON/USDC) - Which chain? - What fee tier? (0.01%, 0.05%, 0.30%) - Fee tier in bps? (1, 5, 30 — needed for EG adjustment calculation)
LM Configuration - What LM token? (KNC or partner token) - Current LM token price? - Campaign duration? (weeks)
Targets & Competition - What's your target TVL? - What's the competitor APR you're competing against? - What APR gap do you want to maintain? (+15%, +25%, etc.)
Current State - Current TVL (if any)? - Current daily volume (if any)?

Step 2: Calculate APR Components

Use the formulas to calculate each APR component.

See references/formulas.md for all calculation formulas.

LP Fee APR:

Daily Fee Revenue = Volume × bps
LP Fee APR = (Daily Fee Revenue / TVL) × 365

LM APR (solve for LM budget):

Required LM APR = Target Total APR - LP Fee APR - EG APR (estimated)
Daily LM Value = (LM APR × TVL) / 365
Daily LM Tokens = Daily LM Value / Token Price

Base APR (without EG):

Base APR = LP Fee APR + LM APR

Step 3: Model EG Scenarios

EG (Equilibrium Gains) cannot be predicted. Always present three scenarios. EG multipliers scale inversely with fee tier — lower-fee pools capture proportionally more EG relative to fees.

Fee-tier adjustment:

EG Multiplier = Scenario Base × (5 / pool_bps)
ScenarioBase (at 0.05%)AdjustmentWhen This Happens
Low0.50× (5 / bps)Low volatility, stable markets
Mid1.00× (5 / bps)Normal market conditions
High2.00× (5 / bps)High volatility, active arbitrage

Adjusted multipliers by fee tier:

Fee TierbpsLowMidHigh
0.01%12.505.0010.00
0.05%50.501.002.00
0.30%300.080.170.33

Example at 0.01% (1 bp): If LP Fee APR = 7.30%

  • Low EG: 18.25% (2.50 × 7.30%)
  • Mid EG: 36.50% (5.00 × 7.30%)
  • High EG: 73.00% (10.00 × 7.30%)

Example at 0.05% (5 bp): If LP Fee APR = 7.30%

  • Low EG: 3.65% (0.50 × 7.30%)
  • Mid EG: 7.30% (1.00 × 7.30%)
  • High EG: 14.60% (2.00 × 7.30%)

Total APR by scenario:

Total APR = LP Fee APR + EG APR + LM APR

Step 4: Project Weekly Metrics

Build a weekly projection table:

WeekTVL TargetVolume TargetVol/TVLLP Fee APRLM APRBase APREG LowEG MidEG HighTotal (Mid)Weekly LMCumulative LM
1
2
3
4

Step 5: Calculate Efficiency Metrics

For each week, calculate:

MetricFormulaTarget
LM Cost per $1M VolumeWeekly LM Spend / (Weekly Volume / 1M)< $1,000
LM Cost per $1K TVLMonthly LM Spend / (TVL / 1K)< $50
Cost per $1 TVL AcquiredCumulative LM / (Current TVL - Starting TVL)< $0.10
Fee Revenue RatioMonthly Fee Revenue / Monthly LM Spend> 50%

See references/benchmarks.md for efficiency targets.

Step 6: Validate Campaign

Run validation checks:

APR Gap Check:

  • Is APR gap sufficient? (> 15% minimum, > 25% strong)
  • Is gap maintained across all EG scenarios?

Efficiency Check:

  • LM cost per $1M volume < $1,000?
  • Cost per $1 TVL acquired < $0.10?

Sustainability Check:

  • What Vol/TVL is needed to self-sustain without LM?
  • Is that Vol/TVL realistic for this pair?

See references/decision-framework.md for decision rules.

Plan Mode Output

Produce a Campaign Plan document:

# FairFlow Campaign: [PAIR]

## Overview
| Field | Value |
|-------|-------|
| **Pair** | [TOKEN_A/TOKEN_B] |
| **Chain** | [Chain] |
| **Fee Tier** | [X%] ([X] bps) |
| **EG Adjustment** | 5 / [bps] = [X]× (Low: [X], Mid: [X], High: [X]) |
| **Duration** | [X weeks] |
| **Total Budget** | [X tokens] ($X USD) |
| **Target TVL** | $[X] |

## APR Breakdown

### By Week
| Week | TVL | Volume | Vol/TVL | Fee APR | LM APR | Base APR | EG (Low/Mid/High) | Total (Mid) |
|------|-----|--------|---------|---------|--------|----------|-------------------|-------------|
| 1 | | | | | | | | |
| ... | | | | | | | | |

### Competitive Positioning
| Scenario | Total APR | vs Competitor | Gap |
|----------|-----------|---------------|-----|
| Low EG | X% | X% | +X% |
| Mid EG | X% | X% | +X% |
| High EG | X% | X% | +X% |

## Efficiency Metrics
| Metric | Week 1 | Week 4 | Target | Status |
|--------|--------|--------|--------|--------|
| LM per $1M Volume | | | <$1,000 | |
| Cost per $1 TVL | | | <$0.10 | |
| Fee Revenue Ratio | | | >50% | |

## Graduation Path
- Break-even Vol/TVL: [X]
- Current projected Vol/TVL: [X]
- Path to reduce LM: [description]

## Success Criteria
| Criteria | Threshold | Action |
|----------|-----------|--------|
| Ship | [condition] | Scale up |
| Maintain | [condition] | Continue as-is |
| Kill | [condition] | Stop campaign |

## Weekly Review Checklist
- [ ] TVL vs target (within 20%?)
- [ ] Vol/TVL ratio (above 1.5?)
- [ ] APR gap still competitive?
- [ ] LM efficiency improving?
- [ ] External factors (competitor moves, market)?
- [ ] Decision: Scale / Maintain / Reduce / Kill

Analysis Mode

Use this when users need specific metric calculations.

Common Calculations

"What LM budget do I need for X% APR?"

Daily LM Value = (Target LM APR × TVL) / 365
Weekly LM USD = Daily LM Value × 7
Weekly LM Tokens = Weekly LM USD / Token Price

"What's my LP Fee APR?"

Daily Fee Revenue = Daily Volume × Fee Tier (as decimal)
LP Fee APR = (Daily Fee Revenue / TVL) × 365

"What Vol/TVL do I need to break even?"

Required Fee APR = Target APR - Expected EG APR
Vol/TVL = Required Fee APR / (Fee Tier × 365)

"Is my campaign efficient?"

LM Cost per $1M Volume = Weekly LM Spend / (Weekly Volume / 1,000,000)
< $1,000 = Good, < $500 = Excellent

See references/formulas.md for the complete formula reference.

Analysis Output

Provide calculations with work shown:

## Calculation: [Metric Name]

### Inputs
- [Input 1]: [Value]
- [Input 2]: [Value]

### Formula

[Formula here]

### Calculation

[Step-by-step calculation]

### Result
**[Metric Name]:** [Value]

### Interpretation
[What this means, whether it's good/bad, what to do about it]

Review Mode

Use this when evaluating active campaigns against projections.

Step 1: Gather Actual Data

Ask:

Current Campaign Status - Current TVL (actual)? - Current daily volume (actual)? - Weekly LM spend to date? - Campaign week number?
Projected vs Actual - What were your TVL projections? - What were your volume projections?

Step 2: Calculate Variance

MetricProjectedActualVariance
TVL$X$X+/- X%
Volume$X$X+/- X%
Vol/TVLXX+/- X%
LP Fee APRX%X%+/- X%

Step 3: Apply Decision Framework

Based on actuals, recommend action:

ConditionAction
TVL growth > 20% WoW AND Vol/TVL > 1.5Scale LM +25%
TVL growth > 10% WoW AND APR gap > 20%Maintain current LM
TVL flat AND Vol/TVL > 2.0Reduce LM -15%
TVL declining AND APR gap > 30%Diagnose external factors
TVL < 50% of target after 2 weeksKill campaign
Vol/TVL < 0.5 for 2 consecutive weeksKill campaign
LM Cost per $1M Volume > $2,000Kill campaign

See references/decision-framework.md for complete decision rules.

Step 4: Check Graduation Criteria

Graduation SignalStatus
Base APR (Fees + EG) > Competitor APRCan begin LM reduction
TVL stable for 4 weeks at reduced LMContinue reduction
Vol/TVL > 2.5 sustainedPool is self-sustaining

Review Output

## Campaign Review: [PAIR] - Week [X]

### Performance Summary
| Metric | Projected | Actual | Variance | Status |
|--------|-----------|--------|----------|--------|
| TVL | $X | $X | X% | ✅/⚠️/❌ |
| Volume | $X | $X | X% | ✅/⚠️/❌ |
| Vol/TVL | X | X | X% | ✅/⚠️/❌ |

### Efficiency
| Metric | Actual | Target | Status |
|--------|--------|--------|--------|
| LM per $1M Vol | $X | <$1,000 | ✅/❌ |
| Cost per $1 TVL | $X | <$0.10 | ✅/❌ |

### Decision
**Recommendation:** [Scale / Maintain / Reduce / Kill]
**Reasoning:** [Why this recommendation]

### Next Week Actions
1. [Action item]
2. [Action item]

Integration Points

SkillHow FairFlow Calculator Connects
mkt-funnel-plannerCampaign metrics feed into broader funnel tracking; LP retention is a funnel stage
mkt-initiative-plannerFairFlow campaigns become initiative proposals with defined hypotheses and success criteria

When working with these skills:

  • Campaign success criteria align with initiative KPIs
  • LP retention metrics connect to funnel D30/D90 tracking
  • Campaign budgets inform initiative resource planning

How to Work

  • Show your math: Always display calculations step-by-step, not just final answers
  • EG is unpredictable: Never present EG as a single number; always show Low/Mid/High scenarios
  • Efficiency > raw spend: A $50K campaign that's inefficient is worse than a $10K efficient one
  • Challenge unrealistic targets: If Vol/TVL assumptions are aggressive, say so
  • Kill criteria matter: Every campaign needs clear conditions for stopping
  • Graduation path: Always define how the campaign becomes self-sustaining
  • Weekly reviews: Recommend actual vs projected comparison weekly

Anti-Patterns to Avoid

Don'tDo
Present single EG projectionAlways show Low/Mid/High scenarios
Ignore efficiency metricsCalculate cost per $1M volume and cost per $1 TVL
Skip break-even analysisAlways show what Vol/TVL is needed to self-sustain
Set targets without kill criteriaDefine stop conditions upfront
Assume LM continues foreverPlan graduation path from day one

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.69%
按下载量换算30

Claude

31.36%
按下载量换算26

Cursor

18.79%
按下载量换算16

Gemini CLI

8.58%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills