计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
leave-management【效率与协作】Leave register: request, leave type, employee and department, manager and approver, start and end dates, days requested, leave balances, handover notes and status. Use for leave tracking.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
What it is: Leave tracking.
Works out the smallest useful Leave Management setup for the business in front of it, then builds it only when asked. The default output is a short recommendation, not a spreadsheet. Artifacts - CSV, SQL DDL, JSON Schema, Notion mapping - are produced on request, from one field list so they cannot drift apart.
Layer: Layer 4: Manage. Fits: Starter stage. Table code: n/a.
Also use it when the user says "leave tracking", or describes the same process happening in a spreadsheet, a document or someone inboxes.
Do not use it for: payroll calculation, tax filing, or legal advice. This skill produces empty templates only - it never holds or processes real employee or customer data.
Follow the shared execution contract. The module-specific rules below define only domain fields, decisions, calculations, and safety constraints.
Read the request and pick the intent before asking anything.
Ask only if this is the highest-value missing fact; otherwise proceed without an opener:
Q: How many people need leave tracking?
Skip anything the user already answered, in any earlier message. Ask the rest one at a time, and stop as soon as the remaining answers would not change the output.
Never invent an answer. If the user does not know, record it as unknown and carry on.
Hold the answers in this shape. It stays internal - it is not shown to the user unless they ask, and it never carries a value the user did not give.
module: leave-management
intent: null # setup | advice | review | fix | build | convert | export
scale: null # Starter | Growth | Scale, only if the answer changes it
areas:
"Scope": null
"Rules": null
"Process": null
"Current process": null
"Outcome": null
requested_outputs: [] # csv | sql | json | notion | xlsx - requested formats only
confirmed_facts: [] # only what the user actually said
open_questions: [] # the unanswered ones, in the order worth asking
If an artifact was requested, build it after resolving essential missing facts. Otherwise give a short recommendation and offer the relevant artifact.
Recommended approach: Keep leave in the tool people already use and add the missing approval and balance steps, not a new system.
Why this one: Leave records go stale when balances and requests live apart. One place for both, with an approval state, keeps them consistent.
Workflow: Request → Manager approval → Calendar entry → Balance update → Report
Once the user asks for it, derive the fields from the confirmed context and emit the requested artifacts. For machine-readable text, keep prose outside the data; for files, provide a usable link. Report material validation failures or limitations separately.
A selected Notion output is rendered by notion-manual-import, so route the
Notion step there. When the user selects Notion, hand that step to
@notion-manual-import: it holds the CSV, the property
mapping, the import steps and the verification checklist, and it renders the Field
Reference below instead of defining a table of its own. Do not restate the mapping
here and do not improvise the import steps. Manual CSV and mapping outputs need no
connection. For requested workspace changes, follow the shared contract: verify actual
tool access and the target before writing. A user saying "connected" is not tool evidence.
Never ask for a Notion password or token.
For an Excel-compatible CSV, use UTF-8 with a byte order mark so Excel opens the
text correctly. A CSV is not an .xlsx workbook; create .xlsx only when the user
requests a workbook.
A CSV carries no types, so after it, name the columns
that need a number, date or currency format applied.
Leave Request,Annual Leave Balance,Approver,Days Requested,Department,Emergency Contact,Employee Name,End Date,Handover Notes,Leave ID,Leave Type,Manager,Notes,Reason,Sick Leave Balance,Start Date,Status
2026-02-10 to 2026-02-12,14,Sneha Iyer,3,Delivery,Anil Sharma,Aarav Sharma,2026-02-12,Client handover to Rohit Verma,,Annual,Sneha Iyer,Approved by the reporting manager; handover agreed with the team.,Family commitment,8,2026-02-10,Taken
CREATE TABLE leave_management (
leave_request VARCHAR(255),
annual_leave_balance NUMERIC NOT NULL,
approver VARCHAR(255),
days_requested NUMERIC NOT NULL,
department VARCHAR(255),
emergency_contact VARCHAR(255),
employee_name VARCHAR(255),
end_date DATE NOT NULL,
handover_notes TEXT,
leave_id SERIAL PRIMARY KEY,
leave_type VARCHAR(100) NOT NULL,
manager VARCHAR(255),
notes TEXT,
reason VARCHAR(255),
sick_leave_balance NUMERIC NOT NULL,
start_date DATE NOT NULL,
status VARCHAR(100) NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
CREATE INDEX idx_leave_management_status ON leave_management (status);
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Leave Management",
"type": "object",
"additionalProperties": false,
"properties": {
"Leave Request": { "type": "string" },
"Annual Leave Balance": { "type": "number" },
"Approver": { "type": "string" },
"Days Requested": { "type": "number" },
"Department": { "type": "string" },
"Emergency Contact": { "type": "string" },
"Employee Name": { "type": "string" },
"End Date": { "type": "string", "format": "date" },
"Handover Notes": { "type": "string" },
"Leave ID": { "type": "integer" },
"Leave Type": { "type": "string" },
"Manager": { "type": "string" },
"Notes": { "type": "string" },
"Reason": { "type": "string" },
"Sick Leave Balance": { "type": "number" },
"Start Date": { "type": "string", "format": "date" },
"Status": { "type": "string" }
},
"required": [
"Annual Leave Balance",
"Days Requested",
"End Date",
"Leave Type",
"Sick Leave Balance",
"Start Date",
"Status"
]
}
| CSV column | Notion property | Set after import |
|---|---|---|
| Leave Request | Title | Use as the database title |
| Annual Leave Balance | Number | Convert to Number |
| Approver | Text | Leave as Text |
| Days Requested | Number | Convert to Number |
| Department | Text | Leave as Text |
| Emergency Contact | Text | Leave as Text |
| Employee Name | Text | Leave as Text |
| End Date | Date | Convert to Date |
| Handover Notes | Text | Leave as Text |
| Leave ID | Text (preserve source ID) | Keep imported IDs as Text; optionally add a separate Unique ID property |
| Leave Type | Select (add options after import) | Convert to Select, add options: "Annual", "Sick", "Casual", "Unpaid", "Maternity", "Paternity", "Comp Off" |
| Manager | Text | Leave as Text |
| Notes | Text | Leave as Text |
| Reason | Text | Leave as Text |
| Sick Leave Balance | Number | Convert to Number |
| Start Date | Date | Convert to Date |
| Status | Select (add options after import) | Convert to Select, add options: "Pending", "Approved", "Declined", "Cancelled", "Taken" |
The rows above are documentation examples only. Emit empty templates unless the user explicitly requests examples. Money stays currency, dates stay date,
and anything pointing at another table stays relation.
| # | Field | Type | SQL | JSON Schema | Notion | CSV example |
|---|---|---|---|---|---|---|
| 1 | Leave Request | text | VARCHAR(255) | string | Text | 2026-02-10 to 2026-02-12 |
| 2 | Annual Leave Balance | number | NUMERIC | number | Number | 14 |
| 3 | Approver | text | VARCHAR(255) | string | Text | Sneha Iyer |
| 4 | Days Requested | number | NUMERIC | number | Number | 3 |
| 5 | Department | text | VARCHAR(255) | string | Text | Delivery |
| 6 | Emergency Contact | text | VARCHAR(255) | string | Text | Anil Sharma |
| 7 | Employee Name | text | VARCHAR(255) | string | Text | Aarav Sharma |
| 8 | End Date | date | DATE | string, format: date | Date | 2026-02-12 |
| 9 | Handover Notes | long_text | TEXT | string | Text | Client handover to Rohit Verma |
| 10 | Leave ID | id | SERIAL PRIMARY KEY | integer | Text (preserve source ID) | (blank) |
| 11 | Leave Type | select | VARCHAR(100) | string | Select (add options after import) | Annual |
| 12 | Manager | text | VARCHAR(255) | string | Text | Sneha Iyer |
| 13 | Notes | long_text | TEXT | string | Text | Approved by the reporting manager; handover agreed with the team. |
| 14 | Reason | text | VARCHAR(255) | string | Text | Family commitment |
| 15 | Sick Leave Balance | number | NUMERIC | number | Number | 8 |
| 16 | Start Date | date | DATE | string, format: date | Date | 2026-02-10 |
| 17 | Status | select | VARCHAR(100) | string | Select (add options after import) | Taken |
Leave Type
Annual | Sick | Casual | Unpaid | Maternity | Paternity | Comp Off
Status
Pending | Approved | Declined | Cancelled | Taken
Link fields: none
Prompt
We are 12 people and want leave requests approved in one place.
Context first - one question per message, nothing already answered:
Q: Which leave types? A: Annual, sick and casual.
Q: Who approves? A: The reporting manager.
Q: What do you use today? A: Google Sheets.
Recommended next step - offered, not built:
Keep leave in the tool people already use and add the missing approval and balance steps, not a new system.
Workflow: Request → Manager approval → Calendar entry → Balance update → Report
Want the CSV, SQL, JSON Schema and Notion mapping for this?
relation for anything that points at another table, text only for free text.currency, never text. Dates are date, never free text.I want to set up leave tracking for my company.
Ask me one short question at a time, and only about what I have not already told you.
Then recommend the smallest setup that fits, and wait for me to ask before you build it.
When I ask, output CSV, SQL DDL, JSON Schema, a Notion property mapping or an Excel workbook. Data only.