booking-rules
Book a meeting into the team's calendar files under the booking policy. Use when asked to schedule, book or find a time for a meeting by editing the calendars/ and rooms/ files of a workspace that has request.json and policy.md.
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 126
- Forks
- 10
01 前言 Front Matter
- name
- booking-rules
- description
- Book a meeting into the team's calendar files under the booking policy. Use when asked to schedule, book or find a time for a meeting by editing the calendars/ and rooms/ files of a workspace that has request.json and policy.md.
02 资源文件 1
- 脚本scripts/free_slots.py5.3 KB
03 SKILL.md 正文
Booking rules
How the calendar team books a meeting. policy.md in the workspace is the policy; this skill is how we apply it.
The workspace
request.json: attendees, optional invitees, duration, window, granularity, preference and priority.calendars/<person>.jsonandrooms/<room>.json: the entries of each person and room. A calendar also holds the person'sutc_offsetandwork_hours; a room holds itscapacityandfeatures.policy.jsonholds the rules andpolicy.mdis generated from it. Readpolicy.md; never edit either.
Rules we apply
- Every required attendee must be inside their work hours, in their own
utc_offset, and free. Optional invitees never restrict the time. - Start times lie on the request's granularity grid, counted from the start of the window, and the meeting ends inside the window.
- Buffers.
buffer_minutesinpolicy.jsonis a gap: keep at least that many minutes between the new meeting and every other entry on each required attendee's calendar, on both sides. - With rooms, book one that is free for the whole meeting and seats every required attendee.
- Honour
preference: the earliest or the latest valid start;anytakes any valid start.
Recording the booking
Add one new entry with a unique id to each required attendee's calendar and to the room's file. Leave every existing entry exactly as it is. Then write result.json as {"booked": {"start", "end", "room", "event_id"}}, or {"infeasible": true, "explanation": "..."} when no valid start exists, and book nothing.
Helper
scripts/free_slots.py in this skill's directory lists candidate starts, earliest first, with the rooms free and large enough for each:
python free_slots.py --workspace . --limit 10
python free_slots.py --workspace . --latest
It applies the busy, work-hours, grid and buffer rules above. It is a starting point, not the whole policy.
Not covered
- Room features. A
room_featurerule inpolicy.jsonrequires a feature when enough people attend. The helper lists rooms by capacity and availability only; checkfeaturesin the room files yourself. - Focus-block exceptions. The helper treats focus entries (
"kind": "focus") like any other busy time. When the policy lets an urgent request book over focus blocks, work that out yourself.
04 同仓库更多 Skills
style-demo
Create a small Python example under this library's style preferences.
verified-invoice
Review an existing invoice against source data, with at most one repair and the caller's required checks.
invoice-packet
Prepare a checked internal invoice and a public summary from an existing invoice and its source.
orch-work
Delegate a requested result to a fresh native child agent with relevant guidance. Use when a workflow names it or the user selects it; ordinary requests use orch-dynamic-workflow. Top-level coordinators only.
orch-review
Delegate independent review of identified work to a fresh native child who did not make it, without repairs. Use when a workflow names it or the user selects it; ordinary requests use orch-dynamic-workflow. Top-level coordinators only.
orch-dynamic-workflow
Plan and complete ordinary top-level tasks with core guidance and proportionate independent review, unless the user selects a workflow or primitive. Not for child assignments or questions about the library.