Agent SkillsDenisovAV/flutter_gemma › create-calendar-event

create-calendar-event

GitHub

用于根据用户自然语言指令创建日历事件。支持相对日期(如今天、明天)和24小时制时间解析,自动映射为day_offset和hour参数,无需询问具体日期或手动计算,直接调用工具完成日程添加。

packages/flutter_gemma_agent/assets/skills/create-calendar-event/SKILL.md DenisovAV/flutter_gemma

Trigger Scenarios

用户要求创建日程安排 用户指定会议或活动的时间地点

Install

npx skills add DenisovAV/flutter_gemma --skill create-calendar-event -g -y
More Options

Non-standard path

npx skills add https://github.com/DenisovAV/flutter_gemma/tree/main/packages/flutter_gemma_agent/assets/skills/create-calendar-event -g -y

Use without installing

npx skills use DenisovAV/flutter_gemma@create-calendar-event

指定 Agent (Claude Code)

npx skills add DenisovAV/flutter_gemma --skill create-calendar-event -a claude-code -g -y

安装 repo 全部 skill

npx skills add DenisovAV/flutter_gemma --all -g -y

预览 repo 内 skill

npx skills add DenisovAV/flutter_gemma --list

SKILL.md

Frontmatter
{
    "name": "create-calendar-event",
    "description": "Create a calendar event."
}

Create calendar event

Instructions

Call the run_intent tool with the following exact parameters:

  • intent: create_calendar_event
  • parameters: A JSON string with the following fields:
    • title: the title of the event. String.
    • description: an optional description of the event. String.
    • day_offset: how many days from today the event is. Integer. 0 means today, 1 means tomorrow, 2 means the day after tomorrow, and so on.
    • hour: the start hour in 24-hour time (0–23). Integer.
    • minute: the start minute (0–59). Integer. Defaults to 0.
    • duration_minutes: how long the event lasts, in minutes. Integer. Defaults to 60.

Do NOT ask the user for an exact calendar date, and do NOT compute dates yourself. Map the user's words directly to day_offset and hour:

  • "today" → day_offset: 0
  • "tomorrow" → day_offset: 1
  • "in N days" / "the day after tomorrow" → day_offset: N (2 for the day after)
  • "3pm" → hour: 15 "noon" → hour: 12 "9am" → hour: 9 "6pm" → hour: 18

Use the title the user already gave; if they gave none, use a short sensible one. Call the tool immediately — do not ask follow-up questions when the user said a relative day and a time.

Examples:

  • "Create a Team Meeting tomorrow at 3pm" → { "title": "Team Meeting", "day_offset": 1, "hour": 15 }
  • "Schedule lunch tomorrow at noon for 90 minutes" → { "title": "Lunch", "day_offset": 1, "hour": 12, "duration_minutes": 90 }
  • "Add a dentist appointment in 3 days at 10am" → { "title": "Dentist", "day_offset": 3, "hour": 10 }
  • "Gym today at 6pm" → { "title": "Gym", "day_offset": 0, "hour": 18 }

Version History

  • 451fc69 Current 2026-08-20 14:01

Same Skill Collection

.claude/skills/build-native/SKILL.md
.claude/skills/ci-status/SKILL.md
.claude/skills/release/SKILL.md
.claude/skills/review-pr/SKILL.md
.claude/skills/upgrade-genkit/SKILL.md
packages/flutter_gemma_agent/assets/skills/get-current-time/SKILL.md
packages/flutter_gemma_agent/assets/skills/interactive-map/SKILL.md
packages/flutter_gemma_agent/assets/skills/kitchen-adventure/SKILL.md
packages/flutter_gemma_agent/test/fixtures/skills/interactive-map.SKILL.md
packages/flutter_gemma_agent/test/fixtures/skills/kitchen-adventure.SKILL.md
packages/flutter_gemma_agent/assets/skills/calculate-hash/SKILL.md
packages/flutter_gemma_agent/assets/skills/query-wikipedia/SKILL.md
packages/flutter_gemma_agent/assets/skills/send-email/SKILL.md
packages/flutter_gemma_agent/test/fixtures/skills/calculate-hash.SKILL.md
packages/flutter_gemma_agent/test/fixtures/skills/send-email.SKILL.md
packages/flutter_gemma_agent/assets/skills/qr-code/SKILL.md

Metadata

Files
0
Version
4cb1a16
Hash
2ec1701e
Indexed
2026-08-20 14:01

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-01 23:19
浙ICP备14020137号-1 $Map of visitor$