availability
它能做什么
这项技能说明预约系统如何根据每周工作时间、日期例外设置、出行和外出时间,计算出可用时段。适合构建或修复排程功能的开发者。
适用场景
- ✓当你为排程应用构建或修复可用时间规则的时候。
- ✓当用户要求屏蔽某一天或更改其工作时间的时候。
- ✓当某人表示他们外出,不应再接受预约的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/availability/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请屏蔽下周五,并修改我的午餐时间,让别人在那段时间无法预约我。”
每周 5 个新技能,1 分钟读完。
工作原理
每周工作时间构成基础日程,之后日期例外设置可以屏蔽某一天或设定特殊时间。外出记录和出行日程会增加进一步的限制。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Availability
Schedule
A named set of rules (e.g. "Working Hours"). Each user has ≥1 schedule and
marks one as isDefault. Event types either use the user's default or
reference a specific schedule.
Timezone is set on the schedule, not the user — lets you have a "Europe hours" schedule and a "US hours" schedule for the same person.
Weekly availability
Rows in schedule_availability: (day 0-6, startTime "HH:MM", endTime
"HH:MM"). You can have multiple intervals per day — e.g. Mon 9-12 and 1-5.
Date overrides
Rows in date_overrides: (date "YYYY-MM-DD", intervals JSON).
intervals: []→ day fully blocked.intervals: [{start, end}]→ only those times available on that date.
Travel schedules
travel_schedules overrides the user's default timezone for a date range.
Out of office
out_of_office_entries blocks bookings across a range, optionally with a
redirect to another team member.
Common tasks
| User request | Action |
|---|---|
| "I'm unavailable next Friday" | add-date-override --scheduleId <id> --date 2026-04-10 --intervals [] |
| "I take lunch 12-1 weekdays" | update-schedule --weeklyAvailability [...9-12, 13-17...] |
| "Create evenings schedule" | create-schedule --name Evenings --weeklyAvailability [...] |
| "Going to Tokyo next week" | Insert a travel_schedules row (no dedicated action yet) |
常见问题
某个日期的空例外设置意味着什么?
表示整天都被屏蔽。
一个人可以拥有多个日程吗?
可以。一个人可以有多个命名的日程,并将其中一个标记为默认日程。
日程使用哪个时区?
时区设置在日程本身上,而不是在用户身上。
详情
作者的原始描述
How schedules, weekly rules, date overrides, travel schedules, and out-of-office entries combine to determine when someone is bookable.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13195
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …