| name | automation-instructions |
| allowed-tools | AskUserQuestion, mcp__memorylane__browse_timeline, mcp__memorylane__search_context, mcp__memorylane__get_activity_details |
| description | Write step-by-step automation instructions for a workflow, tailored to your tool (Claude, n8n or Zapier). Best run right after discover-patterns or process-analyst. |
Automation Instructions
Turn one workflow into clear, build-ready instructions for a specific automation tool.
Assumes it runs after /discover-patterns or /process-analyst-new, so it reuses
their output as the source and does NOT re-mine the timeline unless nothing is supplied.
Step 1. Get the workflow (prefer prior output)
In priority order, do NOT re-derive what you already have:
- A pattern from
/discover-patterns (a selected pattern + its details) -> use it as-is.
- A process from
/process-analyst-new (a process-analysis*.json ledger, or a process
the user points to) -> read that process's steps, apps, frequency, and automatable split.
Glob process-analysis*.json in the working dir; if found, use it.
- A workflow the user describes in chat -> use the description as-is.
Only if NONE of the above is available, fall back to mining: search_context(query) across
~30 days for instances, browse_timeline around the strongest matches for the full sequence,
and get_activity_details(ids) on 2 to 3 clear instances for exact steps. Keep it bounded.
Step 2. Ask three things (one batched AskUserQuestion)