Gr blog post

From Gingiris-1031/gingiris-skills · View interactive version

Gr blog post is an AI agent skill from the GitHub repository Gingiris-1031/gingiris-skills. Jekyll 博客发布流水线:按 Iris 文风(时间锚定开场、括号旁白、em-dash 转折、Key Stats 表格)生成文章, 附带 frontmatter(title / date / canonical_url / hreflang_ja / hreflang_ko / FAQ schema)、 多语言同步(en/ja/ko)、自动建内链。当用户说"写一篇博客"、"发新文章"、"同步日韩版本"时调用。 默认 dev/B2B 读者;2C 教育/医疗/金融(YMYL)内容的 E-E-A-T 与分发渠道不同,见 gingiris-seo-geo/references/2c-adaptati

How to use this skill

Skill file

⚠️ 2C 产品的写作调整

本 skill 默认 dev/B2B 读者。写 2C 教育/医疗/金融(YMYL) 内容时:

完整 2C 渠道数据库 + 公开来源见 → gingiris-seo-geo/references/2c-adaptation.md


gr-blog-post — Jekyll 博客发布

产出的文章必须符合

Iris 文风 5 要素(详见 `references/writing-voice-iris.md`)

  1. 时间锚定开场 —— 不说"SEO 很重要",说"2026-04-10,凌晨 3 点,后台流量归零"
  2. 括号旁白 —— 正文一句,括号里挤私货("...—— 别问怎么知道的")
  3. em-dash 转折 —— 不用"但是",用 ——
  4. Key Stats 表格 —— 文章开头或 H2 下第一屏放一个硬数据表,3-5 行
  5. GEO 直接答案段落 —— 文章顶部一段 30-50 字直接回答主问题,方便 AI 爬虫抽取

技术 frontmatter 模板

---
layout: post
title: "主关键词前置,副标题用冒号:不超过 60 字"
date: 2026-04-15 14:30:00 +0800
categories: [seo, growth]
tags: [...]
canonical_url: https://tools.gingiris.com/blog/2026/04/15/slug/
hreflang_ja: /blog/2026/04/15/slug-ja/
hreflang_ko: /blog/2026/04/15/slug-ko/
post_description: "150-160 字 meta description,含主关键词"
faq:
  - q: "直接问句"
    a: "30-50 字硬答案"
---

发布流程

1. 选题

2. 写初稿

3. 内链

4. FAQ Schema

5. Canonical 策略

6. 多语言同步

7. 发布(可执行清单)

目标 repo:Gingiris-1031/growth-tools(真站 gingiris.tools,Vercel 部署 origin/main,写入后 ~50-90s 自动构建)

⚠️ 前置:先过 Gingiris-1031 GitHub 安全规则(memory gingiris_1031_safety_rules.md,P0):

发布 = GitHub Contents API PUT(不要本地 git push):

# token 只从 secrets.env 读,绝不内联/硬编码进脚本或 SKILL.md
source ~/.config/gingiris/secrets.env   # 提供 GITHUB_PAT

SLUG="your-post-slug"; LANG="en"
FILE="_posts/$(date +%F)-${SLUG}.md"
curl -s -X PUT \
  -H "Authorization: Bearer $GITHUB_PAT" \
  -H "Accept: application/vnd.github+json" \
  "https://api.github.com/repos/Gingiris-1031/growth-tools/contents/${FILE}" \
  -d "{\"message\":\"post: ${SLUG} (${LANG})\",
       \"content\":\"$(base64 < draft.md | tr -d '\n')\",
       \"committer\":{\"name\":\"Iris Wei\",\"email\":\"iris.wei@gingiris.com\"}}"

更新已存在的文件:先 GET .../contents/{path} 拿 sha,把 "sha":"..." 加进 PUT body。

发布后验证(按顺序全过才算发完):

  1. [ ] 等 Vercel 部署完成(~50-90s;可 curl -sI https://tools.gingiris.com/ 确认站点存活)
  2. [ ] curl -sI https://tools.gingiris.com/blog/{yyyy}/{mm}/{dd}/{slug}/ → HTTP 200(404 = permalink/date/future: true 配错,先修再往下)
  3. [ ] GSC 手动 Request Indexing(URL 检查 → 请求编入索引;新域抓取慢,这步不能省)
  4. [ ] IndexNow 推送到 Bing(大模型 discover 主要走 Bing 索引,见 gr-geo-cite)

hreflang 验收 checklist(发 ja/ko 版或补翻译时必做)

背景:i18n 基线曾有多处 hreflang bug(KO self-loop、JA→EN 指 /en/ 首页弱链、EN 缺 alternate),后果是日韩索引长期 0(memory i18n_baseline.md)。全站修复 commit b667208 后抽检全绿——新文章不要把 bug 加回来。

for u in "$EN_URL" "$JA_URL" "$KO_URL"; do
  echo "== $u"
  curl -s "$u" | grep -oE '<link rel="(alternate|canonical)"[^>]*>'
done
# 验收:每页 hreflang 完整(self + 对端 + x-default)且三页双向回链成对,canonical 自指

8. 发布后 24h


dev.to 二发规则(⚠️ canonical 红线)

反模式


级联推荐


API 依赖

| Service | Env var | 来源 |

|---|---|---|

| GitHub PAT | GITHUB_PAT | ~/.config/gingiris/secrets.env(source 后使用,不内联) |

| DeepSeek / Teamo(翻译) | DEEPSEEK_API_KEY / TEAMOROUTER_API_KEY | 同上 |


Citability-by-Design Spec (mandatory for NEW articles, 2026-05-18+)

Rationale: Verified 2026-05-07 that retrofitting old articles hits a ~65-68/100 citability ceiling no matter what (booster passages, surgical rewrites, splitting all produce diminishing returns). Writing new articles from this spec produces 75-85 baseline directly. Spec saves ~3 hours of post-hoc citability fixing per article.

Per-section structural requirements

Every H2/H3 section must satisfy ALL of:

  1. Word count: 134-167 (the AI-extraction sweet spot validated by zubair-trabzada/geo-seo-claude scoring)
  1. Opening sentence = definition pattern, one of:
  1. Section contains at least ONE of each:

Heading conventions

Article-level requirements

Citability self-check before publishing

Run before committing the article:

# 兼容两种安装位置:优先 monorepo 相对路径,fallback 本机安装
SCORER="skills/gr-geo-cite/scripts/citability-scorer.py"
[ -f "$SCORER" ] || SCORER="$HOME/.claude/skills/gr-geo-cite/scripts/citability-scorer.py"
python3 "$SCORER" --file /local/path/to/draft.html

Target: page score ≥ 75. If under 70, revise top 2 weakest passages.

Anti-patterns (avoid)

Real-data benchmark

Articles from 2026-05-07 audit (without this spec):

| Article (old, retrofit) | Score | Pattern |

|---|---|---|

| PH playbook master | 65 | Top passage 74, dragged by 62s |

| Social listening | 68 | Best of the 5 (early Citable Stats) |

| Community directory | 62 | Lifted from 54 via booster (+12% from 0 to 1 sweet-spot passage) |

Predicted from spec (NEW articles):

| Spec compliance | Predicted score |

|---|---|

| All sections 134-167 + definition pattern + 1 original signal | 78-85 |

| 80% sections compliant, 20% legacy structure | 72-77 |

| 50% compliant | 65-70 (same as retrofit ceiling) |

The marginal value of strict compliance is ~10 points vs partial compliance.

<!-- gingiris-community-cta:start -->

加入出海社群与购买资料包 · Community & Resources

社群与资料包为可选入口,不影响本开源 Skill 的安装和使用。

The community and paid resource pack are optional; neither is required to install or use this open-source skill.

<!-- gingiris-community-cta:end -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.