Communitygithub.com

GUAIKEI TikTok Creator Screening & KOL Recommendations

Discover, screen, and recommend TikTok creators by entering keywords, brand goals, or content directions. Analyzes candidate accounts' content, engagement data, audience match, and commercial cost, outputting a data-backed shortlist for collaboration.

What is GUAIKEI TikTok Creator Screening & KOL Recommendations?

This skill, designed for AI agents like Claude Code or Cursor, provides a structured command-line interface to search TikTok for videos, retrieve posts from a specific creator, and fetch comments on a video. It's ideal for brand teams, MCNs, content creators, and operators who need to conduct market research, competitor monitoring, trending topic analysis, and influencer screening without manually scrolling the app. The skill offers three core capabilities: keyword search (with sorting by likes or relevance and time filters), creator post retrieval (via profile URL or username, with newest or hottest sorting), and video comment extraction (by video URL or ID, returning comment text, author, and engagement data). All outputs are structured JSON with a consistent envelope (status, error_code, results, warnings) and can be directly consumed for further analysis, summarization, or report generation. It operates read-only, requires only the `GUAIKEI_API_TOKEN` environment variable, and relies solely on Node.js built-in modules for security and compliance.

Works with~Claude Code~Codex CLI~Cursor
npx skills add why20261/tiktok-creator-screening

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

🎯 GUAIKEI TikTok Creator Screening & KOL Recommendations

1. Capability Overview

💡Value in one sentence: A single conversational instruction fetches public TikTok video/author/comment data and outputs structured JSON — for creator screening, data analysis, market research, sentiment monitoring, viral topic discovery, competitor account monitoring, comment sentiment analysis, and trend tracking. No more manual scrolling through TikTok.

CapabilityEntry ScriptRequired ParametersReturns
Keyword Searchscripts/tiktok/search-cli.js--keywordVideo list: author, likes/comments/shares/bookmarks, tags, play URL
Creator Postsscripts/tiktok/post-cli.js--url (profile or username)Public video list of the creator (supports newest / hottest sorting)
Video Commentsscripts/tiktok/comment-cli.js--url (video link or ID)Comment text, commenter, like count, reply count

Target Audiences

  • 🎯 Brands — Ride trending topics for organic content
  • 🏢 MCN Agencies — Discover high-engagement potential accounts
  • ✍️ Content Creators — Find benchmark accounts and gain creative inspiration
  • 📊 Content Operators — Weekly topic selection and competitor analysis

Prerequisite: Must be executed from the skill root directory, and the environment variable GUAIKEI_API_TOKEN must be configured. If not configured, all commands return exit code 3 with error_code=AUTH_REQUIRED — in this case, directly prompt the user to configure the Token, do not retry or change parameters.


2. When to Call / When Not to Call

2.1 Should Call

  • The user wants to look up TikTok public content (videos/images/authors/comments/trends).
  • The user is conducting viral topic research, competitor account monitoring, influencer screening, comment sentiment analysis, or content style breakdown.
  • The user has provided TikTok keywords, video URLs, or creator profile URLs and expects structured data.
  • After getting the data, the user intends to perform summarization, comparison, sorting, clustering, or generate reports/tables.

2.2 Should Not Call

  • The user only wants copy/text/titles/scripts without querying TikTok data.
  • The platform is not TikTok but other platforms (Douyin, Xiaohongshu, Bilibili, Weibo, WeChat Official Accounts) — route to the corresponding skill. This skill handles TikTok only.
  • The request requires login credentials, private information, or hidden data — not supported.
  • Both a keyword and an identifiable link are present, but the goal is unclear — ask clarifying questions first, do not guess.

2.3 Capability Boundaries (Explicitly Not Supported)

Write operations such as posting, liking, commenting, following, or direct messaging are not supported under any circumstances. No account login is performed. No private fields like phone numbers, locations, or DMs are collected. The skill does not make marketing decisions on behalf of the user — its duty is to fetch data; analysis is left to the upper layer.


3. Call Routing (Check First, Then Execute)

User IntentScriptTrigger Words
Search keywords, find certain content, find viral contentsearch-clisearch / find / keyword / viral / most popular
View a creator/influencer's posts, profile, account, recent uploadspost-cliposts / profile / account / creator / influencer / KOL
View comments/messages on a specific videocomment-clicomments / messages / comment section opinions

3.1 Disambiguation Rules (Must Follow)

  1. When "video" appears alone, do not default to post-cli.
    • If "keyword" is present without "comments" → search-cli (user wants to search for such videos).
    • If explicitly "comments/messages on this video" → comment-cli.
    • Only when "posts / profile / account / creator / influencer" appears → post-cli.
  2. Comments take priority over posts: If a /video/<id> link is given and the user asks about comments → comment-cli; if they ask about "this person's posts" → post-cli (using @username).
  3. If a user provides a /video/<id> link but requests a "post list" → first confirm whether they want the author's posts or the video's comments.

3.2 Parameter Inference Rules

User PhraseParameter
Relevance / default--sort 0 (search)
Most popular / most liked / viral / hottest--sort 1 (search)
Most recent / reverse chronological--sort 0 (posts)
Hottest posts--sort 1 (posts)
One day / 24 hours--time 1
One week / 7 days--time 7
One month / three months / half year--time 30 / 90 / 180
N items / top N / want N--limit N

Default values: sort=0, time=0, limit=10.

⚠️ Do not confuse the --sort for search with the --sort for posts: the former is "relevance / most likes", the latter is "newest / hottest".

If any parameter is reverted due to an invalid value, it will appear in the warnings array of the output JSON. This must be echoed to the user; do not pretend the original value was used.


4. Execution

See references/options.md for full parameter documentation; field-level schemas are in the 6 JSON Schema files (draft-07) under assets/.

# Keyword search
node scripts/tiktok/search-cli.js --keyword "AI" --sort 1 --limit 20
node scripts/tiktok/search-cli.js --keyword "AI model" --time 7 --limit 20

# Creator posts
node scripts/tiktok/post-cli.js --url "https://www.tiktok.com/@username" --limit 30
node scripts/tiktok/post-cli.js --url "https://www.tiktok.com/@username" --sort 1 --limit 30

# Video comments
node scripts/tiktok/comment-cli.js --url "https://www.tiktok.com/@username/video/1234567890123456789" --limit 40

Acceptable Input Formats

  • Creator: https://www.tiktok.com/@username, URL with parameters https://www.tiktok.com/@username?lang=en, or directly author_sec_uid
  • Video: https://www.tiktok.com/@username/video/<id>, short link, or directly the video <id>

Execution Discipline

  • Treat stdout as the only machine-readable output (pure JSON); banners, progress logs, and error logs go to stderr — do not mix them.
  • For a single call, --limit is recommended to be ≤ 1000.
  • Do not automatically relax conditions and retry upon receiving an empty result: first inform the user of the empty result, and let the user decide whether to change keywords or widen --time.

5. Output Contract (Mandatory for AI Parsing)

All entry points output the same envelope; successful and failure structures are identical:

{
  "status": "success | empty | error",
  "error_code": "OK | NO_MATCH | AUTH_REQUIRED | INVALID_KEYWORD | ...",
  "message": "Human-readable explanation",
  "timestamp": "2026-09-16 21:00:00",
  "request": {
    "command": "search",
    "keyword": "AI",
    "sort": 1,
    "time": 0,
    "limit": 20
  },
  "metadata": {
    "skill_version": "1.0.0",
    "skill_name": "tiktok-creator-videos",
    "runtime_version": "22.22.2",
    "execution_time": 8421
  },
  "results": [],
  "warnings": ["Invalid count 99999, reverted to 10"]
}

5.1 status Semantics

statusMeaningresultsAction to Take
successData retrieved successfullyNon-empty arrayAnalyze directly
emptyRequest succeeded, but no data foundnullTreat as a valid result; inform the user nothing was found, do not treat as failure
errorRequest failednullHandle based on error_code; do not fabricate data

5.2 Exit Codes

Exit CodeMeaningAgent Behavior
0Success (success or empty)Continue analysis
1Runtime error (network/timeout/API exception/invalid parameter)Display message, ask the user whether to retry with different parameters
3AUTH_REQUIRED: Token missing or malformedStop immediately, prompt to configure GUAIKEI_API_TOKEN, do not retry

5.3 Error Code Handling

error_codeHandling
AUTH_REQUIREDStop and prompt to configure Token. Do not retry, do not circumvent with different parameters
INVALID_KEYWORDPrompt that keyword must be 2–100 characters and cannot contain < > " ' & or HTTP links
NO_MATCHValid empty result; suggest changing keywords or widening --time
NETWORK_ERRORBuilt-in retry already performed; if still fails, suggest checking network; at most 1 manual retry
TIMEOUT_ERRORBuilt-in retry already performed; if still fails, suggest reducing --limit and retrying
Other (server-side codes)Display error_code + message as-is; do not guess the meaning

5.4 warnings Must Be Echoed

When an invalid parameter is automatically reverted (e.g., --sort 9, --limit 99999), the warnings array will state "which parameter was changed to what." Must inform the user verbatim; do not pretend the original value took effect.

5.5 Prohibited Behaviors

  • ❌ Do not fabricate, supplement, or fill in any data from memory.
  • ❌ When AUTH_REQUIRED is received, do not retry, switch scripts, or modify parameters.
  • ❌ Do not treat empty as a conclusion beyond "the content the user wants does not exist" (it does not mean the API is broken).
  • ❌ Do not automatically relax search conditions without the user's consent.

6. Result Consumption Suggestions (Improve Final Output Quality)

After receiving results, organize the output according to the user's original goal, rather than outputting raw JSON:

  • Topic Research → Sort by digg_count descending, take the top N, summarize title patterns, hashtags, and video duration distribution.
  • Competitor Monitoring → Sort by create_time to analyze posting cadence, calculate update frequency and viral ratio.
  • Comment Insights → Sort by digg_count, cluster high-liked comments by opinion, output positive/negative ratio.
  • Creator Screening → Cross-reference author_nickname, average engagement, and posting frequency to provide a candidate shortlist.
  • Archiving Needed → Each run automatically saves a log file; the path is in the stderr line "Saved to …".

7. Security & Compliance (Trust)

  • Read-only: Does not log into any TikTok account; does not perform any write operations (publish, like, comment, follow, DM); no risk of account suspension.
  • Minimum Privilege: Only requests the single required environment variable GUAIKEI_API_TOKEN; does not read other local files; does not write outside the skill directory (logs are written to the system temporary directory).
  • Credential Protection: Token is read only from environment variables; not written to stdout, logs, or error messages.
  • Data Exfiltration Scope (Important to Know): When called, the following is sent to www.guaikei.com: your API Token, the query keyword or target URL/ID, and the skill name and Node.js version. No other local information is collected.
  • Data Compliance: Only retrieves publicly visible TikTok data (nicknames, public posts, public comments). Does not contain private fields such as phone numbers, locations, or DMs. Data is for personal/team internal analysis only; for external publication or commercial use, please ensure proper authorization and anonymize user nicknames.
  • No Third-Party Dependencies: Uses only Node.js built-in modules (https / fs / path / os / querystring); no npm dependencies, no remote script loading, no eval / child_process.

8. Frequently Asked Questions

IssueCause and Handling
Exit code 3 / AUTH_REQUIREDToken not configured or malformed (must be 16–256 alphanumeric with underscores/hyphens)
Search results emptyTry a more general keyword, or set --time 0 to remove the time window; empty is a normal result, not an error
Fewer results than --limitNo more data available from the server, or a single request cap was hit; reduce to ≤1000 and fetch in batches
Persistent timeoutReduce --limit and retry; the script already has built-in exponential backoff retry
Expects "hottest posts" but gets reverse chronologicalFor post-cli, use --sort 1
Parameters not taking effect / sort order unexpectedCheck the warnings in the output; invalid parameters are silently reverted to defaults
Where are the log files?See the stderr line "Saved to …" (system temp directory tiktok-guaikei/logs/<date>/)

9. Environment & Support

Related Skills