linkfox-shopee-store-ads

linkfox-shopee-store-ads is a skill for Claude Code, Codex from linkfox-ai/linkfox-skills. It costs 173 tokens per session (2,910 once invoked), scanned A, original, MIT.

A Shopee Open API connection for paid store advertising, including product campaigns, ad balances, daily results, and return-on-investment data.

In plain words
What is it for?
Use it to check balances, create manual product ads, inspect campaign performance, and measure advertising results for an authorised Ads account.
Why use it?
It gives code access to advertising controls and reports without manually switching between Shopee’s advertising screens.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to check balances, create manual product ads, inspect campaign performance, and measure advertising results for an authorised Ads account.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add linkfox-ai/linkfox-skills --skill linkfox-shopee-store-ads
Clone the repo
git clone --depth 1 https://github.com/linkfox-ai/linkfox-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for linkfox-shopee-store-ads

README.md
[![agentmods](https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads/github.svg)](https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads)
Your own site
<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for linkfox-shopee-store-ads

Your own site · 80×15
<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-shopee-store-ads.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,910 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00173 $0.02910
Opus 5 $0.00086 $0.01455
Sonnet 5 $0.00035 $0.00582
Haiku 4.5 $0.00017 $0.00291

Measured 9d ago against content hash a22ced71f4ed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

linkfox-shopee-store-ads scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 29 executable files (scripts/_ads_api_runner.py, scripts/_ads_endpoints.py, scripts/_shopee_ads_common.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/linkfox-shopee-store-ads/SKILL.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Shopee 店铺 Ads

Shopee Open Platform Ads 模块(23 个 API,不含即将下线的 auto product ads)。依赖 linkfox-shopee-store-auth;须目标店存在 appType=ad 授权。经 POST /shopee/developerProxy 传入 shopId(或 merchantId)+ api/v2/ads/... 路径,服务端自动走 AD 应用 Token(accessToken / appType)。

调用方式

  • API 端点POST /shopee/developerProxy(不同操作通过请求体区分;完整参数/响应/错误码见 references/api.md
  • Python 脚本python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览)
  • 成本约束:本工具会消耗积分;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。

输出策略(脚本默认行为)

  • 始终将完整响应写入 <cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-shopee-store-ads-<timestamp>.json<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)
  • 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
  • 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 total/costToken、最大列表字段的长度 + 前 3 条样本)
  • --inline 强制全量打印到 stdout(同样落盘)

读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jqConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。

解决认证和积分问题

发生以下异常情况时,采用 references/onboarding.md 引导解决问题:

异常情况

  • 未配置API Key:环境变量未配置 LINKFOX_AGENT_API_KEY,也未配置 LINKFOXAGENT_API_KEY
  • 响应401或402状态码
  • 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。

官方参考

Ads 模块索引:v2.ads.get_total_balance


Prerequisites(必须先读)

  1. 运行 python scripts/check_auth_dependency.py;exit code 42 → 先安装 linkfox-shopee-store-auth
  2. 不要在本 skill 内实现授权/令牌逻辑;授权一律走 auth skill。
  3. 调用业务 API 之前,用 auth 的 authorized_stores.py 确认目标店存在 appType=ad
    • 仅有 appType=erp(或历史空值)→ 不能当广告已授权;引导 authorize_url.py 且传 appType=ad
    • 两项都缺 → 若用户只要广告,只开 AD 授权即可(不必先开 ERP)
  4. Ads API 还需 Shopee 侧开通广告能力;并非所有站点/店铺可用。
  5. 禁止developerProxyaccessTokenappType;path 用 api/v2/ads/** 即可由服务端路由到 AD。

Core Concepts

  • AD 与 ERP 分离:广告 Token 与 ERP Token 独立;店铺在列表中存在 ≠ 广告已授权
  • 转发链路developerProxyshopId/merchantId + api/v2/ads/...,服务端注入 AD token)→ 紫鸟 shopee-proxy/ad/... → Shopee API
  • 余额get_total_balance 查广告账户余额
  • 手动商品广告create_manual_product_adsedit_manual_product_ads / edit_manual_product_ad_keywords
  • 效果报表get_all_cpc_ads_*_performanceget_product_campaign_*_performance
  • GMScreate_gms_product_campaign 等系列
  • 未纳入create_auto_product_adsedit_auto_product_ads(官方标注 coming offline soon)
  • 联盟营销 AMS(module=127)→ 非本 skill

Read the full file on GitHub · 155 lines

Files

What ships with it

54 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 155 lines · 173 tokens per session scan A a22ced71f4ed

Subscribe to this mod's changes

linkfox-shopee-store-ads is a skill published in the GitHub repository linkfox-ai/linkfox-skills (101 stars, last pushed 22d ago), licensed MIT. It adds 173 tokens to every session and 2,910 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

amazon-reviews-api-skill

This skill helps users automatically extract Amazon product reviews via the Amazon Reviews API. Agent should proactively apply this skill when users express needs like getting reviews for Amazon product with ASIN B07TS6R1SF, analyzing customer feedback for a specific Amazon item, getting ratings and comments for a…

browser-act/skills · 124 tokens

amazon-competitor-analyzer

Scrapes Amazon product data from ASINs using browseract.com automation API and performs surgical competitive analysis. Compares specifications, pricing, review quality, and visual strategies to identify competitor moats and vulnerabilities.

browser-act/skills · 48 tokens

asc-subscription-localization

Bulk-localize subscription, subscription-group, and in-app purchase display names across App Store locales using asc, including API 4.4.1 version-scoped v2 resources. Use when filling or updating subscription/IAP names and descriptions without App Store Connect UI work.

rorkai/app-store-connect-cli-skills · 60 tokens

food-order

Reorder previous Foodora orders, preview cart contents, and track delivery ETA/status with ordercli. Use when the user wants to reorder food, check delivery status, or browse recent Foodora order history. Never confirm an order without explicit user approval.

Bitterbot-AI/bitterbot-desktop · 53 tokens

product-description-generator

E-commerce product description generator for any platform. Generates optimized titles, bullet points, descriptions, and backend keywords using competitor research + keyword scoring + FABE copywriting. Two modes: (A) Create — generate listing from product specs with optional competitor analysis, (B) Optimize — improve…

nexscope-ai/eCommerce-Skills · 126 tokens

amazon-price-tracker

Amazon price monitoring and competitive pricing intelligence. Real-time price tracking, Buy Box analysis, promotion detection, and dynamic pricing strategy optimization. Use when the user asks about price monitoring, competitor pricing, Buy Box tracking, or pricing strategy.

nexscope-ai/Amazon-Skills · 51 tokens