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.

Stars 0
Forks 0

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.ts
    • server/analytics/fees.ts
  • Editing:
    • docs/xirr.truth-cases.json
    • docs/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 the excelFormula field 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.md what changed and why.

Expand your agent's capabilities with these related and highly-rated skills.

nikhillinit/Updog_restore

financial-calc-correctness

0 0
Explore
nikhillinit/Updog_restore

statistical-testing

0 0
Explore
nikhillinit/Updog_restore

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.

0 0
Explore
nikhillinit/Updog_restore

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.

0 0
Explore
nikhillinit/Updog_restore

dependency-guardian

Automated dependency management with security scanning, update orchestration, and compatibility validation

0 0
Explore
nikhillinit/Updog_restore

documentation-sync

Detects code/documentation drift, validates examples, generates diagrams, auto-updates documentation

0 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results