phoenix-docs-sync

Sync calculation documentation and JSDoc with actual module behavior.

Updated Jul 21, 2025
One-click install
npx skills add https://github.com/nikhillinit/Updog_restore --skill phoenix-docs-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phoenix-docs-sync
Source: https://github.com/nikhillinit/Updog_restore/tree/main/.claude/skills/phoenix-docs-sync
Command: npx skills add https://github.com/nikhillinit/Updog_restore --skill phoenix-docs-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates documentation drift by automatically syncing calculation docs and JSDoc with actual implementation behavior.

Frequently Asked Questions about phoenix-docs-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep documentation in sync with calculation code changes?

Documentation drift occurs when code behavior changes but JSDoc and calculation docs aren't updated. This Skill automatically syncs documentation with actual implementation after modifications to XIRR, waterfall, fees, capital allocation, exit recycling, or reserve logic, ensuring docs describe what the module computes.

When should I update JSDoc after changing calculation logic?

Update JSDoc whenever non-trivial changes occur to calculation modules, including truth-case semantics, clawback, or precision clarifications. This Skill triggers documentation updates automatically, adding parameters, returns, and semantics to prevent information from becoming outdated.

What does documentation sync cover for calculation modules?

Synchronization includes plain English descriptions of module computations, key assumptions and invariants, truth-case ID references, and JSDoc parameters and returns. It targets XIRR, waterfall, fees, capital allocation, exit recycling, and reserve logic changes.

Can documentation stay accurate without manual updates to JSDoc?

Manual JSDoc updates create drift risk between code behavior and documentation. Automated synchronization eliminates this by linking documentation updates directly to calculation changes, ensuring JSDoc semantics remain consistent with actual module behavior.

How do I document assumptions and invariants in calculation code?

This Skill ensures documentation highlights key assumptions and invariants alongside parameter and return descriptions in JSDoc. When calculation logic changes, documentation updates to reflect new constraints and behaviors.