genviral-skill
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 40 GitHub stars
Code Pass
- Code scan — Scanned 8 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Agent skill for the Genviral Partner API: slideshows, Studio AI media, analytics, and multi-platform posting for Claude Code, Codex, and Cursor.
Genviral Skill
An agent skill for the Genviral Partner API. Works with any coding agent that reads SKILL.md and can run shell commands.
Compatible with Claude Code, Codex, Cursor, Hermes, and other agent runtimes.
Generates slideshows, creates AI media via Studio, posts across platforms, tracks what performs, and adjusts strategy based on real data. Every cycle makes the next one better.
Supported Platforms
| Platform | Posting | Analytics | Notes |
|---|---|---|---|
| TikTok | Yes | Yes | Video and slideshow. BYO or hosted. TikTok settings are top-level tiktok on create (BYO only for TikTok-specific fields). |
| Yes | Yes | Feed/reel (post_type: post) or story. Use settings.instagram or settings.instagram-standalone. |
|
| YouTube | Yes | Yes | Video posts with settings.youtube (title, visibility, tags, etc.). |
| Yes | - | Posts with optional settings.facebook.url link attachment. |
|
| Yes | - | Image/slideshow pins; top-level pinterest.board_id required (no account default). |
|
| Yes | - | Posts and image carousels via settings.linkedin or settings.linkedin-page. |
|
| X / Twitter | Yes | - | Video or text-only (media: null when account supports text_only). settings.x or settings.twitter. |
| Bluesky | Yes | - | settings.bluesky: {} or omit. |
Not every account supports every content type. Run genviral accounts and read each account's capabilities before posting.
Analytics (performance tracking, post metrics, account insights) is available for TikTok, Instagram, and YouTube only.
For raw POST /posts JSON and provider field tables, use the canonical docs instead of skill-local copies of the full API spec:
- llms.txt: agent doc index
- Create Post: request body and
settings.*/tiktok/pinterestshapes
CLI Skill vs Remote MCP
Genviral offers two ways to connect coding agents:
- This repo (
genviral-skill): Local CLI skill backed by thegenviralnpm package,SKILL.mdplaybooks, and a localworkspace/feedback loop (hook library, post log, weekly reviews, visual QA gates). Best for autonomous content pipelines in Claude Code, Codex, Cursor, or CI. - Remote MCP (Genviral/genviral-mcp): Hosted Model Context Protocol server exposing Partner API tools directly over MCP with zero local CLI install. Best for quick interactive tool use in MCP clients or lightweight chat workflows.
You can use either one standalone, or pair the remote MCP server with this repo's docs/ playbooks and workspace/ tracking structure.
How It Works
The skill runs a closed loop:
- Generate slideshows from a prompt + image pack (with deliberate image selection via
pinned_images, never random picks) - Review every slide visually before anything gets posted (hard gate)
- Post to connected accounts across any supported platform
- Track performance through analytics endpoints
- Learn what hooks, formats, and timing actually work
- Adapt strategy weights, retire underperformers, double down on winners
Quick Start
# Install the npm CLI (once)
npm install -g genviral
# Set your API key
export GENVIRAL_API_KEY="your_public_id.your_secret"
# See what accounts you have
genviral accounts
# Pull niche intelligence in one call
genviral trend-brief --keyword "indie hacker" --range 7d --limit 10
# List image packs
genviral list-packs
# Generate a slideshow (always pin images; see docs/api/packs.md)
genviral generate \
--prompt "5 morning habits that changed my life" \
--pack-id PACK_ID \
--slides 5 \
--slide-config-json '{"total_slides":5,"slide_types":["image_pack","image_pack","image_pack","image_pack","image_pack"],"pinned_images":{"0":"URL_0","1":"URL_1","2":"URL_2","3":"URL_3","4":"URL_4"}}'
# Render and post
genviral render --id SLIDESHOW_ID
genviral create-post \
--caption "Caption with #hashtags" \
--media-type slideshow \
--media-urls "url1,url2,url3,url4,url5" \
--accounts ACCOUNT_ID
# Copy an existing TikTok slideshow into an editable draft
genviral copy-tiktok-preview --url "https://www.tiktok.com/@creator/photo/7499123456789012345"
genviral copy-tiktok-import \
--url "https://www.tiktok.com/@creator/photo/7499123456789012345" \
--preview-id PREVIEW_UUID \
--pack-id PACK_UUID
# Generate a "similar but new" variation using Studio + NanoBanana
genviral studio-generate-image \
--model-id "google/nano-banana-2" \
--image-urls "https://source-slide-url.jpg" \
--prompt "Create a new original ad image inspired by this slide, aligned with PRODUCT_CONTEXT."
# Returns image_id (async). Poll: genviral studio-image-status --image-id IMAGE_ID until output_url is set
# Check performance
genviral analytics-summary --range 30d
Analytics identity rule:
analyticsIdis the analytics-row ID (idis kept as a legacy alias)platformPostIdis the platform-native post/video IDgenviralPostIdis the originating Genviral post IDexternalIdis the originating Partner APIexternal_id
For BYO TikTok drafts (post_mode=MEDIA_UPLOAD), the initial TikTok draft/inbox publish_id is not the final public TikTok video ID. Use genviralPostId or externalId to correlate analytics back to created posts.
For Studio video generation, call genviral studio-models --mode video before relying on speech-specific flags. Today --speech-text, --voice-id, and --audio-url are only exposed for explicit talking/lipsync models; prompt-driven models like Sora/Veo are prompt-only, so put any desired dialogue directly inside --prompt.
Installation
Clone the repo, then install it wherever your agent loads skills from:
| Agent | Typical path |
|---|---|
| Claude Code | ~/.claude/skills/ or .claude/skills/ |
| Codex | ~/.codex/skills/ or .codex/skills/ |
| Cursor | ~/.cursor/skills/ or .cursor/skills/ |
| Other (Hermes, custom runners) | your agent's skills directory |
git clone https://github.com/fdarkaou/genviral-skill.git genviral
Point your agent at the genviral/ folder. SKILL.md is the entry point; docs/setup.md walks through first-time onboarding.
Requires: Node.js 20.19+ or 22.12+ and a Genviral account with Partner API access.
What's Inside
genviral/
SKILL.md # Kernel: agent entry point, routing table, non-negotiable rules
README.md # This file
LICENSE # MIT license
defaults.yaml # API config and defaults (no secrets here)
docs/
setup.md # Conversational onboarding guide and scheduling examples
api/
accounts-files.md # accounts, upload, list-files
folders.md # folder CRUD, move, ancestors, items management
influencers.md # list-influencers, get-influencer (consistent characters)
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 + mandatory smart image selection workflow
templates.md # template CRUD, create-from-slideshow
analytics.md # analytics summary, posts, targets, refresh, trend-brief
studio.md # Studio AI: generate images/videos (async), list models, poll status
subscription.md # subscription status, credits, tier
pipeline.md # full content pipeline, performance loop, CTA testing
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/ # Your instance data (never overwritten by updates)
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 with performance data
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
insights.md # Agent learnings from performance data
weekly-review.md # Weekly review notes
competitor-insights.md
scripts/
genviral.sh # Optional wrapper that delegates to the npm CLI and sets GENVIRAL_CONFIG
update-skill.sh # Self-updater (keeps skill files current, never touches workspace/)
Commands
| Category | Commands |
|---|---|
| Accounts & Files | accounts, upload, list-files |
| Folders | list-folders, create-folder, get-folder, move-folder, delete-folder, folder-ancestors, folder-items, folder-items-add, folder-items-remove |
| Influencers | list-influencers, get-influencer |
| Posts | create-post, update-post, retry-posts, list-posts, get-post, delete-posts |
| Slideshows | generate, render, review, update, regenerate-slide, duplicate, delete, list-slideshows, copy-tiktok-preview, copy-tiktok-import |
| Packs | list-packs, get-pack, create-pack, update-pack, delete-pack, add-pack-image, delete-pack-image |
| Templates | list-templates, get-template, create-template, update-template, delete-template, create-template-from-slideshow |
| Studio AI | studio-models, studio-generate-image, studio-image-status, studio-generate-video, studio-video-status |
| Analytics & Trends | analytics-summary, analytics-posts, analytics-targets, analytics-target-create, analytics-target-refresh, analytics-refresh, analytics-workspace-suggestions, trend-brief |
| Subscription | subscription (get-subscription) |
The genviral npm package publishes the genviral and genviral-cli binaries. Use genviral help for the full command list.
From the skill directory, ./scripts/genviral.sh <command> [options] is available as a convenience wrapper. It forwards to the npm genviral binary and points GENVIRAL_CONFIG at this skill's defaults.yaml when that variable is not already set.
Auto-Updates
The skill can update itself without touching your data:
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
Skill-owned (updated automatically): README.md, SKILL.md, scripts/, docs/ (all subdirs)
User-owned (never touched): workspace/ (your product context, hooks, performance logs, and content data are always preserved).
The Self-Improving Loop
The skill builds a feedback loop over time:
- After every post: log to
workspace/performance/log.json+ tag the hook inhook-tracker.json - At 48h and 7d: pull analytics, fill in real metrics per post
- Every Monday: review last 7 days, categorize hooks (double down / keep rotating / testing / dropped), update strategy
- Ongoing: high performers get used more, dead angles get retired
After 4+ weeks the patterns become clear enough to make data-driven decisions about hooks, CTA types, and post timing.
Troubleshooting
genviral: command not found: Install the CLI globally (npm install -g genviral). Do not install the outdated@genviral/clipackage.401 Unauthorizedon API calls: VerifyGENVIRAL_API_KEYis exported in the formatpublic_id.secretand has not been revoked in Genviral Settings > API Keys.- Studio image returns
output_url: null: Studio image and video generation are both async. Save theimage_idand pollgenviral studio-image-status --image-id <id>untiloutput_urlis populated. - GitHub API rate limit during
scripts/update-skill.sh: ExportGITHUB_TOKEN(or authenticate withgh auth login) to raise the hourly GitHub API limit. - More error codes: See
docs/api/errors.md.
Paid Meta Ads Automation
For paid Meta (Facebook/Instagram) Ads automation, use fdarkaou/ad-factory.
It pairs Claude Code with the official Meta Ads MCP, deterministic kill/scale rules, and approval gates.
Links
- Genviral
- Partner API docs: canonical REST reference alongside the
genviralCLI - Genviral Remote MCP: hosted MCP server for Partner API tools
- llms.txt: full doc index for agents
- Create Post:
POST /postspayload reference - ad-factory: paid Meta Ads automation with Claude Code + Meta Ads MCP
License
MIT
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found