[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77WCT1T4772Y73K6F1MCJ2E":3,"skill-same:01M77WCT1T4772Y73K6F1MCJ2E":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77WCT1T4772Y73K6F1MCJ2E","tiktok-account-operations",null,"Operating doctrine for TikTok account automation — careful, value-adding creator pattern with role separation, business-suite based DM\u002Fcomment ops, human-like UI flow (cliclick + nested reply textbox), strict anti-shadowban quotas, and recovery patterns. Use this for any scheduled TikTok activity (cron, agent, recurring task) where account safety, FYP eligibility and long-term reach matter more than raw output.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftiktok-account-operations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: tiktok-account-operations\ndescription: Operating doctrine for TikTok account automation — careful, value-adding creator pattern with role separation, business-suite based DM\u002Fcomment ops, human-like UI flow (cliclick + nested reply textbox), strict anti-shadowban quotas, and recovery patterns. Use this for any scheduled TikTok activity (cron, agent, recurring task) where account safety, FYP eligibility and long-term reach matter more than raw output.\n---\n\n# TikTok Account Operations\n\nThis skill is the operating doctrine for every TikTok automation run on a brand, professional or personal account.\n\n**The goal is not to comment fast. The goal is to operate TikTok like a careful human contributor: stable browser, correct context, useful action, no shadowban risk, no FYP throttling.**\n\nDrop-in for any niche (legal, medical, software, finance, creator, ecommerce). Replace the placeholders in section 0 with your own values.\n\n---\n\n## 0. Configure for your brand\n\nBefore running anything, fill these placeholders in your local copy or your agent's memory:\n\n| Placeholder | Example | Your value |\n|---|---|---|\n| `\u003CBRAND_NAME>` | \"Acme Studio\" | — |\n| `\u003CBRAND_DOMAIN>` | \"acme.studio\" | — |\n| `\u003CTIKTOK_HANDLE>` | \"@acmestudio\" | — |\n| `\u003CTIKTOK_BUSINESS_ACCOUNT>` | yes\u002Fno (Business Suite requires Business or Creator account) | — |\n| `\u003CBROWSER_PROFILE>` | \"tiktok-live\" | — |\n| `\u003CBROWSER_PORT>` | \"18801\" | — |\n| `\u003CNICHE_KEYWORDS>` | \"lost license OR speeding ticket\" | — |\n| `\u003CPRIMARY_CTA>` | \"WhatsApp \u002F form \u002F app link — pick ONE\" | — |\n| `\u003CWORKSPACE_DIR>` | \"~\u002F.openclaw\u002Fworkspace\u002Ftiktok-\u003Cbrand>\" | — |\n\nAll shell snippets below assume an [OpenClaw](https:\u002F\u002Fopenclaw.ai) browser CLI bound by CDP, but the doctrine works with any browser-automation stack (Playwright, Puppeteer, Chrome MCP). Swap the CLI calls for your own.\n\n### Quick config (copy-paste YAML)\n\nIf your agent reads config from YAML, drop this in `\u003CWORKSPACE_DIR>\u002Fconfig.yaml`:\n\n```yaml\nbrand:\n  name: \u003CBRAND_NAME>\n  domain: \u003CBRAND_DOMAIN>\n\ntiktok:\n  handle: \u003CTIKTOK_HANDLE>            # e.g. \"@acmestudio\"\n  business_account: true             # required for \u002Fbusiness-suite\u002F UI\n  browser_profile: \u003CBROWSER_PROFILE> # e.g. \"tiktok-live\"\n  browser_port: \u003CBROWSER_PORT>       # e.g. 18801\n\ndiscovery:\n  niche_keywords: \u003CNICHE_KEYWORDS>\n\ncta:\n  primary: \u003CPRIMARY_CTA>             # one channel only — e.g. \"wa.me\u002F\u003Cdigits>\"\n\nworkspace:\n  dir: \u003CWORKSPACE_DIR>               # e.g. \"~\u002F.openclaw\u002Fworkspace\u002Ftiktok-acme\"\n\nalerts:\n  channel: telegram | slack | discord\n  webhook: \u003CYOUR_WEBHOOK_URL>\n\nschedule:\n  timezone: Europe\u002FParis             # everything else is relative to this\n  windows:\n    dm_check:      \"0,15,30,45 9-22 * * *\"     # every 15 min, 9am-10pm\n    comment_check: \"3,18,33,48 9-22 * * *\"     # offset by 3 min so they never overlap\n    browser_health: \"0 * * * *\"                # hourly\n    daily_recap:   \"21:00\"\n```\n\n### Compatibility\n\nThe skill is markdown — it works wherever an agent reads `SKILL.md`:\n\n| Stack | Skill install path |\n|---|---|\n| [Claude Code](https:\u002F\u002Fclaude.ai\u002Fcode) | `~\u002F.claude\u002Fskills\u002Ftiktok-account-operations\u002F` |\n| [OpenClaw](https:\u002F\u002Fopenclaw.ai) | `~\u002F.openclaw\u002Fskills\u002Ftiktok-account-operations\u002F` |\n| ClawHub-published | one-click install via [clawhub.ai](https:\u002F\u002Fclawhub.ai) |\n| Cursor \u002F Copilot CLI | drop `SKILL.md` into your project's `.cursorrules` or `AGENTS.md` |\n| Any LLM agent reading markdown rules | concatenate `SKILL.md` into your system prompt |\n\n---\n\n## 1. Browser architecture\n\n### Physical profile\n\nA single browser profile per account, attached to TikTok's Business Suite:\n\n- `\u003CBROWSER_PROFILE>` (CDP direct, attached to `http:\u002F\u002F127.0.0.1:\u003CBROWSER_PORT>`)\n\nUser data dir: `~\u002F.openclaw-browser-profiles\u002F\u003CBROWSER_PROFILE>`.\n\nUse it through the OpenClaw browser CLI:\n\n```bash\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> status\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> tabs\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> navigate https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> snapshot --limit 160\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> click \u003Cref>\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> evaluate --fn \"\u003Casync function>\"\n```\n\n### The Business Suite is the canonical surface\n\nMost TikTok operational pages (Messages, Comments, Analytics, Posts) live under:\n\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fcomments`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fanalytics`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fposts`\n\nCritical UI fact: **`\u002Fbusiness-suite\u002Fmessages` and `\u002Fbusiness-suite\u002Fcomments` render their content inside iframes**, not in the main DOM. Many `document.querySelector(...)` calls will silently miss the actual content unless you traverse the right iframe. See §9.\n\n### Roles (mental separation, single physical profile)\n\n#### Role: `tk-post`\n\nAccount cockpit. Use for direct account action.\n\nUse for:\n- DM replies in `\u002Fbusiness-suite\u002Fmessages`\n- Comment replies in `\u002Fbusiness-suite\u002Fcomments` (nested reply only — see §9)\n- Original video uploads (separate publishing flow, usually via mobile or Creator Studio)\n- Profile checks\n- Analytics snapshots\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages`\n\nMental model: act as the account. Protect it. Do not clutter it.\n\n#### Role: `tk-engage`\n\nSearch and discovery radar. Use to find what deserves action.\n\nUse for:\n- Keyword searches across the public feed\n- Monitoring `#niche` hashtags\n- Inspecting a candidate creator's recent posts before replying\n- Trend \u002F sound discovery\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fsearch?q=\u003CNICHE_KEYWORDS_URL_ENCODED>&t=video`\n\nMental model: discover, qualify, decide. Do not act impulsively from discovery.\n\n#### Role: `tk-stealth`\n\nQuiet maintenance bay. Use for low-noise maintenance.\n\nUse for:\n- Saving \u002F liking videos for inspiration\n- Following peer creators (cap follows — see §7)\n- Quiet profile observation\n- Sound library curation\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fforyou`\n\nMental model: maintain quietly. No noisy engagement.\n\n### Operational law\n\n- `tk-post` = act as the account\n- `tk-engage` = discover what to react to\n- `tk-stealth` = maintain quietly\n- Stability matters more than speed\n- After every run, navigate back to the role's default page (resting state)\n\nNever collapse all workflows into chaotic browsing.\n\n---\n\n## 2. Session check (run first on every cron)\n\n```bash\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> status\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> evaluate --fn \"async () => { try { const r = await fetch('https:\u002F\u002Fwww.tiktok.com\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F', {credentials:'include'}); const d = await r.json(); return {ok: d.statusCode === 0, uniqueId: d.userInfo?.user?.uniqueId || null}; } catch(e) { return {ok:false, error:String(e)}; } }\"\n```\n\n- If `status` is `stopped`: report the blockage in your alert channel and stop. Never relaunch Chrome from inside a cron — that's a user-side action.\n- If `ok` is `false` or `uniqueId` is `null`: login expired. Stop and report.\n\nFor Business Suite specifically, navigate to `\u002Fbusiness-suite\u002Fmessages` after the API check — if the page redirects to the public web feed or to a login screen, the Business account session is expired even though the API succeeded.\n\n---\n\n## 3. Phase gating (algorithm trust)\n\nTikTok has no karma counter, but it has a strong **trust gradient**: brand-new or recently-warned accounts get throttled on the FYP and on DM volume. Run in two phases:\n\n- **Phase A** (account \u003C 30 days OR last 14 days had ≥ 1 \"Community Guidelines\" notice): zero brand-mentioning DMs and zero outbound comment replies. The account is allowed to post videos and react to incoming DMs only.\n- **Phase B** (account ≥ 30 days, no recent warning, ≥ 500 followers): all crons authorized.\n\nAlways read `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-state.md` at start (last line = current phase) AND verify via `\u002Fbusiness-suite\u002Fposts` (looks for a \"limited\" banner near the post list).\n\nA Daily Metrics Recap cron appends a snapshot every night and pings your alert channel explicitly when the account crosses Phase A → Phase B.\n\n### Manual override (advanced)\n\nYou can force Phase B before the 30-day threshold by appending a line `YYYY-MM-DD - phase=B (manual override)` to `tiktok-state.md`. The override line takes priority over the threshold. Use when:\n\n- You have an established brand on other platforms and an audited account history (imported followers, verified domain) and want immediate brand-aware posting.\n- You accept the risk of harder shadowban triggers in the first 30 days. The auto-freeze on 2 successive comment removals (see §11) still applies.\n\nDocument the decision in `tiktok-learnings.md`.\n\n---\n\n## 4. Qualification of an inbound DM or comment\n\nA DM or comment is repliable only if **all** of:\n\n- The conversation thread has at least one message from the user (not a pure share\u002Fforward).\n- The message is in a language you can answer in (otherwise: skip, do not auto-translate).\n- The message is a real question or qualified intent in your domain (not a vent, not a meme, not a request for free expert-grade work).\n- Phase B authorized for brand-mentioning replies (see §3).\n- The same user has not been sent a templated reply in the last 7 days (`tiktok-reply-log.md`).\n- Not a competitor or a troll on first read of the user's recent posts.\n\nIf any check fails: skip. Document why in the recap.\n\n### Read the full context before answering\n\nFor DMs: read **the entire conversation** (`[data-e2e=\"chat-item\"]`), not just the latest message. People often add critical context across 2-3 messages.\n\nFor comments: read the parent video caption AND the comment thread up to the target comment. A reply that ignores the obvious context reads as a bot.\n\n---\n\n## 5. Reply templates\n\n### Phase A (warming, NO brand mention)\n\n- 1-3 sentences, conversational, genuinely helpful.\n- Match the comment \u002F DM tone.\n- Never expert-grade advice (medical, legal, financial).\n- Never link to anything.\n- Never sign with anything that hints at a profession.\n\nExample structure (comment):\n```\n[Direct answer or empathy hook]. [One concrete tip from common sense].\n```\n\n### Phase B (brand-aware, expert)\n\nDefault mode = **pedagogical**, not promotional.\n\nDM reply structure (≤ 6000 chars but aim for ≤ 600):\n```\n[Acknowledge the situation in 1 sentence, neutral tone.]\n\n[General rule \u002F framework in 2-3 short paragraphs. No exact quote of statute. No price.]\n\n[Concrete next step — point to \u003CPRIMARY_CTA>. NEVER list multiple channels.]\n```\n\nComment reply structure (≤ 200 chars):\n```\n[1 line of contextual acknowledgement]. [Indirect signal — \"feel free to DM us\" \u002F \"form on bio\" — never paste a URL].\n```\n\n### Brand link policy\n\n**ZERO outgoing links inside DMs or comments themselves.** TikTok actively dampens reach for posts containing third-party URLs in any user-visible text. Indirect signaling only:\n\n- Bio link in your profile is the only authorized URL surface.\n- Comment \u002F DM body: never paste a URL, never paste a brand name in a way that triggers the \"may be unsafe\" toast.\n- Never paste an external URL in a video caption either — the FYP penalty is real.\n- Maximum 1 indirect mention per reply (e.g. \"we have an app for that\" — no name).\n\n### The encoding trap (critical — see §9 for the full story)\n\nIf your sending path uses `cliclick t:'...'` for comment posting, **strip all accented characters and emoji** from the rendered string before sending. The macOS keystroke path silently drops or replaces non-ASCII characters in some locales. Replace `é → e`, `à → a`, `' → '`, `…  → ...` etc. before the type call.\n\nForbidden in any reply:\n- Any URL on `\u003CBRAND_DOMAIN>` (and `www.`, subdomains, shorteners).\n- \"DM me\", \"click my profile\", \"check our site\", \"more info here\", phone numbers, email addresses (in the reply body — bio is the only authorized URL surface).\n- Brand name in the comment body (Phase A) or more than once (Phase B).\n- Promises (\"you will win\", \"guaranteed\", \"in 24h I'll fix it\").\n- Quoting specific past client \u002F customer cases.\n- Emojis (encoding trap + sober tone in regulated fields).\n\n---\n\n## 6. Original posting cadence\n\nPosting cadence is **outside the scope of the live operational crons** described in §9 (those handle reactive DM + comment replies). The recommended rhythm for an account in Phase B is:\n\n- **3-5 short videos \u002F week** (15-45 s), one idea per video, hook in the first 1.5 s.\n- **1 longer video \u002F week** (45-90 s) explaining one concept end-to-end.\n- **Avoid burst posting** (3+ videos within 6 h) — TikTok throttles the burst.\n- **Respect the sound policy**: original sounds and verified-license sounds only. Copyrighted commercial tracks on a Business account = silent mute on the FYP.\n\nHashtag discipline:\n- 3-5 hashtags per video, max.\n- 1 broad (#fyp, #foryou) + 2-3 niche (#yourdomain).\n- Never use banned or shadowbanned hashtags — re-check the `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-hashtag-state.md` registry monthly.\n\nApply a posting calendar in `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-ideas.md`. Run a Weekly Planning cron that picks the next 5-7 hooks from `tiktok-ideas.md` and confirms none of them duplicates a post in `tiktok-post-log.md` over the last 30 days.\n\n---\n\n## 7. Quotas (hard limits)\n\n| Action | Limit |\n|--------|-------|\n| Replies (DM) per 24 h | 30 max |\n| Replies (DM) per Reply Pass run | 4 max |\n| Replies (comment) per 24 h | 40 max |\n| Replies (comment) per Reply Pass run | 6 max |\n| Outbound first-contact DMs \u002F day | 0 (Phase A) — 5 (Phase B, only if user opted-in) |\n| Follow \u002F day | 20 max (Phase B), 5 max (Phase A) |\n| Unfollow \u002F day | 20 max |\n| Actions in same video thread | min 30 min apart |\n| Actions globally (any) | min 1 min apart |\n| Same opening phrase across replies | never (see §8) |\n\nQuota tracking: read `tiktok-reply-log.md` at the start of every run, count entries with timestamps in the last 24 h, abort early if quotas already met.\n\n### Cron interleaving\n\nTo avoid two crons hammering the Business Suite at the same time:\n\n- **DM Check** runs at `:00, :15, :30, :45`.\n- **Comment Check** runs at `:03, :18, :33, :48` (offset by 3 min).\n\nNever fuse the two into one cron — a single long-running cron is more likely to hit a TikTok soft block.\n\n---\n\n## 8. Anti-spam triggers (words and patterns to avoid)\n\n### Content\n\n| Avoid | Use instead |\n|-------|-------------|\n| \"DM me\", \"check my profile\", \"link in bio\" | (bio link does the work — don't point at it) |\n| `\u003CBRAND_NAME>` repeated > 1 time in same reply | (mention once, max) |\n| \"free consultation\", \"first call free\" | (no marketing language) |\n| Phone number, email, URL | (never in body) |\n| Emojis | (regulated \u002F sober fields — drop them. Also: encoding trap on macOS — see §9) |\n| All caps for emphasis | (use italics sparingly, prefer plain text) |\n| Bit.ly \u002F tinyurl \u002F shorteners | (TikTok flags shorteners aggressively) |\n\n### Behavioral\n\n- Replying within 30 s of comment creation → bot-like, wait ≥ 2 min.\n- Same opening phrase across multiple replies → flagged (vary openings).\n- > 6 actions in 10 min → temporary rate limit.\n- Posting > 3 videos within 6 h → burst penalty on the FYP.\n- Following > 25 users \u002F day → 24 h action block.\n- Mass-mentioning users (`@user @user @user` in a single reply) → spam classifier triggers.\n- Mass-DMing identical messages → near-instant temporary ban.\n\n---\n\n## 9. Human-like UI flow (the only thing that actually works)\n\nTikTok's Business Suite ships heavy front-end protections: iframes everywhere, two stacked textboxes after a \"Reply\" click, IME-aware focus management, and a non-trivial composer that ignores synthetic events. The only flow that survives is **physical-input simulation** — real mouse clicks via `cliclick` on macOS (or `xdotool` on Linux), real keystrokes, real dwells. This is the TikTok equivalent of Reddit's reCAPTCHA dodge: not a bypass, just real human signals.\n\n### DM send flow (validated)\n\nURL: `https:\u002F\u002Fwww.tiktok.com\u002Fmessages?lang=\u003Cyour-lang>` (redirects to `business-suite` if Business account, with an iframe wrapping the conversation pane).\n\n1. **Pre-flight session check** (see §2). Confirm `uniqueId` is not null.\n2. **Navigate to `\u002Fmessages?lang=\u003Clang>`**. Wait for the redirect to complete (≥ 1.5 s dwell).\n3. **Detect iframe** via JS: `document.querySelectorAll('iframe').length > 0`. If yes, scope all subsequent queries to that iframe.\n4. **List unread conversations**: query `[data-e2e=\"chat-list-item\"]` (within iframe).\n5. For each unread:\n   a. Click the conversation tile.\n   b. **Read all visible messages** `[data-e2e=\"chat-item\"]` — full context before answering.\n   c. Qualify the lead (see §4).\n   d. Draft the reply (≤ 6000 chars).\n6. **Send the reply** (the sequence below is the only one validated end-to-end):\n   ```\n   1. subprocess.run([\"pbcopy\"], input=msg.encode(\"utf-8\"))\n   2. Page.bringToFront via CDP\n   3. Compute the textbox's screen coordinates (see §9.3)\n   4. cliclick c:X,Y                                     ← MANDATORY physical click in textbox\n   5. time.sleep(0.5)\n   6. osascript -e 'tell app \"System Events\" to keystroke \"v\" using command down'\n   7. time.sleep(1)                                      ← wait for the Send button to become enabled\n   8. Compute screen coords of [data-e2e=\"message-send\"]\n   9. cliclick c:screenX,screenY\n   10. Verify textbox is empty\n   ```\n\nThe **physical click on step 4 is non-negotiable**: without it, the macOS clipboard paste lands in whichever frame currently has focus, which is rarely the message textbox.\n\n### Comment reply flow (nested — validated)\n\nURL: `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fcomments`.\n\nStructure of the page:\n- Video list **in the main DOM** on the left, with a badge \"N nouveaux commentaires\" \u002F \"N new comments\" per video.\n- Selected video pane on the right, with **two iframes**: `iframe[0]` = messages (always present in background), `iframe[1]` = comments.\n\n1. Scan the video list in the main DOM, regex `\u002F(\\d+) (nouveau|new)\u002F` (not \"Aucun\" \u002F \"No\").\n2. For each video with new comments:\n   a. Click the video tile.\n   b. Wait 2 s for `iframe[1]` to load.\n   c. Read `[data-e2e=\"comment-level-1\"]` + usernames `[data-e2e=\"comment-username-1\"]`.\n   d. Qualify the comment (see §4).\n   e. **Click `[data-e2e=\"comment-reply-1\"]`** of the target comment via JS scoped to `iframe[1]`. Wait 1.5 s.\n3. **The two-textbox trap**: after clicking \"Reply\", two textboxes exist on the page:\n   - **INLINE textbox** (small `vpY`) = the nested reply textbox **← USE THIS ONE**.\n   - **GENERAL textbox** (large `vpY` near the bottom) = the page-level \"Add a comment\" box. Posting here creates a *new* top-level comment, not a reply.\n4. Always pick the textbox with the **smallest** `vpY`. Sample selector:\n   ```python\n   textboxes = [...]  # all contenteditable nodes with their viewport coords\n   inline_tb = min(textboxes, key=lambda t: t['vpY'])\n\n   post_btns = [b for b in all_post_btns if not b['disabled']]\n   closest = min(post_btns, key=lambda b: abs(b['vpY'] - inline_tb['vpY']))\n   ```\n5. **Type the message** (not paste) for comments:\n   ```\n   1. Compute screen coords of inline_tb\n   2. cliclick c:X,Y                  ← physical click in INLINE textbox\n   3. time.sleep(0.5)\n   4. cliclick t:'message_ascii_only' ← TYPE, do not paste\n   5. time.sleep(1)\n   6. Compute screen coords of the closest enabled comment-post button\n   7. cliclick c:X,Y\n   ```\n6. **Verify the reply landed under the parent comment** — re-snapshot and look for your username in the immediate children of the parent.\n\n### 9.3 Computing screen coordinates from viewport\n\nThe browser CLI returns viewport coordinates (`vpX`, `vpY`) inside the page. To click via `cliclick`, you need screen coordinates:\n\n```\nscreenX = window.screenX + viewportX\nscreenY = window.screenY + (outerHeight - innerHeight) + viewportY\n```\n\nThe `(outerHeight - innerHeight)` term accounts for the Chrome top bar. On a typical macOS setup with the default Chrome chrome: `chrome_bar ≈ 87`.\n\nYou can fetch these via:\n\n```js\nconst m = { sX: window.screenX, sY: window.screenY, ih: window.innerHeight, oh: window.outerHeight };\n```\n\n### What does NOT work (and why)\n\n| Method | Why it fails |\n|---|---|\n| `document.execCommand('insertText', false, msg)` | Visually empties the textbox after typing but the message never reaches the send pipeline (TikTok's composer reads from a controlled React state, not from the DOM). |\n| `cliclick kd:cmd t:v ku:cmd` | Types the literal letter \"v\" instead of pasting (the cmd keydown is released before the t:v fires). |\n| `cliclick kp:return` to send | TikTok's composer ignores the Enter key in DMs and comments; you must click the send button. |\n| `osascript ... keystroke \"v\" using command down` for comments | Pastes into the **page-level** focus, which is rarely the inline reply textbox after a \"Reply\" click. Use `cliclick t:'...'` for comments. |\n| Picking the GENERAL textbox (largest `vpY`) for a nested reply | Posts a top-level comment instead of a nested reply. |\n\n### Exit codes (recommended convention for your script)\n\n| Code | Meaning | Recap action |\n|------|---------|--------------|\n| 0 | DM \u002F comment sent, verified | `status: ok`, log the reply |\n| 1 | Fatal error (UI ref missing, iframe absent, send button never enabled) | `status: error`, attach screenshot |\n| 2 | Soft block \u002F \"Tap to retry\" toast | `status: blocked`, stop, alert user |\n| 3 | Session \u002F login KO | `status: blocked`, alert user to re-login |\n| 4 | Comment posted but landed in wrong textbox (top-level instead of nested) | `status: partial`, mark for manual cleanup |\n\n### Gotchas (real ones, costly to discover)\n\n- **The `cliclick t:` accent encoding trap**: `cliclick t:'message'` on macOS drops or replaces accented characters in some locales (notably `fr_FR.UTF-8`). Strip accents and emoji from the rendered message before typing. Same family of bug as Reddit's `LC_NUMERIC` trap, different symptom: instead of dwells failing silently, characters disappear from the visible reply.\n- **iframe focus drift**: clicking inside the iframe via JS does not always give focus to the inner document. Always do a physical `cliclick` after navigating, before pasting\u002Ftyping.\n- **Two iframes on the comments page**: `iframe[0]` is the messages background, `iframe[1]` is the comments. Always scope queries to `iframe[1]` on `\u002Fbusiness-suite\u002Fcomments`.\n- **The \"Send\" button has multiple instances**: pick the one with the smallest absolute `vpY` distance from your textbox, and verify it is `enabled` before clicking.\n- **Cron timeout**: bump per-job timeout to **at least 1200 s** for posting crons — a 120 s default will kill a successful flow.\n- **Save debug artifacts**: screenshots + page snapshots at each step in a scratch dir (e.g. `\u002Ftmp\u002F\u003Cyour-namespace>\u002Ftiktok\u002F`). They are gold when a comment silently lands in the wrong box.\n\n### When the UI changes\n\nTikTok ships UI changes regularly. When the `data-e2e` attributes start returning null on selectors that used to work:\n\n1. Take a manual snapshot via your browser CLI.\n2. Inspect the new attribute names.\n3. Update the selector map.\n4. Re-test on your own account's most recent post (safe, low traffic) before re-enabling the live cron.\n\n---\n\n## 10. Hashtag \u002F sound state management\n\nFile: `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-hashtag-state.md`\n\nFor each hashtag used in `\u003CNICHE_KEYWORDS>`:\n\n- Last 5 videos that used it + reach (views, watch-time %).\n- Shadowban check (search the hashtag in incognito — does your video appear?).\n- Banned \u002F sensitive flag (cross-check with [hashtagsforlikes](https:\u002F\u002Fhashtagsforlikes.co) or similar — keep a manual override list).\n\nFile: `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-sound-state.md`\n\nFor each sound used:\n\n- Original or licensed (Business accounts can ONLY use commercial-license sounds).\n- Reach with that sound vs your baseline.\n- Sound ID \u002F link.\n\nUpdate at the end of every posting run.\n\n---\n\n## 11. Recovery & blockers\n\n| Issue | Action |\n|-------|--------|\n| `status: stopped` | Report in recap: \"Chrome \u003CBROWSER_PROFILE> stopped, user action required (relaunch Chrome on port \u003CBROWSER_PORT>)\". Stop. |\n| Session API returns `ok: false` | Report login expired. Stop. |\n| Business Suite redirects to `\u002Flogin` | Same as login expired. Stop. |\n| HTTP 429 from `\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F` | Stop the run, report \"rate limited\", wait next scheduled run. |\n| Captcha \u002F \"puzzle\" challenge | Stop. Never attempt to solve. Report for user action. |\n| \"Tap to retry\" toast after sending | Soft block. Pause the role for ≥ 1 h. Report. |\n| Comment posted but lands as a top-level (not a reply) | Auto-flag for human cleanup. Pause comment cron for 30 min. |\n| Comment removed by TikTok \u003C 10 min after publish | Auto-freeze the entire comment cron for 6 h. Append cause to `tiktok-learnings.md`. |\n| `evaluate` returns null with no error | Likely off-tiktok.com page → navigate first, retry once. |\n| Account banner \"your account is at risk of restriction\" | Flip to Phase A immediately. Disable all reply crons until manual review. |\n\n---\n\n## 12. Mandatory recap (alert channel + memory)\n\nAt the end of each cron:\n\n**Alert channel (Telegram \u002F Slack \u002F Discord) — final run message**:\n```\n[Job name] — [status: ok|partial|blocked|skipped]\nDMs handled: [N or \"—\"]\nComments handled: [N or \"—\"]\nHot leads: [list short OR \"—\"]\nPhase: [A|B]\nBlockers: [text OR \"—\"]\nNext action: [1 line]\n```\n\n**Memory** — append to `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-recaps.md`:\n```\n## YYYY-MM-DD HH:MM TZ — \u003Cjob-id> — status: \u003Cstatus>\n- Job: \u003Cdescription>\n- Phase: A|B\n- DMs sent: \u003CN>\n- Comments sent: \u003CN>\n- Hot leads: \u003Clist or \"—\">\n- Blockers: \u003Ctext or \"—\">\n- Next useful action: \u003C1 line>\n```\n\nIf no action was taken: say so clearly (`no DM\u002Fcomment sent, reason`).\n\n---\n\n## 13. Memory files inventory\n\nLocated at: `\u003CWORKSPACE_DIR>\u002Fmemory\u002F`\n\n| File | Purpose | Update cadence |\n|------|---------|----------------|\n| `tiktok-recaps.md` | Per-run logs (mandatory append) | Every cron run |\n| `tiktok-post-log.md` | Videos published (URL, hook, date, views, watch %) | Each posting run |\n| `tiktok-reply-log.md` | Replies sent (target user, type DM\u002Fcomment, URL, date, removed?) | Each reply pass |\n| `tiktok-state.md` | Daily phase + warning flags + follower count | Daily Metrics Recap |\n| `tiktok-hashtag-state.md` | Per-hashtag reach + shadowban check | After any posting run |\n| `tiktok-sound-state.md` | Per-sound reach + license info | After any posting run |\n| `tiktok-ideas.md` | Content backlog for new videos | Weekly Planning + ad hoc |\n| `tiktok-learnings.md` | Patterns observed (what got reach \u002F removed) | Weekly Planning + ad hoc |\n| `tiktok-alerts-sent.md` | Anti-doublon log for hot-lead alerts (one row per user) | Each alert |\n\n---\n\n## 14. Account identity guardrails\n\nThis account exists to be **useful in public** with the brand as a *background* signal.\n\n- The handle can carry the brand if your brand is the operating identity (legal\u002Fmedical\u002FB2B). Personal accounts: keep it neutral.\n- Profile bio: one short generic line + the single `\u003CPRIMARY_CTA>` link. No phone, no email in the bio.\n- Never reply to a DM that asks for expert-grade advice on a specific case — direct the person to `\u003CPRIMARY_CTA>` via a standard polite reply.\n- Never share private case details, names, or numbers — even if the user shares theirs first.\n- Never reuse strict templates from your CRM as TikTok content (they read as marketing).\n- Never promise an outcome.\n- Never charge or solicit payment via TikTok DM.\n\nIf someone asks \"are you a bot?\": answer once with a sober, ambiguous line (`\"I'm part of the team — happy to help\"`) and stop. Do not confirm AI use — and never lie outright if pressed.\n\n---\n\n## 15. Phase A → Phase B transition\n\nWhen the Daily Metrics Recap detects (account_age_days ≥ 30) AND (last_warning_days_ago > 14) AND (followers ≥ 500):\n\n1. Append to `tiktok-state.md`: `YYYY-MM-DD - phase=A - PHASE_B_THRESHOLD_REACHED`.\n2. Send a distinct alert: `🎉 TikTok account in Phase B — enable comment-reply + outbound-DM crons (jobs.json: flip enabled=true)`.\n3. Do **NOT** auto-flip the crons (manual user action — reduces risk of premature B-phase posting).\n\nOnce Phase B is enabled by the user:\n- First week: cap reply pass at **2 replies\u002Frun** (not the full 6) — soft ramp.\n- Keep posting cadence steady (no burst).\n- Once 14 days in Phase B without warning: full doctrine quotas (§7).\n\n---\n\n## 16. Stability discipline\n\n- Read the UI before clicking.\n- One click → verify with a snapshot.\n- Do not stack clicks.\n- Close stale tabs at the end of every run.\n- Return to the role's default page when done.\n- Never silently fake a successful action — always verify the reply landed in the right thread \u002F textbox.\n\n**Better silence than spam. Better a blockage report than a fake success.**\n\n---\n\n## 17. First-run checklist\n\nBefore enabling any cron, run through this checklist:\n\n- [ ] Section 0 placeholders filled in your local copy \u002F agent memory.\n- [ ] TikTok account is **Business** or **Creator** (Business Suite UI requires it).\n- [ ] Profile bio is one short line + a SINGLE `\u003CPRIMARY_CTA>` link.\n- [ ] Browser profile launched at `http:\u002F\u002F127.0.0.1:\u003CBROWSER_PORT>` and logged in.\n- [ ] `\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F` returns `ok:true` and a non-null `uniqueId` (login verified).\n- [ ] `\u003CWORKSPACE_DIR>\u002Fmemory\u002F` directory exists with the 9 memory files (see §13) — empty is fine, scripts append.\n- [ ] Alert channel (Telegram \u002F Slack \u002F Discord) webhook tested with a \"hello\" message.\n- [ ] `cliclick` installed (`brew install cliclick`) and macOS Accessibility permission granted to the terminal that runs the cron.\n- [ ] Phase A confirmed: account \u003C 30 d OR \u003C 500 followers OR recent warning → only inbound-DM cron enabled.\n- [ ] At least 14 days of organic posting (one video\u002Fday, no automation) **before** enabling reply crons, even if Phase B-eligible by metrics.\n\nA bash one-liner to init the memory files:\n\n```bash\nmkdir -p \"\u003CWORKSPACE_DIR>\u002Fmemory\" && cd \"$_\" && touch tiktok-recaps.md tiktok-post-log.md tiktok-reply-log.md tiktok-state.md tiktok-hashtag-state.md tiktok-sound-state.md tiktok-ideas.md tiktok-learnings.md tiktok-alerts-sent.md\n```\n\n---\n\n## 18. FAQ\n\n**Q: Do I need OpenClaw to use this skill?**\nA: No. OpenClaw browser CLI is the example stack — the doctrine works with Playwright, Puppeteer, Chrome MCP, or any CDP-capable tool. The `cliclick` step in §9 is macOS-specific; on Linux replace with `xdotool`; on Windows use the `SendInput` win32 API or a wrapper like AutoHotkey.\n\n**Q: Can I use this skill for multiple TikTok accounts?**\nA: Yes — clone the workspace dir per account. Each account gets its own `memory\u002F` and its own browser profile. Use a different `\u003CBROWSER_PORT>` per account so they don't collide.\n\n**Q: Does this work with the official TikTok API (Display \u002F Content Posting)?**\nA: Partially. The official API covers video upload and basic profile reads but does NOT cover comment-reply or DM-reply — exactly the surfaces this skill operates on. The UI flow in §9 is the only reliable path until TikTok ships an official DM\u002Fcomment-reply API.\n\n**Q: What about TikTok Shop \u002F Affiliate \u002F Live?**\nA: Out of scope. This skill covers DMs, comment replies, and FYP-eligible organic posting only. Shop and Live have separate UI and separate sanction patterns.\n\n**Q: How does this interact with the \"Action blocked\" toasts?**\nA: Treat them as soft blocks (exit code 2 in §9). Pause the role for ≥ 1 h, alert the user, do not retry inside the same cron run. If the toast says \"we'll let you know when you can do this again\", flip the account to Phase A and require a manual re-evaluation.\n\n**Q: Can I run multiple crons in parallel?**\nA: Within one account, no — the cron interleave in §7 (3-minute offset) is there because the Business Suite session can only handle one operation at a time without producing inconsistent UI state. Across accounts, yes, but use different browser profiles and different `\u003CBROWSER_PORT>`.\n\n**Q: What if my account is banned or shadowbanned?**\nA: Stop everything. Do not appeal automatically — TikTok's appeal flow is sensitive to repeated automated submissions. Manual review only. Document the exact last 20 actions in `tiktok-learnings.md` so the post-mortem can identify the trigger.\n","# TikTok Account Operations\n\nThis skill is the operating doctrine for every TikTok automation run on a brand, professional or personal account.\n\n**The goal is not to comment fast. The goal is to operate TikTok like a careful human contributor: stable browser, correct context, useful action, no shadowban risk, no FYP throttling.**\n\nDrop-in for any niche (legal, medical, software, finance, creator, ecommerce). Replace the placeholders in section 0 with your own values.\n\n---\n\n## 0. Configure for your brand\n\nBefore running anything, fill these placeholders in your local copy or your agent's memory:\n\n| Placeholder | Example | Your value |\n|---|---|---|\n| `\u003CBRAND_NAME>` | \"Acme Studio\" | — |\n| `\u003CBRAND_DOMAIN>` | \"acme.studio\" | — |\n| `\u003CTIKTOK_HANDLE>` | \"@acmestudio\" | — |\n| `\u003CTIKTOK_BUSINESS_ACCOUNT>` | yes\u002Fno (Business Suite requires Business or Creator account) | — |\n| `\u003CBROWSER_PROFILE>` | \"tiktok-live\" | — |\n| `\u003CBROWSER_PORT>` | \"18801\" | — |\n| `\u003CNICHE_KEYWORDS>` | \"lost license OR speeding ticket\" | — |\n| `\u003CPRIMARY_CTA>` | \"WhatsApp \u002F form \u002F app link — pick ONE\" | — |\n| `\u003CWORKSPACE_DIR>` | \"~\u002F.openclaw\u002Fworkspace\u002Ftiktok-\u003Cbrand>\" | — |\n\nAll shell snippets below assume an [OpenClaw](https:\u002F\u002Fopenclaw.ai) browser CLI bound by CDP, but the doctrine works with any browser-automation stack (Playwright, Puppeteer, Chrome MCP). Swap the CLI calls for your own.\n\n### Quick config (copy-paste YAML)\n\nIf your agent reads config from YAML, drop this in `\u003CWORKSPACE_DIR>\u002Fconfig.yaml`:\n\n```yaml\nbrand:\n  name: \u003CBRAND_NAME>\n  domain: \u003CBRAND_DOMAIN>\n\ntiktok:\n  handle: \u003CTIKTOK_HANDLE>            # e.g. \"@acmestudio\"\n  business_account: true             # required for \u002Fbusiness-suite\u002F UI\n  browser_profile: \u003CBROWSER_PROFILE> # e.g. \"tiktok-live\"\n  browser_port: \u003CBROWSER_PORT>       # e.g. 18801\n\ndiscovery:\n  niche_keywords: \u003CNICHE_KEYWORDS>\n\ncta:\n  primary: \u003CPRIMARY_CTA>             # one channel only — e.g. \"wa.me\u002F\u003Cdigits>\"\n\nworkspace:\n  dir: \u003CWORKSPACE_DIR>               # e.g. \"~\u002F.openclaw\u002Fworkspace\u002Ftiktok-acme\"\n\nalerts:\n  channel: telegram | slack | discord\n  webhook: \u003CYOUR_WEBHOOK_URL>\n\nschedule:\n  timezone: Europe\u002FParis             # everything else is relative to this\n  windows:\n    dm_check:      \"0,15,30,45 9-22 * * *\"     # every 15 min, 9am-10pm\n    comment_check: \"3,18,33,48 9-22 * * *\"     # offset by 3 min so they never overlap\n    browser_health: \"0 * * * *\"                # hourly\n    daily_recap:   \"21:00\"\n```\n\n### Compatibility\n\nThe skill is markdown — it works wherever an agent reads `SKILL.md`:\n\n| Stack | Skill install path |\n|---|---|\n| [Claude Code](https:\u002F\u002Fclaude.ai\u002Fcode) | `~\u002F.claude\u002Fskills\u002Ftiktok-account-operations\u002F` |\n| [OpenClaw](https:\u002F\u002Fopenclaw.ai) | `~\u002F.openclaw\u002Fskills\u002Ftiktok-account-operations\u002F` |\n| ClawHub-published | one-click install via [clawhub.ai](https:\u002F\u002Fclawhub.ai) |\n| Cursor \u002F Copilot CLI | drop `SKILL.md` into your project's `.cursorrules` or `AGENTS.md` |\n| Any LLM agent reading markdown rules | concatenate `SKILL.md` into your system prompt |\n\n---\n\n## 1. Browser architecture\n\n### Physical profile\n\nA single browser profile per account, attached to TikTok's Business Suite:\n\n- `\u003CBROWSER_PROFILE>` (CDP direct, attached to `http:\u002F\u002F127.0.0.1:\u003CBROWSER_PORT>`)\n\nUser data dir: `~\u002F.openclaw-browser-profiles\u002F\u003CBROWSER_PROFILE>`.\n\nUse it through the OpenClaw browser CLI:\n\n```bash\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> status\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> tabs\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> navigate https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> snapshot --limit 160\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> click \u003Cref>\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> evaluate --fn \"\u003Casync function>\"\n```\n\n### The Business Suite is the canonical surface\n\nMost TikTok operational pages (Messages, Comments, Analytics, Posts) live under:\n\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fcomments`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fanalytics`\n- `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fposts`\n\nCritical UI fact: **`\u002Fbusiness-suite\u002Fmessages` and `\u002Fbusiness-suite\u002Fcomments` render their content inside iframes**, not in the main DOM. Many `document.querySelector(...)` calls will silently miss the actual content unless you traverse the right iframe. See §9.\n\n### Roles (mental separation, single physical profile)\n\n#### Role: `tk-post`\n\nAccount cockpit. Use for direct account action.\n\nUse for:\n- DM replies in `\u002Fbusiness-suite\u002Fmessages`\n- Comment replies in `\u002Fbusiness-suite\u002Fcomments` (nested reply only — see §9)\n- Original video uploads (separate publishing flow, usually via mobile or Creator Studio)\n- Profile checks\n- Analytics snapshots\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fmessages`\n\nMental model: act as the account. Protect it. Do not clutter it.\n\n#### Role: `tk-engage`\n\nSearch and discovery radar. Use to find what deserves action.\n\nUse for:\n- Keyword searches across the public feed\n- Monitoring `#niche` hashtags\n- Inspecting a candidate creator's recent posts before replying\n- Trend \u002F sound discovery\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fsearch?q=\u003CNICHE_KEYWORDS_URL_ENCODED>&t=video`\n\nMental model: discover, qualify, decide. Do not act impulsively from discovery.\n\n#### Role: `tk-stealth`\n\nQuiet maintenance bay. Use for low-noise maintenance.\n\nUse for:\n- Saving \u002F liking videos for inspiration\n- Following peer creators (cap follows — see §7)\n- Quiet profile observation\n- Sound library curation\n\nDefault page: `https:\u002F\u002Fwww.tiktok.com\u002Fforyou`\n\nMental model: maintain quietly. No noisy engagement.\n\n### Operational law\n\n- `tk-post` = act as the account\n- `tk-engage` = discover what to react to\n- `tk-stealth` = maintain quietly\n- Stability matters more than speed\n- After every run, navigate back to the role's default page (resting state)\n\nNever collapse all workflows into chaotic browsing.\n\n---\n\n## 2. Session check (run first on every cron)\n\n```bash\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> status\nopenclaw browser --browser-profile \u003CBROWSER_PROFILE> evaluate --fn \"async () => { try { const r = await fetch('https:\u002F\u002Fwww.tiktok.com\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F', {credentials:'include'}); const d = await r.json(); return {ok: d.statusCode === 0, uniqueId: d.userInfo?.user?.uniqueId || null}; } catch(e) { return {ok:false, error:String(e)}; } }\"\n```\n\n- If `status` is `stopped`: report the blockage in your alert channel and stop. Never relaunch Chrome from inside a cron — that's a user-side action.\n- If `ok` is `false` or `uniqueId` is `null`: login expired. Stop and report.\n\nFor Business Suite specifically, navigate to `\u002Fbusiness-suite\u002Fmessages` after the API check — if the page redirects to the public web feed or to a login screen, the Business account session is expired even though the API succeeded.\n\n---\n\n## 3. Phase gating (algorithm trust)\n\nTikTok has no karma counter, but it has a strong **trust gradient**: brand-new or recently-warned accounts get throttled on the FYP and on DM volume. Run in two phases:\n\n- **Phase A** (account \u003C 30 days OR last 14 days had ≥ 1 \"Community Guidelines\" notice): zero brand-mentioning DMs and zero outbound comment replies. The account is allowed to post videos and react to incoming DMs only.\n- **Phase B** (account ≥ 30 days, no recent warning, ≥ 500 followers): all crons authorized.\n\nAlways read `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-state.md` at start (last line = current phase) AND verify via `\u002Fbusiness-suite\u002Fposts` (looks for a \"limited\" banner near the post list).\n\nA Daily Metrics Recap cron appends a snapshot every night and pings your alert channel explicitly when the account crosses Phase A → Phase B.\n\n### Manual override (advanced)\n\nYou can force Phase B before the 30-day threshold by appending a line `YYYY-MM-DD - phase=B (manual override)` to `tiktok-state.md`. The override line takes priority over the threshold. Use when:\n\n- You have an established brand on other platforms and an audited account history (imported followers, verified domain) and want immediate brand-aware posting.\n- You accept the risk of harder shadowban triggers in the first 30 days. The auto-freeze on 2 successive comment removals (see §11) still applies.\n\nDocument the decision in `tiktok-learnings.md`.\n\n---\n\n## 4. Qualification of an inbound DM or comment\n\nA DM or comment is repliable only if **all** of:\n\n- The conversation thread has at least one message from the user (not a pure share\u002Fforward).\n- The message is in a language you can answer in (otherwise: skip, do not auto-translate).\n- The message is a real question or qualified intent in your domain (not a vent, not a meme, not a request for free expert-grade work).\n- Phase B authorized for brand-mentioning replies (see §3).\n- The same user has not been sent a templated reply in the last 7 days (`tiktok-reply-log.md`).\n- Not a competitor or a troll on first read of the user's recent posts.\n\nIf any check fails: skip. Document why in the recap.\n\n### Read the full context before answering\n\nFor DMs: read **the entire conversation** (`[data-e2e=\"chat-item\"]`), not just the latest message. People often add critical context across 2-3 messages.\n\nFor comments: read the parent video caption AND the comment thread up to the target comment. A reply that ignores the obvious context reads as a bot.\n\n---\n\n## 5. Reply templates\n\n### Phase A (warming, NO brand mention)\n\n- 1-3 sentences, conversational, genuinely helpful.\n- Match the comment \u002F DM tone.\n- Never expert-grade advice (medical, legal, financial).\n- Never link to anything.\n- Never sign with anything that hints at a profession.\n\nExample structure (comment):\n```\n[Direct answer or empathy hook]. [One concrete tip from common sense].\n```\n\n### Phase B (brand-aware, expert)\n\nDefault mode = **pedagogical**, not promotional.\n\nDM reply structure (≤ 6000 chars but aim for ≤ 600):\n```\n[Acknowledge the situation in 1 sentence, neutral tone.]\n\n[General rule \u002F framework in 2-3 short paragraphs. No exact quote of statute. No price.]\n\n[Concrete next step — point to \u003CPRIMARY_CTA>. NEVER list multiple channels.]\n```\n\nComment reply structure (≤ 200 chars):\n```\n[1 line of contextual acknowledgement]. [Indirect signal — \"feel free to DM us\" \u002F \"form on bio\" — never paste a URL].\n```\n\n### Brand link policy\n\n**ZERO outgoing links inside DMs or comments themselves.** TikTok actively dampens reach for posts containing third-party URLs in any user-visible text. Indirect signaling only:\n\n- Bio link in your profile is the only authorized URL surface.\n- Comment \u002F DM body: never paste a URL, never paste a brand name in a way that triggers the \"may be unsafe\" toast.\n- Never paste an external URL in a video caption either — the FYP penalty is real.\n- Maximum 1 indirect mention per reply (e.g. \"we have an app for that\" — no name).\n\n### The encoding trap (critical — see §9 for the full story)\n\nIf your sending path uses `cliclick t:'...'` for comment posting, **strip all accented characters and emoji** from the rendered string before sending. The macOS keystroke path silently drops or replaces non-ASCII characters in some locales. Replace `é → e`, `à → a`, `' → '`, `…  → ...` etc. before the type call.\n\nForbidden in any reply:\n- Any URL on `\u003CBRAND_DOMAIN>` (and `www.`, subdomains, shorteners).\n- \"DM me\", \"click my profile\", \"check our site\", \"more info here\", phone numbers, email addresses (in the reply body — bio is the only authorized URL surface).\n- Brand name in the comment body (Phase A) or more than once (Phase B).\n- Promises (\"you will win\", \"guaranteed\", \"in 24h I'll fix it\").\n- Quoting specific past client \u002F customer cases.\n- Emojis (encoding trap + sober tone in regulated fields).\n\n---\n\n## 6. Original posting cadence\n\nPosting cadence is **outside the scope of the live operational crons** described in §9 (those handle reactive DM + comment replies). The recommended rhythm for an account in Phase B is:\n\n- **3-5 short videos \u002F week** (15-45 s), one idea per video, hook in the first 1.5 s.\n- **1 longer video \u002F week** (45-90 s) explaining one concept end-to-end.\n- **Avoid burst posting** (3+ videos within 6 h) — TikTok throttles the burst.\n- **Respect the sound policy**: original sounds and verified-license sounds only. Copyrighted commercial tracks on a Business account = silent mute on the FYP.\n\nHashtag discipline:\n- 3-5 hashtags per video, max.\n- 1 broad (#fyp, #foryou) + 2-3 niche (#yourdomain).\n- Never use banned or shadowbanned hashtags — re-check the `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-hashtag-state.md` registry monthly.\n\nApply a posting calendar in `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-ideas.md`. Run a Weekly Planning cron that picks the next 5-7 hooks from `tiktok-ideas.md` and confirms none of them duplicates a post in `tiktok-post-log.md` over the last 30 days.\n\n---\n\n## 7. Quotas (hard limits)\n\n| Action | Limit |\n|--------|-------|\n| Replies (DM) per 24 h | 30 max |\n| Replies (DM) per Reply Pass run | 4 max |\n| Replies (comment) per 24 h | 40 max |\n| Replies (comment) per Reply Pass run | 6 max |\n| Outbound first-contact DMs \u002F day | 0 (Phase A) — 5 (Phase B, only if user opted-in) |\n| Follow \u002F day | 20 max (Phase B), 5 max (Phase A) |\n| Unfollow \u002F day | 20 max |\n| Actions in same video thread | min 30 min apart |\n| Actions globally (any) | min 1 min apart |\n| Same opening phrase across replies | never (see §8) |\n\nQuota tracking: read `tiktok-reply-log.md` at the start of every run, count entries with timestamps in the last 24 h, abort early if quotas already met.\n\n### Cron interleaving\n\nTo avoid two crons hammering the Business Suite at the same time:\n\n- **DM Check** runs at `:00, :15, :30, :45`.\n- **Comment Check** runs at `:03, :18, :33, :48` (offset by 3 min).\n\nNever fuse the two into one cron — a single long-running cron is more likely to hit a TikTok soft block.\n\n---\n\n## 8. Anti-spam triggers (words and patterns to avoid)\n\n### Content\n\n| Avoid | Use instead |\n|-------|-------------|\n| \"DM me\", \"check my profile\", \"link in bio\" | (bio link does the work — don't point at it) |\n| `\u003CBRAND_NAME>` repeated > 1 time in same reply | (mention once, max) |\n| \"free consultation\", \"first call free\" | (no marketing language) |\n| Phone number, email, URL | (never in body) |\n| Emojis | (regulated \u002F sober fields — drop them. Also: encoding trap on macOS — see §9) |\n| All caps for emphasis | (use italics sparingly, prefer plain text) |\n| Bit.ly \u002F tinyurl \u002F shorteners | (TikTok flags shorteners aggressively) |\n\n### Behavioral\n\n- Replying within 30 s of comment creation → bot-like, wait ≥ 2 min.\n- Same opening phrase across multiple replies → flagged (vary openings).\n- > 6 actions in 10 min → temporary rate limit.\n- Posting > 3 videos within 6 h → burst penalty on the FYP.\n- Following > 25 users \u002F day → 24 h action block.\n- Mass-mentioning users (`@user @user @user` in a single reply) → spam classifier triggers.\n- Mass-DMing identical messages → near-instant temporary ban.\n\n---\n\n## 9. Human-like UI flow (the only thing that actually works)\n\nTikTok's Business Suite ships heavy front-end protections: iframes everywhere, two stacked textboxes after a \"Reply\" click, IME-aware focus management, and a non-trivial composer that ignores synthetic events. The only flow that survives is **physical-input simulation** — real mouse clicks via `cliclick` on macOS (or `xdotool` on Linux), real keystrokes, real dwells. This is the TikTok equivalent of Reddit's reCAPTCHA dodge: not a bypass, just real human signals.\n\n### DM send flow (validated)\n\nURL: `https:\u002F\u002Fwww.tiktok.com\u002Fmessages?lang=\u003Cyour-lang>` (redirects to `business-suite` if Business account, with an iframe wrapping the conversation pane).\n\n1. **Pre-flight session check** (see §2). Confirm `uniqueId` is not null.\n2. **Navigate to `\u002Fmessages?lang=\u003Clang>`**. Wait for the redirect to complete (≥ 1.5 s dwell).\n3. **Detect iframe** via JS: `document.querySelectorAll('iframe').length > 0`. If yes, scope all subsequent queries to that iframe.\n4. **List unread conversations**: query `[data-e2e=\"chat-list-item\"]` (within iframe).\n5. For each unread:\n   a. Click the conversation tile.\n   b. **Read all visible messages** `[data-e2e=\"chat-item\"]` — full context before answering.\n   c. Qualify the lead (see §4).\n   d. Draft the reply (≤ 6000 chars).\n6. **Send the reply** (the sequence below is the only one validated end-to-end):\n   ```\n   1. subprocess.run([\"pbcopy\"], input=msg.encode(\"utf-8\"))\n   2. Page.bringToFront via CDP\n   3. Compute the textbox's screen coordinates (see §9.3)\n   4. cliclick c:X,Y                                     ← MANDATORY physical click in textbox\n   5. time.sleep(0.5)\n   6. osascript -e 'tell app \"System Events\" to keystroke \"v\" using command down'\n   7. time.sleep(1)                                      ← wait for the Send button to become enabled\n   8. Compute screen coords of [data-e2e=\"message-send\"]\n   9. cliclick c:screenX,screenY\n   10. Verify textbox is empty\n   ```\n\nThe **physical click on step 4 is non-negotiable**: without it, the macOS clipboard paste lands in whichever frame currently has focus, which is rarely the message textbox.\n\n### Comment reply flow (nested — validated)\n\nURL: `https:\u002F\u002Fwww.tiktok.com\u002Fbusiness-suite\u002Fcomments`.\n\nStructure of the page:\n- Video list **in the main DOM** on the left, with a badge \"N nouveaux commentaires\" \u002F \"N new comments\" per video.\n- Selected video pane on the right, with **two iframes**: `iframe[0]` = messages (always present in background), `iframe[1]` = comments.\n\n1. Scan the video list in the main DOM, regex `\u002F(\\d+) (nouveau|new)\u002F` (not \"Aucun\" \u002F \"No\").\n2. For each video with new comments:\n   a. Click the video tile.\n   b. Wait 2 s for `iframe[1]` to load.\n   c. Read `[data-e2e=\"comment-level-1\"]` + usernames `[data-e2e=\"comment-username-1\"]`.\n   d. Qualify the comment (see §4).\n   e. **Click `[data-e2e=\"comment-reply-1\"]`** of the target comment via JS scoped to `iframe[1]`. Wait 1.5 s.\n3. **The two-textbox trap**: after clicking \"Reply\", two textboxes exist on the page:\n   - **INLINE textbox** (small `vpY`) = the nested reply textbox **← USE THIS ONE**.\n   - **GENERAL textbox** (large `vpY` near the bottom) = the page-level \"Add a comment\" box. Posting here creates a *new* top-level comment, not a reply.\n4. Always pick the textbox with the **smallest** `vpY`. Sample selector:\n   ```python\n   textboxes = [...]  # all contenteditable nodes with their viewport coords\n   inline_tb = min(textboxes, key=lambda t: t['vpY'])\n\n   post_btns = [b for b in all_post_btns if not b['disabled']]\n   closest = min(post_btns, key=lambda b: abs(b['vpY'] - inline_tb['vpY']))\n   ```\n5. **Type the message** (not paste) for comments:\n   ```\n   1. Compute screen coords of inline_tb\n   2. cliclick c:X,Y                  ← physical click in INLINE textbox\n   3. time.sleep(0.5)\n   4. cliclick t:'message_ascii_only' ← TYPE, do not paste\n   5. time.sleep(1)\n   6. Compute screen coords of the closest enabled comment-post button\n   7. cliclick c:X,Y\n   ```\n6. **Verify the reply landed under the parent comment** — re-snapshot and look for your username in the immediate children of the parent.\n\n### 9.3 Computing screen coordinates from viewport\n\nThe browser CLI returns viewport coordinates (`vpX`, `vpY`) inside the page. To click via `cliclick`, you need screen coordinates:\n\n```\nscreenX = window.screenX + viewportX\nscreenY = window.screenY + (outerHeight - innerHeight) + viewportY\n```\n\nThe `(outerHeight - innerHeight)` term accounts for the Chrome top bar. On a typical macOS setup with the default Chrome chrome: `chrome_bar ≈ 87`.\n\nYou can fetch these via:\n\n```js\nconst m = { sX: window.screenX, sY: window.screenY, ih: window.innerHeight, oh: window.outerHeight };\n```\n\n### What does NOT work (and why)\n\n| Method | Why it fails |\n|---|---|\n| `document.execCommand('insertText', false, msg)` | Visually empties the textbox after typing but the message never reaches the send pipeline (TikTok's composer reads from a controlled React state, not from the DOM). |\n| `cliclick kd:cmd t:v ku:cmd` | Types the literal letter \"v\" instead of pasting (the cmd keydown is released before the t:v fires). |\n| `cliclick kp:return` to send | TikTok's composer ignores the Enter key in DMs and comments; you must click the send button. |\n| `osascript ... keystroke \"v\" using command down` for comments | Pastes into the **page-level** focus, which is rarely the inline reply textbox after a \"Reply\" click. Use `cliclick t:'...'` for comments. |\n| Picking the GENERAL textbox (largest `vpY`) for a nested reply | Posts a top-level comment instead of a nested reply. |\n\n### Exit codes (recommended convention for your script)\n\n| Code | Meaning | Recap action |\n|------|---------|--------------|\n| 0 | DM \u002F comment sent, verified | `status: ok`, log the reply |\n| 1 | Fatal error (UI ref missing, iframe absent, send button never enabled) | `status: error`, attach screenshot |\n| 2 | Soft block \u002F \"Tap to retry\" toast | `status: blocked`, stop, alert user |\n| 3 | Session \u002F login KO | `status: blocked`, alert user to re-login |\n| 4 | Comment posted but landed in wrong textbox (top-level instead of nested) | `status: partial`, mark for manual cleanup |\n\n### Gotchas (real ones, costly to discover)\n\n- **The `cliclick t:` accent encoding trap**: `cliclick t:'message'` on macOS drops or replaces accented characters in some locales (notably `fr_FR.UTF-8`). Strip accents and emoji from the rendered message before typing. Same family of bug as Reddit's `LC_NUMERIC` trap, different symptom: instead of dwells failing silently, characters disappear from the visible reply.\n- **iframe focus drift**: clicking inside the iframe via JS does not always give focus to the inner document. Always do a physical `cliclick` after navigating, before pasting\u002Ftyping.\n- **Two iframes on the comments page**: `iframe[0]` is the messages background, `iframe[1]` is the comments. Always scope queries to `iframe[1]` on `\u002Fbusiness-suite\u002Fcomments`.\n- **The \"Send\" button has multiple instances**: pick the one with the smallest absolute `vpY` distance from your textbox, and verify it is `enabled` before clicking.\n- **Cron timeout**: bump per-job timeout to **at least 1200 s** for posting crons — a 120 s default will kill a successful flow.\n- **Save debug artifacts**: screenshots + page snapshots at each step in a scratch dir (e.g. `\u002Ftmp\u002F\u003Cyour-namespace>\u002Ftiktok\u002F`). They are gold when a comment silently lands in the wrong box.\n\n### When the UI changes\n\nTikTok ships UI changes regularly. When the `data-e2e` attributes start returning null on selectors that used to work:\n\n1. Take a manual snapshot via your browser CLI.\n2. Inspect the new attribute names.\n3. Update the selector map.\n4. Re-test on your own account's most recent post (safe, low traffic) before re-enabling the live cron.\n\n---\n\n## 10. Hashtag \u002F sound state management\n\nFile: `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-hashtag-state.md`\n\nFor each hashtag used in `\u003CNICHE_KEYWORDS>`:\n\n- Last 5 videos that used it + reach (views, watch-time %).\n- Shadowban check (search the hashtag in incognito — does your video appear?).\n- Banned \u002F sensitive flag (cross-check with [hashtagsforlikes](https:\u002F\u002Fhashtagsforlikes.co) or similar — keep a manual override list).\n\nFile: `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-sound-state.md`\n\nFor each sound used:\n\n- Original or licensed (Business accounts can ONLY use commercial-license sounds).\n- Reach with that sound vs your baseline.\n- Sound ID \u002F link.\n\nUpdate at the end of every posting run.\n\n---\n\n## 11. Recovery & blockers\n\n| Issue | Action |\n|-------|--------|\n| `status: stopped` | Report in recap: \"Chrome \u003CBROWSER_PROFILE> stopped, user action required (relaunch Chrome on port \u003CBROWSER_PORT>)\". Stop. |\n| Session API returns `ok: false` | Report login expired. Stop. |\n| Business Suite redirects to `\u002Flogin` | Same as login expired. Stop. |\n| HTTP 429 from `\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F` | Stop the run, report \"rate limited\", wait next scheduled run. |\n| Captcha \u002F \"puzzle\" challenge | Stop. Never attempt to solve. Report for user action. |\n| \"Tap to retry\" toast after sending | Soft block. Pause the role for ≥ 1 h. Report. |\n| Comment posted but lands as a top-level (not a reply) | Auto-flag for human cleanup. Pause comment cron for 30 min. |\n| Comment removed by TikTok \u003C 10 min after publish | Auto-freeze the entire comment cron for 6 h. Append cause to `tiktok-learnings.md`. |\n| `evaluate` returns null with no error | Likely off-tiktok.com page → navigate first, retry once. |\n| Account banner \"your account is at risk of restriction\" | Flip to Phase A immediately. Disable all reply crons until manual review. |\n\n---\n\n## 12. Mandatory recap (alert channel + memory)\n\nAt the end of each cron:\n\n**Alert channel (Telegram \u002F Slack \u002F Discord) — final run message**:\n```\n[Job name] — [status: ok|partial|blocked|skipped]\nDMs handled: [N or \"—\"]\nComments handled: [N or \"—\"]\nHot leads: [list short OR \"—\"]\nPhase: [A|B]\nBlockers: [text OR \"—\"]\nNext action: [1 line]\n```\n\n**Memory** — append to `\u003CWORKSPACE_DIR>\u002Fmemory\u002Ftiktok-recaps.md`:\n```\n## YYYY-MM-DD HH:MM TZ — \u003Cjob-id> — status: \u003Cstatus>\n- Job: \u003Cdescription>\n- Phase: A|B\n- DMs sent: \u003CN>\n- Comments sent: \u003CN>\n- Hot leads: \u003Clist or \"—\">\n- Blockers: \u003Ctext or \"—\">\n- Next useful action: \u003C1 line>\n```\n\nIf no action was taken: say so clearly (`no DM\u002Fcomment sent, reason`).\n\n---\n\n## 13. Memory files inventory\n\nLocated at: `\u003CWORKSPACE_DIR>\u002Fmemory\u002F`\n\n| File | Purpose | Update cadence |\n|------|---------|----------------|\n| `tiktok-recaps.md` | Per-run logs (mandatory append) | Every cron run |\n| `tiktok-post-log.md` | Videos published (URL, hook, date, views, watch %) | Each posting run |\n| `tiktok-reply-log.md` | Replies sent (target user, type DM\u002Fcomment, URL, date, removed?) | Each reply pass |\n| `tiktok-state.md` | Daily phase + warning flags + follower count | Daily Metrics Recap |\n| `tiktok-hashtag-state.md` | Per-hashtag reach + shadowban check | After any posting run |\n| `tiktok-sound-state.md` | Per-sound reach + license info | After any posting run |\n| `tiktok-ideas.md` | Content backlog for new videos | Weekly Planning + ad hoc |\n| `tiktok-learnings.md` | Patterns observed (what got reach \u002F removed) | Weekly Planning + ad hoc |\n| `tiktok-alerts-sent.md` | Anti-doublon log for hot-lead alerts (one row per user) | Each alert |\n\n---\n\n## 14. Account identity guardrails\n\nThis account exists to be **useful in public** with the brand as a *background* signal.\n\n- The handle can carry the brand if your brand is the operating identity (legal\u002Fmedical\u002FB2B). Personal accounts: keep it neutral.\n- Profile bio: one short generic line + the single `\u003CPRIMARY_CTA>` link. No phone, no email in the bio.\n- Never reply to a DM that asks for expert-grade advice on a specific case — direct the person to `\u003CPRIMARY_CTA>` via a standard polite reply.\n- Never share private case details, names, or numbers — even if the user shares theirs first.\n- Never reuse strict templates from your CRM as TikTok content (they read as marketing).\n- Never promise an outcome.\n- Never charge or solicit payment via TikTok DM.\n\nIf someone asks \"are you a bot?\": answer once with a sober, ambiguous line (`\"I'm part of the team — happy to help\"`) and stop. Do not confirm AI use — and never lie outright if pressed.\n\n---\n\n## 15. Phase A → Phase B transition\n\nWhen the Daily Metrics Recap detects (account_age_days ≥ 30) AND (last_warning_days_ago > 14) AND (followers ≥ 500):\n\n1. Append to `tiktok-state.md`: `YYYY-MM-DD - phase=A - PHASE_B_THRESHOLD_REACHED`.\n2. Send a distinct alert: `🎉 TikTok account in Phase B — enable comment-reply + outbound-DM crons (jobs.json: flip enabled=true)`.\n3. Do **NOT** auto-flip the crons (manual user action — reduces risk of premature B-phase posting).\n\nOnce Phase B is enabled by the user:\n- First week: cap reply pass at **2 replies\u002Frun** (not the full 6) — soft ramp.\n- Keep posting cadence steady (no burst).\n- Once 14 days in Phase B without warning: full doctrine quotas (§7).\n\n---\n\n## 16. Stability discipline\n\n- Read the UI before clicking.\n- One click → verify with a snapshot.\n- Do not stack clicks.\n- Close stale tabs at the end of every run.\n- Return to the role's default page when done.\n- Never silently fake a successful action — always verify the reply landed in the right thread \u002F textbox.\n\n**Better silence than spam. Better a blockage report than a fake success.**\n\n---\n\n## 17. First-run checklist\n\nBefore enabling any cron, run through this checklist:\n\n- [ ] Section 0 placeholders filled in your local copy \u002F agent memory.\n- [ ] TikTok account is **Business** or **Creator** (Business Suite UI requires it).\n- [ ] Profile bio is one short line + a SINGLE `\u003CPRIMARY_CTA>` link.\n- [ ] Browser profile launched at `http:\u002F\u002F127.0.0.1:\u003CBROWSER_PORT>` and logged in.\n- [ ] `\u002Fapi\u002Fuser\u002Fdetail\u002Fself\u002F` returns `ok:true` and a non-null `uniqueId` (login verified).\n- [ ] `\u003CWORKSPACE_DIR>\u002Fmemory\u002F` directory exists with the 9 memory files (see §13) — empty is fine, scripts append.\n- [ ] Alert channel (Telegram \u002F Slack \u002F Discord) webhook tested with a \"hello\" message.\n- [ ] `cliclick` installed (`brew install cliclick`) and macOS Accessibility permission granted to the terminal that runs the cron.\n- [ ] Phase A confirmed: account \u003C 30 d OR \u003C 500 followers OR recent warning → only inbound-DM cron enabled.\n- [ ] At least 14 days of organic posting (one video\u002Fday, no automation) **before** enabling reply crons, even if Phase B-eligible by metrics.\n\nA bash one-liner to init the memory files:\n\n```bash\nmkdir -p \"\u003CWORKSPACE_DIR>\u002Fmemory\" && cd \"$_\" && touch tiktok-recaps.md tiktok-post-log.md tiktok-reply-log.md tiktok-state.md tiktok-hashtag-state.md tiktok-sound-state.md tiktok-ideas.md tiktok-learnings.md tiktok-alerts-sent.md\n```\n\n---\n\n## 18. FAQ\n\n**Q: Do I need OpenClaw to use this skill?**\nA: No. OpenClaw browser CLI is the example stack — the doctrine works with Playwright, Puppeteer, Chrome MCP, or any CDP-capable tool. The `cliclick` step in §9 is macOS-specific; on Linux replace with `xdotool`; on Windows use the `SendInput` win32 API or a wrapper like AutoHotkey.\n\n**Q: Can I use this skill for multiple TikTok accounts?**\nA: Yes — clone the workspace dir per account. Each account gets its own `memory\u002F` and its own browser profile. Use a different `\u003CBROWSER_PORT>` per account so they don't collide.\n\n**Q: Does this work with the official TikTok API (Display \u002F Content Posting)?**\nA: Partially. The official API covers video upload and basic profile reads but does NOT cover comment-reply or DM-reply — exactly the surfaces this skill operates on. The UI flow in §9 is the only reliable path until TikTok ships an official DM\u002Fcomment-reply API.\n\n**Q: What about TikTok Shop \u002F Affiliate \u002F Live?**\nA: Out of scope. This skill covers DMs, comment replies, and FYP-eligible organic posting only. Shop and Live have separate UI and separate sanction patterns.\n\n**Q: How does this interact with the \"Action blocked\" toasts?**\nA: Treat them as soft blocks (exit code 2 in §9). Pause the role for ≥ 1 h, alert the user, do not retry inside the same cron run. If the toast says \"we'll let you know when you can do this again\", flip the account to Phase A and require a manual re-evaluation.\n\n**Q: Can I run multiple crons in parallel?**\nA: Within one account, no — the cron interleave in §7 (3-minute offset) is there because the Business Suite session can only handle one operation at a time without producing inconsistent UI state. Across accounts, yes, but use different browser profiles and different `\u003CBROWSER_PORT>`.\n\n**Q: What if my account is banned or shadowbanned?**\nA: Stop everything. Do not appeal automatically — TikTok's appeal flow is sensitive to repeated automated submissions. Manual review only. Document the exact last 20 actions in `tiktok-learnings.md` so the post-mortem can identify the trigger.\n",{"name":5,"description":7},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Ft\u002Ftiktok-account-operations",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill tiktok-account-operations",{"tool":39,"command":40},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill tiktok-account-operations",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill tiktok-account-operations","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Ft\u002Ftiktok-account-operations\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]