当前位置: 首页 > Skill >

Viraloop

Viraloop

Viraloop

OpenClaw AI 代理技能,自动推动 TikTok 与 Instagram 轮播增长。分析任意网站 URL,提取品牌、竞争对手、价值主张,随后生成轮播。

0.1.0 2026.11.25 102
获取Skill文件查看使用说明
作 者:叶景 许可证: 更新时间:2026.11.25
本文目录展开

Viraloop

Analyze any website and generate a 6-slide carousel for TikTok/Instagram with visual coherence. Posts directly to your feed (no drafts) with auto trending music. Both APIs (Gemini + upload-post.com) have free plans — no credit card needed to start.

Philosophy: Daily Automated Loop

The key to growth is consistency + learning. This skill is designed to run every day, fully autonomous. The agent executes the entire pipeline without asking for confirmation — from research to publishing — and only notifies you at the end with the published TikTok and Instagram URLs.

  1. Post 1 carousel per day - Consistency beats virality
  2. Track everything - Every post generates data
  3. Learn from data - What hooks work? What times? What visuals?
  4. Iterate and improve - Each carousel is better than the last
Day 1: Post → Analyze → Learn
Day 2: Post (improved) → Analyze → Learn  
Day 3: Post (better) → Analyze → Learn
...
Day 30: You have 30 data points and a refined strategy

The skill maintains a learnings.json that accumulates insights across all posts:

  • Best performing hooks
  • Optimal posting times
  • Visual styles that work
  • CTAs that convert

This is not a one-shot tool. It's a growth engine.

Before You Start: Account Warmup

If your TikTok or Instagram accounts are brand new, don't post carousels on day one. Both platforms throttle reach on fresh accounts that jump straight into publishing content.

TikTok (7-14 days warmup)

  • Spend 30-60 minutes per day using TikTok normally: scroll, like (about 1 in 10 videos), follow accounts in your niche
  • Wait until your For You page is dominated by content in your niche — that means the algorithm has profiled your account
  • Only then start posting. Your first posts will reach the right audience instead of getting buried

Instagram (5-7 days warmup)

  • Browse Reels and the Explore page daily, engage with content in your niche
  • Follow relevant accounts, like and comment genuinely
  • Post 2-3 stories before your first carousel to signal the account is active

Why this matters

Platforms flag accounts that go from zero activity to automated posting. A warmed-up account gets 5-10x more initial reach than a cold one. This step is boring but it's the difference between 500 views and 50,000 views on your first carousel.

If your accounts are already active and established, skip this and go straight to Quick Start.

Quick Start

The agent should run the full pipeline automatically. Do not ask for confirmation between steps.

# 0. FIRST: Check analytics from previous posts + learn
#    (Skip this only on the very first run when there are no posts yet)
UPLOADPOST_TOKEN="your-token" bash {baseDir}/scripts/check-analytics.sh 7
node {baseDir}/scripts/learn-from-analytics.js

# 1. Full business research
node {baseDir}/scripts/analyze-web.js https://your-website.com

# 2. Read learnings.json and use best hooks/times/styles for this carousel
#    → Pick a hook style from bestHooks (or try a variation)
#    → Use recommended posting time
#    → Apply any insights from recommendations

# 3. Generate slides with visual coherence
GEMINI_API_KEY="your-key" bash {baseDir}/scripts/generate-slides.sh

# 4. Review slides with vision → auto-fix any broken ones
#    Agent uses its image-to-text model to verify each slide
#    If any slide has issues (cut text, bad quality, wrong spelling):
#      → Regenerate ONLY that slide automatically
#      → Re-verify until all 6 slides pass

# 5. Publish to TikTok + Instagram
UPLOADPOST_TOKEN="your-token" bash {baseDir}/scripts/publish-carousel.sh

The agent only notifies the user at the very end, with the published TikTok and Instagram post URLs. Everything else runs autonomously.

How Learnings Improve Each Carousel

The learnings.json file grows smarter with every post. Before generating slides, the agent reads it and applies:

  • Best hooks: Use hook styles that got the most views. Try variations of winners.
  • Best times: Schedule publishing at the time that historically gets most reach.
  • Best days: Prefer days that perform better.
  • Low performers: Avoid hook styles that consistently underperform.
  • Engagement tips: If engagement is low, use more provocative hooks or different visual styles.

This means carousel #30 will have dramatically better prompts than carousel #1.

Agent Execution Schedule: The agent shouldn't just run at a random time. It should read learnings.json, look at the bestTimes array, and automatically adjust its own cron/automation schedule so that tomorrow's execution happens right at the optimal publishing time.

First runs (no data yet): The first few times there won't be analytics data — that's fine. The agent uses the default hooks from analyze-web.js and the generic recommendations. After 5-10 posts, learnings.json will have enough data to start making meaningful recommendations. The more you post, the smarter it gets.

Image Model

Uses gemini-3.1-flash-image-preview to generate slides.

  • Local script: {baseDir}/scripts/generate_image.py
  • Supports image-to-image for visual coherence between slides

Step 1: Full Research (analyze-web.js)

Performs COMPLETE business investigation:

1. Brand Analysis

  • Brand name (from domain or title)
  • Logo (URL or SVG)
  • CSS colors (background, primary, links, headings)
  • Typography (body font, heading font)
  • Favicon

2. Content Analysis

  • Headline and tagline
  • All headings (page structure)
  • Features/benefits (title + description)
  • Pricing/plans
  • Testimonials
  • Stats/metrics
  • CTAs
  • Meta tags (title, description, og:image)

3. Internal Pages

  • Navigates pricing, features, about, testimonials
  • Extracts additional content from each page

4. Competitor Detection

  • Searches for known competitor mentions in content
  • List of 20+ known SaaS competitors (Buffer, Hootsuite, Later, etc.)
  • Detects "vs", "alternative", "compare" sections
  • No external searches required - all from the website itself

5. Storytelling

  • Detects business type (SaaS, ecommerce, app)
  • Detects niche (social-media-tools, developer-tools, etc.)
  • Generates hooks based on customer pain points
  • Defines pain points from features
  • Creates transformation narrative (before → after)

6. Visual Context

  • Brand colors in CSS format
  • Color description for prompts
  • Typography for slides
  • Image themes based on niche
  • Style guide for coherence

Output: /tmp/carousel/analysis.json

Step 2: Generate Slides (generate-slides.sh)

Generates 6 slides with visual coherence using image-to-image:

Slide Type Content
1 HOOK Question/problem that hooks. Establishes ALL visual style.
2 Problem Agitate the pain. "You upload to TikTok... then Instagram..."
3 Agitation Competition advancing. Urgency.
4 Solution Present the product with its value proposition.
5 Feature Main benefit.
6 CTA "Link in bio 👆" + call to action.

Visual Coherence

  • Slide 1 generates the base style (colors, typography, mood)
  • Slides 2-6 use image-to-image with slide 1 as reference
  • Maintains same color palette, fonts, and aesthetic

Prompts per Slide

Each slide has:

  • Text: The main message
  • Scene: Detailed visual description for background
  • Style: Based on brand analysis

Output:

  • /tmp/carousel/slide-{1-6}.jpg
  • /tmp/carousel/caption.txt

Step 3: Review with Vision (Autonomous)

After generating, the agent MUST review each slide using its vision/image-to-text model. This step is fully automatic — do not ask the user to review.

For each slide, verify:

  • ✓ Text is fully legible and correct
  • ✓ No words cut off at edges
  • ✓ Product name spelled correctly
  • ✓ Visual coherence between all slides
  • ✓ No text in bottom 20% (TikTok controls area)
  • ✓ Acceptable image quality (not blurry or distorted)

If any slide fails: Regenerate ONLY that specific slide automatically. Use the same input image that was used when originally generating it:

  • Slide 1: no input image (it establishes the style)
  • Slides 2-6: always use slide-1.jpg as --input-image (the original reference)

Re-verify after regenerating. Repeat until all 6 slides pass. Do not ask the user — fix it automatically.

Image Format

  • Resolution: 768x1376 (9:16 vertical ratio)
  • Format: JPG (TikTok does NOT accept PNG)
  • Text: Large, bold, with shadow for readability
  • Background: Scene relevant to the business, not just solid colors

Step 4: Publish to TikTok + Instagram (publish-carousel.sh)

Publishes the carousel directly to the TikTok and Instagram feed using Upload-Post API.

UPLOADPOST_TOKEN="your-token" bash {baseDir}/scripts/publish-carousel.sh

Endpoint: POST /api/upload_photos

  • Docs: https://docs.upload-post.com/api/upload-photo

Parameters sent:

  • platform[]=tiktok + platform[]=instagram
  • auto_add_music=true - Adds music on TikTok automatically
  • tiktok_title - Short title (max 90 chars) + hashtags
  • title - Full caption for Instagram
  • privacy_level=PUBLIC_TO_EVERYONE
  • media_type=IMAGE - Photo carousel on Instagram
  • async_upload=true - Process in background
  • photos[] - The 6 slides JPG

⚠️ IMPORTANT Instagram: After publishing, user must go to Instagram and add viral music manually:

  1. Open Instagram → Profile → The post
  2. Edit → Add music
  3. Search for trending/viral song

Output: Saves request_id in post-info.json for tracking.

Step 5: Analyze Performance (check-analytics.sh)

Gets TikTok and Instagram analytics to see what works.

UPLOADPOST_TOKEN="your-token" bash {baseDir}/scripts/check-analytics.sh 7

Endpoints used:

  1. Profile analytics:

    GET /api/analytics/{user}?platforms=tiktok
    

    → Followers, likes, comments, shares, impressions

  2. Total impressions:

    GET /api/uploadposts/total-impressions/{user}?platform=tiktok&breakdown=true
    

    → Total views per day

  3. Per-post analytics:

    GET /api/uploadposts/post-analytics/{request_id}
    

    → Views, likes, comments for the specific carousel (TikTok + Instagram)

Docs: https://docs.upload-post.com/api/get-analytics

Step 6: Learn and Improve (learn-from-analytics.js)

Analyzes data and saves learnings for future carousels. This must run at the START of every daily loop, not just at the end.

node {baseDir}/scripts/learn-from-analytics.js

Generates/updates:

  • learnings.json - Accumulated knowledge base
  • Best hooks (those generating most views)
  • Optimal posting times and days
  • Engagement rate tracking
  • Recommendations for the next carousel

The agent must read learnings.json before generating each new carousel and use the insights to pick better hooks, avoid underperforming styles, and schedule at optimal times.

Daily Loop (Complete Flow)

This is the exact sequence the agent runs every day, fully autonomous:

# STEP 0: Learn from previous posts (skip on first run)
UPLOADPOST_TOKEN="..." UPLOADPOST_USER="myuser" bash {baseDir}/scripts/check-analytics.sh 7
node {baseDir}/scripts/learn-from-analytics.js
# → Agent reads learnings.json and picks the best hook style
# → CRITICAL: Agent checks bestTimes and schedules ITS OWN NEXT EXECUTION for that exact hour tomorrow

# STEP 1: Research business
node {baseDir}/scripts/analyze-web.js https://my-product.com

# STEP 2: Generate slides (using insights from learnings)
GEMINI_API_KEY="..." bash {baseDir}/scripts/generate-slides.sh

# STEP 3: Review with vision → auto-fix broken slides
# Agent checks each slide, regenerates any that fail

# STEP 4: Publish
UPLOADPOST_TOKEN="..." UPLOADPOST_USER="myuser" bash {baseDir}/scripts/publish-carousel.sh

# → Notify user ONLY here, with TikTok + Instagram URLs

Files

{baseDir}/
├── SKILL.md                      # This documentation
└── scripts/
    ├── analyze-web.js            # Full business research
    ├── generate-slides.sh        # Generate 6 slides with coherence
    ├── generate_image.py         # Gemini 3.1 flash image
    ├── review-slides.js          # Prepare slides for review
    ├── publish-carousel.sh       # Publish via Upload-Post API
    ├── check-analytics.sh        # Get analytics (TikTok + Instagram)
    ├── learn-from-analytics.js   # Learn from data
    └── search-competitors.js     # Optional external search

Environment Variables

Variable Description
GEMINI_API_KEY Google API key for image generation
UPLOADPOST_TOKEN Upload-Post token for publishing and analytics
UPLOADPOST_USER Upload-Post username (required)

Hook Examples by Niche

Niche Hook Example
Social Media Tools "Still posting to social media ONE BY ONE? 😩"
SaaS General "Still doing this MANUALLY?"
Ecommerce "The product TikTok won't stop recommending"
App "The app I wish I'd discovered sooner"
Developer Tools "The API that's going to change your code"

Why Viraloop?

Viraloop Other skills
Publishing Direct to feed Drafts only
Music Auto trending music Manual
Platforms TikTok + Instagram Single platform
Research Auto URL analysis Manual description
Image coherence Image-to-image reference Independent slides
Image gen Gemini (free tier) Paid providers
Posting upload-post.com (free, no CC) Paid or self-hosted
Text overlay AI-native (Gemini renders) External scripts
Prompts Structured templates Free-form
Setup 3 env vars Complex multi-tool setup

Notes

  • Analysis extracts competitors from the website content itself (20+ known SaaS)
  • Image-to-image maintains coherence but takes ~20s per slide
  • Generated caption includes niche-relevant hashtags
  • Always review slide text - sometimes it gets cut off
  • auto_add_music on TikTok improves engagement
  • Check analytics after 24-48h for meaningful data
  • Learnings accumulate and improve with each published carousel
  • TikTok title max 90 characters (auto-truncated with hashtags)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
Skill 文件
  • SKILL.md
    • Viraloop
    • Philosophy: Daily Automated Loop
    • Before You Start: Account Warmup
      • TikTok (7-14 days warmup)
      • Instagram (5-7 days warmup)
      • Why this matters
    • Quick Start
      • How Learnings Improve Each Carousel
    • Image Model
    • Step 1: Full Research (analyze-web.js)
      • 1. Brand Analysis
      • 2. Content Analysis
      • 3. Internal Pages
      • 4. Competitor Detection
      • 5. Storytelling
      • 6. Visual Context
    • Step 2: Generate Slides (generate-slides.sh)
      • Visual Coherence
      • Prompts per Slide
    • Step 3: Review with Vision (Autonomous)
    • Image Format
    • Step 4: Publish to TikTok + Instagram (publish-carousel.sh)
    • Step 5: Analyze Performance (check-analytics.sh)
    • Step 6: Learn and Improve (learn-from-analytics.js)
    • Daily Loop (Complete Flow)
    • Files
    • Environment Variables
    • Hook Examples by Niche
    • Why Viraloop?
    • Notes
  • 项目或源文件

相关 Skill

更多
service-qa-coach service-qa-coach Review support quality for chat, email, phone, social DM, or marketplace service teams. Use when a team needs a QA scorecard, failure-mode analysis, coaching plan, calibration checklist, or service-improvement brief without live ticketing, CRM, or contact-center system access.
高中数学作业批改助手 高中数学作业批改助手 >图片识别 直接读取学生手写作答照片,识别公式、符号、步骤 🧮 自动推导 根据题目自动生成参考答案和评分细则,无需教师预设 📊 逐步给分 每个关键步骤独立评分,体现过程分 📝 结构化报告 输出含识别内容、参考答案、逐步评分、改进建议的完整报告 🗂 批量批改 支持一次性批改多道题,最终汇总得分表
Vibration Analysis Vibration Analysis 分析来自CMS趋势、RMS/峰值、频谱及SCADA报警的风机传动链(主轴、齿轮箱、发电机)振动数据。
Traditional Bone Tool Making Basics Traditional Bone Tool Making Basics Use when you need custom, durable, repairable tools like awls, needles, scrapers, harpoons, or fishing hooks made from local animal bones or antlers and comm...
音频混音工具 音频混音工具 名称:Sound Mixing Tool(标识 sound-mixing-tool) 短简介(≤60字):音乐/音效响度精确对齐 + 融合混音工作流:用 ffmpeg 两段式 loudnorm 把多组素材 LUFS 偏差压到 <0.10,再最小干预融合、导出可进引擎的独立分轨。 标签/关键词:音频混音 响度匹配 LUFS ffmpeg 游戏音频 音效设计 Wwise FMOD 分轨导出 后期处理 触发词:混音 · 响度匹配 · LUFS 对齐 · MIX 版本 · 音乐音效分轨 · 融合 · 不打架 · 不能盖住 适用场景 :游戏音频集成、影视短视频配乐、播客后期