skills/tier-5-automation/playbook-discovery/SKILL.md
Analyze email, calendar, and file patterns to discover repeatable workflows that AI agents can automate.
npx skillsauth add pbc-os/agent-skills-public playbook-discoveryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Discover repeatable workflows from your historical data that AI agents can automate.
This skill analyzes your business communication data (email, calendar, files, chat) to identify "playbooks" — documented, repeatable workflows with clear triggers, steps, and end states.
Why this matters: Before you can automate, you need to know what to automate. Most small business owners have dozens of repeatable workflows buried in their daily habits — they just haven't documented them. This skill surfaces those patterns.
At least one of these data sources connected:
gmail skill) or Microsoft 365 (Graph API)google-calendar skill) or OutlookMore data sources = better pattern recognition.
Collect data systematically to avoid API limits. Chunk by time period (monthly).
For each data source, extract:
For each of the last 6 months:
Full 6-month period:
Analyze collected data for these pattern types:
People Patterns
Topic Patterns
Temporal Patterns
Flow Patterns
Group related patterns into candidate workflows. For each candidate, define:
| Field | Description | |-------|-------------| | Trigger | What kicks off this workflow? (email type, calendar event, time of year, etc.) | | Steps | What actions happen in sequence? | | Inputs | What data/information is needed? | | Outputs | What gets produced? | | End State | What does "done" look like? | | Edge Cases | What can go wrong? When should it escalate to human? |
Rank candidate workflows by:
Present findings in this structure:
Emails analyzed: X,XXX (inbox: X,XXX, sent: X,XXX)
Calendar events: XXX
Files reviewed: XXX
Time period: [start] to [end]
Major themes across people, topics, time, and flows.
For each playbook:
## Playbook: [Name]
**Evidence:** What data supports this pattern?
**Trigger Conditions:**
- [Specific trigger 1]
- [Specific trigger 2]
**Step-by-Step Workflow:**
1. [Step 1]
2. [Step 2]
3. [Step 3]
...
**Inputs Required:**
- [Input 1]
- [Input 2]
**Outputs Produced:**
- [Output 1]
- [Output 2]
**Success Criteria:**
- [What does "done" look like?]
**Edge Cases & Escalation:**
- [When to escalate to human]
- [What can go wrong]
**Business Impact:**
[Why this matters — time saved, errors prevented, etc.]
| Playbook | Trigger | Frequency | Impact | Automation Potential | |----------|---------|-----------|--------|---------------------| | [Name] | [Trigger] | Daily/Weekly/Monthly | High/Med/Low | High/Med/Low |
After presenting playbooks, offer:
Playbook: Weekly Partner Status Report
Evidence: 47 emails with subject containing "weekly update" or "status report" sent every Monday between 9-11am to the same 5 recipients over 6 months.
Trigger: Monday 9am OR partner requests update
Steps:
- Pull metrics from dashboard
- Summarize key wins/blockers
- Draft email with standard template
- Send to partner distribution list
Automation Potential: HIGH — template-based, data-driven, predictable schedule
gmail — Email data collectiongoogle-calendar — Calendar data collectionslack-directory — Communication pattern analysisrevenue-forecaster — If a discovered playbook drives or depends on revenue, feed the forecaster's output into itautoresearch — Once a playbook is running, use autoresearch to iteratively improve its outputThe best automation starts with understanding what you already do.
tools
Generate and iteratively refine USPTO-style patent figure drawings from provisional patent application markdown files, using nano-banana for v1 generation and targeted single-fix edits for v2+ iteration.
data-ai
Weekly revenue / sales forecasting for small businesses with multiple locations or product lines. Blends recent trend + seasonal baseline + YoY growth with per-entity holiday multipliers and week-of-month adjustments. Ships autoresearch-compatible eval and parameters so you can tune it on your own historical data.
testing
Automated daily digest for small business owners. Combines email triage, calendar agenda, open tasks, and business KPIs into a single morning briefing. Composable — works with whatever data sources are available. Urgent emails require body inspection and explicit escalation signals — never classified from sender/timing metadata alone.
testing
Convert a planning doc or spec into a phase-based task structure for autonomous multi-session execution. Asks whether the agent should run in orchestrator mode (self-verifies and continues across phase boundaries) or phase-checkpoint mode (stops at each phase for human verification), then generates the right claude-prompt.md and claude-task.json. Built on the patterns from Anthropic's effective-harnesses-for-long-running-agents engineering blog.