Agent skill

phoenix-reserves-optimizer

Reserve allocation and follow-on optimization for the Phoenix fund model. Use when working on deterministic reserve engine logic and optimal reserves ranking.

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-reserves-optimizer

SKILL.md

Phoenix Reserves Optimizer

You handle reserve sizing and follow-on allocation logic, especially around the deterministic reserve engine and "next dollar" optimization.

When to Use

  • When implementing or refactoring:
    • DeterministicReserveEngine.calculateReserves(...)
    • Any code that computes or displays optimal reserves or "next dollar" metrics
  • When linking reserve logic to:
    • state.forecastResult.portfolio
    • state.graduationMatrix
    • state.stageStrategies

Core Concepts

  • Inputs:

    • Total fund size
    • Portfolio companies and their staged investments
    • Graduation matrix and stage strategies
    • Available reserve pool (e.g., 40% of total capital)
  • Outputs:

    • Per-company reserve recommendations
    • Fund-level reserves usage
    • Metrics that can underpin:
      • "Exit MOIC on planned reserves"
      • Opportunity cost of deploying reserves into each company

Workflow

  1. Compute:

    • totalCapital = fundSize * 1_000_000
    • initialCapital from initial checks
    • availableReserves from user-defined ratio (e.g., 40%)
  2. Call the reserve engine with:

    • Portfolio
    • Graduation matrix
    • Stage strategies
    • Available reserves
  3. Verify:

    • Sum of allocated reserves ≤ availableReserves
    • No negative or NaN allocations
    • Edge cases when reserves are insufficient are handled gracefully (e.g., proportional scaling).
  4. Document:

    • Any assumptions about prioritization (e.g., later-stage vs earlier-stage deals).
    • How reserves are scored/ranked.

Validation Patterns

Edge Cases to Test

  • Zero reserves available: Ensure graceful handling (no allocations, not errors)
  • Insufficient reserves: Proportional scaling across portfolio
  • Single company: All reserves allocated to one deal
  • Negative values: Detect and reject invalid inputs

Example Validation

typescript
// Reserve allocation constraints
expect(totalAllocated).toBeLessThanOrEqual(availableReserves);
expect(allocations.every((a) => a >= 0)).toBe(true);
expect(allocations.some(isNaN)).toBe(false);

Invariants

  • Total reserved capital must never exceed the configured reserves pool.
  • Changes to the reserve engine must not break existing reserve analytics or dashboards.

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