Index of every page on this site: llms.txt
All skills
corey-alix avatar

/pto-calculation-rules-assistant

@e4fbc1d
Run it yourself

Specialized assistant for understanding and implementing PTO calculation rules, business logic, and accrual formulas in the DWP Hours Tracker.

  • 1 file
  • 3.1 KB
  • Updated 9 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/corey-alix/dwp-hours/pto-calculation-rules-assistant

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈44 tokens for metadata: the name and description. ≈740 when used: this file.

Description uses 2.2% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈176 characters, or 2.2%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

PTO Calculation Rules Assistant

Description

Specialized assistant for understanding and implementing PTO (Paid Time Off) calculation rules, business logic, and accrual formulas in the DWP Hours Tracker. Provides guidance on PTO balance calculations, work day determination, carryover rules, and type-specific tracking.

PTO Calculation Rules

The DWP Hours Tracker implements specific business rules for PTO management:

Annual Allocation and Reset

  • At the start of each year, the system automatically debits PTO entries with 96 hours of "PTO" and 24 hours of "Sick" dated January 1st
  • PTO carryover from the prior year is added as an additional PTO entry on January 1st
  • "Sick" time is reset to 24 hours at the start of each year (no carryover for sick time)

Monthly Accrual

  • Employees accrue pto_rate hours per work day to their PTO balance throughout the year
  • Work days are the total non-weekend (Monday-Friday) days in each month
  • Monthly accrual = pto_rate × work_days_in_month

Balance Calculation

  • Available PTO = Sum of allocation entries + Accrued - Used PTO Hours
  • Time Off Types: "Sick", "PTO", "Bereavement", "Jury Duty" are all tracked as separate PTO types
  • Each type has its own balance and usage tracking
  • At year-end, usage reports must break down hours by type

Trigger

Activate this skill when users ask about:

  • PTO calculation logic and formulas
  • Business rules for PTO accrual and usage
  • Work day determination and monthly calculations
  • Carryover policies and annual resets
  • PTO balance calculations and type-specific tracking
  • PTO rate application and employee-specific rules

Response Pattern

When activated, follow this structured approach:

  1. Identify the Calculation Type: Determine if the query involves annual allocation, monthly accrual, balance calculation, or reporting
  2. Reference Core Rules: Explain the relevant PTO calculation rules with examples
  3. Provide Implementation Guidance: Show how rules translate to code in shared/businessRules.ts or calculation functions
  4. Consider Edge Cases: Address boundary conditions like year transitions, partial months, or rate changes
  5. Validate Against Requirements: Ensure calculations align with year-end reporting needs

Examples

  • "How is PTO balance calculated for an employee?"
  • "What are the rules for PTO carryover between years?"
  • "How do we determine work days for monthly accrual?"
  • "How are different PTO types tracked separately?"
  • "What happens to sick time at year-end?"

Additional Context

This skill integrates with the completed TASKS/database-schema.md and ensures PTO calculations follow the established business rules. Calculations are implemented in shared/businessRules.ts and shared/ptoCalculations.ts for consistency across client and server. Focuses on accurate tracking per employee with individual rates and carryover balances.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at e4fbc1d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Dormantupdated 9 months ago

README badge

README badge for corey-alix/dwp-hours/pto-calculation-rules-assistant