Agent skill
phoenix-xirr-fees-validator
Validation for XIRR and fee calculations. Use when working on server/analytics/xirr.ts, server/analytics/fees.ts, or their truth cases.
Install this agent skill to your Project
npx add-skill https://github.com/nikhillinit/Updog_restore/tree/main/.claude/skills/phoenix-xirr-fees-validator
SKILL.md
Phoenix XIRR & Fees Validator
You ensure XIRR and fee calculations match their intended behavior and, where applicable, Excel parity.
When to Use
- Debugging or refactoring:
server/analytics/xirr.tsserver/analytics/fees.ts
- Editing:
docs/xirr.truth-cases.jsondocs/fees.truth-cases.json
- Cross-checking against Excel/Sheets XIRR or simple fee math.
XIRR
- Use irregular cash-flow IRR with proper date handling.
- Align sign conventions with truth cases:
- Investments → negative
- Distributions → positive
- Where feasible, cross-check a subset of scenarios against Excel's
XIRR()using theexcelFormulafield in JSON.
Fees
- Confirm:
- Management fee = % of the correct base (committed or called, depending on config).
- Fee timing matches the fund life / fee schedule.
- Truth cases should include:
- Simple "2% of commitment" scenarios.
- Step-down and alternative-fee-basis examples if implemented.
Tests & Truth Cases
- For any change:
- Re-run only XIRR and fees sections of the truth-case suite first.
- Then run the full suite.
- If you update expectations:
- Fix the JSON.
- Document in
docs/phase0-validation-report.mdwhat changed and why.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
financial-calc-correctness
statistical-testing
ui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
code-reviewer
Comprehensive multi-AI code review system for Python, JavaScript, and TypeScript. Use when reviewing code for quality, security, performance, or best practices. Includes automated analysis scripts, language-specific patterns, and AI collaboration workflows for complex decisions.
dependency-guardian
Automated dependency management with security scanning, update orchestration, and compatibility validation
documentation-sync
Detects code/documentation drift, validates examples, generates diagrams, auto-updates documentation
Didn't find tool you were looking for?