Book Padel Courts With padel-tui
Use this skill to complete Playtomic booking tasks from a terminal with minimal assumptions about prior setup.
Trigger Examples
- - "Find me a padel court in Berlin tonight."
- "Book a Playtomic court for tomorrow at 19:00."
- "Show my active matches and cancel one."
- "Install padel-tui and use it to reserve a court."
- "Use CLI instead of TUI for booking."
When To Use
- - Use when the task is to search courts, book a slot, list active matches, or cancel a match.
- Use when the user requests Playtomic actions through CLI commands.
- Do not use for non-Playtomic tasks.
Required Safety Rules
- - Ask about installation only if needed (binary missing) or explicitly requested.
- Confirm installation intent before running any install command.
- Ask: "Do you want me to install
padel-tui now, or skip installation and use your current setup?" - If installation is declined, continue with the existing binary/path.
- Do not ask the user for email or password.
- Ask the user to authenticate interactively with
<prefix> auth login. - Treat
book and match-cancel as user-impacting operations and run only after explicit user intent.
Setup Check
- 1. Select a command prefix.
- Global install:
padel-tui
- Source checkout:
./bin/padel-tui
- 2. Verify access with
<prefix> --version. - If command is missing and installation is approved, follow
references/INSTALLATION.md.
Terms (Minimal Context)
- -
tenant_id: venue or club id from search output. - INLINECODE11 : specific court id from
search output. - INLINECODE13 : slot datetime in
YYYY-MM-DDTHH:mm:ss format.
Minimal Booking Workflow
- 1. Ask the user to authenticate interactively.
- Instruct the user to run:
<prefix> auth login
- Wait for user confirmation that login is complete.
- 2. Search availability (one mode required).
-
<prefix> search --near "<city>" --date YYYY-MM-DD
-
<prefix> search --name "<venue>" --date YYYY-MM-DD
- 3. Capture booking inputs from search output.
- Record
tenant_id,
resource_id, and slot start time.
- 4. Create booking.
-
<prefix> book --tenant-id <tenant-id> --resource-id <resource-id> --start YYYY-MM-DDTHH:mm:ss --duration 60 --players 4
- 5. Verify result.
-
<prefix> matches --size 30
- 6. Cancel only when requested.
- INLINECODE22
Command Rules
- - Require one of
--near or --name for search. - Require
--tenant-id, --resource-id, and --start for book. - Keep authentication interactive; use
<prefix> auth login without credential flags. - Use
search and book; avoid legacy availability and payment groups.
Reference Files
- -
references/INSTALLATION.md - install paths, verification, and first login.
使用 padel-tui 预订板球场
使用此技能在终端中完成 Playtomic 预订任务,几乎无需预先配置。
触发示例
- - 帮我找一下今晚柏林的板球场。
- 预订明天19:00的Playtomic球场。
- 显示我的活跃比赛并取消一个。
- 安装padel-tui并用它来预订球场。
- 使用CLI而非TUI进行预订。
使用时机
- - 当任务是搜索球场、预订时段、列出活跃比赛或取消比赛时使用。
- 当用户通过CLI命令请求Playtomic操作时使用。
- 不要用于非Playtomic任务。
必需的安全规则
- - 仅在需要时(二进制文件缺失)或用户明确要求时询问安装事宜。
- 在运行任何安装命令前确认安装意图。
- 询问:您希望我现在安装padel-tui,还是跳过安装并使用您当前的配置?
- 如果拒绝安装,则继续使用现有的二进制文件/路径。
- 不要向用户询问邮箱或密码。
- 要求用户通过<前缀> auth login进行交互式身份验证。
- 将book和match-cancel视为影响用户的操作,仅在用户明确意图后执行。
环境检查
- 1. 选择命令前缀。
- 全局安装:padel-tui
- 源码检出:./bin/padel-tui
- 2. 使用<前缀> --version验证访问权限。
- 如果命令缺失且安装已获批准,请参考references/INSTALLATION.md。
术语(最小上下文)
- - tenantid:来自search输出的场馆或俱乐部ID。
- resourceid:来自search输出的具体球场ID。
- start:时段日期时间,格式为YYYY-MM-DDTHH:mm:ss。
最小预订工作流程
- 1. 要求用户进行交互式身份验证。
- 指示用户运行:<前缀> auth login
- 等待用户确认登录完成。
- 2. 搜索可用性(需要一种模式)。
- <前缀> search --near <城市> --date YYYY-MM-DD
- <前缀> search --name <场馆> --date YYYY-MM-DD
- 3. 从搜索结果中捕获预订输入。
- 记录tenant
id、resourceid和时段开始时间。
- 4. 创建预订。
- <前缀> book --tenant-id <租户ID> --resource-id <资源ID> --start YYYY-MM-DDTHH:mm:ss --duration 60 --players 4
- 5. 验证结果。
- <前缀> matches --size 30
- 6. 仅在请求时取消。
- <前缀> match-cancel --match-id <比赛ID>
命令规则
- - search命令需要--near或--name参数之一。
- book命令需要--tenant-id、--resource-id和--start参数。
- 保持身份验证的交互性;使用<前缀> auth login而不带凭据标志。
- 使用search和book;避免使用旧的availability和payment命令组。
参考文件
- - references/INSTALLATION.md - 安装路径、验证和首次登录。