Unified social media analytics report — consolidates YouTube, Instagram, and LinkedIn data into one cross-platform HTML dashboard. Compares engagement, followers, top content across all platforms. Use when user says 'social analytics', 'social media report', 'social report', 'social metrics', 'cross-platform', or any reference to unified social media performance.
Routine that pulls data from ALL connected social platforms (YouTube, Instagram, LinkedIn) and generates a single comparative HTML report.
Always respond in English. Agente: @pixel
Execute the scripts for each integration and capture the results:
python3 {project-root}/.claude/skills/int-youtube/scripts/youtube_client.py summary
python3 {project-root}/.claude/skills/int-youtube/scripts/youtube_client.py recent_videos 1 10
python3 {project-root}/.claude/skills/int-instagram/scripts/instagram_client.py summary
python3 {project-root}/.claude/skills/int-instagram/scripts/instagram_client.py recent_posts your_account 10
python3 {project-root}/.claude/skills/int-instagram/scripts/instagram_client.py recent_posts secondary_account 10
python3 {project-root}/.claude/skills/int-linkedin/scripts/linkedin_client.py summary
If any platform fails or has no data, include in the report as "No data — platform not configured or API limited" without breaking the report.
Calculate:
One row per account:
| Platform | Account | Followers | Delta | Posts | Engagement | Best Content |
|---|---|---|---|---|---|---|
| YouTube | Your Channel | 7.450 | — | 27 | 7.0% | "Evo v3 chegando" |
| your_account | 686 | — | 18 | 3.9% | "Evo V3 funcionalidades" | |
| secondary_account | 273 | — | 76 | — | — | |
| Your Profile | — | — | — | — | Perfil apenas |
Rank the top 10 content from ALL platforms by engagement (likes + comments / views or followers). Show:
Read the previous report in workspace/social/reports/consolidated/ if it exists. Calculate deltas for:
Generate analysis with:
Read template .claude/templates/html/custom/social-analytics-report.html and fill all {{PLACEHOLDER}}.
{{REPORT_TYPE}} depende da frequência:
For comparison table rows:
<tr>
<td><span class="badge blue">YouTube</span></td>
<td>Your Channel</td>
<td class="right">7.450</td>
<td class="right delta up">+32</td>
<td class="right">27</td>
<td class="right">7.0%</td>
<td>Evo v3 chegando...</td>
</tr>
For platforms without data:
<tr style="opacity:0.5">
<td><span class="badge muted">LinkedIn</span></td>
<td>Your Profile</td>
<td class="right">—</td>
<td class="right">—</td>
<td class="right">—</td>
<td class="right">—</td>
<td style="color:var(--text-muted)">API limited — profile only</td>
</tr>
For {{MISSING_INTEGRATIONS}} — if any platform is not configured:
<div class="highlight-card" style="border-color: rgba(102,112,133,0.3);">
<div class="title" style="color: var(--text-muted);">Pending Integrations</div>
<div class="body">
<ul style="list-style:none;padding:0;">
<li>LinkedIn — Posts and Company Page (requires Community Management API)</li>
<li>Twitter — Not configured</li>
</ul>
</div>
</div>
workspace/social/reports/consolidated/[C] YYYY-MM-DD-social-analytics.html
Create directory if it does not exist.
Notify: reply(chat_id="YOUR_CHAT_ID", text="...")
Format:
📊 Social Analytics — {period}
👥 Total followers: {N} ({delta})
📹 YouTube: {subs} sub | {eng}% eng
📸 Instagram: {followers} fol | {eng}% eng
💼 LinkedIn: profile connected
🏆 Top: "{best content}" ({platform}, {eng}%)