@anysiteio/agent-skills 1.3.0 → 2.0.0
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/.claude-plugin/marketplace.json +61 -1
- package/.claude-plugin/plugin.json +5 -1
- package/README.md +27 -33
- package/bin/install.js +186 -135
- package/bundles.json +19 -0
- package/package.json +3 -2
- package/skills/anysite-audience-analysis/SKILL.md +110 -38
- package/skills/anysite-audience-analysis/references/PLATFORM_COVERAGE.md +38 -19
- package/skills/anysite-audience-analysis/references/TOOL_MAPPING.md +16 -11
- package/skills/anysite-brand-reputation/SKILL.md +105 -43
- package/skills/anysite-competitor-analyzer/SKILL.md +170 -111
- package/skills/anysite-competitor-intelligence/SKILL.md +201 -116
- package/skills/anysite-competitor-intelligence/references/ANALYSIS_PATTERNS.md +17 -13
- package/skills/anysite-content-analytics/SKILL.md +101 -33
- package/skills/anysite-crm-account-brief/SKILL.md +71 -0
- package/skills/anysite-crm-audit/SKILL.md +59 -0
- package/skills/anysite-crm-champions/SKILL.md +76 -0
- package/skills/anysite-crm-competitor-intel/SKILL.md +74 -0
- package/skills/anysite-crm-enrich/SKILL.md +84 -0
- package/skills/anysite-crm-lookalikes/SKILL.md +64 -0
- package/skills/anysite-crm-prospect/SKILL.md +90 -0
- package/skills/anysite-crm-score/SKILL.md +72 -0
- package/skills/anysite-crm-setup/SKILL.md +147 -0
- package/skills/anysite-crm-signals/SKILL.md +96 -0
- package/skills/anysite-influencer-discovery/SKILL.md +123 -71
- package/skills/anysite-lead-generation/SKILL.md +288 -256
- package/skills/anysite-lead-generation/references/LINKEDIN_STRATEGIES.md +79 -71
- package/skills/anysite-lead-generation/references/WEB_SCRAPING.md +121 -87
- package/skills/anysite-market-research/SKILL.md +117 -68
- package/skills/anysite-mcp/SKILL.md +128 -0
- package/skills/anysite-mcp-migration/SKILL.md +290 -0
- package/skills/anysite-person-analyzer/SKILL.md +86 -53
- package/skills/anysite-trend-analysis/SKILL.md +119 -55
- package/skills/anysite-vc-analyst/SKILL.md +12 -2
- package/skills/competitor-discovery/SKILL.md +350 -0
- package/skills/customer-pain-mining/SKILL.md +318 -0
- package/skills/positioning-map/SKILL.md +314 -0
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: anysite-mcp-migration
|
|
3
|
+
description: Migrate anysite MCP skills, prompts, and agent instructions from v1 (individual tools like search_linkedin_users, get_linkedin_profile) to v2 (universal meta-tools execute, discover, get_page, query_cache, export_data). Automatically rewrites tool references, adds pagination/filtering/export capabilities, and validates migrated output. Use when users need to update existing skills or prompts for the new anysite MCP v2 API, convert old tool calls to execute() format, or adapt workflows to use new v2 features like server-side filtering and data export.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# anysite MCP Migration Assistant
|
|
7
|
+
|
|
8
|
+
Migrate your anysite MCP skills, prompts, and agent instructions from v1 (individual tools) to v2 (universal meta-tools).
|
|
9
|
+
|
|
10
|
+
## Overview
|
|
11
|
+
|
|
12
|
+
Anysite MCP v2 replaces 70+ individual tools with 5 universal meta-tools. This skill helps you:
|
|
13
|
+
- **Rewrite tool references** from old format (`search_linkedin_users`, `get_linkedin_profile`) to new `execute()` calls
|
|
14
|
+
- **Add new v2 capabilities** like pagination, server-side filtering, aggregation, and file export
|
|
15
|
+
- **Validate migrated output** to ensure nothing was missed
|
|
16
|
+
- **Preserve workflow logic** while updating only the tool interface layer
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
- User says "migrate my skill to v2", "update for new anysite API", "convert to execute format"
|
|
21
|
+
- User pastes a skill or prompt that contains old-style tool names (`search_*`, `get_*`, `find_*`)
|
|
22
|
+
- User asks how to use new anysite MCP features (pagination, cache queries, export)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Migration Workflow
|
|
27
|
+
|
|
28
|
+
### Step 1: Receive Input
|
|
29
|
+
|
|
30
|
+
Ask the user for one of:
|
|
31
|
+
1. **A skill file path** — read the SKILL.md and any files in `references/`
|
|
32
|
+
2. **Pasted prompt text** — the raw text of their prompt or instruction
|
|
33
|
+
3. **A description** of what the skill does — you'll help build it from scratch using v2 format
|
|
34
|
+
|
|
35
|
+
### Step 2: Identify Old Tool References
|
|
36
|
+
|
|
37
|
+
Scan the input for any of these v1 tool name patterns:
|
|
38
|
+
|
|
39
|
+
| Pattern | Example |
|
|
40
|
+
|---------|---------|
|
|
41
|
+
| `search_linkedin_*` | `search_linkedin_users`, `search_linkedin_companies`, `search_linkedin_jobs`, `search_linkedin_posts` |
|
|
42
|
+
| `get_linkedin_*` | `get_linkedin_profile`, `get_linkedin_company`, `get_linkedin_user_posts` |
|
|
43
|
+
| `find_linkedin_*` | `find_linkedin_email`, `find_linkedin_user_email` |
|
|
44
|
+
| `google_linkedin_*` | `google_linkedin_search` |
|
|
45
|
+
| `search_twitter_*` / `get_twitter_*` | `search_twitter_users`, `get_twitter_user`, `get_twitter_user_tweets` |
|
|
46
|
+
| `search_instagram_*` / `get_instagram_*` | `search_instagram_users`, `get_instagram_user`, `get_instagram_post` |
|
|
47
|
+
| `search_youtube_*` / `get_youtube_*` | `search_youtube`, `get_youtube_channel`, `get_youtube_video` |
|
|
48
|
+
| `search_reddit_*` / `get_reddit_*` | `search_reddit`, `get_reddit_user`, `get_reddit_posts` |
|
|
49
|
+
| `search_yc_*` / `get_yc_*` | `search_yc_companies`, `get_yc_company` |
|
|
50
|
+
| `search_sec_*` / `get_sec_*` | `search_sec_filings`, `get_sec_document` |
|
|
51
|
+
| `scrape_webpage` | `scrape_webpage` |
|
|
52
|
+
| `mcp__anysite__*` | Any tool with the MCP prefix — strip prefix and match above |
|
|
53
|
+
|
|
54
|
+
Also look for references to **Crunchbase** — this source is disabled in v2 and must be removed.
|
|
55
|
+
|
|
56
|
+
### Step 3: Apply Tool Mapping
|
|
57
|
+
|
|
58
|
+
Replace each old tool call using this mapping:
|
|
59
|
+
|
|
60
|
+
#### LinkedIn
|
|
61
|
+
|
|
62
|
+
| Old tool | New execute() call |
|
|
63
|
+
|----------|-------------------|
|
|
64
|
+
| `search_linkedin_users(keywords, location, count, ...)` | `execute("linkedin", "search", "search_users", {"keywords": ..., "location": ..., "count": ...})` |
|
|
65
|
+
| `get_linkedin_profile(user)` | `execute("linkedin", "user", "get", {"user": ...})` |
|
|
66
|
+
| `get_linkedin_company(company)` | `execute("linkedin", "company", "get", {"company": ...})` |
|
|
67
|
+
| `search_linkedin_companies(keywords, count)` | `execute("linkedin", "search", "search_companies", {"keywords": ..., "count": ...})` |
|
|
68
|
+
| `search_linkedin_jobs(keywords, location, count)` | `execute("linkedin", "job_search", "search_jobs", {"keywords": ..., "count": ...})` |
|
|
69
|
+
| `search_linkedin_posts(keywords, count)` | `execute("linkedin", "post", "search_posts", {"keywords": ..., "count": ...})` |
|
|
70
|
+
| `get_linkedin_user_posts(user)` | `execute("linkedin", "post", "get_user_posts", {"user": ...})` |
|
|
71
|
+
| `find_linkedin_email(user)` | `execute("linkedin", "email", "find", {"user": ...})` |
|
|
72
|
+
| `google_linkedin_search(query, count)` | `execute("linkedin", "google", "search", {"query": ..., "count": ...})` |
|
|
73
|
+
|
|
74
|
+
#### Twitter/X
|
|
75
|
+
|
|
76
|
+
| Old tool | New execute() call |
|
|
77
|
+
|----------|-------------------|
|
|
78
|
+
| `search_twitter_users(query)` | `execute("twitter", "search", "search_users", {"query": ...})` |
|
|
79
|
+
| `get_twitter_user(username)` | `execute("twitter", "user", "get", {"username": ...})` |
|
|
80
|
+
| `get_twitter_user_tweets(username)` | `execute("twitter", "user_tweets", "get", {"username": ...})` |
|
|
81
|
+
|
|
82
|
+
#### Instagram
|
|
83
|
+
|
|
84
|
+
| Old tool | New execute() call |
|
|
85
|
+
|----------|-------------------|
|
|
86
|
+
| `search_instagram_users(query)` | `execute("instagram", "search", "search_users", {"query": ...})` |
|
|
87
|
+
| `get_instagram_user(username)` | `execute("instagram", "user", "get", {"username": ...})` |
|
|
88
|
+
| `get_instagram_post(url)` | `execute("instagram", "post", "get", {"url": ...})` |
|
|
89
|
+
|
|
90
|
+
#### YouTube
|
|
91
|
+
|
|
92
|
+
| Old tool | New execute() call |
|
|
93
|
+
|----------|-------------------|
|
|
94
|
+
| `search_youtube(query, count)` | `execute("youtube", "search", "search_videos", {"query": ..., "count": ...})` |
|
|
95
|
+
| `get_youtube_channel(channel_id)` | `execute("youtube", "channel", "get", {"channel_id": ...})` |
|
|
96
|
+
| `get_youtube_video(video_id)` | `execute("youtube", "video", "get", {"video_id": ...})` |
|
|
97
|
+
|
|
98
|
+
#### Reddit
|
|
99
|
+
|
|
100
|
+
| Old tool | New execute() call |
|
|
101
|
+
|----------|-------------------|
|
|
102
|
+
| `search_reddit(query)` | `execute("reddit", "search", "search", {"query": ...})` |
|
|
103
|
+
| `get_reddit_user(username)` | `execute("reddit", "user", "get", {"username": ...})` |
|
|
104
|
+
| `get_reddit_posts(subreddit)` | `execute("reddit", "posts", "get", {"subreddit": ...})` |
|
|
105
|
+
|
|
106
|
+
#### YC / SEC / Web
|
|
107
|
+
|
|
108
|
+
| Old tool | New execute() call |
|
|
109
|
+
|----------|-------------------|
|
|
110
|
+
| `search_yc_companies(query)` | `execute("yc", "search", "search", {"query": ...})` |
|
|
111
|
+
| `get_yc_company(slug)` | `execute("yc", "company", "get", {"slug": ...})` |
|
|
112
|
+
| `search_sec_filings(query)` | `execute("sec", "search", "search", {"query": ...})` |
|
|
113
|
+
| `get_sec_document(url)` | `execute("sec", "document", "get", {"url": ...})` |
|
|
114
|
+
| `scrape_webpage(url)` | `execute("webparser", "parse", "parse", {"url": ...})` |
|
|
115
|
+
|
|
116
|
+
### Step 4: Handle Unknown Endpoints
|
|
117
|
+
|
|
118
|
+
If the input references a tool name **not in the mapping above**:
|
|
119
|
+
|
|
120
|
+
1. Try to infer the source and category from the tool name (e.g., `get_instagram_user_friendships` → source `"instagram"`, category `"user"` or `"friendship"`)
|
|
121
|
+
2. **IMPORTANT: Actually call `discover()` yourself right now** — do NOT leave placeholder `{endpoint}` in the migrated output. Run `discover("{source}", "{category}")` via the MCP tool to get the real endpoint names and parameter schemas.
|
|
122
|
+
3. If the first category guess returns "Category not found", try alternative categories (e.g., if `"friendship"` fails, try `"user"` — the endpoint may be nested under a different category)
|
|
123
|
+
4. Once you get the real endpoint list from `discover()`, use the exact endpoint name and params in the migrated `execute()` call
|
|
124
|
+
|
|
125
|
+
**Example — resolving an unknown tool:**
|
|
126
|
+
```
|
|
127
|
+
Old tool: get_instagram_user_friendships(user, type, count)
|
|
128
|
+
→ Not in mapping table
|
|
129
|
+
→ You call: discover("instagram", "friendship") → error "Category not found"
|
|
130
|
+
→ You call: discover("instagram", "user") → returns endpoints including "user_friendships"
|
|
131
|
+
→ Migrated: execute("instagram", "user", "user_friendships", {"user": "...", "count": 100, "type": "followers"})
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
**Rules:**
|
|
135
|
+
- NEVER leave `discover()` as a placeholder instruction in the final migrated skill. The migrated output must contain exact `execute()` calls with real endpoint names and params.
|
|
136
|
+
- Only include `discover()` in the migrated skill text if the skill's workflow genuinely needs runtime discovery (e.g., the skill works with user-specified sources where the endpoint can't be known at migration time).
|
|
137
|
+
- If the mapping above covers the tool, use `execute()` directly — no discover needed.
|
|
138
|
+
- Run discover for ALL sources and categories used by the skill to verify that endpoint names and params in the mapping table are still accurate.
|
|
139
|
+
|
|
140
|
+
### Step 5: Add v2 Capabilities
|
|
141
|
+
|
|
142
|
+
Review the migrated skill for opportunities to add new v2 features:
|
|
143
|
+
|
|
144
|
+
#### Pagination
|
|
145
|
+
When the workflow processes large result sets or needs "more results":
|
|
146
|
+
```
|
|
147
|
+
Results from execute() include cache_key. If more data exists, use:
|
|
148
|
+
get_page(cache_key="{cache_key}", offset=10, limit=10)
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
#### Server-side Filtering
|
|
152
|
+
When the workflow filters results after fetching (e.g., "only show people in SF"):
|
|
153
|
+
```
|
|
154
|
+
After execute(), filter without consuming context tokens:
|
|
155
|
+
query_cache(cache_key="{cache_key}", conditions=[{"field": "location", "op": "contains", "value": "San Francisco"}])
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
#### Aggregation
|
|
159
|
+
When the workflow computes statistics or groups data:
|
|
160
|
+
```
|
|
161
|
+
query_cache(cache_key="{cache_key}", aggregate={"field": "followers", "op": "avg"}, group_by="industry")
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
#### Export to File
|
|
165
|
+
When the workflow outputs structured data (CSV, JSON) or the user needs downloadable results:
|
|
166
|
+
```
|
|
167
|
+
export_data(cache_key="{cache_key}", output_format="csv")
|
|
168
|
+
→ returns download URL
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
### Step 6: Update Error Handling
|
|
172
|
+
|
|
173
|
+
Replace old-style error handling:
|
|
174
|
+
|
|
175
|
+
**Before:**
|
|
176
|
+
```
|
|
177
|
+
If search_linkedin_users returns an error, try with different keywords.
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**After:**
|
|
181
|
+
```
|
|
182
|
+
If execute() returns an error with "llm_hint", follow the hint.
|
|
183
|
+
If execute() returns {"error": "Source not found", "available_sources": [...]}, check source name.
|
|
184
|
+
If execute() returns {"error": "Endpoint not found", "available_endpoints": [...]}, call discover() to find correct endpoint names.
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Step 7: Remove Disabled Sources
|
|
188
|
+
|
|
189
|
+
Remove any references to **Crunchbase** — this source is disabled in v2. If the skill relies on Crunchbase data, suggest alternatives:
|
|
190
|
+
- Company data → LinkedIn company profiles or Y Combinator
|
|
191
|
+
- Funding data → SEC filings or web scraping of funding databases
|
|
192
|
+
- Startup research → Y Combinator database
|
|
193
|
+
|
|
194
|
+
### Step 8: Validate
|
|
195
|
+
|
|
196
|
+
Run through this checklist on the migrated output:
|
|
197
|
+
|
|
198
|
+
- [ ] No remaining `search_linkedin_*`, `get_linkedin_*`, `find_linkedin_*` references
|
|
199
|
+
- [ ] No remaining `search_twitter_*`, `get_twitter_*` references
|
|
200
|
+
- [ ] No remaining `search_instagram_*`, `get_instagram_*` references
|
|
201
|
+
- [ ] No remaining `search_youtube_*`, `get_youtube_*` references
|
|
202
|
+
- [ ] No remaining `search_reddit_*`, `get_reddit_*` references
|
|
203
|
+
- [ ] No remaining `search_yc_*`, `get_yc_*` references
|
|
204
|
+
- [ ] No remaining `search_sec_*`, `get_sec_*` references
|
|
205
|
+
- [ ] No remaining `scrape_webpage` references
|
|
206
|
+
- [ ] No remaining `mcp__anysite__` prefixed tool names (old MCP format)
|
|
207
|
+
- [ ] No Crunchbase references
|
|
208
|
+
- [ ] `discover()` added only where endpoint/params are genuinely unknown
|
|
209
|
+
- [ ] `get_page` / `query_cache` / `export_data` added where beneficial
|
|
210
|
+
- [ ] Error handling updated to v2 format
|
|
211
|
+
- [ ] Original workflow logic preserved — same steps, same data flow
|
|
212
|
+
|
|
213
|
+
### Step 9: Output
|
|
214
|
+
|
|
215
|
+
Present the migrated skill in the same format as the input:
|
|
216
|
+
- If the input was a SKILL.md file → output the full migrated SKILL.md
|
|
217
|
+
- If the input was a prompt → output the migrated prompt text
|
|
218
|
+
- If the input was pasted text → output the migrated version
|
|
219
|
+
|
|
220
|
+
Always show a **migration summary** after the output:
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
## Migration Summary
|
|
224
|
+
- Tool calls replaced: N
|
|
225
|
+
- discover() calls added: N
|
|
226
|
+
- New v2 features added: [list]
|
|
227
|
+
- Crunchbase references removed: N
|
|
228
|
+
- Warnings: [any issues found]
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Examples
|
|
234
|
+
|
|
235
|
+
### Example 1: Simple Tool Replacement
|
|
236
|
+
|
|
237
|
+
**Input:**
|
|
238
|
+
```
|
|
239
|
+
Use search_linkedin_users to find CTOs in Berlin, then get_linkedin_profile for each result.
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**Output:**
|
|
243
|
+
```
|
|
244
|
+
Use execute("linkedin", "search", "search_users", {"title": "CTO", "location": "Berlin", "count": 10}) to find CTOs in Berlin, then execute("linkedin", "user", "get", {"user": "{alias}"}) for each result.
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
### Example 2: Multi-Step Workflow
|
|
248
|
+
|
|
249
|
+
**Input:**
|
|
250
|
+
```
|
|
251
|
+
1. Use search_linkedin_users to find the person
|
|
252
|
+
2. Use get_linkedin_profile to get their full profile
|
|
253
|
+
3. Use find_linkedin_email to get their email
|
|
254
|
+
4. Use get_twitter_user to check their Twitter
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Output:**
|
|
258
|
+
```
|
|
259
|
+
1. Use execute("linkedin", "search", "search_users", {"first_name": ..., "last_name": ..., "count": 5}) to find the person
|
|
260
|
+
2. Use execute("linkedin", "user", "get", {"user": "{alias from step 1}"}) to get their full profile
|
|
261
|
+
3. Use execute("linkedin", "email", "find", {"user": "{alias from step 1}"}) to get their email
|
|
262
|
+
4. Use execute("twitter", "user", "get", {"username": "..."}) to check their Twitter
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Example 3: Adding v2 Features
|
|
266
|
+
|
|
267
|
+
**Input:**
|
|
268
|
+
```
|
|
269
|
+
Search for 50 marketing managers and filter by location.
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
**Output:**
|
|
273
|
+
```
|
|
274
|
+
1. Use execute("linkedin", "search", "search_users", {"title": "Marketing Manager", "count": 50}) to search
|
|
275
|
+
2. If more results exist, use get_page(cache_key="{cache_key}", offset=10, limit=10) to load additional pages
|
|
276
|
+
3. Use query_cache(cache_key="{cache_key}", conditions=[{"field": "location", "op": "contains", "value": "..."}]) to filter by location server-side
|
|
277
|
+
4. Use export_data(cache_key="{cache_key}", output_format="csv") to download the filtered list
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
---
|
|
281
|
+
|
|
282
|
+
## Quick Reference: v2 Meta-Tools
|
|
283
|
+
|
|
284
|
+
| Tool | Purpose | When to use |
|
|
285
|
+
|------|---------|-------------|
|
|
286
|
+
| `discover(source, category)` | Learn available endpoints and params | Before execute() when endpoint name or params are unknown |
|
|
287
|
+
| `execute(source, category, endpoint, params)` | Fetch data from any source | Every data retrieval — replaces all v1 tools |
|
|
288
|
+
| `get_page(cache_key, offset, limit)` | Load more items from previous execute() | When execute() returned next_offset |
|
|
289
|
+
| `query_cache(cache_key, conditions, sort_by, aggregate, group_by)` | Filter/sort/aggregate cached data | When you need to slice results without re-fetching |
|
|
290
|
+
| `export_data(cache_key, format)` | Save dataset as downloadable file | When user needs CSV/JSON/JSONL export |
|
|
@@ -7,6 +7,22 @@ description: Deep multi-platform intelligence analysis combining LinkedIn (profi
|
|
|
7
7
|
|
|
8
8
|
Comprehensive multi-platform intelligence analysis combining LinkedIn, Twitter/X, Reddit, GitHub, and web presence data to create actionable intelligence reports with cross-platform personality insights.
|
|
9
9
|
|
|
10
|
+
## v2 Tool Interface
|
|
11
|
+
|
|
12
|
+
All data fetching uses the unified v2 MCP tools:
|
|
13
|
+
|
|
14
|
+
- **`execute(source, category, endpoint, params)`** - Fetch data. Returns first page + `cache_key`.
|
|
15
|
+
- **`get_page(cache_key, offset, limit)`** - Load more items from a previous execute (when `next_offset` is returned).
|
|
16
|
+
- **`query_cache(cache_key, conditions?, sort_by?, aggregate?, group_by?)`** - Filter, sort, or aggregate cached data without new API calls.
|
|
17
|
+
- **`export_data(cache_key, format)`** - Export full dataset as CSV, JSON, or JSONL. Returns download URL.
|
|
18
|
+
|
|
19
|
+
### v2 Error Handling
|
|
20
|
+
|
|
21
|
+
All `execute()` calls may return structured errors with `llm_hint` fields. When an error occurs:
|
|
22
|
+
- **412 errors**: Resource not found (e.g., user alias incorrect). Follow the `llm_hint` to resolve (typically: search first, then use the returned alias/URN).
|
|
23
|
+
- **422 errors**: Wrong parameter format (e.g., passed alias instead of URN). Check `llm_hint` for the correct format.
|
|
24
|
+
- **Rate limits**: Continue with data from other sources. Note limitations in report.
|
|
25
|
+
|
|
10
26
|
## Analysis Workflow
|
|
11
27
|
|
|
12
28
|
Execute phases sequentially, adapting depth based on available data and user requirements.
|
|
@@ -14,17 +30,17 @@ Execute phases sequentially, adapting depth based on available data and user req
|
|
|
14
30
|
### Phase 1: Initial Data Collection
|
|
15
31
|
|
|
16
32
|
**Starting with LinkedIn Profile URL:**
|
|
17
|
-
1. Use `
|
|
18
|
-
2. Extract and save the **full URN** (format: `urn:li:fsd_profile:ACoAAABCDEF`) - this is critical for all subsequent API calls
|
|
33
|
+
1. Use `execute("linkedin", "user", "user", {"user": "<profile_url_or_alias>", "with_experience": true, "with_education": true, "with_skills": true})` with full parameters
|
|
34
|
+
2. Extract and save the **full URN** (format: `urn:li:fsd_profile:ACoAAABCDEF`) from the response - this is critical for all subsequent API calls
|
|
19
35
|
3. Also extract: company URN, current role, location, connections count
|
|
20
36
|
4. Record profile completeness for confidence scoring
|
|
37
|
+
5. Save the `cache_key` from the response for later use with `query_cache()` or `export_data()`
|
|
21
38
|
|
|
22
|
-
**IMPORTANT - URN Format:**
|
|
23
|
-
Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the profile response for all subsequent calls to `
|
|
39
|
+
**IMPORTANT - URN Format:**
|
|
40
|
+
Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the profile response for all subsequent calls to `execute("linkedin", "user", "user_posts", ...)`, `execute("linkedin", "user", "user_comments", ...)`, and `execute("linkedin", "user", "user_reactions", ...)`. Do not use shortened versions or profile URLs.
|
|
24
41
|
|
|
25
42
|
**Starting with Name + Context:**
|
|
26
|
-
1. Use `
|
|
27
|
-
- Name, title, company keywords, location, school
|
|
43
|
+
1. Use `execute("linkedin", "search", "search_users", {"query": "<name>", "title": "<title>", "company": "<company>", "location": "<location>"})` with all available filters
|
|
28
44
|
2. If multiple matches: present top 3-5 candidates with distinguishing details
|
|
29
45
|
3. After user confirmation, proceed with confirmed profile
|
|
30
46
|
|
|
@@ -39,28 +55,28 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
39
55
|
### Phase 2: Activity & Engagement Analysis
|
|
40
56
|
|
|
41
57
|
**Content Analysis (Posts):**
|
|
42
|
-
1. Use `
|
|
58
|
+
1. Use `execute("linkedin", "user", "user_posts", {"urn": "<full_fsd_profile_URN>", "count": 20, "posted_after": <unix_timestamp>})` with the full URN (format: `urn:li:fsd_profile:ACoAAABCDEF`)
|
|
43
59
|
- Count: 20-50 depending on activity level
|
|
44
|
-
-
|
|
45
|
-
2.
|
|
60
|
+
- posted_after: Unix timestamp for last 90 days for active users, 180 days if low activity
|
|
61
|
+
2. If response includes `next_offset`, use `get_page(cache_key, offset, limit)` to load additional posts
|
|
62
|
+
3. Analyze for:
|
|
46
63
|
- Topics and themes (use clustering: technical, leadership, industry trends, personal)
|
|
47
64
|
- Engagement metrics (likes, comments per post - calculate averages)
|
|
48
65
|
- Posting frequency (calculate posts per week/month)
|
|
49
66
|
- Content style (thought leadership, sharing, personal stories, company updates)
|
|
50
67
|
- Language and tone
|
|
68
|
+
4. Use `query_cache(cache_key, sort_by={"field": "reactions", "order": "desc"})` to find their most engaging posts
|
|
51
69
|
|
|
52
70
|
**Engagement Analysis (Comments & Reactions):**
|
|
53
|
-
1. Use `
|
|
54
|
-
|
|
55
|
-
2. Use `get_linkedin_user_reactions` with the full URN (format: `urn:li:fsd_profile:ACoAAABCDEF`)
|
|
56
|
-
- Count: 50
|
|
71
|
+
1. Use `execute("linkedin", "user", "user_comments", {"urn": "<full_fsd_profile_URN>", "count": 30})` with the full URN (format: `urn:li:fsd_profile:ACoAAABCDEF`)
|
|
72
|
+
2. Use `execute("linkedin", "user", "user_reactions", {"urn": "<full_fsd_profile_URN>", "count": 50})` with the full URN (format: `urn:li:fsd_profile:ACoAAABCDEF`)
|
|
57
73
|
3. Analyze for:
|
|
58
74
|
- Who they engage with (seniority levels, industries)
|
|
59
75
|
- Topics that spark their engagement
|
|
60
76
|
- Engagement style (supportive, challenging, informational)
|
|
61
77
|
- Response patterns (quick reactions vs thoughtful comments)
|
|
62
78
|
|
|
63
|
-
**CRITICAL:** All three tools (`
|
|
79
|
+
**CRITICAL:** All three tools (`execute("linkedin", "user", "user_posts", ...)`, `execute("linkedin", "user", "user_comments", ...)`, `execute("linkedin", "user", "user_reactions", ...)`) require the complete URN in the format `urn:li:fsd_profile:ACoAAABCDEF` obtained from Phase 1. Using LinkedIn profile URLs or partial URNs will result in 422 errors (check `llm_hint` in error response for guidance).
|
|
64
80
|
|
|
65
81
|
**Output: Engagement Profile**
|
|
66
82
|
- Primary content themes (ranked by frequency)
|
|
@@ -71,19 +87,21 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
71
87
|
### Phase 3: Company Intelligence
|
|
72
88
|
|
|
73
89
|
**Current Company Deep Dive:**
|
|
74
|
-
1. Use `
|
|
90
|
+
1. Use `execute("linkedin", "company", "company", {"company": "<company_alias_or_url>"})` with company alias/URL from profile
|
|
75
91
|
2. Extract:
|
|
76
92
|
- Company size, industry, specialties
|
|
77
93
|
- Growth indicators (employee count trends if available)
|
|
78
94
|
- Company description and mission
|
|
79
95
|
- Recent updates/news
|
|
96
|
+
- Save `cache_key` for later filtering with `query_cache()`
|
|
80
97
|
|
|
81
|
-
3. Use `
|
|
98
|
+
3. Use `execute("linkedin", "company", "company_posts", {"urn": "<company_URN_with_company_prefix>", "count": 20})` (count: 20)
|
|
99
|
+
- Note: Company sub-endpoints require `company:{id}` prefix, NOT `fsd_company`. Convert: `urn:li:fsd_company:1441` -> use `company:1441`
|
|
82
100
|
- Analyze company communication themes
|
|
83
101
|
- Identify strategic priorities
|
|
84
102
|
- Note any mentions of funding, hiring, expansion
|
|
85
103
|
|
|
86
|
-
4. Use `
|
|
104
|
+
4. Use `execute("duckduckgo", "search", "search", {"query": "<search_terms>"})` for recent news:
|
|
87
105
|
- "[Company name] funding news"
|
|
88
106
|
- "[Company name] expansion launch product"
|
|
89
107
|
- Prioritize results from last 6 months
|
|
@@ -91,22 +109,23 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
91
109
|
**Company Social Media Presence:**
|
|
92
110
|
|
|
93
111
|
5. **Company Twitter/X Analysis:**
|
|
94
|
-
- Use `
|
|
95
|
-
- If found, use `
|
|
96
|
-
- Use `
|
|
112
|
+
- Use `execute("twitter", "search", "search_users", {"query": "[Company Name] official", "count": 5})` to find official company account
|
|
113
|
+
- If found, use `execute("twitter", "user", "user", {"user": "<username>"})` for profile stats
|
|
114
|
+
- Use `execute("twitter", "user", "user_posts", {"user": "<username>", "count": 20})` (count: 20-30) to analyze:
|
|
97
115
|
- Product announcements and launches
|
|
98
116
|
- Company culture and values
|
|
99
117
|
- Engagement with customers and community
|
|
100
118
|
- Hiring announcements (growth signals)
|
|
101
119
|
- Technical content (if tech company)
|
|
102
|
-
- Use `
|
|
120
|
+
- Use `execute("twitter", "search", "search_posts", {"query": "[Company Name]", "count": 20})` for company mentions:
|
|
103
121
|
- Customer sentiment (complaints vs praise)
|
|
104
122
|
- Industry discussion about the company
|
|
105
123
|
- Competitor comparisons
|
|
106
124
|
- Notable tweets from employees
|
|
125
|
+
- Use `query_cache(cache_key, sort_by={"field": "favorite_count", "order": "desc"})` to surface most-engaged tweets
|
|
107
126
|
|
|
108
127
|
6. **Company Reddit Presence:**
|
|
109
|
-
- Use `
|
|
128
|
+
- Use `execute("reddit", "search", "search_posts", {"query": "[Company Name]", "count": 20})` for company mentions
|
|
110
129
|
- Look for:
|
|
111
130
|
- r/startups discussions about the company
|
|
112
131
|
- Industry-specific subreddit mentions (r/SaaS, r/artificial, etc.)
|
|
@@ -114,6 +133,7 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
114
133
|
- Technical discussions about their product/platform
|
|
115
134
|
- Hiring experiences (Glassdoor-like insights)
|
|
116
135
|
- Founder/team AMAs or discussions
|
|
136
|
+
- Use `query_cache(cache_key, aggregate={"field": "subreddit", "function": "count"}, group_by="subreddit")` to see which subreddits discuss the company most
|
|
117
137
|
- Sentiment analysis: positive/negative/neutral community perception
|
|
118
138
|
- Pain points mentioned by users/customers
|
|
119
139
|
|
|
@@ -134,16 +154,17 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
134
154
|
|
|
135
155
|
1. **Find Twitter Handle:**
|
|
136
156
|
- Check LinkedIn profile bio/description for @username
|
|
137
|
-
- Use `
|
|
157
|
+
- Use `execute("twitter", "search", "search_users", {"query": "[First Name] [Last Name] [Company]", "count": 5})` with name if not found
|
|
138
158
|
- Verify match by checking bio, profile description
|
|
139
159
|
|
|
140
160
|
2. **Profile Analysis:**
|
|
141
|
-
- Use `
|
|
161
|
+
- Use `execute("twitter", "user", "user", {"user": "<username>"})` with username
|
|
142
162
|
- Extract: follower count, following count, tweet count, bio, location
|
|
143
163
|
- Note: verification status, profile creation date
|
|
144
164
|
|
|
145
165
|
3. **Content Analysis:**
|
|
146
|
-
- Use `
|
|
166
|
+
- Use `execute("twitter", "user", "user_posts", {"user": "<username>", "count": 50})` (count: 50-100 recent tweets)
|
|
167
|
+
- If response includes `next_offset`, use `get_page(cache_key, offset, limit)` to load more tweets up to 100
|
|
147
168
|
- Analyze for:
|
|
148
169
|
- Technical expertise signals (code snippets, tech discussions)
|
|
149
170
|
- Industry opinions and hot takes
|
|
@@ -151,9 +172,10 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
151
172
|
- Engagement with other thought leaders
|
|
152
173
|
- Retweets vs original content ratio
|
|
153
174
|
- Calculate: tweets per day, avg engagement rate
|
|
175
|
+
- Use `query_cache(cache_key, aggregate={"field": "favorite_count", "function": "avg"})` to compute average engagement
|
|
154
176
|
|
|
155
177
|
4. **Topic Discovery:**
|
|
156
|
-
- Use `
|
|
178
|
+
- Use `execute("twitter", "search", "search_posts", {"query": "[topic] from:@username", "count": 20})` with person's key interests
|
|
157
179
|
- Identify recurring themes and expertise areas
|
|
158
180
|
- Note controversial or strongly-held opinions
|
|
159
181
|
|
|
@@ -161,19 +183,20 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
161
183
|
|
|
162
184
|
1. **Find Reddit Presence:**
|
|
163
185
|
- Search for username from other platforms
|
|
164
|
-
- Use `
|
|
186
|
+
- Use `execute("reddit", "search", "search_posts", {"query": "<name_or_company>", "count": 20})` with name/company mentions
|
|
165
187
|
- Look for: "AMA" posts, technical discussions, community contributions
|
|
166
188
|
|
|
167
189
|
2. **Content Analysis:**
|
|
168
|
-
- Use `
|
|
190
|
+
- Use `execute("reddit", "search", "search_posts", {"query": "author:[username]", "count": 20})` with username if known
|
|
169
191
|
- Analyze for:
|
|
170
192
|
- Subreddit preferences (which communities they're active in)
|
|
171
193
|
- Technical depth of contributions
|
|
172
194
|
- Helping behavior vs self-promotion ratio
|
|
173
195
|
- Community reputation indicators
|
|
196
|
+
- Use `query_cache(cache_key, aggregate={"field": "subreddit", "function": "count"}, group_by="subreddit")` to identify most active subreddits
|
|
174
197
|
|
|
175
198
|
3. **Topic Expertise:**
|
|
176
|
-
- Use `
|
|
199
|
+
- Use `execute("reddit", "search", "search_posts", {"query": "[topic] [username or company]", "count": 20})` for specific topics
|
|
177
200
|
- Identify where they're seen as expert/helpful
|
|
178
201
|
- Note any popular posts or discussions they started
|
|
179
202
|
|
|
@@ -181,36 +204,37 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
181
204
|
|
|
182
205
|
1. **Profile Discovery:**
|
|
183
206
|
- Check if mentioned in LinkedIn or Twitter
|
|
184
|
-
- Use `
|
|
185
|
-
- Use `
|
|
207
|
+
- Use `execute("instagram", "search", "search_posts", {"query": "#[name] #[company]", "count": 10})` with hashtags
|
|
208
|
+
- Use `execute("instagram", "user", "user", {"user": "<handle>"})` if handle known
|
|
186
209
|
|
|
187
210
|
2. **Content Style:**
|
|
188
|
-
- Use `
|
|
211
|
+
- Use `execute("instagram", "user", "user_posts", {"user": "<handle>", "count": 20})` (count: 20-30)
|
|
212
|
+
- If more posts needed, use `get_page(cache_key, offset, limit)` to continue
|
|
189
213
|
- Analyze for: personal brand vs professional content
|
|
190
214
|
- Note: visual style, posting frequency, engagement rate
|
|
191
215
|
|
|
192
216
|
**D. Web Intelligence & Media Presence:**
|
|
193
217
|
|
|
194
218
|
1. **Professional Presence:**
|
|
195
|
-
- `
|
|
196
|
-
- `
|
|
197
|
-
- `
|
|
219
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] [Company] speaker conference"})`
|
|
220
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] interview podcast"})`
|
|
221
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] article blog post"})`
|
|
198
222
|
|
|
199
223
|
2. **Expertise & Thought Leadership:**
|
|
200
|
-
- `
|
|
224
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] expertise [primary topic from posts]"})`
|
|
201
225
|
- Check for: publications, talks, media mentions
|
|
202
|
-
- `
|
|
226
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] [key topic] site:medium.com OR site:dev.to OR site:substack.com"})`
|
|
203
227
|
|
|
204
228
|
3. **Company-Specific Context:**
|
|
205
|
-
- `
|
|
229
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] [Company] announcement"})`
|
|
206
230
|
- Look for: press releases, product launches, executive quotes
|
|
207
231
|
|
|
208
232
|
4. **GitHub/Tech Presence (if technical role):**
|
|
209
|
-
- `
|
|
233
|
+
- `execute("duckduckgo", "search", "search", {"query": "[Name] site:github.com"})`
|
|
210
234
|
- Look for: open source contributions, personal projects
|
|
211
235
|
|
|
212
236
|
**E. Parse Key Pages:**
|
|
213
|
-
- Use `
|
|
237
|
+
- Use `execute("webparser", "parse", "parse", {"url": "<page_url>"})` for high-value sources:
|
|
214
238
|
- Personal blog/website (if mentioned in any profile)
|
|
215
239
|
- Recent interviews or podcast appearances
|
|
216
240
|
- Conference speaker profiles
|
|
@@ -235,6 +259,11 @@ Always use the complete URN format `urn:li:fsd_profile:ACoAAABCDEF` from the pro
|
|
|
235
259
|
|
|
236
260
|
### Phase 5: Cross-Platform Strategic Analysis & Report Generation
|
|
237
261
|
|
|
262
|
+
**Data Export (optional):**
|
|
263
|
+
- Use `export_data(cache_key, "csv")` or `export_data(cache_key, "json")` to save collected datasets for the user
|
|
264
|
+
- Useful for: LinkedIn posts dataset, Twitter tweets dataset, Reddit mentions dataset
|
|
265
|
+
- Returns download URL the user can share or archive
|
|
266
|
+
|
|
238
267
|
**Connection Strategy:**
|
|
239
268
|
1. **Conversation Topics** (ranked by relevance, synthesized across all platforms):
|
|
240
269
|
- Top 3-5 topics from their LinkedIn posts/comments
|
|
@@ -335,7 +364,7 @@ Generate comprehensive markdown report with sections:
|
|
|
335
364
|
|
|
336
365
|
2. **[Theme 2]** (30% of posts)
|
|
337
366
|
- Key topics: [list]
|
|
338
|
-
|
|
367
|
+
|
|
339
368
|
3. **[Theme 3]** (20% of posts)
|
|
340
369
|
|
|
341
370
|
#### Engagement Patterns
|
|
@@ -523,12 +552,13 @@ Generate comprehensive markdown report with sections:
|
|
|
523
552
|
|
|
524
553
|
## Analysis Metadata
|
|
525
554
|
- **Platforms Analyzed:**
|
|
526
|
-
- LinkedIn: [
|
|
527
|
-
- Twitter/X: [
|
|
528
|
-
- Reddit: [
|
|
529
|
-
- GitHub: [
|
|
530
|
-
- Web: [
|
|
531
|
-
- **Data Sources:** [List specific
|
|
555
|
+
- LinkedIn: [Profile, Posts, Comments, Reactions]
|
|
556
|
+
- Twitter/X: [Found and analyzed / Not found / Not searched]
|
|
557
|
+
- Reddit: [Activity found / No activity / Not searched]
|
|
558
|
+
- GitHub: [Projects found / Not found / Not applicable]
|
|
559
|
+
- Web: [Articles/interviews found]
|
|
560
|
+
- **Data Sources:** [List specific execute() calls made]
|
|
561
|
+
- **Cache Keys:** [List cache_key values for re-query or export]
|
|
532
562
|
- **Data Freshness:**
|
|
533
563
|
- LinkedIn posts: [date range analyzed]
|
|
534
564
|
- Twitter: [date range if analyzed]
|
|
@@ -553,8 +583,11 @@ Generate comprehensive markdown report with sections:
|
|
|
553
583
|
- Always confirm with user before proceeding with deep analysis
|
|
554
584
|
- Present distinguishing factors clearly
|
|
555
585
|
|
|
556
|
-
**
|
|
557
|
-
-
|
|
586
|
+
**v2 Error Handling:**
|
|
587
|
+
- Check `llm_hint` field in error responses for resolution guidance
|
|
588
|
+
- **412 errors**: Resource not found -- search first to find correct alias/URN
|
|
589
|
+
- **422 errors**: Wrong parameter format -- typically alias passed where URN required
|
|
590
|
+
- Continue with available data from other sources on error
|
|
558
591
|
- Note limitations in report
|
|
559
592
|
- Suggest manual verification steps
|
|
560
593
|
|
|
@@ -596,9 +629,9 @@ Users may request analysis depth adjustment:
|
|
|
596
629
|
|
|
597
630
|
**Platform-Specific Focus:**
|
|
598
631
|
Users can also request focus on specific platforms:
|
|
599
|
-
- "Focus on Twitter presence"
|
|
600
|
-
- "Technical profile only"
|
|
601
|
-
- "Business profile"
|
|
602
|
-
- **"Company deep dive"
|
|
632
|
+
- "Focus on Twitter presence" -> Deep Twitter analysis for person AND company, standard LinkedIn
|
|
633
|
+
- "Technical profile only" -> LinkedIn + GitHub + Reddit + Stack Overflow (person focused)
|
|
634
|
+
- "Business profile" -> LinkedIn + web presence + media, skip Reddit/GitHub
|
|
635
|
+
- **"Company deep dive" -> Extended company social analysis across all platforms** (NEW)
|
|
603
636
|
|
|
604
637
|
Default to **Standard Analysis** unless specified.
|