genviral Partner API Skill
TL;DR: Wraps genviral's Partner API into 50+ bash commands. 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. Studio AI: studio-models → studio-generate-image (sync) or studio-generate-video → studio-video-status --poll (async). Auth via GENVIRAL_API_KEY. Config in defaults.yaml. Instance data in workspace/.
What This Skill Does
- Multi-Platform Posting: Video or slideshow posts across TikTok, Instagram, YouTube, Pinterest, LinkedIn, Facebook
- Studio AI Generation: Generate images (sync) and videos (async) via AI models through the API
- File Management: Upload videos/images to genviral's CDN
- 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
- Generate or upload media
- Create a post targeting one or more accounts
- 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)
- Track performance via analytics
- Learn and optimize
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:
- Set API key and verify it works
- List accounts and pick which to post to
- Discuss image strategy (existing packs, create new, generate per post, or mix)
- 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
posts.md # create-post, update-post, retry, list, get, delete
slideshows.md # generate, render, review, update, regenerate, duplicate, list + 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 # Main API wrapper (all commands)
update-skill.sh # Self-updater
Command Routing
Load only what you need for the current task:
| Task |
Read |
| Account discovery, file upload |
docs/api/accounts-files.md |
| Create, update, list, delete posts |
docs/api/posts.md |
| Slideshow generation, rendering, editing, text styles |
docs/api/slideshows.md |
| Pack management, image selection (ANY pack workflow) |
docs/api/packs.md |
| Template creation and management |
docs/api/templates.md |
| Analytics queries and target management |
docs/api/analytics.md |
| Studio AI: generate images, videos, list models |
docs/api/studio.md |
| Subscription: check credits, tier, renewal dates |
docs/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 testing |
docs/api/pipeline.md |
| Error codes, troubleshooting |
docs/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":
- Run
trend-brief first for the niche keyword (7d baseline, then 24h for freshness if needed).
- Extract and report: top hashtags, top sounds, top creators, posting windows (UTC), recommended hook angles.
- Run competitor deep-dive using
docs/references/competitor-research.md (3-5 accounts minimum).
- 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
- Save findings to
workspace/performance/competitor-insights.md and use them in subsequent content prompts.
Non-Negotiable Rules
These apply regardless of what docs you've loaded:
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.
ALWAYS visually review every rendered slide before posting. If any slide fails readability, fix it. This is a hard gate — not a suggestion.
ALWAYS log to workspace/performance/log.json immediately after posting. This is the canonical record.
ALWAYS add a hook-tracker entry after posting. No tracking = no learning.
Never use em-dashes in any generated content.
Respect workspace/ — all instance data lives here. Do not write state files to the skill root.
Script Usage
/path/to/genviral/scripts/genviral.sh <command> [options]
Requires GENVIRAL_API_KEY as an environment variable (format: public_id.secret). Loads defaults from defaults.yaml. 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 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): SKILL.md, scripts/, docs/ (all subdirs)
What never gets touched (user-owned): workspace/ — your data, context, hooks, and performance logs are always preserved.
Notes
- Works with any platform genviral supports (TikTok, Instagram, etc.)
- Supports both video and slideshow posts
- Works with hosted and BYO accounts
- Posts can be scheduled or queued for immediate publishing
- TikTok slideshow drafts: use
post_mode: MEDIA_UPLOAD to save to drafts inbox for audio addition
1---
2name: genviral
3description: Complete genviral Partner API automation. Create and schedule posts (video + slideshow) across TikTok, Instagram, and any supported platform. Includes slideshow generation, file uploads, template/pack management, analytics, and full content pipeline automation.
4homepage: https://github.com/fdarkaou/genviral-skill
5metadata:
6 source: https://skillmd.com/skills/modbender/genviral
7 openclaw:
8 emoji: "🎬"
9 requires:
10 bins: ["curl", "jq", "bash"]
11---
12
13# genviral Partner API Skill
14
15> **TL;DR:** Wraps genviral's Partner API into 50+ bash commands. 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`. Studio AI: `studio-models` → `studio-generate-image` (sync) or `studio-generate-video` → `studio-video-status --poll` (async). Auth via `GENVIRAL_API_KEY`. Config in `defaults.yaml`. Instance data in `workspace/`.
16
17## What This Skill Does
18
19- **Multi-Platform Posting:** Video or slideshow posts across TikTok, Instagram, YouTube, Pinterest, LinkedIn, Facebook
20- **Studio AI Generation:** Generate images (sync) and videos (async) via AI models through the API
21- **File Management:** Upload videos/images to genviral's CDN
22- **AI Slideshow Generation:** Photo carousels from prompts, rendered to images
23- **Template System:** Reusable slideshow structures, convert winners to templates
24- **Pack Management:** Image packs as slideshow backgrounds
25- **Analytics:** KPIs, post-level metrics, tracked accounts, refresh triggers
26- **Niche Intelligence:** One-call trend research (`trend-brief`) for hashtags, sounds, creators, posting windows, and hook angles
27- **Content Pipeline:** Full automation from prompt to posted content
28- **Performance Tracking:** Post log, hook tracking, weekly review
29- **Hook Library:** Maintain and evolve a library of proven content hooks
30
31## How It Works
32
331. Generate or upload media
342. Create a post targeting one or more accounts
353. 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)
364. Track performance via analytics
375. Learn and optimize
38
39All configuration in `defaults.yaml`. Secrets via environment variables. Everything posted shows up in the Genviral dashboard.
40
41## First-Time Setup
42
43If fresh install, read `docs/setup.md` and walk the user through onboarding conversationally:
441. Set API key and verify it works
452. List accounts and pick which to post to
463. Discuss image strategy (existing packs, create new, generate per post, or mix)
474. Optionally set up product context and brand voice together
48
49No 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.
50
51## File Structure
52
53```
54genviral/
55 SKILL.md # This file (kernel + routing)
56 README.md # Human-facing overview
57 defaults.yaml # API config and defaults
58
59 docs/
60 setup.md # Onboarding guide (conversational, 5 phases)
61 api/
62 accounts-files.md # accounts, upload, list-files
63 posts.md # create-post, update-post, retry, list, get, delete
64 slideshows.md # generate, render, review, update, regenerate, duplicate, list + text styles
65 packs.md # pack CRUD + smart image selection (MANDATORY reading for any pack workflow)
66 templates.md # template CRUD + create-from-slideshow
67 analytics.md # all analytics commands
68 studio.md # Studio AI: generate images/videos, list models, poll status
69 subscription.md # subscription status, credits, tier
70 pipeline.md # content pipeline, performance loop, CTA testing, platform tips
71 errors.md # error codes and troubleshooting
72 references/
73 analytics-loop.md # Full analytics feedback loop and weekly review process
74 competitor-research.md # How to research competitors
75 prompts/
76 slideshow.md # Prompt templates for slideshow generation
77 hooks.md # Prompt templates for hook brainstorming
78
79 workspace/ # All instance/customer data (override with GENVIRAL_WORKSPACE_DIR)
80 content/
81 scratchpad.md # Working content plan and drafts
82 calendar.json # Upcoming planned posts
83 context/
84 product.md # Product description, value props, target audience
85 brand-voice.md # Tone, style, do's and don'ts
86 niche-research.md # Platform research for the niche
87 hooks/
88 library.json # Hook instances (grows over time, tracks performance)
89 formulas.md # Hook formula patterns and psychology
90 performance/
91 log.json # CANONICAL post record (single source of truth)
92 hook-tracker.json # Hook and CTA tracking with metrics (the feedback loop)
93 insights.md # Agent learnings from performance data
94 weekly-review.md # Weekly review notes
95 competitor-insights.md # Competitor research findings
96
97 scripts/
98 genviral.sh # Main API wrapper (all commands)
99 update-skill.sh # Self-updater
100```
101
102## Command Routing
103
104Load only what you need for the current task:
105
106| Task | Read |
107|------|------|
108| Account discovery, file upload | `docs/api/accounts-files.md` |
109| Create, update, list, delete posts | `docs/api/posts.md` |
110| Slideshow generation, rendering, editing, text styles | `docs/api/slideshows.md` |
111| Pack management, image selection (ANY pack workflow) | `docs/api/packs.md` |
112| Template creation and management | `docs/api/templates.md` |
113| Analytics queries and target management | `docs/api/analytics.md` |
114| Studio AI: generate images, videos, list models | `docs/api/studio.md` |
115| Subscription: check credits, tier, renewal dates | `docs/api/subscription.md` |
116| Research a specific niche quickly (trend + competitors + hooks) | `docs/api/analytics.md`, `docs/references/competitor-research.md`, `docs/prompts/hooks.md` |
117| Full content pipeline, performance loop, CTA testing | `docs/api/pipeline.md` |
118| Error codes, troubleshooting | `docs/api/errors.md` |
119
120## Niche Research Mode (When user asks to research a niche)
121
122When asked things like "research this niche", "find what works in this niche", or "give me niche intelligence":
123
1241. Run `trend-brief` first for the niche keyword (`7d` baseline, then `24h` for freshness if needed).
1252. Extract and report: top hashtags, top sounds, top creators, posting windows (UTC), recommended hook angles.
1263. Run competitor deep-dive using `docs/references/competitor-research.md` (3-5 accounts minimum).
1274. Produce a short actionable output with:
128 - 3 hook angles to test
129 - 2 CTA suggestions
130 - 2 best posting windows
131 - 5 hashtags to start with
132 - 1 "gap to exploit" insight
1335. Save findings to `workspace/performance/competitor-insights.md` and use them in subsequent content prompts.
134
135## Non-Negotiable Rules
136
137These apply regardless of what docs you've loaded:
138
1391. **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.
140
1412. **ALWAYS visually review every rendered slide** before posting. If any slide fails readability, fix it. This is a hard gate — not a suggestion.
142
1433. **ALWAYS log to `workspace/performance/log.json`** immediately after posting. This is the canonical record.
144
1454. **ALWAYS add a hook-tracker entry** after posting. No tracking = no learning.
146
1475. **Never use em-dashes** in any generated content.
148
1496. **Respect `workspace/`** — all instance data lives here. Do not write state files to the skill root.
150
151## Script Usage
152
153```bash
154/path/to/genviral/scripts/genviral.sh <command> [options]
155```
156
157Requires `GENVIRAL_API_KEY` as an environment variable (format: `public_id.secret`). Loads defaults from `defaults.yaml`. Set `GENVIRAL_WORKSPACE_DIR` to override the workspace path (defaults to `workspace/` relative to the skill dir).
158
159## Auto-Updates
160
161This skill includes a self-updater that keeps skill-owned files in sync with the latest version from `fdarkaou/genviral-skill`.
162
163```bash
164bash scripts/update-skill.sh # check + apply if updates available
165bash scripts/update-skill.sh --dry-run # preview only, no changes
166bash scripts/update-skill.sh --force # force re-apply even if already current
167```
168
169**What gets updated (skill-owned):** `SKILL.md`, `scripts/`, `docs/` (all subdirs)
170
171**What never gets touched (user-owned):** `workspace/` — your data, context, hooks, and performance logs are always preserved.
172
173---
174
175## Notes
176
177- Works with any platform genviral supports (TikTok, Instagram, etc.)
178- Supports both video and slideshow posts
179- Works with hosted and BYO accounts
180- Posts can be scheduled or queued for immediate publishing
181- TikTok slideshow drafts: use `post_mode: MEDIA_UPLOAD` to save to drafts inbox for audio addition