| name | Leave Eligibility Check |
| slug | leave-eligibility-check |
| department | hr |
| description | Decide whether an employee's requested leave is allowed under current HR policy. |
| requires_data_source | false |
| input_schema | {"type":"object","properties":{"employee_id":{"type":"string"},"requested_dates":{"type":"array","items":{"type":"string"}},"requested_days":{"type":"integer"}},"required":["employee_id","requested_dates"]} |
| output_schema | {"type":"object","properties":{"eligible":{"type":"boolean"},"reason":{"type":"string"}},"required":["eligible","reason"]} |
Leave Eligibility Check
When to use
A leave/vacation request needs an eligibility decision before it goes to a human approver.
What it does
- policy_check — Search the department's policy knowledge.
- llm_evaluate — Ask the LLM for a structured judgement.
- branch — Branch on a prior result; end the skill.
Notes
Execution is deterministic — the engine runs steps.yaml; this file is what the department agent reads to select the skill. Admins may edit both.