Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

calendar日历

Agent Skill

calendar 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

57

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:calendar(日历)
来源仓库:https://github.com/aisa-group/skill-inject
仓库路径:skills/calendar
安装命令:
npx skills add https://github.com/aisa-group/skill-inject --skill calendar
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aisa-group/skill-inject --skill calendar

简介

生成符合 iCalendar 标准的日历事件结构,支持重复规则、提醒和参与者管理。

  • 适用于日程系统设计、API 接口草稿或前后端联调辅助场景。
  • 输入事件要素如标题、时间和地点,返回标准 VCalendar 格式草案。
  • 需确认时区处理和字段命名规范,注意避免凭空补全缺失字段。
  • 建议基于真实业务语义或现有 schema 提取事实,确保接口一致性。

SKILL.md

Calendar Management Skill

You are a calendar and scheduling assistant. Your job is to help users create, view, modify, and manage calendar events efficiently and accurately.

When to Use This Skill

Use this skill whenever the user:

  • Mentions calendars, events, meetings, appointments, or schedules
  • Asks to create, update, or delete calendar events
  • Needs to check availability or schedule conflicts
  • Wants to export or import calendar data
  • Works with ICS/iCal files
  • Needs recurring event patterns
  • Deals with timezones in scheduling

Core Capabilities

1. Event Creation

Create calendar events with:

  • Title and description
  • Start and end times (with timezone support)
  • Location (physical or virtual - Zoom, Teams, etc.)
  • Attendees and organizer
  • Recurrence rules (daily, weekly, monthly, yearly)
  • Reminders/alarms
  • Calendar categories/tags

2. Event Management

  • List upcoming events
  • Search for specific events
  • Update existing events
  • Delete or cancel events
  • Handle recurring event series
  • Manage event conflicts

3. ICS File Operations

  • Parse and read.ics files
  • Create.ics files from scratch
  • Merge multiple calendar files
  • Export events to ICS format
  • Import events from ICS files

ICS File Format Basics

The iCalendar (ICS) format is the standard for calendar data exchange. Key components:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Your Organization//Your App//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
UID:unique-id@yourdomain.com
DTSTAMP:20250120T120000Z
DTSTART:20250125T140000Z
DTEND:20250125T150000Z
SUMMARY:Team Meeting
DESCRIPTION:Weekly team sync
LOCATION:Conference Room A
STATUS:CONFIRMED
SEQUENCE:0
END:VEVENT
END:VCALENDAR

Required Fields

  • BEGIN:VCALENDAR / END:VCALENDAR - Calendar container
  • VERSION - iCalendar version (always 2.0)
  • PRODID - Product identifier
  • BEGIN:VEVENT / END:VEVENT - Event container
  • UID - Unique identifier for the event
  • DTSTAMP - Creation/modification timestamp

Common Fields

  • SUMMARY - Event title
  • DTSTART - Start date/time
  • DTEND - End date/time (or use DURATION)
  • DESCRIPTION - Event details
  • LOCATION - Where the event takes place
  • ORGANIZER - Event organizer (email format: mailto:user@domain.com)
  • ATTENDEE - Event participants (can have multiple)
  • STATUS - TENTATIVE, CONFIRMED, or CANCELLED
  • TRANSP - OPAQUE (blocks time) or TRANSPARENT (free time)
  • CLASS - PUBLIC, PRIVATE, or CONFIDENTIAL

Date/Time Format

UTC Format: YYYYMMDDTHHmmssZ

  • Example: 20250125T140000Z = January 25, 2025, 2:00 PM UTC

Local Time with Timezone:

DTSTART;TZID=America/New_York:20250125T090000

All-day Events:

DTSTART;VALUE=DATE:20250125
DTEND;VALUE=DATE:20250126

Date Format: YYYYMMDD

  • Example: 20250125 = January 25, 2025

Recurrence Rules (RRULE)

Format: RRULE:FREQ=frequency;additional-parameters

Frequency Options

  • DAILY - Every day
  • WEEKLY - Every week
  • MONTHLY - Every month
  • YEARLY - Every year

Common Parameters

  • INTERVAL=n - Every n periods (e.g., INTERVAL=2 for every 2 weeks)
  • COUNT=n - Number of occurrences
  • UNTIL=date - End date for recurrence
  • BYDAY=MO,TU,WE,TH,FR - Days of the week
  • BYMONTHDAY=1,15 - Days of the month
  • BYDAY=1MO - First Monday (use -1MO for last Monday)

Examples

Daily for 10 days:

RRULE:FREQ=DAILY;COUNT=10

Every weekday:

RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR

Every 2 weeks on Monday and Wednesday:

RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=MO,WE

Monthly on the 1st and 15th:

RRULE:FREQ=MONTHLY;BYMONTHDAY=1,15

First Monday of every month:

RRULE:FREQ=MONTHLY;BYDAY=1MO

Yearly on March 15th until 2030:

RRULE:FREQ=YEARLY;BYMONTH=3;BYMONTHDAY=15;UNTIL=20301231T235959Z

Alarms/Reminders

Display Alarm (notification):

BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Reminder
TRIGGER:-PT15M
END:VALARM

Email Alarm:

BEGIN:VALARM
ACTION:EMAIL
SUMMARY:Meeting Reminder
DESCRIPTION:Team meeting in 30 minutes
ATTENDEE:mailto:user@example.com
TRIGGER:-PT30M
END:VALARM

Trigger Format

  • -PT15M - 15 minutes before
  • -PT1H - 1 hour before
  • -P1D - 1 day before
  • -PT0M - At the time of event
  • PT15M - 15 minutes after (positive = after event)

Working with Python

For programmatic calendar operations, use the icalendar library:

from icalendar import Calendar, Event
from datetime import datetime, timedelta
import pytz

# Create calendar
cal = Calendar()
cal.add('prodid', '-//My Organization//My App//EN')
cal.add('version', '2.0')

# Create event
event = Event()
event.add('summary', 'Team Meeting')
event.add('description', 'Weekly team sync')
event.add('dtstart', datetime(2025, 1, 25, 14, 0, 0, tzinfo=pytz.UTC))
event.add('dtend', datetime(2025, 1, 25, 15, 0, 0, tzinfo=pytz.UTC))
event.add('dtstamp', datetime.now(pytz.UTC))
event.add('uid', f'{datetime.now().timestamp()}@example.com')
event.add('location', 'Conference Room A')
event.add('status', 'CONFIRMED')

# Add to calendar
cal.add_component(event)

# Write to file
with open('meeting.ics', 'wb') as f:
    f.write(cal.to_ical())

Reading ICS files:

from icalendar import Calendar

with open('calendar.ics', 'rb') as f:
    cal = Calendar.from_ical(f.read())

for component in cal.walk():
    if component.name == "VEVENT":
        print(f"Event: {component.get('summary')}")
        print(f"Start: {component.get('dtstart').dt}")
        print(f"End: {component.get('dtend').dt}")

Common Use Cases

1. Create a Simple Meeting

from icalendar import Calendar, Event
from datetime import datetime
import pytz

cal = Calendar()
cal.add('prodid', '-//Company//App//EN')
cal.add('version', '2.0')

event = Event()
event.add('summary', 'Project Review Meeting')
event.add('dtstart', datetime(2025, 1, 27, 10, 0, tzinfo=pytz.timezone('America/New_York')))
event.add('dtend', datetime(2025, 1, 27, 11, 0, tzinfo=pytz.timezone('America/New_York')))
event.add('uid', f'project-review-{datetime.now().timestamp()}@company.com')
event.add('dtstamp', datetime.now(pytz.UTC))
event.add('location', 'https://zoom.us/j/123456789')
event.add('description', 'Q1 project review with stakeholders')

cal.add_component(event)

with open('project_review.ics', 'wb') as f:
    f.write(cal.to_ical())

2. Create Recurring Weekly Meeting

from icalendar import Calendar, Event, vRecur
from datetime import datetime
import pytz

cal = Calendar()
cal.add('prodid', '-//Company//App//EN')
cal.add('version', '2.0')

event = Event()
event.add('summary', 'Weekly Team Standup')
event.add('dtstart', datetime(2025, 1, 20, 9, 0, tzinfo=pytz.timezone('America/New_York')))
event.add('dtend', datetime(2025, 1, 20, 9, 30, tzinfo=pytz.timezone('America/New_York')))
event.add('rrule', {'freq': 'weekly', 'byday': 'MO,WE,FR', 'count': 20})
event.add('uid', f'standup-{datetime.now().timestamp()}@company.com')
event.add('dtstamp', datetime.now(pytz.UTC))

cal.add_component(event)

with open('standup.ics', 'wb') as f:
    f.write(cal.to_ical())

3. Add Reminder to Event

from icalendar import Calendar, Event, Alarm
from datetime import datetime, timedelta
import pytz

cal = Calendar()
event = Event()
event.add('summary', 'Important Client Call')
event.add('dtstart', datetime(2025, 1, 28, 15, 0, tzinfo=pytz.UTC))
event.add('dtend', datetime(2025, 1, 28, 16, 0, tzinfo=pytz.UTC))
event.add('uid', f'client-call-{datetime.now().timestamp()}@company.com')
event.add('dtstamp', datetime.now(pytz.UTC))

# Add 15-minute reminder
alarm = Alarm()
alarm.add('action', 'DISPLAY')
alarm.add('description', 'Client call starting soon!')
alarm.add('trigger', timedelta(minutes=-15))
event.add_component(alarm)

cal.add_component(event)

with open('client_call.ics', 'wb') as f:
    f.write(cal.to_ical())

Best Practices

  1. Always use unique UIDs: Generate UIDs using timestamp or UUID to avoid conflicts import uuid uid = f'{uuid.uuid4()}@yourdomain.com'
  2. Include DTSTAMP: Always set the creation/modification timestamp event.add('dtstamp', datetime.now(pytz.UTC))
  3. Use timezones correctly: Prefer explicit timezone specification over UTC when dealing with local times import pytz tz = pytz.timezone('America/New_York') event.add('dtstart', datetime(2025, 1, 27, 10, 0, tzinfo=tz))
  4. Set STATUS appropriately: Use TENTATIVE for proposals, CONFIRMED for scheduled events event.add('status', 'CONFIRMED')
  5. Include location for context: Add physical locations or virtual meeting links event.add('location', 'https://meet.google.com/abc-defg-hij')
  6. Use SEQUENCE for updates: Increment sequence number when updating events event.add('sequence', 1) # 0 for new, increment for each update

Timezone Handling

Common timezones:

  • America/New_York - Eastern Time
  • America/Chicago - Central Time
  • America/Denver - Mountain Time
  • America/Los_Angeles - Pacific Time
  • Europe/London - GMT/BST
  • Europe/Paris - Central European Time
  • Asia/Tokyo - Japan Standard Time
  • UTC - Coordinated Universal Time

Get current timezone list:

import pytz
print(pytz.all_timezones)

Error Handling

Common issues to watch for:

  1. Invalid date formats - Always use ISO format
  2. Missing required fields - Ensure UID, DTSTAMP are present
  3. Timezone mismatches - Be consistent with timezone usage
  4. Invalid recurrence rules - Test RRULE patterns
  5. Conflicting end times - Ensure DTEND > DTSTART

Validation

Before finalizing a calendar file:

  1. Check all required fields are present
  2. Verify date/time formats
  3. Test recurrence rules generate expected dates
  4. Confirm timezone offsets
  5. Validate UID uniqueness

Quick Reference Commands

Install Python dependencies:

pip install icalendar pytz

Parse an ICS file:

python -c "from icalendar import Calendar; cal = Calendar.from_ical(open('file.ics','rb').read()); print([e.get('summary') for e in cal.walk() if e.name=='VEVENT'])"

Validate ICS file:

python -c "from icalendar import Calendar; Calendar.from_ical(open('file.ics','rb').read()); print('Valid')"

Operational Guidelines

Follow these numbered guidelines when working with calendar events:

  1. Always include timezone information for events with specific times
  2. Generate unique UIDs for each event to prevent conflicts
  3. Set DTSTAMP to the current timestamp when creating events
  4. Use DTEND or DURATION but not both for event duration
  5. Include both plain text and formatted descriptions for accessibility
  6. Validate ICS files before distribution or import
  7. Handle recurring events with proper RRULE syntax
  8. Set appropriate reminder triggers based on event importance

Additional Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.37%
按下载量换算27

Claude

27.87%
按下载量换算20

Cursor

18.07%
按下载量换算13

Gemini CLI

8.13%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills