8.7k superdesigndev

compare-pages Skill

添加、刷新或审计 treg.to/compare 页面("treg vs X")。当被要求比较 treg 与其他产品、添加竞品页面、更新对比页的价格或事实、编写或修复 FAQ、检查对比页的排名或 AI 回答中的呈现,或制作分享图时使用。流程包括用 treg CLI 做调研(竞品自己的页面、关键词需求、Google 结果、AI 回答)、诚实性规则、compare_pages.py 中的记录、SEO 检查、分享图和测试。关键词数据和监控结果绝不进这个公开仓库。

安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。

查看源码

技能指令原文(SKILL.md)

Comparison pages — treg.to/compare

A comparison page is one record in src/treg/compare_pages.py (COMPETITORS[key]). The
renderer src/treg/routers/compare.py holds no copy. Read docs/context/interface/seo.md (the
/compare row and "The social card") before you change the mechanism.

| What | Where |
|---|---|
| Copy, facts, sources, FAQ | src/treg/compare_pages.py (one record per product, plus TREG_CELLS, TREG_SPEC) |
| Page, structured data, links | src/treg/routers/compare.py |
| Styles, logos | src/treg/web/media/compare/compare.css, media/compare/logos/ (or web/logos/ if the catalog already has it) |
| Share images | scripts/og_images.py → src/treg/web/media/og/compare/.jpg |
| Tests | tests/test_compare_pages.py |

Methods follow the Semrush skills (https://github.com/semrush/skills: keyword-research,
serp-analysis, technical-seo-audit, schema-markup, internal-link-audit), with the treg CLI as the
data source instead of the Semrush MCP. references/research-with-treg.md has every command.

The rules that never bend

references/honesty-rules.md is the full list. The short form:

  1. Every fact about the other product comes from its own pages, with the URL in sources and

the read day in checked. If its pages say nothing, the cell says "Not published", never "No".

  1. Never talk treg down. State the other product's real strengths plainly, state treg's

strengths plainly, and let the reader weigh them. No "only", "just", "a few", "lacks" about treg.

  1. treg facts only from TREG_CELLS / TREG_SPEC. Never invent or promise a treg feature.
  2. Every link to another site is rel="nofollow" (a test enforces it).
  3. No catalog counts in the FAQ; elsewhere use {ENDPOINTS} / {PROVIDERS}.
  4. Check AGENTS.md and the team's rules before naming a competitor outside the /compare copy

(commit messages, PR bodies, other docs).

Add a page

  1. Pick the product and check the catalog. treg catalog search "": if its endpoints

are already in the catalog, the page must say so warmly (see the anyapi and apollo records)
and set provider if the catalog id differs from the key.

  1. Research its own pages (home, pricing, docs, MCP, terms, GitHub, changelog). Write

.context/compare-research/.md (gitignored): each fact with its URL, plus 6-8 real buyer
questions. Use WebFetch, or the treg CLI web readers when a site blocks plain fetches.

  1. Research demand (references/research-with-treg.md): keyword volume and difficulty for

" alternative(s)", " pricing", " mcp", " api", " vs ..."; the Google results and
"People also ask" for the top two; what ChatGPT answers for 2-3 buyer prompts. Keep the numbers
in .context/; they never enter the repo.

  1. Write the record. Copy the key set of an existing record. Limits:
  • title ≤ 60 characters, "treg vs X: ..." with the page's top search in it.
  • description 110-135 characters, keyword early, a treg strength stated.
  • sub ≤ 120 characters; open with what sets the pair apart, not "Both ..."; no two subs on

the hub open the same way.

  • tldr 3-5 sentences: what both share, treg's concrete strengths, the other product's

distinct strength, and one plain category sentence ("treg is like OpenRouter for tools...").

  • better 3-5, different 4-5, fit_them / fit_treg 4-5 each, both one paragraph.
  • faq 6-7, in this mix: 3-4 about the other product that people search (alternative,

pricing, MCP / API, a product-specific worry), 2 naming both products, 1-2 about treg on the
page's topic. Each answer starts with a direct answer, names both products, ≤ about 60 words,
and no two answers give the same fact.

  • sources 6-8 links: the pages that back the facts, no duplicates.
  1. Logo. The product's own mark, SVG if possible, else a square PNG of 128-256 px (it shows

at 28 px at most). Set logo_fills and mono (a hex colour) like the other records.

  1. Share image. Ask the person driving the session whether to make the page's share image now

(uv run --frozen python scripts/og_images.py /compare/treg-vs-), and tell them a
different look is one more template in LAYOUTS. A comparison without one fails
test_every_comparison_shares_its_own_image, so for comparisons the answer is usually yes.

  1. Check it (references/audit-checklist.md): run `uv run --with pytest-xdist pytest -n auto

-q tests/test_compare_pages.py`, load the page as treg.to (the pages render only when
TREG_PUBLIC_URL is treg.to), check desktop and a 390 px phone, and scan the copy for words
that talk treg down.

  1. Commit the record, logo and share image together; follow AGENTS.md (drift check, docs in

the same commit when the mechanism changes).

Refresh a page

Re-read every source. Change a fact only where the source changed, then move that record's
checked to the read day. When copy changes without new facts, move UPDATED. Re-run the share
image for any page whose headline or sub changed. The page's dateModified and sitemap
lastmod follow modified() on their own.

Monthly AI-answer check

Once a month, run the prompt list through ChatGPT, Google AI Mode / AI Overviews and Perplexity
with the treg CLI (references/research-with-treg.md, "AI answers") and record, per prompt,
whether treg is named, where, which treg URL is cited and which competitors are named. The prompt
list, the baseline and every result live in the private treg-internal repository
(its marketing SEO folder, compare-pages.md), never here. Use what you find to choose the next page or FAQ fix.

配合站内内容