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-sp-insights-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-sp-insights-report)<a href="https://agentmods.dev/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-sp-insights-report"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-sp-insights-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-sp-insights-report"><img src="https://agentmods.dev/badge/skills/linkfox-ai/linkfox-skills/linkfox-amazon-ads-sp-insights-report.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Privilege Escalation · line 61 Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
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.00144 | $0.01959 |
| Opus 5 | $0.00072 | $0.00979 |
| Sonnet 5 | $0.00029 | $0.00392 |
| Haiku 4.5 | $0.00014 | $0.00196 |
Grade A, and why
linkfox-amazon-ads-sp-insights-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 13d 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 — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Amazon Ads SP 洞察报告
统一获取两类 Sponsored Products 专项洞察报告:Audience 和 Search Term Impression Share/Rank。脚本经 /amazonAds/developerProxy 使用后台 Token,自动完成 advertiser account 映射、创建、轮询和 CSV 分片下载。Amazon 异步生成通常需要约 2–10 分钟,偶尔可能更久;等待不代表调用卡死或报告失败。
依赖 linkfox-amazon-ads-auth。入口启动时自动检查;缺失时以 exit 42 和 DEPENDENCY_MISSING 结束。
多账号处理
调用前先用 linkfox-amazon-ads-auth/scripts/authorized_stores.py 按站点解析 profileId:
- 一个候选:静默使用。
- 多个候选:按
accountName向用户确认,禁止默认取第一个。 - 无候选:引导用户完成 Amazon Ads 授权。
- 不要求用户直接提供
profileId数字。
报告路由
| 用户意图 | 入口脚本 | 详细规范 |
|---|---|---|
| SP 受众、Audience、受众细分表现 | get_sp_audience_report.py |
references/sp-audience-reporting-v1.md |
| SP 搜索词展示份额、impression share、份额排名 | get_sp_search_impression_share.py |
references/sp-search-impression-share-v1.md |
普通搜索词表现(曝光、点击、花费、转化)应使用 linkfox-amazon-ads-report 的 v3 spSearchTerm,不得使用本 Skill。SB、SD、DSP 或泛化市场份额请求也不得触发。
调用方式
- API 端点:
POST /amazonAds/developerProxy(脚本内部按顺序调用三个 Ads v1 路径;完整参数、响应和错误码见references/api.md) - Audience:
python scripts/get_sp_audience_report.py '<JSON 参数>' [--inline] [--no-cache] - Search Impression Share:
python scripts/get_sp_search_impression_share.py '<JSON 参数>' [--inline] [--no-cache] - 成本约束:本工具不消耗积分;成功结果按会话和参数缓存 24 小时。失败或空报告不得自动扩大日期、切换账号或连续试探。
输出策略:
- 完整响应始终写入
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/linkfox-amazon-ads-sp-insights-report-<timestamp>.json。 - 报告 CSV 分片写入同一会话的
data/;最终响应不暴露 Amazon 预签名 URL。 - 响应不超过 8 KB 时打印完整 JSON;更大时打印摘要;
--inline强制完整打印。 --no-cache强制重新获取;同一会话、同一报告类型和同一参数的成功结果默认命中 24 小时缓存。
参数指南
两个入口共同接受:
| 参数 | 必填 | 说明 |
|---|---|---|
profileId |
是 | 正整数;由 Ads Auth Skill 解析 |
region |
是 | NA / EU / FE |
startDate / endDate |
创建时是 | YYYY-MM-DD,不得晚于今天 |
timeUnit |
否 | DAILY(默认)或 SUMMARY |
advertiserAccountId |
否 | 自动映射失败时使用的 Ads v1 account ID |
pollInterval |
否 | 5–300 秒,默认 60;官方建议每分钟轮询 |
maxAttempts |
否 | 1–120,默认 10;配合默认 60 秒间隔形成约 10 分钟客户端等待窗口 |
reportId |
否 | 传入后跳过账户映射和创建,仅轮询已有报告 |
What ships with it
9 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 4.4 KB
- references/onboarding.md 2.0 KB
- references/sp-audience-reporting-v1.md 6.9 KB
- references/sp-search-impression-share-v1.md 6.0 KB
- scripts/check_auth_dependency.py 6.7 KB runs code
- scripts/get_sp_audience_report.py 15 KB runs code
- scripts/get_sp_search_impression_share.py 15 KB runs code
- scripts/onboarding.py 24 KB runs code
- scripts/reporting_v1_workflow.py 25 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.
- 13d ago First seen · 119 lines · 144 tokens per session scan A 131799652383
linkfox-amazon-ads-sp-insights-report is a skill published in the GitHub repository linkfox-ai/linkfox-skills (101 stars, last pushed 22d ago), licensed MIT. It adds 144 tokens to every session and 1,959 once invoked, about $0.0007 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…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
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…