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
- 1. 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:
- 1. 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
CODEBLOCK0
Command Routing
Load only what you need for the current task:
| Task | Read |
|---|
| Account discovery, file upload | INLINECODE16 |
| 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":
- 1. 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
- 5. 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:
- 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.
Script Usage
CODEBLOCK1
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.
CODEBLOCK2
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
genviral 合作伙伴 API 技能
TL;DR: 将 genviral 的合作伙伴 API 封装为 50 多个 bash 命令。核心流程:get-pack → 分析图片(元数据 + 视觉识别)→ 使用 pinnedimages 进行 generate → render → 视觉审查(硬性关卡)→ create-post → 记录到 workspace/performance/log.json。Studio AI:studio-models → studio-generate-image(同步)或 studio-generate-video → studio-video-status --poll(异步)。通过 GENVIRALAPI_KEY 进行身份验证。配置在 defaults.yaml 中。实例数据在 workspace/ 中。
该技能的功能
- - 多平台发布: 在 TikTok、Instagram、YouTube、Pinterest、LinkedIn、Facebook 上发布视频或幻灯片帖子
- Studio AI 生成: 通过 API 使用 AI 模型生成图片(同步)和视频(异步)
- 文件管理: 将视频/图片上传到 genviral 的 CDN
- AI 幻灯片生成: 根据提示生成照片轮播,渲染为图片
- 模板系统: 可复用的幻灯片结构,将优胜作品转换为模板
- 包管理: 图片包作为幻灯片背景
- 分析: KPI、帖子级指标、追踪账户、刷新触发器
- 利基情报: 一键趋势研究(trend-brief),涵盖话题标签、音效、创作者、发布窗口和钩子角度
- 内容管道: 从提示到发布内容的完全自动化
- 效果追踪: 帖子日志、钩子追踪、每周回顾
- 钩子库: 维护和优化已验证内容钩子的库
工作原理
- 1. 生成或上传媒体内容
- 创建一个针对一个或多个账户的帖子
- 安排时间或立即发布(对于 TikTok 幻灯片,可选择保存为草稿,以便在发布前添加热门音频——音乐选择需要人工判断以获得最佳效果)
- 通过分析追踪效果
- 学习并优化
所有配置在 defaults.yaml 中。密钥通过环境变量设置。所有发布的内容都会显示在 Genviral 仪表盘中。
首次设置
如果是全新安装,请阅读 docs/setup.md 并以对话方式引导用户完成入门流程:
- 1. 设置 API 密钥并验证其有效性
- 列出账户并选择要发布到的账户
- 讨论图片策略(现有包、创建新包、每帖生成或混合使用)
- 可选:一起设置产品背景和品牌语调
没有硬编码的默认值。询问用户偏好并相应调整。通过此技能完成的所有操作都会显示在 Genviral 仪表盘中,因此用户始终拥有完全的可见性和控制权。
文件结构
genviral/
SKILL.md # 本文件(核心 + 路由)
README.md # 面向用户的概述
defaults.yaml # API 配置和默认值
docs/
setup.md # 入门指南(对话式,5 个阶段)
api/
accounts-files.md # 账户、上传、列出文件
posts.md # 创建帖子、更新帖子、重试、列出、获取、删除
slideshows.md # 生成、渲染、审查、更新、重新生成、复制、列出 + 文本样式
packs.md # 包 CRUD + 智能图片选择(任何包工作流的必读文档)
templates.md # 模板 CRUD + 从幻灯片创建
analytics.md # 所有分析命令
studio.md # Studio AI:生成图片/视频、列出模型、轮询状态
subscription.md # 订阅状态、积分、层级
pipeline.md # 内容管道、效果循环、CTA 测试、平台技巧
errors.md # 错误代码和故障排除
references/
analytics-loop.md # 完整分析反馈循环和每周回顾流程
competitor-research.md # 如何研究竞争对手
prompts/
slideshow.md # 幻灯片生成的提示模板
hooks.md # 钩子头脑风暴的提示模板
workspace/ # 所有实例/客户数据(可通过 GENVIRALWORKSPACEDIR 覆盖)
content/
scratchpad.md # 工作内容计划和草稿
calendar.json # 已计划的即将发布的帖子
context/
product.md # 产品描述、价值主张、目标受众
brand-voice.md # 语调、风格、注意事项
niche-research.md # 针对利基市场的平台研究
hooks/
library.json # 钩子实例(随时间增长,追踪效果)
formulas.md # 钩子公式模式和心理学原理
performance/
log.json # 规范的帖子记录(唯一真实来源)
hook-tracker.json # 钩子和 CTA 追踪(含指标,反馈循环)
insights.md # 代理从效果数据中学习到的见解
weekly-review.md # 每周回顾笔记
competitor-insights.md # 竞争对手研究发现
scripts/
genviral.sh # 主 API 封装(所有命令)
update-skill.sh # 自更新程序
命令路由
仅加载当前任务所需的内容:
| 任务 | 阅读 |
|---|
| 账户发现、文件上传 | docs/api/accounts-files.md |
| 创建、更新、列出、删除帖子 |
docs/api/posts.md |
| 幻灯片生成、渲染、编辑、文本样式 | docs/api/slideshows.md |
| 包管理、图片选择(任何包工作流) | docs/api/packs.md |
| 模板创建和管理 | docs/api/templates.md |
| 分析查询和目标管理 | docs/api/analytics.md |
| Studio AI:生成图片、视频、列出模型 | docs/api/studio.md |
| 订阅:检查积分、层级、续订日期 | docs/api/subscription.md |
| 快速研究特定利基(趋势 + 竞争对手 + 钩子) | docs/api/analytics.md、docs/references/competitor-research.md、docs/prompts/hooks.md |
| 完整内容管道、效果循环、CTA 测试 | docs/api/pipeline.md |
| 错误代码、故障排除 | docs/api/errors.md |
利基研究模式(当用户要求研究利基时)
当被问到诸如研究这个利基、找出在这个利基中有效的方法或给我利基情报之类的问题时:
- 1. 首先针对利基关键词运行 trend-brief(基线为 7d,如需最新数据则使用 24h)。
- 提取并报告:热门话题标签、热门音效、热门创作者、发布窗口(UTC 时间)、推荐的钩子角度。
- 使用 docs/references/competitor-research.md 进行竞争对手深度分析(至少 3-5 个账户)。
- 生成简短可操作的输出,包括:
- 3 个要测试的钩子角度
- 2 个 CTA 建议
- 2 个最佳发布窗口
- 5 个起始话题标签
- 1 个可开发的空白见解
- 5. 将发现保存到 workspace/performance/competitor-insights.md,并在后续内容提示中使用。
不可协商的规则
无论加载了哪些文档,这些规则都适用:
- 1. 使用包生成幻灯片时,始终使用 pinned_images。切勿仅使用 --pack-id 调用 generate——服务器会随机选择图片。在任何包工作流之前,请阅读 docs/api/packs.md。
- 2. 发布前,始终对每个渲染的幻灯片进行视觉审查。如果任何幻灯片可读性不佳,请修复。这是硬性关卡——不是建议。
- 3. 发布后,立即记录到 workspace/performance/log.json。这是规范的记录。
- 4. 发布后,始终添加钩子追踪条目。没有追踪 = 没有学习。
- 5. 在任何生成的内容中,切勿使用破折号。
- 6. 尊重 workspace/——所有实例数据都存放在这里。不要将状态文件写入技能根目录。
脚本使用
bash
/path/to/genviral/scripts/genviral.sh [options]
需要将 GENVIRALAPIKEY 作为环境变量(格式:publicid.secret)。从 defaults.yaml 加载默认值。设置 GENVIRALWORKSPACE_DIR 以覆盖工作空间路径(默认为相对于技能目录的 workspace/)。
自动更新
此技能包含一个自更新程序,可将技能拥有的文件与 fdarkaou/genviral-skill 的最新版本保持同步。
bash
bash scripts