kxiandaoyan/memoh-v2/local-tools
Claude Code and agent skill by kxiandaoyan/memoh-v2
- community
Checking that the SKILL.md file is still in the repository.
Access local system resources including Calendar on macOS and Windows. Use this skill when you need to manage user's schedule directly on their device.
Install
npx vskill@latest install kxiandaoyan/memoh-v2/local-toolsSKILL.md
Local Tools Skill
Environment Variables
No environment variables required. This skill directly accesses system resources.
Prerequisites
macOS
- macOS 10.10 Yosemite or later (for JXA support)
- Calendar.app must be installed (included by default)
- Calendar access permission (user will be prompted on first use)
Windows
- Windows 7 or later
- Microsoft Outlook must be installed and configured
- PowerShell must be available (included by default)
- May require COM access permissions in corporate environments
When to Use This Skill
Use the local-tools skill when you need to:
- Calendar Management - View, create, update, or delete calendar events
Examples of when to use:
- User: "Show me my schedule for tomorrow"
- User: "Create a meeting at 3 PM"
- User: "Search for calendar events containing 'project'"
- User: "Delete tomorrow's meeting"
How It Works
Architecture:
- CLI Scripts - Platform-specific scripts, no HTTP server needed
calendar.sh- Bash script for macOScalendar.ps1- PowerShell script for Windows
- Local Calendar Access - Direct access to system calendar
- macOS: Uses JXA (JavaScript for Automation) to control Calendar.app
- Windows: Uses PowerShell COM API to control Microsoft Outlook
- JSON Output - Structured data format for easy parsing
Platform Support
| Platform | Implementation | Calendar App | Status | |
|---|---|---|---|---|
| macOS 10.10+ | JXA + Calendar.app | Calendar.app | ✅ Fully Supported | |
| Windows 7+ | PowerShell + COM | Microsoft Outlook | ✅ Fully Supported | |
| Linux | - | - | ❌ Not Supported |
Permissions
macOS
- Requires "Calendar" access permission
- User will be prompted on first use
- Can be managed in: System Settings > Privacy & Security > Calendar
Windows
- Requires Microsoft Outlook to be installed
- May require administrative privileges for COM access
Calendar Operations
IMPORTANT: How to Locate the Script
When you read this SKILL.md file using the Read tool, you receive its absolute path (e.g., /Users/username/.../SKILLs/local-tools/SKILL.md).
To construct the script path:
- Take the directory of this SKILL.md file
- Append
/scripts/calendar.sh(macOS) or/scripts/calendar.ps1(Windows)
Example:
In all examples below, <skill-dir>/scripts/calendar.sh is a placeholder. Replace it with the actual absolute path.
Best Practices for AI Assistant
DO:
- ✅ Execute commands directly without showing trial-and-error process
- ✅ If command fails, inform user about permission issues without showing technical errors
- ✅ Use
searchcommand for searching birthdays/anniversaries - ✅ If no calendar name specified, script will automatically use first available calendar
DON'T:
- ❌ Don't repeatedly try different command combinations
- ❌ Don't show error stacks or technical details to users
- ❌ Don't read script source code to analyze issues
- ❌ Don't ask users for calendar name, use default behavior
Example - Searching for birthdays:
List Events
Create Event
Update Event
Delete Event
Search Events
Note: When --calendar is not specified, the search operation will look through all available calendars on both macOS and Windows.
Output Format
All commands return JSON with the following structure:
Success Response
Error Response
Error Codes
| Code | Meaning | Recoverable | |
|---|---|---|---|
CALENDAR_ACCESS_ERROR | Permission denied or calendar not accessible | Yes | |
INVALID_INPUT | Missing required parameters | No | |
EVENT_NOT_FOUND | Event ID not found | No | |
OUTLOOK_NOT_AVAILABLE | Microsoft Outlook not installed (Windows) | Yes |
Date Format Guidelines
Important: Date Format Guidelines
When using the list command with time ranges:
- Always use ISO 8601 format:
YYYY-MM-DDTHH:mm:ss - Use local timezone: Do NOT use UTC or timezone suffixes (like +08:00 or Z)
- Calculate dates yourself: Do NOT use shell command substitution like
$(date ...) - Claude should compute dates: Based on current date, calculate target dates directly
- Examples:
- Today at midnight:
2026-02-13T00:00:00 - Today at end of day:
2026-02-13T23:59:59 - Tomorrow morning:
2026-02-14T09:00:00 - Next week Monday:
2026-02-16T00:00:00
Why: The script expects local time strings that match your system timezone. Shell substitutions may not execute correctly in all environments.
Common Patterns
Pattern 1: Schedule Management
Pattern 2: Meeting Scheduling
Pattern 3: Event Search
Pattern 4: Availability Check
Known Behaviors
Time Range Matching
The list command uses interval overlap detection:
- Returns events that have any overlap with the query time range
- Does NOT require events to be fully contained within the range
Examples:
- Query: 2026-02-13 00:00:00 to 23:59:59
- Returns:
- ✅ Events fully on Feb 13 (e.g., 10:00-11:00)
- ✅ Multi-day events spanning Feb 13 (e.g., Feb 12 10:00 - Feb 14 10:00)
- ✅ Events crossing midnight (e.g., Feb 13 23:30 - Feb 14 00:30)
- ❌ Events entirely before Feb 13 (e.g., Feb 12 10:00-11:00)
- ❌ Events entirely after Feb 13 (e.g., Feb 14 10:00-11:00)
All-Day Events
- Treated as spanning from 00:00:00 to 23:59:59 on their date(s)
- Multi-day all-day events (e.g., Feb 12-14) will appear when querying any date within that range
Time Precision
- Comparisons use second-level precision
- Milliseconds are ignored in date comparisons
Recurring Events
- Each occurrence is treated as a separate event instance
- The script returns individual occurrences within the queried time range
Best Practices
1. Always Check Before Creating
Before creating an event, list existing events to avoid conflicts:
2. Use Specific Calendars (macOS)
Specify the calendar to keep events organized:
3. Search Before Updating/Deleting
Always search first to get the correct event ID:
4. Handle Errors Gracefully
Parse the response and handle errors:
Limitations
macOS
- Requires macOS 10.10 Yosemite or later (for JXA support)
- Requires Calendar access permission
- Does not support advanced recurring event queries
- Cannot modify recurring event rules
Windows
- Requires Microsoft Outlook to be installed
- Does not support other calendar applications (Windows Calendar, Google Calendar, etc.)
- May require COM access permissions in corporate environments
- Folder enumeration may skip restricted calendars
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 85 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/skills/defaults/local-tools/SKILL.md
Popularity
- Repository stars
- 334
- Repository forks
- 33
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kxiandaoyan/memoh-v2/local-tools)