Phase Monitor 标志

Phase Monitor

社区
XuanRanL
phase-monitor

Run Phase Monitor — rank tracking, AI visibility tracking, drift detection, content refresh signals, performance reporting. Use for post-publish monitoring or scheduled checkup. Triggered by /seo-blog monitor, /perf, /rank-check, /drift, /ai-visibility, or as automated scheduled hook (T+7/14/30/90 after publish).

Add to TypingMind

概览

发布者XuanRanL
代码仓库loamwright-SEO-Skill
技能名称phase-monitor
星标数
52
复刻数
9
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 XuanRanL 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Phase Monitor AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/skills/phase-monitor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/skills/phase-monitor .claude/skills/phase-monitor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Phase Monitor,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Phase Monitor。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Phase Monitor 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Phase Monitor Orchestrator

Closed-loop monitoring: detect changes → feed back to Optimize phase.

Unlike other phases this runs asynchronously (scheduled), not in a synchronous user-initiated chain.

Inputs

  • state.project_slug (required, monitor is always per-project)
  • Optional state.target_urls[] (specific URLs to check; else all published URLs in change-log)

Stages (run in parallel, independent)

1. rank-tracker
   - Query GSC for impressions/clicks/position per URL (your property only)
   - SerpApi (engine=google) = LIVE SERP rank for tracked keywords incl. competitors —
     GSC only sees your own property; SerpApi sees the whole SERP. Pooled free 250/mo:
     `python -m scripts.fetch.serpapi_query --engine google --q "{keyword}" --gl {cc} --json`
     → find your domain's position in organic_results; record competitor positions too
   - Compare to baseline (projects/{slug}/baselines/)
   - T+7 / T+14 / T+30 / T+90 windows
   - Position change → traffic impact table (#1→#2 = -55%)
   - Output: projects/{slug}/rank-history-{date}.json

2. ai-visibility-tracker
   - Active probe: ChatGPT/PPLX/Claude/Gemini × 5 queries per article
   - SerpApi AI-answer engines = is the article's domain CITED in each engine's AI answer?
     Track BOTH distinct Google GEO surfaces (they cite independently):
       · `--engine ai_overview`    → Google AI Overview (inline summary): check its `references[]` links
       · `--engine google_ai_mode` → Google AI Mode (the dedicated AI tab): richer `references[]`
         ({title, link, source, snippet}) + reconstructed_markdown — a SECOND, independent GEO signal
     Plus `--engine bing` (Bing/Copilot surface). For each engine, match the project domain against
     every `references[].link` → cited? at what rank/index? Record per engine + per query.
     Structured + repeatable; complements the ChatGPT/PPLX/Claude/Gemini LLM probes.
     (Non-US target markets: `naver` / `baidu` are also callable.)
   - Compare to geo-baseline.json
   - ai_resolution_status changes: recognized → partial = alert
   - Cumulative citation count over time
   - Output: projects/{slug}/probes/{engine}-{date}.json

3. drift-detector
   - SHA-256 hash content + meta + schema
   - Compare to projects/{slug}/baselines/{snapshot}.sqlite
   - 17-rule diff (claude-seo pattern)
   - 3 severity levels: critical / high / medium
   - Output: drift-report-{date}.json + new baseline if approved

4. content-refresher
   - Compute decay score (0-100): traffic 30 + rank 25 + CTR 15 + freshness 15 + replacement 15
   - SerpApi `--engine google_trends` interest trajectory for the head term → a declining search-
     interest trend is an early decay signal feeding the freshness component (topic cooling, not
     just rank loss)
   - Threshold actions:
     - <30 → urgent refresh
     - 30-50 → schedule refresh in 7d
     - 50-75 → schedule refresh in 30d
     - >75 → healthy, defer
   - Output: refresh-queue.json

5. performance-reporter
   - Aggregate 30+ KPIs from all 4 above
   - Time periods: week / month / quarter
   - Include AI citation KPIs (per-engine)
   - Output: projects/{slug}/perf-{period}-{date}.md

Alert routing (σ-based severity)

P0 (3σ deviation, Emergency): SMS + phone + Slack
P1 (2σ, Critical):            Slack + Email
P2 (1.5σ, Warning):           Email
P3 (1σ, Info):                weekly digest

Suppression rules:

  • 24h cooldown for same alert
  • Weekend +20% threshold (avoid alert storms)
  • Maintenance windows (configurable)
  • Batch correlation (group related alerts)
  • Recovery auto-close

Triggers

Manual

  • /rank-check <url>
  • /ai-visibility <url>
  • /drift <domain>
  • /perf <domain> → full report
  • /alerts → current alert list

Scheduled (via hooks/scheduled.json)

  • Daily: ai-visibility-tracker for high-priority articles
  • Weekly: rank-tracker + drift-detector
  • Monthly: performance-reporter (executive summary)

Event-driven

  • New article published → register T+7/14/30/90 callbacks
  • Drift detected critical → auto-trigger /aio-recovery for AIO-loss case

Feedback loop (executable dispatcher — Rule 6)

Monitoring is only useful if it drives ACTION. The decision router turns the first-party GSC data into a prioritized, signal-typed optimization plan that names the MINIMAL sufficient skill per opportunity — instead of a human reading the report and full-rewriting everything:

bash
# diagnose one project (or --all) → projects/{slug}/audits/refresh-plan.json + ranked report
python -m scripts.monitor.refresh_decision_router --site {slug} --json

It classifies each opportunity by signal and routes it (grounded in 2026 CTR/GEO thresholds):

Signal (auto-detected)ActionSkill to run
CONTENT_GAP — a tag/category archive ranks a query (no dedicated article)createseo-blog /article (check cannibalization first)
PAGE2_DEPTH — real article pos 11-20, high impr, ~0 clicksoptimize (depth)subskills/cross-cutting/rewrite/ (full)
LOW_CTR — real article top-10 but CTR < ½ the position benchmarkoptimize (surgical)subskills/optimize/meta-builder/ (title/meta only)
DEEP_WEAK — real article pos > 20optimize (comprehensive)subskills/cross-cutting/rewrite/
NOT_IN_AI — query triggers AI Overview/Mode, our domain not citedoptimize (GEO)subskills/optimize/ai-overview-recovery/
CANNIBALIZE — 2+ of our pages rank the same queryconsolidaterewrite audit + manual 301
"Schema broken" (drift-detector)fixsubskills/optimize/schema-generator/

DRAFT-FIRST / human-in-the-loop: the router only WRITES the plan — it never mutates or republishes a live post. Each action is executed as a separate, gated step via the named skill (which republishes as a draft by default, per Rule 5a). The router replaces the triage, not the review.

Second axis — content quality (the router is signal-only)

The router acts on SEARCH signals (CTR/rank/AI) and never reads the body, so it misses a post that ranks fine yet is thin, stale, orphaned or weakly-sourced. Run the content scanner as the complementary CONTENT axis:

bash
python -m scripts.monitor.content_audit --site {slug} --json   # → projects/{slug}/audits/content-audit.json

It flags (mechanical, cheap): THIN, STALE, ORPHAN (<3 distinct internal links), THIN_SOURCING (<2 distinct external citations — an E-E-A-T risk on YMYL), YEAR_DRIFT. Fix ORPHAN with internal-linker, THIN_SOURCING by adding authoritative citations (mcp__us-gov__* / mcp__pubmed__*), THIN/STALE via rewrite /update. What it CANNOT see — factual errors, outdated specifics, citation AUTHORITY — needs an LLM read: route those posts to the fact-checker agent / rewrite Phase-1 audit (which use the authoritative-source MCPs). The scanner tells you WHICH posts to send there.

Closing the loop — verification + structural fixers

Three executors complete the lifecycle (all write project-level plans/journals; none auto-mutate a live site — Rule 5a):

bash
# 1. VERIFICATION — record every optimization with a baseline; re-check the delta at T+14/T+30.
#    Without this, every title/citation/rewrite fix is fire-and-forget and unprovable.
python -m scripts.monitor.optimization_journal --verify --site {slug} --window 14    # did it work?
python -m scripts.monitor.optimization_journal --report --site {slug}
#    --record is now wired into the post-publish fixers (rewrite Phase 7, ai-overview-recovery
#    Phase 3.5); they journal the before/after when they apply a change. Enforced by
#    tests/test_optimization_journal_wiring.py (Rule 6: no markdown-only "should call").

# 2. INTERNAL-LINK GRAPH — the orphan fixer the per-post linker can't be (it only links forward).
python -m scripts.monitor.internal_link_graph --site {slug} --json   # → internal-link-plan.json
#    Apply the suggested INBOUND links via the internal-linker subskill (draft-first).

# 3. PRUNE / CONSOLIDATE PLANNER — the "act" half of content cleanup (content_audit only detects).
python -m scripts.monitor.prune_consolidate_planner --site {slug} --json   # → prune-consolidate-plan.json
#    DESTRUCTIVE output (301 merges / noindex) — human signs off; never auto-executed.

Lifecycle now closed: create → publish → monitor (dual-engine) → diagnose (signal + content axes) → fix (minimal skill, draft-first) → record the change → T+14/30 verify it worked → learn.

Output

Per project, accumulated history:

projects/{slug}/
├── rank-history-{YYYY-MM-DD}.json
├── perf-week-{YYYY-MM-DD}.md
├── perf-month-{YYYY-MM-DD}.md
├── probes/{engine}-{YYYY-MM-DD}.json
├── drift-report-{YYYY-MM-DD}.json
├── baselines/{snapshot-sha}.sqlite
└── refresh-queue.json

See also

  • 5 sub-skills under subskills/monitor/
  • references/geo/geo-score-feedback-loop.md (T+14/45/90 windows design)
  • scripts/monitor/perf_report_generator.py

常见问题

Phase Monitor AI 技能有什么作用?

Run Phase Monitor — rank tracking, AI visibility tracking, drift detection, content refresh signals, performance reporting. Use for post-publish monitoring or scheduled checkup. Triggered by /seo-blog monitor, /perf, /rank-check, /drift, /ai-visibility, or as automated scheduled hook (T+7/14/30/90 after publish).

为什么在 TypingMind 中使用 Phase Monitor?

因为您只需安装一次,就能搭配任何模型使用。Phase Monitor 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Phase Monitor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/skills/phase-monitor。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Phase Monitor?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Phase Monitor 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Phase Monitor 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Phase Monitor AI 技能免费吗?

是的。XuanRanL 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇