Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add hookdeck/webhook-skills --skill tiktok-shop-webhooksgit clone --depth 1 https://github.com/hookdeck/webhook-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/hookdeck/webhook-skills/tiktok-shop-webhooks)<a href="https://agentmods.dev/skills/hookdeck/webhook-skills/tiktok-shop-webhooks"><img src="https://agentmods.dev/badge/skills/hookdeck/webhook-skills/tiktok-shop-webhooks.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium MCP Rug Pull · line 115 npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.Fix: Pin the version: npx @scope/[email protected]
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00059 | $0.01818 |
| Opus 5 | $0.00030 | $0.00909 |
| Sonnet 5 | $0.00012 | $0.00364 |
| Haiku 4.5 | $0.00006 | $0.00182 |
Grade A, and why
tiktok-shop-webhooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TikTok Shop Webhooks
When to Use This Skill
- How do I receive TikTok Shop webhooks?
- How do I verify TikTok Shop webhook signatures?
- How do I handle ORDER_STATUS_CHANGE or PACKAGE_UPDATE events?
- Why is my TikTok Shop webhook signature verification failing?
- Setting up TikTok Shop webhook handlers and event subscriptions
Verification (core)
TikTok Shop puts the signature in the Authorization header (no Bearer
prefix) as a lowercase-hex HMAC-SHA256. The signed message is your
app_key concatenated with the raw request body, keyed by your app_secret.
Verify against the raw body exactly as received — don't JSON.parse first.
This is not the Standard Webhooks spec and is distinct from TikTok Shop's API request signing. There is no timestamp in the signature, so it offers no replay protection — dedupe on
tts_notification_idand reconcile by polling.
const crypto = require('crypto');
// sign base = app_key + rawBody ; key = app_secret ; digest = lowercase hex
function verifyTikTokShop(rawBody, authHeader, appKey, appSecret) {
const expected = crypto
.createHmac('sha256', appSecret)
.update(appKey + rawBody) // rawBody: exact bytes received, as UTF-8
.digest('hex');
try {
return crypto.timingSafeEqual(
Buffer.from(authHeader || '', 'utf8'),
Buffer.from(expected, 'utf8')
);
} catch {
return false; // length mismatch = invalid
}
}
Return HTTP 200 with an empty body within 3 seconds on success; return 401 to signal a rejected signature.
For complete handlers with route wiring, event dispatch, and tests, see:
Common Event Types
Subscribe to event types per shop in Partner Center (or via the Events API).
Subscriptions are configured by event_type string (one callback URL per
topic). The delivered payload carries a numeric type — TikTok Shop's
docs state they do not publish a complete numeric mapping and warn: "Do
not branch only on the numeric type; use the subscribed event_type context and
the topic-specific payload schema." Only type: 1 (ORDER_STATUS_CHANGE)
appears in the official sample payload. The most robust pattern is a distinct
callback path per subscribed topic, so the route identifies the event.
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- examples/express/.env.example 188 B
- examples/express/package.json 378 B
- examples/express/README.md 1.4 KB
- examples/express/src/index.js 4.2 KB runs code
- examples/express/test/webhook.test.js 4.2 KB runs code
- examples/fastapi/.env.example 148 B
- examples/fastapi/main.py 3.7 KB runs code
- examples/fastapi/README.md 1.6 KB
- examples/fastapi/requirements.txt 82 B
- examples/fastapi/test_webhook.py 3.7 KB runs code
- examples/nextjs/.env.example 148 B
- examples/nextjs/app/webhooks/tiktok-shop/route.ts 3.6 KB runs code
- examples/nextjs/package.json 490 B
- examples/nextjs/README.md 1.5 KB
- examples/nextjs/test/webhook.test.ts 3.4 KB runs code
- examples/nextjs/vitest.config.ts 140 B runs code
- references/overview.md 4.7 KB
- references/setup.md 2.8 KB
- references/verification.md 3.6 KB
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 156 lines · 59 tokens per session scan A 6b75511bf282
tiktok-shop-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (84 stars, last pushed 4d ago), licensed MIT. It adds 59 tokens to every session and 1,818 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…
chronicle
Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…