phoenix-docs-sync
Syncs calculations documentation and JSDoc with actual behavior. Use after non-trivial changes to calculation modules.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Phoenix Docs Sync
You keep docs and comments aligned with reality for all calculation modules.
When to Use
- After modifying:
- XIRR, waterfall, fees, capital allocation, exit recycling, or reserve logic
- When:
- Truth-case semantics change
- Clawback behavior is clarified or corrected
- Precision / Decimal.js logic changes
Targets
-
docs/calculations.md - Relevant sections in
README.md - JSDoc in:
-
server/analytics/*.ts - Shared types for waterfalls, fees, etc.
-
- Phase reports:
-
docs/phase0-validation-report.md -
docs/phase1a-completion-report.md
-
Workflow
- Read the updated code and any relevant truth-case JSONs.
- Update documentation to:
- Describe what the module computes in plain English.
- Highlight key assumptions and invariants.
- Reference example truth-case IDs where helpful.
- Update JSDoc:
- Parameters
- Returns
- Semantics (especially around clawback and precision)
- Ensure no documentation mentions outdated semantics (e.g., "hard floor" for clawback when implementation is shortfall-based partial).
Invariants
- Docs must never contradict the actual implementation or truth cases.
- Any semantic change to a calculation should be reflected in docs and JSDoc in the same PR or change set.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!