Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add linkfox-ai/linkfox-skills --skill linkfox-amazon-ads-reportgit clone --depth 1 https://github.com/linkfox-ai/linkfox-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-report)<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-report"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-report/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.
<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-report"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00194 | $0.04179 |
| Opus 5 | $0.00097 | $0.02090 |
| Sonnet 5 | $0.00039 | $0.00836 |
| Haiku 4.5 | $0.00019 | $0.00418 |
Grade A, and why
linkfox-amazon-ads-report 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 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Amazon Ads 报告获取
报告一站式获取:脚本经 developerProxy 传 profileId(服务端解析 token),自动完成报告的创建、等待(约 2–10 分钟)、下载和解压,直接返回可读的结构化数据。
脚本本身不做"该选哪些列 / 该怎么分组"的业务判断,这些由 agent 先查 references/report-types/ 下对应的 .md 文件,再显式传给脚本。
依赖 linkfox-amazon-ads-auth(脚本启动自动检查;未安装时 exit 42,stderr 打 DEPENDENCY_MISSING)。
⚠️ 多账号场景:调用前必须解析好 profileId
用户经常只说自然语言("美国站"、"日本站"、"我的店铺"),本 skill 的所有脚本都必须拿到数字 profileId 才能调。按下列顺序处理,不要跳过:
- 先调
linkfox-amazon-ads-auth的authorized_stores.py拉出用户已授权的账号 × 站点清单。 - 根据用户提到的站点(映射到
countryCode,如 美国→US)匹配候选 profile:- 只有 1 个候选 → 静默取对应 profileId,继续调用;不要把 profileId 数字播报给用户。
- ≥ 2 个候选(同站点下多个授权账号) → 必须向用户澄清,用
accountName问:"你在美国站授权了 A 和 B 两个账号,这次用哪个?" - 0 个候选 → 告知用户该站点未授权,引导去
linkfox-amazon-ads-auth做授权。
- 严禁让用户直接报 profileId 数字。
- 严禁在歧义下"挑第一个"或"选默认"绕过澄清。
完整决策表见 linkfox-amazon-ads-auth SKILL.md 的 Usage Scenarios 第 4 节。
调用方式
- API 端点:
POST /amazonAds/developerProxy(不同操作通过请求体区分;完整参数/响应/错误码见references/api.md) - Python 脚本:
python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文脚本一览) - 成本约束:本工具会消耗积分;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json(<cwd>为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session>取自环境变量SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错) - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如
total/costToken、最大列表字段的长度 + 前 3 条样本) - 加
--inline强制全量打印到 stdout(同样落盘)
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
解决认证和积分问题
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
异常情况
- 未配置API Key:环境变量未配置
LINKFOX_AGENT_API_KEY,也未配置LINKFOXAGENT_API_KEY。 - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
Core Concepts
- 覆盖:SP / SB / SD 全部报告类型(以
references/report-types/下存在的.md为准;ST / DSP 暂未覆盖) - 一站式:脚本内部自动完成报告创建 → 等待生成(约 2–10 分钟)→ 下载 → 解压,调用方只需等最终结果
- 单脚本:
get_report.py(覆盖 SP / SB 全部 adProduct) - 元数据 vs. 运行参数:
- 每个报告类型的可用字段(timeUnit / groupBy / filters / 全部列名)集中在
references/report-types/<adProduct-dir>/<reportTypeId>.md - 脚本运行参数(等待间隔、访问链接时效等)见本文件和
references/api.md
- 每个报告类型的可用字段(timeUnit / groupBy / filters / 全部列名)集中在
What ships with it
31 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.
- references/api.md 11 KB
- references/onboarding.md 2.0 KB
- references/report-types/index.md 552 B
- references/report-types/sb/index.md 562 B
- references/report-types/sb/sbAdGroup.md 3.9 KB
- references/report-types/sb/sbAds.md 3.2 KB
- references/report-types/sb/sbCampaignPlacement.md 3.6 KB
- references/report-types/sb/sbCampaigns.md 4.2 KB
- references/report-types/sb/sbGrossAndInvalids.md 1.7 KB
- references/report-types/sb/sbPromptAdExtension.md 4.1 KB
- references/report-types/sb/sbPurchasedProduct.md 2.2 KB
- references/report-types/sb/sbSearchTerm.md 3.7 KB
- references/report-types/sb/sbTargeting.md 4.2 KB
- references/report-types/sd/index.md 426 B
- references/report-types/sd/sdAdGroup.md 3.6 KB
- references/report-types/sd/sdAdvertisedProduct.md 3.4 KB
- references/report-types/sd/sdCampaigns.md 3.8 KB
- references/report-types/sd/sdGrossAndInvalids.md 2.5 KB
- references/report-types/sd/sdPurchasedProduct.md 2.7 KB
- references/report-types/sd/sdTargeting.md 4.6 KB
- references/report-types/sp/index.md 494 B
- references/report-types/sp/spAdvertisedProduct.md 2.7 KB
- references/report-types/sp/spCampaigns.md 6.2 KB
- references/report-types/sp/spGrossAndInvalids.md 2.7 KB
- references/report-types/sp/spPromptAdExtension.md 3.8 KB
- references/report-types/sp/spPurchasedProduct.md 2.8 KB
- references/report-types/sp/spSearchTerm.md 4.7 KB
- references/report-types/sp/spTargeting.md 5.2 KB
- scripts/check_auth_dependency.py 6.6 KB runs code
- scripts/get_report.py 32 KB runs code
- scripts/onboarding.py 24 KB runs code
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.
- 11d ago First seen · 241 lines · 194 tokens per session scan A 5d58560baabd
linkfox-amazon-ads-report is a skill published in the GitHub repository linkfox-ai/linkfox-skills (101 stars, last pushed 21d ago), licensed MIT. It adds 194 tokens to every session and 4,179 once invoked, about $0.0010 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-08-30.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…
next-partial-prefetching-adoption
Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…