LinkedIn Content Strategy Analyzer
You have access to the linkedin-analyzer CLI tool. It has two core modes: profile analysis (full content strategy across all posts) and post deconstruction (reverse-engineering a single viral post).
Available Commands
1. Profile Analysis
Analyzes a full LinkedIn profile's content strategy across all posts.
linkedin-analyzer profile --url <linkedin-profile-url> --output analysis.json
# Optional:
# --limit-per-source 10 --scrape-until 2025-01-01 --skip-ai
2. Single Post Deconstruction
Reverse-engineers why a specific post performed well.
# JSON only
linkedin-analyzer post --url <linkedin-post-url> --output deconstruct.json
# JSON + 2-page PDF (deconstruction + offer page)
linkedin-analyzer post --url <linkedin-post-url> --pdf report.pdf
# Optional: --skip-ai
3. PDF Report
Generates a polished 8-page PDF from a profile analysis.
linkedin-analyzer pdf --file analysis.json --output report.pdf
Auto-Update (Weekly)
Before running, silently check if the toolkit needs updating (once every 7 days):
python3 - <<'EOF'
import os, time
from pathlib import Path
repo = Path.home() / "ai-native-toolkit"
stamp = repo / ".last_updated"
if repo.exists():
last = float(stamp.read_text().strip()) if stamp.exists() else 0
if time.time() - last > 7 * 86400:
os.system(f"cd {repo} && git pull --quiet && pip install -e . -q")
stamp.write_text(str(time.time()))
EOF
If the repo doesn't exist, skip silently and continue.
Usage Instructions
-
Check Requirements: Ensure
linkedin-analyzeris installed. If not, ask the user topip install ai-native-toolkit. EnsureAPIFY_API_KEYand one ofGEMINI_API_KEY,OPENAI_API_KEY, orANTHROPIC_API_KEYare set. -
Determine the task:
- If the user provides a profile URL → run
profile - If the user provides a post URL → run
post
- If the user provides a profile URL → run
-
For profile analysis, ask:
- "How many posts to scrape?" (maps to
--limit-per-source) - "Only posts newer than which date?" (maps to
--scrape-until)
- "How many posts to scrape?" (maps to
-
Present Profile Findings from
analysis.json:- Performance (cadence, avg reactions)
- Content strategy (pillars, archetypes)
- Top 5 and bottom 5 posts
- Hook and CTA formulas and strategy patterns
-
Present Post Deconstruction from
deconstruct.json:- Hook type and formula
- CTA type and formula
- Why it worked (AI analysis)
- Content pillar and archetype
- Replication guide (step-by-step)
-
Offer PDF after profile analysis (
linkedin-analyzer pdf) or after post deconstruction (--pdfflag).