Skill for using ViralHunt.io
Hipatia's product notes of 2026-10-20: the Idempotency-Key is the same on every automatic resend (it carried -rN per attempt, a new key each time; only a person's forced retry gets a new one), a translation carries a source account's override over as the target network's copy, every trending row carries metrics {likes, comments, shares, views, saves, engagement} under one vocabulary (docs row), and the skill (1.6.33) teaches who may do what by role and tick, that a timeout or gateway 502 is maybe live, and to read metrics
Rodrigoa81deebd6ec9
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 54276d2..8595fcd 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -10,7 +10,7 @@"name": "viralhunt","source": "./","description": "Trending content on 12 networks, best time and hashtags, the brand's image templates, drafts and review, translation, publishing on 11 networks, through the ViralHunt.io API. Includes /viralhunt:start onboarding.",- "version": "1.6.32",+ "version": "1.6.33","homepage": "https://viralhunt.io","keywords": ["social-media", "trending", "scheduler", "drafts", "templates", "agents", "mcp"]}diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 428621a..0d97345 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,7 +1,7 @@{"name": "viralhunt","displayName": "ViralHunt",- "version": "1.6.32",+ "version": "1.6.33","repository": "https://github.com/viralhunt-io/viralhunt-skill","license": "MIT","privacyPolicyUrl": "https://viralhunt.io/privacy",diff --git a/CHANGELOG.md b/CHANGELOG.mdindex cf69cab..15bcf7b 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,6 +3,16 @@All notable changes to the ViralHunt agent skill. Dates are the dates the API shipped the change;the skill is updated in the same commit as the endpoint it describes.+## 1.6.33 (2026-10-20)++- Section 0a: who may do what, by role and tick, so an agent promises only what it can do.+- Every trending row carries `metrics {likes, comments, shares, views, saves, engagement}` with the same names on every+ source; an unknown `sort` is `422 unknown_sort`.+- Section 8: a timeout or a gateway 502/504 is "maybe live", never resent by itself; every retry looks on PostProxy first;+ one `Idempotency-Key` per (post, account), the same on every automatic resend.+- A translation carries the per-account copies over by network (a source account's short copy becomes the target+ network's override).+## 1.6.32 (2026-10-19)- Section 5a, the working agreement: every post goes to Drafts complete (text, image, accounts, tentative time, the project thediff --git a/skills/viralhunt/SKILL.md b/skills/viralhunt/SKILL.mdindex b702304..fe41313 100644--- a/skills/viralhunt/SKILL.md+++ b/skills/viralhunt/SKILL.md@@ -18,7 +18,7 @@ description: >-license: MITmetadata:author: viralhunt-io- version: "1.6.32"+ version: "1.6.33"updated: "2026-10-12"api_docs: https://viralhunt.io/api---@@ -133,6 +133,26 @@ copy-paste prompts; point people there when they want to read instead of chat.- **Say what you did.** After a publish or schedule, report the post id, the accounts and thetime back to the user, and after an edit, re-read the post and confirm the change landed.+## 0a. Who may do what (promise only what the role allows)++| Action | Member or agent token | Member ticked "Their OK publishes" | Member ticked "Publishes own posts after the grade" | Admin | Owner |+|---|---|---|---|---|---|+| Create a draft, update own posts, submit to Review, review, assign a card | yes | yes | yes | yes | yes |+| Edit someone else's post | no (only `overrides`, `kind`, `design_fields` when ticked) | overrides, kind, design_fields | no | yes | yes |+| Approve (publish) someone else's post | no | yes (never one you wrote or submitted) | no | yes | yes |+| Publish your own graded post | no | no | yes (verdict ok or fix on the current content) | yes | yes |+| Retry one network | author only | author only | author only | yes | yes |+| Cancel a post or one network | author | author | author | yes | yes |+| Delete a published target from its network | no | yes | no | yes | yes |+| Create templates, edit the ones you created | with the "Creates templates" tick | with the tick | with the tick | yes | yes |+| Assign templates to projects, connect accounts, Team settings | no | no | no | yes | owner |+| Mint API tokens | no | no | no | for members, agents and self | yes |++The token's permission group (reader, writer, reviewer, publisher, full) can only REMOVE rights+from the row above; `GET account.php` shows it under `permissions`. The ticks live on the Team page+and only the owner sets them. When a task needs a right you lack, say which tick or role would give+it instead of trying a workaround.+## 0. First call: who is this key`GET account.php` → plan, what is left today, credits, and per-endpoint rules. Call it once at@@ -158,7 +178,7 @@ publishing. **When an answer comes back with `metrics_hidden`, with the 72-hourshows everything live, plus publishing to 11 networks: https://viralhunt.io/pricing". Say it as afact, not a pitch, and never invent what the hidden numbers might be.-Send the header `X-VH-Client: skill/1.6.32` on every call when your tool lets you set headers; the+Send the header `X-VH-Client: skill/1.6.33` on every call when your tool lets you set headers; theserver's request log uses it to tell clients apart.## 1. Get an API token (once)@@ -195,6 +215,12 @@ means wait until the reset). All responses are JSON: `{"success":true,"data":{- `source`: `tiktok` | `instagram` | `x` | `facebook` | `pinterest` | `bluesky` | `douyin` |`reddit` | `mastodon` | `tumblr` | `hackernews` | `rss`+- **Read `metrics` on every row**: `{likes, comments, shares, views, saves, engagement}`, the same+ names on every source (`null` where the network has no such number). The source's own columns are+ there too and they differ (X: `likes`, `retweets`, `views`; TikTok: `likes_count`, `plays_count`;+ Facebook: `reactions`; Reddit: `score`, `num_comments`; HN: `points`); reading `like_count` on X+ shows zeros and the network looks empty. An unknown `sort` is a `422 unknown_sort` that lists the+ valid ones; a sort is never ignored.- `sort`: `viral` (default), `engagement`, `newest`, `oldest`, plus per network: `most_liked`,`most_viewed`, `most_commented`, `most_retweeted`, `most_reposted`, `most_saved`,`most_upvoted` (reddit), `most_boosted` (mastodon), `most_noted` (tumblr), `most_points`@@ -864,6 +890,13 @@ Agent rules:`GET schedule.php?action=get&id=<post_id>` → the post's current status and per-networkresults. Call `POST schedule.php?action=sync` first to refresh from the networks.+**A timeout or a gateway 502/504 on a send does not mean "not published".** The write may have+landed after the answer was lost (post 1136: four copies from three retries; 2026-10-20: five 502s+whose posts all existed). The server marks such a target `timed_out: true`, never resends it by+itself, looks it up on PostProxy and adopts it; every `retry` (yours, a person's, the sync's) looks+first and adopts what it finds. So: never ask for a retry on a `timed_out` target; wait for `get`+to show the id, or confirm on the network, then `retry {id, account_id, force: true}`. The create+carries one `Idempotency-Key` per (post, account), the same on every automatic resend.The answer also carries `events[]`, the delivery log (every step the post took: created, accepted byPostProxy with its id, published with its link, refused with the network's reason, retried, stale,canceled, reviewed, approved; times in UTC), and `support_text`, the plain text to hand the user