The problem
A Thai affiliate creator juggles TikTok Shop, Shopee, Lazada and CPA networks and decides every day what to push, whether an ad pays and whether a caption will get flagged. The math lives in a dozen tabs, and the claim rules of อย. and สคบ. are easy to break in a 30 second video.
Architecture
- Channel
- Thai request in Claude Code
- Figures pasted from the app
- Agent
- aff-skill routes to a module
- Python tool does the math
- Tools
- Marketplace export CSV
- Claim lint rules
- Human
- Creator picks and posts
Where the data stays: Everything runs on the creator's machine in Claude Code; the model sees the figures pasted and the export, and nothing is posted or fetched from a marketplace.
Design flow
- Creator pastes product figures from the app
- Skill scores and ranks in code
- Script written, then linted for claims
- High severity claim: rewrite and lint againOnly sometimes
- Creator decides what to push and posts itHuman checkpoint
Setup
Total time: 2 h 25 min our estimate
- 15 min
Done when: The repo is cloned and linked into your Claude skills folder, and /aff-skill answers in a new session.
- 30 min
Done when: reference/platforms.md carries your commission rates, thresholds and attribution windows with the date you checked them.
- 30 min
Done when: The ranked table shows a score, a verdict and a one line reason for each, and you agree with the order.
- 20 min
Done when: You have net per order, the views needed for your target, and the break even CPC with a kill rule, each assumption labelled.
- 30 min
Done when: A 30 second script with a disclosure line passes lint with no high severity finding.
- 20 min
Done when: The report lists each sub_id with SCALE, FIX or CUT, after buyer columns were removed from the file.
Ticks are saved on this browser.
Starter prompt
Written from how the use case works and its sources. Replace the parts in square brackets.
Use /aff-skill. I am a Thai affiliate creator on [TikTok Shop, Shopee or Lazada]. Score these products and tell me which to push: [for each: name, price in baht, commission percent and cap, sold count, rating and review count, shop rating, my 1 to 5 for demand, competition, demo, return risk and trend]. My CTR is [x] percent and CVR [y] percent if known; otherwise use your defaults and label them as assumptions. Then write a 30 second short video script for the top pick marked do it, with a disclosure line, and run lint on it.
Risks and data
Data
Marketplace exports can hold buyer names and addresses; strip them before the report step. The skill runs locally, but anything pasted goes to the model, so keep bank details and payout statements out.
How it goes wrong
Commission rates and thresholds in the reference file go stale, and the default CTR and CVR are assumptions, so a verdict is only as good as the numbers pasted. The lint reads text only: images, footage and a presenter's spoken claim are not checked, and the author calls it a practical check, not legal advice.
How the agent works
It starts
The creator installs the public aff-skill in Claude Code and types the task in Thai, for example a 30 second script for a mop basket pin.
The agent works
The skill routes the request to one of ten modules: product picking, CPA offers, paid traffic, short video, LIVE, written content, links and tracking, analytics, growth plan and compliance. For product picks the creator pastes price, commission rate and cap, sold count, rating and review count from the affiliate app (marketplace pages block automated fetching), scores demand, competition, demo ability, return risk and trend from 1 to 5, and gets a ranked table with a score out of 100 and a verdict, ทำเลย, ทดสอบ or ข้าม, ranked by commission per order first. Every number comes from the bundled Python tool and the command is shown: earn models net per order and the income target, ads gives profit, ROAS, break even CPC and CPM and a kill rule, report reads a Shopee, TikTok or Lazada export and marks each product or sub_id SCALE, FIX or CUT. Every selling deliverable passes the lint check for Thai ad claims and carries a disclosure line; a high severity finding forces a rewrite.
The result
The creator decides what to push and when to kill an ad; volatile facts such as commission rates are marked check in dashboard rather than stated.
Worked example
The skill is a public MIT project by GitHub user dongcs52 with a Thai and an English README and no stars yet; no creator publishes results with it, so the example is the README's own: an earn run for a 399 baht product with tiered rates, 20,000 views, 1 percent CTR and 4 percent CVR against a 30,000 baht target, and an ads run for a 1,000 baht spend at 2 baht CPC. Its scoring guide ranks 8 percent of 1,290 baht above 20 percent of 149 baht, excludes vapes and gambling outright, caps compliance heavy categories such as supplements regardless of score, and names อย., สคบ., ธปท. and คปภ. as the rule makers behind the lint.
The skill is written for Claude Code and runs its math in a bundled Python script, so scores and break even figures are code, not model arithmetic. Another assistant can draft a script from the same brief but loses the scoring, the report reader and the claim lint.
Join the Agent OS Club
Get hours back with a team of AI agents for every department, set up step by step for the tools you use, with a person answering your questions. Founding member price: USD 14.95 a month or USD 150 a year, locked for as long as you stay. Cancel any time.
Founding offer, ends 31 December 2026 or at member 100
Join the Agent OS ClubBuilding this for an organization? Learn more at theagentiv.com
Sources
- https://github.com/dongcs52/aff-skill
- https://raw.githubusercontent.com/dongcs52/aff-skill/main/SKILL.md
- https://raw.githubusercontent.com/dongcs52/aff-skill/main/README.th.md
- https://raw.githubusercontent.com/dongcs52/aff-skill/main/modules/product-pick.md
Published: 2026-11-06