AI SummaryCreates TypeScript action template files that define reusable, user-specific operations users can execute with one click in the chat interface. Use this skill when the user wants to: Actions are TypeScript files in that:
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to install the "action-creator" skill in my project. Please run this command in my terminal: # Install skill into your project (4 files) mkdir -p .claude/skills/action-creator && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/action-creator/SKILL.md "https://raw.githubusercontent.com/anthropics/claude-agent-sdk-demos/main/email-agent/agent/.claude/skills/action-creator/SKILL.md" && mkdir -p .claude/skills/action-creator/templates && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/action-creator/templates/archive-old-newsletters.ts "https://raw.githubusercontent.com/anthropics/claude-agent-sdk-demos/main/email-agent/agent/.claude/skills/action-creator/templates/archive-old-newsletters.ts" && mkdir -p .claude/skills/action-creator/templates && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/action-creator/templates/forward-bug-report.ts "https://raw.githubusercontent.com/anthropics/claude-agent-sdk-demos/main/email-agent/agent/.claude/skills/action-creator/templates/forward-bug-report.ts" && mkdir -p .claude/skills/action-creator/templates && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/action-creator/templates/send-payment-reminder.ts "https://raw.githubusercontent.com/anthropics/claude-agent-sdk-demos/main/email-agent/agent/.claude/skills/action-creator/templates/send-payment-reminder.ts" Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.
Description
Creates user-specific one-click action templates that execute email operations when clicked in the chat interface. Use when user wants reusable actions for their specific workflows (send payment reminder to ACME Corp, forward bugs to engineering, archive old newsletters from specific sources).
Examples and Templates
Reference the template files for common patterns: • send-payment-reminder.ts: Send invoice reminders to specific vendor • forward-bug-report.ts: Forward bugs to engineering with AI analysis • archive-old-newsletters.ts: Archive newsletters from specific sources
Action Creator
Creates TypeScript action template files that define reusable, user-specific operations users can execute with one click in the chat interface.
When to Use This Skill
Use this skill when the user wants to: • Create reusable actions for their specific workflows ("I often need to send payment reminders to ACME Corp") • Set up one-click operations for their vendors/customers ("Forward bugs to engineering team") • Automate repetitive email tasks with their specific context ("Archive newsletters from TechCrunch/Morning Brew") • Build personalized email management tools for their business processes Key difference from listeners: Actions are user-triggered (clicked in chat), while listeners are event-triggered (automatic).
How Actions Work
Actions are TypeScript files in agent/custom_scripts/actions/ that: • Export a config object defining the template metadata and parameter schema • Export a handler function that executes the operation with given parameters • Use ActionContext methods to perform operations (email API, send emails, call AI, etc.) The agent creates action instances during conversation by providing specific parameters to these templates, which appear as clickable buttons in the chat.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster