用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/deusXmachina-dev/memorylane --skill discover-patterns命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
(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.
(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.
Deploy the MemoryLane Claude Code plugin by verifying only plugin/marketplace files changed, bumping the plugin version, then committing and pushing.
正在显示 SKILL.md
基于 SOC 职业分类
| name | discover-patterns |
| allowed-tools | mcp__memorylane__browse_timeline, mcp__memorylane__search_context, mcp__memorylane__get_activity_details |
| description | Discover repeated workflow patterns from screen activity and suggest automations |
Mine the user's screen activity for repeated workflows worth automating — via native integrations, n8n/Make/Zapier, or custom scripts. This command scans timeline data directly, applies aggressive filtering to discard casual activity, and surfaces only patterns with real automation potential.
Pattern detection requires sequential context — the order of app switches within a day reveals the loops.
Iterate backwards, one day at a time:
browse_timeline(startTime="today", endTime="now", limit=50, sampling="uniform")browse_timeline(startTime="2 days ago", endTime="1 day ago", limit=50, sampling="uniform")After each day's scan, run Step 2 on that batch before moving to the next day.
For each day's batch, apply the analysis structure below, then run every candidate through the Automation Fitness Filter.
STEP 1 — App frequency
Which apps appear most? What pairs appear together?
STEP 2 — Semantic clustering
Group activities by what they describe. Are there clusters of similar descriptions?
STEP 3 — Temporal sequences
Within each cluster, do activities follow a consistent order?
STEP 4 — Repetition detection
For each sequence, does it repeat? How many times? Over what time span?
STEP 4.5 — Automation fitness check
Apply the filter below. Discard anything on the DISCARD list.
Only keep candidates that match a REPORT category.
STEP 5 — Variation analysis
Within repeated sequences, what changes between iterations? What stays the same?
STEP 6 — Automation assessment
For the "stays the same" parts — can these be scripted, scheduled, or API-driven?
The core question for every candidate: "Could a native integration, n8n/Make/Zapier workflow, or custom script replace this entire workflow end-to-end?"
If no, discard it. If yes, classify it into one of the categories below.
REPORT — these 5 categories only:
| Category | Badge Color | Signal | Example |
|---|---|---|---|
| Data Shuttle | blue #3b82f6 | Copy-paste structured data between apps | Stripe → Sheets, CRM → billing |
| Reporting Ritual | purple #8b5cf6 | Same app sequence on a schedule | Monday: analytics → chart → Slack |
| Review Pipeline | pink #ec4899 | Queue → cross-reference → decide | Expense PDF → policy check → approve |
| Data Entry | orange #f97316 | Read source, type into forms | Contract email → CRM fields → billing |
| Alert Response | teal #14b8a6 | Notification → switch → act → return, 5+/day | Zendesk alert → dashboard → respond |
DISCARD — explicit noise list:
Maintain a running candidate list across all days. A pattern spotted on multiple days is stronger evidence — merge duplicates and increase confidence.
For each candidate with 3+ occurrences:
search_context(query) — widen to 30 days to verify the pattern holds beyond the scan window.get_activity_details(ids) — only for high-confidence candidates where OCR text would reveal automation-relevant specifics (URLs, field names, data being moved). Keep to a minimum.Rank patterns by automation impact — frequency x time per loop x ease of automation.
Write the HTML to a file — save it as pattern-report.html in the current working directory using the Write tool. Do NOT output raw HTML in your response. After writing the file, tell the user the report has been saved and they can open it. Repeat the pattern card block for each detected pattern.
<div
style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; max-width: 720px; margin: 0 auto; color: #0f172a;"
>
<!-- HEADER -->
<div
style="background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); border-radius: 16px; padding: 32px; margin-bottom: 28px; color: white;"
>
<div style="font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px;">
Pattern Report
</div>
<div style="font-size: 14px; opacity: 0.85; line-height: 1.5;">
{analysis_window} · {total_activities_analyzed} activities analyzed · {pattern_count} patterns
found
</div>
</div>
<!-- PATTERN CARD — repeat for each pattern -->
<div
style="border: 1px solid #e2e8f0; border-left: 4px solid {category_color}; border-radius: 12px; margin-bottom: 20px; background: #fff; overflow: hidden;"
>
<!-- Card Header -->
<div style="padding: 20px 24px 16px; border-bottom: 1px solid #f1f5f9;">
<div style="display: flex; align-items: center; gap: 12px; margin-bottom: 8px;">
<span
style="display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: {category_color}; color: white; font-size: 13px; font-weight: 700; border-radius: 8px;"
>{rank}</span
>
< =
>{pattern_name}</span
>
{category_name}</span
>
{description}
Frequency
{frequency}
Time / loop
{time_per_loop}
Apps
{apps_involved}
Effort
{effort}
Loop structure
{loop_structure}
What varies
{what_varies}
What's constant
{what_stays_constant}
Automation suggestion
{automation_approach}
{automation_method}
Estimated time savings: {total_time_savings} per week if all suggested
automations are implemented.
{rank} — the pattern's position number, ranked by automation impact (1 = highest){category_name} — one of: Data Shuttle, Reporting Ritual, Review Pipeline, Data Entry, Alert Response{category_color} — the badge color from the table above (#3b82f6, #8b5cf6, #ec4899, #f97316, #14b8a6){automation_method} — one of: API script, n8n/Make/Zapier, cron + script, browser automation, webhookEffort colors for {effort_color}:
| Effort | Color |
|---|---|
| Easy | #10b981 (green) |
| Medium | #f59e0b (amber) |
| Hard | #ef4444 (red) |
If no patterns survive the filter, say so directly: "No automatable patterns found in the last N days. Your activity was mostly [programming / browsing / messaging / etc.]. Try again after a week that includes cross-app operational workflows."
After saving the HTML report, use the AskUserQuestion tool to present two interactive prompts. Build the first question dynamically from the discovered patterns — each pattern becomes a selectable option.
{
"questions": [
{
"question": "Which patterns are interesting to you?",
"header": "Patterns",
"options": [
{
"label": "1. {pattern_name}",
"description": "{short_description}"
},
{
"label": "2. {pattern_name}",
"description": "{short_description}"
}
],
"multiSelect": true
},
{
"question": "What should I do next with the selected patterns?",
"header": "Next step",
"options": [
Generate one option per discovered pattern in the first question (up to 4 — if more than 4 patterns, list the top 4 by automation impact and mention the rest in descriptions). Then invoke the corresponding command for each selected pattern.
These show the level of specificity to aim for. Each example: observable screen behavior → concrete automation suggestion.
Finance & Accounting
User downloads bank statement CSV, opens QuickBooks, manually enters each transaction, cross-references against invoices in Google Drive. Every Monday morning, ~45 min. → Bank feed integration with auto-matching rules. (Data Entry)
User pulls revenue numbers from Stripe dashboard, copies into a Google Sheet, applies formulas, then pastes the summary into a Slack channel for the weekly finance update. → Scheduled script that queries Stripe API, computes metrics, posts to Slack. (Reporting Ritual)
User reviews each expense report by opening the PDF, checking line items against policy in a separate browser tab, then entering approval/rejection in the expense tool. 10-15 reports per batch. → Policy-checking script that pre-flags violations, surfaces only exceptions for human review. (Review Pipeline)
Operations & Back-Office
User receives client onboarding forms via email, manually copies fields (name, company, billing address, tax ID) into CRM, then into billing system, then sends a welcome email template with the same details. Per new client, ~20 min. → Intake form that auto-populates CRM + billing via API, triggers welcome email. (Data Entry)
User checks Zendesk queue every 2 hours, scans for high-priority tickets, copies ticket summaries into a Slack channel for the ops team. → Webhook that auto-posts P0/P1 tickets to Slack with summary and link. (Alert Response)
User exports weekly sales data from CRM, imports into Excel, builds a pivot table, screenshots the chart, pastes into a PowerPoint slide deck for the Monday review. Every Friday, ~1 hour. → Automated report generation from CRM API to formatted slides. (Reporting Ritual)
User checks LinkedIn, Crunchbase, and the company website before every sales call to build a prospect brief in Notion. 3-5 calls/day, ~10 min each. → Enrichment script that auto-generates prospect briefs from company domain. (Data Shuttle)
HR & Compliance
User receives signed offer letters via DocuSign, downloads PDF, enters start date + salary + role into HRIS, then creates accounts in Slack + Google Workspace + Jira. Per new hire, ~30 min. → Webhook on DocuSign completion triggers HRIS entry + account provisioning. (Data Entry)
User opens the compliance training dashboard weekly to check which employees haven't completed required training, then sends individual reminder emails. → Scheduled check with auto-reminder emails for overdue training. (Reporting Ritual)
Engineering
User scrapes GitHub stargazers, cleans data in Sheets, imports to email tool, writes personalized emails with Claude. → End-to-end script from repo URL to campaign launch. (Data Shuttle)
User opens Datadog dashboard 4-5 times/day to check error rates after a deploy. → Slack alert triggered by error rate threshold, with auto-rollback on spike. (Alert Response)
These would appear as repeated patterns but should never be reported:
get_activity_details for high-confidence candidates only.