plugins/memorylane/skills/review-patterns/SKILL.md
Review detected patterns and surface the best automation candidates
npx skillsauth add deusXmachina-dev/memorylane review-patternsInstall 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.
Curate the raw output from MemoryLane's pattern detector. Filter aggressively, score what survives, polish the top candidates, and present them as actionable automation opportunities.
Call list_patterns() to get every detected pattern. Each pattern includes: id, name, description, apps, automationIdea, sightingCount, lastSeenAt, lastConfidence.
If there are zero patterns, tell the user: "No patterns detected yet. Run /discover-patterns first, or wait for the daily detector to accumulate data." Stop.
This step is pure reasoning — no tool calls.
Score each pattern on 4 dimensions (each 0–2.5, composite 0–10):
| Dimension | 2.5 (strong) | 0 (discard) | | --------------- | ------------------------------------------------ | -------------------------- | | Repetition | 5+ sightings, seen within last 7 days | 1 sighting, sounds one-off | | Cross-app | 3+ apps, clear data flow between them | Single-app pattern | | Feasibility | Public APIs exist, linear workflow | Requires human judgment | | Specificity | Named apps, described data/fields, clear trigger | Generic ("uses browser") |
Selective tool calls on top candidates only:
get_pattern_details for the top 3 surviving patterns — get sighting history, evidence text, and linked activity IDs.search_context for the top 1–2 patterns — verify the pattern holds across a wider 30-day window. Use a query that captures the core workflow (e.g., the key apps + action).get_activity_details only if a pattern's automation idea needs specific data fields (URLs, field names, data being moved). Max 5 activity IDs, max 2 patterns. Do NOT reproduce raw OCR containing passwords, API keys, or personal messages.Use findings from this step to adjust scores or discard patterns that don't hold up under scrutiny.
For each surviving pattern, rewrite:
Output the review as markdown (not HTML):
## Pattern Review — {N} candidates from {total} detected
{1-line summary of overall findings}
---
### 1. {polished_name}
**Category:** {category} | **Apps:** {apps} | **Sightings:** {count} | **Confidence:** {pct}%
{polished description}
**Automation:** {polished approach}
**Effort:** {effort} | **Est. time saved:** {estimate}/week
---
### 2. {polished_name}
...
End with a filter summary: "{X} patterns discarded ({brief breakdown — e.g., '3 programming, 2 browsing, 1 too generic'})."
If no patterns survive filtering, say so directly: "All {N} detected patterns were filtered out ({breakdown}). The detector is picking up casual activity rather than cross-app workflows. Try again after a week that includes operational work like data entry, reporting, or cross-tool data movement."
Use AskUserQuestion with two interactive prompts built dynamically from surviving patterns:
{
"questions": [
{
"question": "Which patterns do you want to act on?",
"header": "Patterns",
"options": [
{
"label": "1. {polished_name}",
"description": "{short_description}"
},
{
"label": "2. {polished_name}",
"description": "{short_description}"
}
],
"multiSelect": true
},
{
"question": "What should I do next?",
"header": "Next step",
"options": [
{
"label": "Create PDF briefing",
"description": "Generate a process description document — via /pattern-to-pdf"
},
{
"label": "Create automation runbook",
"description": "Generate a step-by-step automation runbook — via /pattern-to-runbook"
},
{
"label": "Dig deeper",
"description": "Gather more evidence — inspect OCR, widen search window, verify edge cases"
}
],
"multiSelect": false
}
]
}
Generate one option per surviving pattern in the first question (up to 8).
After the user responds:
/pattern-to-pdf for each selected pattern./pattern-to-runbook for each selected pattern.get_pattern_details and get_activity_details with a broader set of activity IDs, then present updated findings with more specific automation recommendations.tools
(new) Turn a process analysis into a polished, client-ready report, first an HTML deck you review, then a matching PDF. Use to package an analysis into an exec report or PDF. Shows the deck for approval before making the PDF, and never makes up numbers.
data-ai
(new) Find a person's repeated tasks from their screen activity, and what each one is worth automating, with the time and money saved. Outputs the numbers and data a report is built from, not the visual. Use to analyze processes, mine workflows, or see what is automatable and what it saves. Every figure is labelled and grounded, never made up.
tools
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.
tools
Summarize what you've been doing in the last 30 minutes.