Communitygithub.com

财务规划

收入仪表盘、MRR/ARR计算、烧钱率跟踪与财务预测。

财务规划 是什么?

该技能旨在为SaaS或订阅制业务提供全面的财务规划功能。它支持关键指标计算,包括月度经常性收入(MRR)、年度经常性收入(ARR)、净收入留存率及烧钱率,并自动生成现金流跑道时间。技能要求严格遵循金融数据处理规范:所有金额以美分整数存储,禁止使用浮点数;MRR需分解为新收入、扩展收入、收缩收入、流失收入和重新激活收入,并以瀑布图展示。默认展示过去12个月的数据,支持自定义日期范围,按日存储事件、按月聚合趋势。财务预测模块可生成保守、基准、乐观三种场景模型,变化增长率和流失率,预测未来12至24个月。该技能适用于Claude Code、Cursor等主流AI Agent平台,帮助开发者和财务人员快速搭建实时、准确的财务仪表盘。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/financial-planning

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

财务规划 是做什么的?

规则

  • MRR 计算:所有活跃订阅的月度价值之和 — 年度计划除以 12,排除一次性收费
  • ARR:MRR * 12 — 在仪表盘上同时显示两者,使用 MRR 进行月度趋势分析,使用 ARR 进行年度规划
  • MRR 构成:跟踪新增 MRR、扩展 MRR(升级)、收缩 MRR(降级)、流失 MRR(取消)、重新激活 MRR — 以瀑布图展示
  • 烧钱率:(期初现金 - 期末现金)/ 月份数 — 按月计算,以当前烧钱率显示跑道月数
  • 收入仪表盘:显示 MRR、ARR、MRR 增长率(月环比%)、净收入留存率、总客户数 — 每日更新
  • 财务预测:建模 3 种场景(保守、基准、乐观)— 变化增长率和流失率,预测 12-24 个月
  • 货币处理:所有金额以美分(整数)存储 — 绝不对货币使用浮点数 — 使用 Intl.NumberFormat 显示
  • 日期范围:默认为过去 12 个月,允许自定义范围 — 按月聚合趋势,按日聚合近期活动

仪表盘数据模型

CREATE TABLE revenue_events (
  id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
  type TEXT NOT NULL, -- 'new' | 'expansion' | 'contraction' | 'churn' | 'reactivation'
  amount_cents INTEGER NOT NULL,
  customer_id UUID NOT NULL,
  occurred_at DATE NOT NULL,
  created_at TIMESTAMP DEFAULT NOW()
);

按月聚合 MRR:SELECT date_trunc('month', occurred_at), type, SUM(amount_cents) FROM revenue_events GROUP BY 1, 2。

避免

  • 对货币使用浮点数 — 全程使用整型美分
  • 不区分构成计算 MRR — 你需要知道 MRR 变化的原因
  • 仅按月度粒度 — 存储每日事件,聚合用于展示
  • 忽略收缩 MRR — 降级是早期流失信号

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能