Communitygithub.com

YepAPI/skills

使用 YepAPI 端点进行域名间的竞争分析。

skills 是什么?

该技能通过 YepAPI 提供的 SEO 端点(如域名概览、竞争对手发现和关键词差距分析)自动化竞争性研究。它帮助用户了解其域名与竞争对手相比的表现,识别关键词差距,并优先考虑高价值目标。该工作流适用于需要分析 SEO 竞争格局的开发者、营销人员或 AI 代理,支持在代码或 AI 编程工具(如 Claude Code、Cursor 等)中通过 API 调用使用。该技能通过限制竞争对手深度分析数量、重试错误和提供明确的费用说明来控制成本。输出包括可操作的发现,例如流量比较、关键词差距以及下一步应针对哪些关键词。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/competitor-research

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

竞争对手研究工作流

使用 YepAPI 端点进行域名间的竞争分析。

使用的端点

端点费用用途
POST /v1/seo/domain/overview$0.01流量、关键词、反向链接、域名排名
POST /v1/seo/competitors$0.04按关键词重叠度找出 SEO 竞争对手域名
POST /v1/seo/keyword-gap$0.04两个域名之间的关键词差距分析

工作流

步骤 1:域名概览

对用户的域名运行 POST /v1/seo/domain/overview。

{
  "domain": "example.com"
}

返回:自然流量、总关键词数、反向链接数量、域名排名。

步骤 2:发现竞争对手

对用户的域名运行 POST /v1/seo/competitors。

{
  "domain": "example.com"
}

返回:竞争对手域名及其关键词重叠百分比和流量估算。

步骤 3:比较主要竞争对手

对排名前 2-3 的竞争对手,每个都运行 POST /v1/seo/domain/overview。

{
  "domain": "competitor.com"
}

比较:流量、关键词数量、反向链接概况、域名排名。

步骤 4:关键词差距分析

在用户域名与主要竞争对手之间运行 POST /v1/seo/keyword-gap。

{
  "domain": "example.com",
  "competitor": "competitor.com"
}

返回:竞争对手有排名但用户没有的关键词——按搜索量和难度排序。

步骤 5:呈现发现结果

  • 谁整体上表现更好(流量、权威性)
  • 关键词差距在哪里(用户缺少的高价值词条)
  • 下一步应针对什么(按机会优先级:高搜索量 + 低难度)

规则

  • 从域名概览开始——费用最低为 $0.01,提供基础指标
  • 将竞争对手深度分析限制在前 3 名——控制成本
  • 关键词差距分析是最具可操作性的输出——始终包含它

错误处理

  • NO_CREDITS (402) — 告知用户前往 https://yepapi.com/dashboard 添加积分
  • UPSTREAM_ERROR (502) — 重试一次;如果再次失败,则跳过该步骤并记录
  • VALIDATION_ERROR (400) — 检查域名格式;使用不带协议的裸域名
  • RATE_LIMITED (429) — 等待后重试;遵守 Retry-After 响应头

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Tenant isolation (row-level vs schema), subdomain routing, per-tenant config, and data partitioning.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能