Logo Genviral

Genviral

Cộng đồng
fdarkaou
genviral

Complete genviral Partner API automation. Create and schedule posts (video, slideshow, text-only) across TikTok, Instagram, YouTube, Pinterest, LinkedIn, Facebook, X, Bluesky, and other supported platforms. Includes slideshow generation, file uploads, template/pack management, analytics, and full content pipeline automation.

Tổng quan

Nhà phát hànhfdarkaou
Kho mãgenviral-skill
Tên kỹ nănggenviral
Sao
41
Bản fork
7
Tệp đi kèm
48
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 48 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được fdarkaou công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Genviral trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/fdarkaou/genviral-skill/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fdarkaou/genviral-skill.git \
  .claude/skills/genviral
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Genviral trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Genviral ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Genviral với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

genviral Partner API Skill

TL;DR: Uses the @genviral/cli npm package for 60+ Partner API commands; docs.genviral.io is the canonical REST reference (start with llms.txt and Create Post for POST /posts payload shapes). Core flow: get-pack → analyze images (metadata + vision) → generate with pinned_images → render → visual review (hard gate) → create-post → log to workspace/performance/log.json. TikTok copy flow: copy-tiktok-preview → copy-tiktok-import (with exactly one of pack_id or pack_images). Studio AI: studio-models → studio-generate-image (sync) or studio-generate-video → studio-video-status --poll (async). Folders: create-folder → folder-items-add to organize files/slideshows. Analytics correlation: treat analyticsId/id, platformPostId, and genviralPostId as different identifiers; use genviralPostId or externalId to map analytics rows back to created posts. Auth via GENVIRAL_API_KEY. Config in defaults.yaml. Instance data in workspace/.

What This Skill Does

  • Multi-Platform Posting: Video, slideshow, or text-only posts across TikTok, Instagram, YouTube, Pinterest, LinkedIn, Facebook, X, Bluesky (check each account's capabilities from GET /accounts)
  • Studio AI Generation: Generate images (sync) and videos (async) via AI models through the API
  • File Management: Upload videos/images to genviral's CDN; organize with folders
  • Folder Management: Nested folders for uploads, AI images, AI videos, and slideshows
  • AI Slideshow Generation: Photo carousels from prompts, rendered to images
  • Template System: Reusable slideshow structures, convert winners to templates
  • Pack Management: Image packs as slideshow backgrounds
  • Analytics: KPIs, post-level metrics, tracked accounts, refresh triggers
  • Niche Intelligence: One-call trend research (trend-brief) for hashtags, sounds, creators, posting windows, and hook angles
  • Content Pipeline: Full automation from prompt to posted content
  • Performance Tracking: Post log, hook tracking, weekly review
  • Hook Library: Maintain and evolve a library of proven content hooks

How It Works

  1. Generate or upload media
  2. Create a post targeting one or more accounts
  3. Schedule or publish (for TikTok slideshows, optionally save as drafts so you can add trending audio before publishing — music selection requires human judgment for best results)
  4. Track performance via analytics
  5. Learn and optimize

Important analytics identity rule:

  • analyticsId is the analytics-row ID (id is a legacy alias of the same value)
  • platformPostId is the platform-native post/video ID
  • genviralPostId is the originating Genviral post ID when correlation succeeds
  • externalId is the originating Partner API external_id when present
  • For BYO TikTok MEDIA_UPLOAD, the draft/inbox publish_id is not the final public TikTok video ID. Correlation is best-effort for recent unresolved drafts after the user actually publishes in TikTok, so older rows can still show genviralPostId / externalId as null.

All configuration in defaults.yaml. Secrets via environment variables. Everything posted shows up in the Genviral dashboard.

First-Time Setup

If fresh install, read docs/setup.md and walk the user through onboarding conversationally:

  1. Set API key and verify it works
  2. List accounts and pick which to post to
  3. Discuss image strategy (existing packs, create new, generate per post, or mix)
  4. Optionally set up product context and brand voice together

No hardcoded defaults. Ask the user what they prefer and adapt. Everything done through this skill shows up in the Genviral dashboard, so the user always has full visibility and control.

File Structure

genviral/
  SKILL.md                  # This file (kernel + routing)
  README.md                 # Human-facing overview
  defaults.yaml             # API config and defaults

  docs/
    setup.md                # Onboarding guide (conversational, 5 phases)
    api/
      accounts-files.md     # accounts, upload, list-files
      folders.md            # folder CRUD, move, ancestors, items management
      posts.md              # create-post, update-post, retry, list, get, delete
      slideshows.md         # generate/render/update + TikTok copy preview/import + text styles
      packs.md              # pack CRUD + smart image selection (MANDATORY reading for any pack workflow)
      templates.md          # template CRUD + create-from-slideshow
      analytics.md          # all analytics commands
      studio.md             # Studio AI: generate images/videos, list models, poll status
      subscription.md       # subscription status, credits, tier
      pipeline.md           # content pipeline, performance loop, CTA testing, platform tips
      errors.md             # error codes and troubleshooting
    references/
      analytics-loop.md     # Full analytics feedback loop and weekly review process
      competitor-research.md # How to research competitors
    prompts/
      slideshow.md          # Prompt templates for slideshow generation
      hooks.md              # Prompt templates for hook brainstorming

  workspace/                # All instance/customer data (override with GENVIRAL_WORKSPACE_DIR)
    content/
      scratchpad.md         # Working content plan and drafts
      calendar.json         # Upcoming planned posts
    context/
      product.md            # Product description, value props, target audience
      brand-voice.md        # Tone, style, do's and don'ts
      niche-research.md     # Platform research for the niche
    hooks/
      library.json          # Hook instances (grows over time, tracks performance)
      formulas.md           # Hook formula patterns and psychology
    performance/
      log.json              # CANONICAL post record (single source of truth)
      hook-tracker.json     # Hook and CTA tracking with metrics (the feedback loop)
      insights.md           # Agent learnings from performance data
      weekly-review.md      # Weekly review notes
      competitor-insights.md # Competitor research findings

  scripts/
    genviral.sh               # Optional wrapper that delegates to the npm CLI and sets GENVIRAL_CONFIG
    update-skill.sh           # Self-updater

Command Routing

Load only what you need for the current task:

TaskRead
Raw POST /posts JSON, provider settings, idempotency, scheduling rulesdocs.genviral.io/llms.txt + Create Post (do not duplicate the full spec in skill docs)
Account discovery, file uploaddocs/api/accounts-files.md
Folder management (create, list, move, delete, items)docs/api/folders.md
Influencers / consistent charactersdocs/api/influencers.md
Create, update, list, delete postsdocs/api/posts.md
Slideshow generation, TikTok copy import, rendering, editing, text stylesdocs/api/slideshows.md
Pack management, image selection (ANY pack workflow)docs/api/packs.md
Template creation and managementdocs/api/templates.md
Analytics queries and target managementdocs/api/analytics.md
Studio AI: generate images, videos, list modelsdocs/api/studio.md
Subscription: check credits, tier, renewal datesdocs/api/subscription.md
Research a specific niche quickly (trend + competitors + hooks)docs/api/analytics.md, docs/references/competitor-research.md, docs/prompts/hooks.md
Full content pipeline, performance loop, CTA testingdocs/api/pipeline.md
Error codes, troubleshootingdocs/api/errors.md

Niche Research Mode (When user asks to research a niche)

When asked things like "research this niche", "find what works in this niche", or "give me niche intelligence":

  1. Run trend-brief first for the niche keyword (7d baseline, then 24h for freshness if needed).
  2. Extract and report: top hashtags, top sounds, top creators, posting windows (UTC), recommended hook angles.
  3. Run competitor deep-dive using docs/references/competitor-research.md (3-5 accounts minimum).
  4. Produce a short actionable output with:
    • 3 hook angles to test
    • 2 CTA suggestions
    • 2 best posting windows
    • 5 hashtags to start with
    • 1 "gap to exploit" insight
  5. Save findings to workspace/performance/competitor-insights.md and use them in subsequent content prompts.

TikTok Copy Remix Mode (When user asks "make similar but new")

When the user wants to copy a TikTok slideshow idea but generate new visuals:

  1. Run copy-tiktok-preview first and capture preview_id, source image URLs, and slide count.
  2. Run copy-tiktok-import with exactly one pack source (pack_id or pack_images) so text overlays are extracted and mapped into editable slides.
  3. Generate replacement images through Studio using google/nano-banana-2 with each source slide image as reference input:
    • command: studio-generate-image --model-id "google/nano-banana-2" --image-urls "<source_url>" --prompt "<product-aware transformation prompt>"
  4. Build prompts with product context from workspace/context/product.md so generated visuals stay relevant to the advertised product.
  5. Replace slide backgrounds with generated URLs (update --slides-file ...) while preserving/editing imported text elements.
  6. Render (render) and review (review) before posting; never skip visual QA.

Analytics Correlation Mode (When user asks "match analytics back to posts")

  1. Pull analytics-posts --json.
  2. Prefer genviralPostId for matching analytics rows back to Genviral posts.
  3. If you need the caller's own stable ID, use externalId.
  4. Treat analyticsId/legacy id as the analytics-row identifier only.
  5. Treat platformPostId as the platform-native TikTok/Instagram/YouTube post identifier only.
  6. For BYO TikTok drafts (MEDIA_UPLOAD), do not assume a draft upload is correlated immediately. The draft publish_id becomes matchable only after the human posts from TikTok and Genviral resolves it to the final public TikTok video ID.

Canonical API Reference

Use the CLI for day-to-day automation. For REST payloads, validation rules, and provider-specific fields, treat docs.genviral.io as source of truth alongside the CLI:

  1. llms.txt — full doc index for agents (prefer over copying endpoint lists into prompts).
  2. Create Post — POST /api/partner/v1/posts body: caption, accounts, media, scheduled_at, external_id, music_url, and provider settings.

Do not paste or maintain a full Partner API spec in skill files. Summarize workflows here; fetch shapes from the docs above when building or debugging requests.

Posting payload reminders (see Create Post for tables and limits):

  • Call GET /accounts first; use each account's capabilities (supported_content_kinds, caption_limit). capabilities.settings_schema reflects the dashboard composer and may not match Partner API field names.
  • TikTok and Pinterest settings are top-level tiktok and pinterest on create — not settings.tiktok / settings.pinterest.
  • Other platforms use settings.<provider> (e.g. settings.youtube, settings.x, settings.instagram or settings.instagram-standalone, settings.bluesky).
  • Omit media only when every selected account supports text_only.
  • music_url is TikTok-only (rejected if any non-TikTok account is selected).
  • scheduled_at must be ISO 8601 with a timezone offset; true schedules need to be at least 2 minutes in the future.
  • Prefer external_id for idempotency (max 128 chars); same key + same payload replays with duplicate: true.

Non-Negotiable Rules

These apply regardless of what docs you've loaded:

  1. ALWAYS use pinned_images when generating a slideshow with a pack. Never call generate with just --pack-id — the server will pick random images. Read docs/api/packs.md before any pack workflow.

  2. ALWAYS visually review every rendered slide before posting. If any slide fails readability, fix it. This is a hard gate — not a suggestion.

  3. ALWAYS log to workspace/performance/log.json immediately after posting. This is the canonical record.

  4. ALWAYS add a hook-tracker entry after posting. No tracking = no learning.

  5. Never use em-dashes in any generated content.

  6. Respect workspace/ — all instance data lives here. Do not write state files to the skill root.

CLI Install

Install the Partner API CLI once globally:

bash
npm install -g @genviral/cli

The npm package publishes genviral and genviral-cli. Prefer the genviral binary in instructions and automation.

Local install from the monorepo (before npm publish):

bash
pnpm --filter @genviral/partner-api-contracts pack --pack-destination /tmp
pnpm --filter @genviral/cli pack --pack-destination /tmp
npm install -g /tmp/genviral-partner-api-contracts-0.1.0.tgz /tmp/genviral-cli-0.1.0.tgz

The skill's scripts/genviral.sh is only a convenience wrapper. It forwards to the npm genviral binary and sets GENVIRAL_CONFIG to this skill's defaults.yaml when that variable is not already set. Do not document or depend on it as a separate shell implementation of Partner API commands.

CLI Usage

bash
genviral <command> [options]
# or from the skill directory:
./scripts/genviral.sh <command> [options]

Requires GENVIRAL_API_KEY as an environment variable (format: public_id.secret). The CLI loads defaults from --config or GENVIRAL_CONFIG; the skill wrapper points GENVIRAL_CONFIG at defaults.yaml for local skill runs. Set GENVIRAL_WORKSPACE_DIR to override the workspace path (defaults to workspace/ relative to the skill dir).

Auto-Updates

This skill includes a self-updater that keeps skill-owned files in sync with the latest version from fdarkaou/genviral-skill.

bash
bash scripts/update-skill.sh           # check + apply if updates available
bash scripts/update-skill.sh --dry-run # preview only, no changes
bash scripts/update-skill.sh --force   # force re-apply even if already current

What gets updated (skill-owned): README.md, SKILL.md, scripts/, docs/ (all subdirs)

What never gets touched (user-owned): workspace/ — your data, context, hooks, and performance logs are always preserved.


Notes

  • Partner API base URL: https://www.genviral.io/api/partner/v1 (see Introduction)
  • Posting: TikTok, Instagram, YouTube, Facebook, Pinterest, LinkedIn, X, Bluesky (analytics: TikTok, Instagram, YouTube only)
  • Supports video, slideshow, and text-only posts (per account capabilities)
  • Works with hosted and BYO accounts; TikTok-specific settings require BYO TikTok on create
  • Posts can be scheduled or queued for immediate publishing
  • TikTok slideshow drafts: use top-level tiktok.post_mode: MEDIA_UPLOAD to save to drafts inbox for audio addition
  • BYO TikTok draft uploads (MEDIA_UPLOAD) create the Genviral post immediately, but the final public TikTok video ID exists only after the user publishes in TikTok. In analytics-posts, use genviralPostId or externalId for correlation; treat analyticsId/legacy id as the analytics-row ID and platformPostId as the TikTok-native ID.

Meta Ads Companion (Included)

This repo includes the meta-ads companion guide in the meta-ads/ directory — an autonomous Meta (Facebook/Instagram) Ads manager and 8-stage AI campaign builder that uses Genviral's Studio API for ad creative generation.

See meta-ads/INSTRUCTIONS.md for the bundled workflow and setup guide.

Also available standalone: fdarkaou/meta-ads-skill

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Genviral làm được gì?

Complete genviral Partner API automation. Create and schedule posts (video, slideshow, text-only) across TikTok, Instagram, YouTube, Pinterest, LinkedIn, Facebook, X, Bluesky, and other supported platforms. Includes slideshow generation, file uploads, template/pack management, analytics, and full content pipeline automation.

Vì sao nên dùng Genviral trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Genviral là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Genviral trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/fdarkaou/genviral-skill/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Genviral?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Genviral với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Genviral với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Genviral có miễn phí không?

Kỹ năng này được fdarkaou phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇