@recapt/mcp 0.0.13-beta → 0.0.14-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +0 -0
- package/dist/index.js +0 -0
- package/dist/tools/catalog/toolCatalog.json +4 -4
- package/package.json +1 -1
- package/skills/self-healing.md +105 -13
- package/templates/self-healing.md +1 -1
package/dist/cli/index.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
|
@@ -14629,7 +14629,7 @@
|
|
|
14629
14629
|
"category": {
|
|
14630
14630
|
"type": "string",
|
|
14631
14631
|
"required": false,
|
|
14632
|
-
"description": "Filter by
|
|
14632
|
+
"description": "Filter by category: false_positive, intended_behavior, fix_pattern, or context"
|
|
14633
14633
|
},
|
|
14634
14634
|
"page_path": {
|
|
14635
14635
|
"type": "string",
|
|
@@ -14639,7 +14639,7 @@
|
|
|
14639
14639
|
"issue_category": {
|
|
14640
14640
|
"type": "string",
|
|
14641
14641
|
"required": false,
|
|
14642
|
-
"description": "Filter by issue category"
|
|
14642
|
+
"description": "Filter by issue category: code_error, dead_click, rage_click, ux_friction, performance, form_issue, behavioral_anomaly, or structural_issue"
|
|
14643
14643
|
},
|
|
14644
14644
|
"limit": {
|
|
14645
14645
|
"type": "number",
|
|
@@ -15042,7 +15042,7 @@
|
|
|
15042
15042
|
"category": {
|
|
15043
15043
|
"type": "string",
|
|
15044
15044
|
"required": true,
|
|
15045
|
-
"description": "Category
|
|
15045
|
+
"description": "Category: false_positive, intended_behavior, fix_pattern, or context"
|
|
15046
15046
|
},
|
|
15047
15047
|
"subject": {
|
|
15048
15048
|
"type": "string",
|
|
@@ -15067,7 +15067,7 @@
|
|
|
15067
15067
|
"issue_category": {
|
|
15068
15068
|
"type": "string",
|
|
15069
15069
|
"required": false,
|
|
15070
|
-
"description": "
|
|
15070
|
+
"description": "Issue category: code_error, dead_click, rage_click, ux_friction, performance, form_issue, behavioral_anomaly, or structural_issue"
|
|
15071
15071
|
}
|
|
15072
15072
|
},
|
|
15073
15073
|
"embedding": [
|
package/package.json
CHANGED
package/skills/self-healing.md
CHANGED
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
# Recapt Self-Healing Workflow
|
|
2
2
|
|
|
3
|
-
Use this workflow when asked to "
|
|
3
|
+
Use this workflow when asked to "heal the site" or improve UX based on behavioral data from recapt.
|
|
4
4
|
|
|
5
5
|
## When to Use
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
7
|
+
This is a **comprehensive site improvement workflow**. Only use it when the user explicitly requests a full-site analysis:
|
|
8
|
+
|
|
9
|
+
- "Heal my site"
|
|
10
|
+
- "Run the self-healing workflow"
|
|
11
|
+
- "Analyze my whole site and improve it"
|
|
12
|
+
- "Do a full UX audit"
|
|
13
|
+
- "Make general improvements across the site"
|
|
14
|
+
**Do NOT use this workflow for:**
|
|
15
|
+
- Specific page fixes ("fix the checkout button")
|
|
16
|
+
- Single flow optimization ("improve the signup funnel")
|
|
17
|
+
- Investigating a specific issue ("why are users rage clicking here?")
|
|
18
|
+
For specific requests, use the appropriate tools directly — let the conversation guide which tools to call.
|
|
11
19
|
|
|
12
20
|
## Workflow
|
|
13
21
|
|
|
@@ -35,40 +43,119 @@ If fixes have sufficient data:
|
|
|
35
43
|
|
|
36
44
|
Start with `run_full_diagnostic` (always available) to get a prioritized list of issues across the site.
|
|
37
45
|
|
|
38
|
-
### 2.
|
|
46
|
+
### 2. Analyze Flows
|
|
47
|
+
|
|
48
|
+
After diagnosing issues, proactively look for flow optimization opportunities — even when nothing is "broken."
|
|
49
|
+
|
|
50
|
+
#### 2a. Discover Journey Patterns
|
|
51
|
+
|
|
52
|
+
- Search: "journey patterns" → `get_journey_patterns`
|
|
53
|
+
- Look for:
|
|
54
|
+
- **Backtrack hotspots** — pages users return to repeatedly (signals confusion or missing information)
|
|
55
|
+
- **Dropoff pages** — where sessions end unexpectedly (potential conversion leaks)
|
|
56
|
+
- **Unexpected paths** — users taking roundabout routes to reach goals
|
|
57
|
+
|
|
58
|
+
#### 2b. Analyze Key Funnels
|
|
59
|
+
|
|
60
|
+
- Search: "analyze funnel" → `analyze_funnel`
|
|
61
|
+
- Analyze critical conversion paths:
|
|
62
|
+
- Landing → Signup/Trial
|
|
63
|
+
- Pricing → Checkout → Success
|
|
64
|
+
- Onboarding flows
|
|
65
|
+
- For each funnel step, note:
|
|
66
|
+
- Dropoff rate (>30% is a red flag)
|
|
67
|
+
- Frustration/confusion scores
|
|
68
|
+
- Dwell time anomalies
|
|
69
|
+
|
|
70
|
+
#### 2c. Analyze Specific Flows
|
|
71
|
+
|
|
72
|
+
- Search: "analyze flow" → `analyze_flow`, `get_flow_friction`
|
|
73
|
+
- For pages with high dropoff or backtracking, analyze the flow in detail:
|
|
74
|
+
- What's the success rate for users entering this flow?
|
|
75
|
+
- Where are the bottlenecks?
|
|
76
|
+
- What's the friction score at each step?
|
|
77
|
+
|
|
78
|
+
#### 2d. Understand User Segments
|
|
79
|
+
|
|
80
|
+
- Search: "personas" → `discover_personas`
|
|
81
|
+
- Identify behavioral personas:
|
|
82
|
+
- Which personas struggle most?
|
|
83
|
+
- What are their risk factors?
|
|
84
|
+
- What interventions are recommended?
|
|
39
85
|
|
|
40
|
-
|
|
86
|
+
#### 2e. Compare Success vs Failure
|
|
87
|
+
|
|
88
|
+
- Search: "compare cohorts" → `compare_cohorts`
|
|
89
|
+
- For flows with low conversion, compare:
|
|
90
|
+
- Users who completed vs dropped off
|
|
91
|
+
- Users on mobile vs desktop
|
|
92
|
+
- New vs returning users
|
|
93
|
+
- Look for patterns: What do successful users do differently?
|
|
94
|
+
|
|
95
|
+
#### Presenting Flow Opportunities
|
|
96
|
+
|
|
97
|
+
Present opportunities alongside issues, clearly labeled:
|
|
98
|
+
|
|
99
|
+
> **Issues Found:**
|
|
100
|
+
>
|
|
101
|
+
> 1. [CRITICAL] Rage clicks on checkout button — JS error
|
|
102
|
+
> 2. [HIGH] Dead clicks on pricing toggle
|
|
103
|
+
>
|
|
104
|
+
> **Flow Optimization Opportunities:**
|
|
105
|
+
>
|
|
106
|
+
> 1. [OPPORTUNITY] 40% backtrack from /pricing to /features — consider adding feature comparison on pricing page
|
|
107
|
+
> 2. [OPPORTUNITY] 65% dropoff at step 2 of onboarding — simplify or add progress indicator
|
|
108
|
+
> 3. [OPPORTUNITY] Mobile users 3x more likely to abandon checkout — review mobile UX
|
|
109
|
+
|
|
110
|
+
### 3. Investigate
|
|
111
|
+
|
|
112
|
+
For each high-priority issue or opportunity, search for investigation tools:
|
|
41
113
|
|
|
42
114
|
- Search: "investigate issue" → `investigate_issue`, `validate_issue`
|
|
43
115
|
- This provides detailed context: affected sessions, element interactions, timing patterns
|
|
44
116
|
|
|
45
|
-
|
|
117
|
+
For flow opportunities, also consider:
|
|
118
|
+
|
|
119
|
+
- Watching session replays of users who dropped off vs completed
|
|
120
|
+
- Checking element friction on high-dropoff pages
|
|
121
|
+
|
|
122
|
+
### 4. Triage
|
|
46
123
|
|
|
47
124
|
Present findings to the user. Not all detected issues need fixing:
|
|
48
125
|
|
|
49
126
|
- Search: "dismiss issue" → `dismiss_issue`, `mark_intended_behavior`
|
|
50
127
|
- Some behaviors are intentional (e.g., rage clicks on a "copy" button)
|
|
51
|
-
-
|
|
128
|
+
- Some flow patterns may be acceptable (e.g., users comparing options before deciding)
|
|
129
|
+
- Ask the user which issues and opportunities to address before proceeding
|
|
52
130
|
|
|
53
|
-
###
|
|
131
|
+
### 5. Fix
|
|
54
132
|
|
|
55
|
-
Implement code changes to address
|
|
133
|
+
Implement code changes to address issues and opportunities. After making changes:
|
|
56
134
|
|
|
57
135
|
- Search: "propose fix" → `propose_fix`, `get_similar_fixes`, `get_fix_history`
|
|
58
136
|
- Log the remediation so recapt can track its effectiveness
|
|
59
137
|
|
|
60
|
-
|
|
138
|
+
For flow optimizations, common fixes include:
|
|
139
|
+
|
|
140
|
+
- Adding missing information to reduce backtracking
|
|
141
|
+
- Simplifying forms to reduce abandonment
|
|
142
|
+
- Adding progress indicators to multi-step flows
|
|
143
|
+
- Improving CTAs and visual hierarchy
|
|
144
|
+
- Adding social proof or trust signals at decision points
|
|
145
|
+
|
|
146
|
+
### 6. Track
|
|
61
147
|
|
|
62
148
|
Mark fixes as deployed so recapt can measure impact:
|
|
63
149
|
|
|
64
150
|
- Search: "deployment" → `confirm_deployment`, `evaluate_fix`, `list_pending_fixes`
|
|
65
151
|
|
|
66
|
-
###
|
|
152
|
+
### 7. Learn
|
|
67
153
|
|
|
68
154
|
Build site knowledge for future reference:
|
|
69
155
|
|
|
70
156
|
- Search: "site knowledge" → `get_site_knowledge`, `add_site_knowledge`
|
|
71
157
|
- Document patterns, intended behaviors, and architectural decisions
|
|
158
|
+
- Record successful flow optimizations for future reference
|
|
72
159
|
|
|
73
160
|
## Post-Fix Behavior
|
|
74
161
|
|
|
@@ -88,6 +175,11 @@ If the user agrees:
|
|
|
88
175
|
| ------------- | ------------------- | ---------------------------------------------------------- |
|
|
89
176
|
| Check Pending | "pending fixes" | `list_pending_fixes`, `evaluate_fix` |
|
|
90
177
|
| Diagnose | (always available) | `run_full_diagnostic` |
|
|
178
|
+
| Journey | "journey patterns" | `get_journey_patterns` |
|
|
179
|
+
| Funnels | "analyze funnel" | `analyze_funnel` |
|
|
180
|
+
| Flows | "analyze flow" | `analyze_flow`, `get_flow_friction` |
|
|
181
|
+
| Personas | "personas" | `discover_personas` |
|
|
182
|
+
| Compare | "compare cohorts" | `compare_cohorts` |
|
|
91
183
|
| Investigate | "investigate issue" | `investigate_issue`, `validate_issue` |
|
|
92
184
|
| Triage | "dismiss issue" | `dismiss_issue`, `mark_intended_behavior` |
|
|
93
185
|
| Fix | "propose fix" | `propose_fix`, `get_similar_fixes`, `get_fix_history` |
|