TaskFlow Inbox Triage

by v1.0.0

This skill provides a concrete example of the TaskFlow pattern designed for efficient inbox triage. It demonstrates how to structure complex, multi-step agent workflows without relying on a domain-specific language, leveraging core runtime capabilities. The pattern enables AI agents to classify incoming items, route them to appropriate channels (e.g., Slack for business, direct notification for personal), manage waiting states for external human input or replies, and compile summaries for deferred actions.

By implementing this TaskFlow, developers can build highly resilient and intelligent agents capable of handling diverse inbox items with structured state management. It ensures that tasks requiring external interaction are properly paused and resumed, preventing loss of context and enabling seamless continuation of workflows. This pattern is ideal for creating agents that can autonomously manage communication flows, improve productivity, and provide timely responses or actions based on classified intent.

What It Does

This skill defines a TaskFlow pattern that classifies incoming inbox items into categories like "business," "personal," or "everything else." It then routes these items accordingly, manages waiting states when external replies (e.g., from Slack) are needed, and resumes the flow upon completion, ultimately finishing when all items in a batch are processed.

When To Use

When automating the processing of diverse incoming messages or tasks.
To implement structured workflows that require pausing for human input or external replies.
For building AI agents that need to manage complex state across multiple steps.
To ensure consistent and reliable routing of items based on their classification.
When developing agents that need to provide end-of-day summaries of processed items.

Inputs

A batch of inbox items (e.g., messages, emails, tasks) requiring classification and routing.

Outputs

Categorized inbox items, routed actions (e.g., Slack posts, direct notifications), and a structured `stateJson` reflecting the current processing status and item distribution.

Limitations

Requires an AI agent runtime that supports `api.runtime.tasks.flow` operations.
The accuracy of triage depends on the underlying AI model used for classification.
Specific integrations with external services (e.g., Slack API) need to be implemented separately.
The pattern provides a framework; the actual classification and routing logic must be developed.

Installation

Add to Cline skills directory

View Cline documentation

Copy to ~/.claude/skills/

View Claude (Anthropic) documentation

Add to Copilot workspace settings

View GitHub Copilot documentation

Register as MCP tool

View MCP Server documentation

Add to .vscode/skills/

View VS Code documentation

What people say, and where to get help

No ratings yet. If you have used this skill, yours would be the first.

No reviews yet

This skill has not been rated. If you have run it, a short note about what you used it for helps the next person more than any description can.

Related Skills You May Like

Discover more AI agent skills in the same category to enhance your workflow automation.

Have a Skill to Share?

Join the community and help AI agents learn new capabilities. Submit your skill and reach thousands of developers.