Skip to content

You're reading this. The skill predicted it. A workflow that turns every post into a calibrated experiment—score, blind-predict, retro, evolve. The future doesn't reward effort, it rewards those who see the pattern first. 1M followers in a month — not luck, system.

Python

fix: full-repo code review — 34 bugs across Python / Shell / protocols / configs (#49)

Hu xintong7b8702166d17
diff --git a/.gitignore b/.gitignore
index 48b285d..5fc697f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,14 @@ __pycache__/
venv/
.python-version
+# Secrets / environment
+.env
+.env.*
+
+# SQLite databases
+*.sqlite
+*.sqlite3
+
# 用户项目数据(万一开发者在 cheat-on-content 源码目录里跑了 cheat-init)
# 这些文件应该在用户自己的 content project 里,不该污染源码 repo
.cheat-state.json
diff --git a/adapters/perf-data/bilibili-stat/crawler.py b/adapters/perf-data/bilibili-stat/crawler.py
index 633c516..4e781f5 100644
--- a/adapters/perf-data/bilibili-stat/crawler.py
+++ b/adapters/perf-data/bilibili-stat/crawler.py
@@ -37,7 +37,9 @@ def _client() -> httpx.Client:
def fetch_video(client: httpx.Client, bvid: str) -> dict:
"""拉视频信息 + 统计。返回归一化后的 dict。"""
- j = client.get(VIEW_API, params={"bvid": bvid}).json()
+ resp = client.get(VIEW_API, params={"bvid": bvid})
+ resp.raise_for_status()
+ j = resp.json()
if j.get("code") != 0:
raise RuntimeError(f"view 接口失败 code={j.get('code')} msg={j.get('message')}")
d = j.get("data") or {}
@@ -118,7 +120,11 @@ def fetch_all(bvid: str, max_comments: int = 50) -> dict:
video = fetch_video(client, bvid)
print(f" ✓ {video['title'][:40]}(播放 {video['play_count']})")
print(" → 拉取热门评论")
- comments = fetch_comments(client, video["aid"], max_count=max_comments)
+ if video.get("aid") is None:
+ print("[警告] 视频数据缺少 aid 字段,无法拉取评论")
+ comments = []
+ else:
+ comments = fetch_comments(client, video["aid"], max_count=max_comments)
print(f" ✓ {len(comments)} 条评论")
return {"video": video, "comments": comments}
diff --git a/adapters/perf-data/bilibili-stat/run.sh b/adapters/perf-data/bilibili-stat/run.sh
index ecddb8c..9192f8a 100755
--- a/adapters/perf-data/bilibili-stat/run.sh
+++ b/adapters/perf-data/bilibili-stat/run.sh
@@ -35,7 +35,15 @@ ADAPTER_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd
# Find Python — prefer venv in user's project root if exists
PYTHON=""
-PROJECT_ROOT="$( dirname "$( dirname "$( realpath "$VIDEO_FOLDER" )" )" )"
+# Walk up from VIDEO_FOLDER to find project root (.cheat-state.json)
+PROJECT_ROOT="$( realpath "$VIDEO_FOLDER" )"
+while [[ "$PROJECT_ROOT" != "/" && ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; do
+ PROJECT_ROOT="$( dirname "$PROJECT_ROOT" )"
+done
+if [[ ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; then
+ echo "❌ Cannot find project root (.cheat-state.json) from $VIDEO_FOLDER" >&2
+ exit 3
+fi
if [[ -x "$PROJECT_ROOT/.venv/bin/python" ]]; then
PYTHON="$PROJECT_ROOT/.venv/bin/python"
elif command -v python3 >/dev/null 2>&1; then
diff --git a/adapters/perf-data/douyin-session/crawler.py b/adapters/perf-data/douyin-session/crawler.py
index 4198e40..14d427c 100644
--- a/adapters/perf-data/douyin-session/crawler.py
+++ b/adapters/perf-data/douyin-session/crawler.py
@@ -136,6 +136,16 @@ def _parse_video_list(captured: list[dict], limit: int) -> list[dict]:
return dedup[:limit]
+def _pick(primary: dict, fallback: dict, key: str, default=0):
+ v = primary.get(key)
+ if v is not None:
+ return v
+ v = fallback.get(key)
+ if v is not None:
+ return v
+ return default
+
+
def _normalize_video(v: dict) -> dict:
aweme_id = v.get("aweme_id") or v.get("item_id") or v.get("id") or ""
stats = v.get("statistics") or v.get("stats") or {}
@@ -145,11 +155,11 @@ def _normalize_video(v: dict) -> dict:
"desc": v.get("desc") or v.get("title") or "",
"create_time": v.get("create_time") or v.get("createTime") or 0,
"duration_ms": video_info.get("duration") or v.get("duration") or 0,
- "play_count": stats.get("play_count") or v.get("play_count") or 0,
- "digg_count": stats.get("digg_count") or v.get("digg_count") or 0,
- "comment_count": stats.get("comment_count") or v.get("comment_count") or 0,
- "share_count": stats.get("share_count") or v.get("share_count") or 0,
- "collect_count": stats.get("collect_count") or v.get("collect_count") or 0,
+ "play_count": _pick(stats, v, "play_count"),
+ "digg_count": _pick(stats, v, "digg_count"),
+ "comment_count": _pick(stats, v, "comment_count"),
+ "share_count": _pick(stats, v, "share_count"),
+ "collect_count": _pick(stats, v, "collect_count"),
"raw": v,
}
@@ -366,7 +376,7 @@ async def fetch_comments(sess: Session, aweme_id: str, max_pages: int = 60) -> l
def _normalize_comment(c: dict) -> dict:
user = c.get("user") or {}
return {
- "cid": c.get("cid") or "",
+ "cid": str(c.get("cid") or c.get("id") or id(c)),
"text": c.get("text") or "",
"digg_count": c.get("digg_count") or 0,
"reply_comment_total": c.get("reply_comment_total") or 0,
diff --git a/adapters/perf-data/douyin-session/renderer.py b/adapters/perf-data/douyin-session/renderer.py
index 91c5b41..5a311f2 100644
--- a/adapters/perf-data/douyin-session/renderer.py
+++ b/adapters/perf-data/douyin-session/renderer.py
@@ -60,7 +60,11 @@ def render_report(
lines.append("```json")
import json
for item in detail_captured[:3]:
- lines.append(json.dumps(item["data"], ensure_ascii=False, indent=2)[:2000])
+ full = json.dumps(item["data"], ensure_ascii=False, indent=2)
+ truncated = full[:2000]
+ if len(full) > 2000:
+ truncated += "\n... (truncated)"
+ lines.append(truncated)
lines.append("```")
lines.append("")
diff --git a/adapters/perf-data/douyin-session/review.py b/adapters/perf-data/douyin-session/review.py
index e1daab3..cabb3d2 100644
--- a/adapters/perf-data/douyin-session/review.py
+++ b/adapters/perf-data/douyin-session/review.py
@@ -118,6 +118,9 @@ def main() -> None:
asyncio.run(crawler.ensure_login())
return
if len(sys.argv) > 1 and sys.argv[1] == "video":
+ if len(sys.argv) < 3:
+ print("用法:python review.py video <aweme_id> [script.txt]")
+ sys.exit(2)
aweme_id = sys.argv[2]
script_path = sys.argv[3] if len(sys.argv) > 3 else None
asyncio.run(run_with_id(aweme_id, script_path))
diff --git a/adapters/perf-data/douyin-session/run.sh b/adapters/perf-data/douyin-session/run.sh
index 1bc23c6..be96ded 100755
--- a/adapters/perf-data/douyin-session/run.sh
+++ b/adapters/perf-data/douyin-session/run.sh
@@ -33,7 +33,15 @@ ADAPTER_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd
# Find Python — prefer venv in user's project root if exists
PYTHON=""
-PROJECT_ROOT="$( dirname "$( dirname "$( realpath "$VIDEO_FOLDER" )" )" )"
+# Walk up from VIDEO_FOLDER to find project root (.cheat-state.json)
+PROJECT_ROOT="$( realpath "$VIDEO_FOLDER" )"
+while [[ "$PROJECT_ROOT" != "/" && ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; do
+ PROJECT_ROOT="$( dirname "$PROJECT_ROOT" )"
+done
+if [[ ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; then
+ echo "❌ Cannot find project root (.cheat-state.json) from $VIDEO_FOLDER" >&2
+ exit 3
+fi
if [[ -x "$PROJECT_ROOT/.venv/bin/python" ]]; then
PYTHON="$PROJECT_ROOT/.venv/bin/python"
elif command -v python3 >/dev/null 2>&1; then
diff --git a/adapters/perf-data/xhs-explore/crawler.py b/adapters/perf-data/xhs-explore/crawler.py
index 9e3f838..370e1a0 100644
--- a/adapters/perf-data/xhs-explore/crawler.py
+++ b/adapters/perf-data/xhs-explore/crawler.py
@@ -251,12 +251,10 @@ def _parse_note_list(captured: list[dict], limit: int) -> list[dict]:
def _first(d: dict, *keys: str) -> Any:
for k in keys:
- v = d.get(k)
- if v not in (None, "", 0):
- return v
- # 再扫一遍允许 0(区分"字段不存在"和"值为 0")
+ if k in d and d[k] is not None and d[k] != "":
+ return d[k]
for k in keys:
- if k in d:
+ if k in d and d[k] is not None:
return d[k]
return 0
@@ -311,6 +309,7 @@ def _extract_initial_state(html: str) -> dict | None:
assign_start = script.find(marker) + len(marker)
json_str = script[assign_start:]
json_str = re.sub(r":\s*undefined\s*([,}\]])", r":null\1", json_str)
+ json_str = json_str.rstrip().rstrip(';').rstrip()
try:
return json.loads(json_str)
except Exception:
diff --git a/adapters/perf-data/xhs-explore/renderer.py b/adapters/perf-data/xhs-explore/renderer.py
index f7ff7a9..57d9839 100644
--- a/adapters/perf-data/xhs-explore/renderer.py
+++ b/adapters/perf-data/xhs-explore/renderer.py
@@ -102,7 +102,11 @@ def render_report(note: dict, script: str, comments: list[dict]) -> str:
lines.append("### galaxy 原始字段(首跑校准用,确认曝光字段 key 后可忽略)")
lines.append("")
lines.append("```json")
- lines.append(json.dumps(raw, ensure_ascii=False, indent=2)[:2500])
+ full = json.dumps(raw, ensure_ascii=False, indent=2)
+ truncated = full[:2500]
+ if len(full) > 2500:
+ truncated += "\n... (truncated)"
+ lines.append(truncated)
lines.append("```")
lines.append("")
diff --git a/adapters/perf-data/xhs-explore/review.py b/adapters/perf-data/xhs-explore/review.py
index 0305480..e4ee5da 100644
--- a/adapters/perf-data/xhs-explore/review.py
+++ b/adapters/perf-data/xhs-explore/review.py
@@ -26,10 +26,6 @@ import crawler
import renderer
from paths import runtime_project_root, videos_dir
-# Windows Git Bash 等默认 GBK 控制台,emoji/中文 print 会崩溃,强制 UTF-8 输出
-sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
-sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8", errors="replace")
-
LOG_FILE: io.TextIOWrapper | None = None
@@ -166,82 +162,84 @@ async def run_archive(input_path: Path, output_root: Path, limit: int | None = N
output_root.mkdir(parents=True, exist_ok=True)
log_path = output_root / f"archive_{time.strftime('%Y%m%d_%H%M%S')}.log"
LOG_FILE = open(log_path, "w", encoding="utf-8", errors="replace")
- _log(f"启动归档: input={input_path}, output={output_root}")
-
- notes = json.loads(input_path.read_text(encoding="utf-8"))
- if not isinstance(notes, list):
- raise ValueError("输入 JSON 必须是笔记列表")
-
- notes = sorted(notes, key=lambda x: x.get("time", ""), reverse=True)
- if limit:
- notes = notes[:limit]
-
- results: list[dict] = []
- for i, note in enumerate(notes, 1):
- note_id = note.get("id") or note.get("note_id")
- xsec = note.get("xsecToken") or note.get("xsec_token", "")
- title = note.get("title", "")
- if not note_id or not xsec:
- results.append({
- "success": False,
- "note_id": note_id,
- "error": "缺少 note_id 或 xsec_token",
- })
- continue
-
- out_dir = output_root / note_id
- _log(f"({i}/{len(notes)}) 归档 {note_id} {title[:30]}...")
- try:
- public = await asyncio.to_thread(crawler.fetch_public_note, note_id, xsec)
- if not public.get("success"):
- err = public.get("error", "公开页解析失败")
- _log(f" -> 失败: {err}")
- results.append({"success": False, "note_id": note_id, "error": err})
+ try:
+ _log(f"启动归档: input={input_path}, output={output_root}")
+
+ notes = json.loads(input_path.read_text(encoding="utf-8"))
+ if not isinstance(notes, list):
+ raise ValueError("输入 JSON 必须是笔记列表")
+
+ notes = sorted(notes, key=lambda x: x.get("time", ""), reverse=True)
+ if limit:
+ notes = notes[:limit]
+
+ results: list[dict] = []
+ for i, note in enumerate(notes, 1):
+ note_id = note.get("id") or note.get("note_id")
+ xsec = note.get("xsecToken") or note.get("xsec_token", "")
+ title = note.get("title", "")
+ if not note_id or not xsec:
+ results.append({
+ "success": False,
+ "note_id": note_id,
+ "error": "缺少 note_id 或 xsec_token",
+ })
continue
- if max_comments > 0:
- comments = await asyncio.to_thread(
- crawler.fetch_public_comments, note_id, xsec, max_comments
+ out_dir = output_root / note_id
+ _log(f"({i}/{len(notes)}) 归档 {note_id} {title[:30]}...")
+ try:
+ public = await asyncio.to_thread(crawler.fetch_public_note, note_id, xsec)
+ if not public.get("success"):
+ err = public.get("error", "公开页解析失败")
+ _log(f" -> 失败: {err}")
+ results.append({"success": False, "note_id": note_id, "error": err})
+ continue
+
+ if max_comments > 0:
+ comments = await asyncio.to_thread(
+ crawler.fetch_public_comments, note_id, xsec, max_comments
+ )
+ public["comments"] = comments
+ public["comments_fetched"] = len(comments)
+
+ out_dir.mkdir(parents=True, exist_ok=True)
+ (out_dir / "note_detail.json").write_text(
+ json.dumps(public, ensure_ascii=False, indent=2), encoding="utf-8"
)
- public["comments"] = comments
- public["comments_fetched"] = len(comments)
-
- out_dir.mkdir(parents=True, exist_ok=True)
- (out_dir / "note_detail.json").write_text(
- json.dumps(public, ensure_ascii=False, indent=2), encoding="utf-8"
- )
-
- img_dir = out_dir / "images"
- img_dir.mkdir(parents=True, exist_ok=True)
- img_count = 0
- for idx, url in enumerate(public.get("images", []), 1):
- if await crawler.download_image(url, img_dir / f"{idx:02d}"):
- img_count += 1
-
- summary = {
- "success": True,
- "note_id": note_id,
- "output_dir": str(out_dir),
- "image_count": img_count,
- "comment_count": public.get("comments_fetched", 0),
- }
- _log(f" -> 完成: 图片 {img_count} 张")
- results.append(summary)
- except Exception as e:
- _log(f" -> 异常: {e}")
- results.append({"success": False, "note_id": note_id, "error": str(e)})
-
- if i < len(notes):
- await asyncio.sleep(0.5)
-
- summary_path = output_root / f"archive_summary_{time.strftime('%Y%m%d_%H%M%S')}.json"
- summary_path.write_text(json.dumps(results, ensure_ascii=False, indent=2), encoding="utf-8")
- success = sum(1 for r in results if r.get("success"))
- _log(f"完成: 成功 {success}, 失败 {len(results) - success}, 总计 {len(results)}")
- _log(f"汇总: {summary_path}")
- if LOG_FILE is not None:
- LOG_FILE.close()
- LOG_FILE = None
+
+ img_dir = out_dir / "images"
+ img_dir.mkdir(parents=True, exist_ok=True)
+ img_count = 0
+ for idx, url in enumerate(public.get("images", []), 1):
+ if await crawler.download_image(url, img_dir / f"{idx:02d}"):
+ img_count += 1
+
+ summary = {
+ "success": True,
+ "note_id": note_id,
+ "output_dir": str(out_dir),
+ "image_count": img_count,
+ "comment_count": public.get("comments_fetched", 0),
+ }
+ _log(f" -> 完成: 图片 {img_count} 张")
+ results.append(summary)
+ except Exception as e:
+ _log(f" -> 异常: {e}")
+ results.append({"success": False, "note_id": note_id, "error": str(e)})
+
+ if i < len(notes):
+ await asyncio.sleep(0.5)
+
+ summary_path = output_root / f"archive_summary_{time.strftime('%Y%m%d_%H%M%S')}.json"
+ summary_path.write_text(json.dumps(results, ensure_ascii=False, indent=2), encoding="utf-8")
+ success = sum(1 for r in results if r.get("success"))
+ _log(f"完成: 成功 {success}, 失败 {len(results) - success}, 总计 {len(results)}")
+ _log(f"汇总: {summary_path}")
+ finally:
+ if LOG_FILE is not None:
+ LOG_FILE.close()
+ LOG_FILE = None
# ---------------------------------------------------------------------------
@@ -363,10 +361,17 @@ def _usage() -> str:
def main() -> None:
+ # Windows Git Bash 等默认 GBK 控制台,emoji/中文 print 会崩溃,强制 UTF-8 输出
+ sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
+ sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8", errors="replace")
+
if len(sys.argv) > 1 and sys.argv[1] == "login":
asyncio.run(crawler.ensure_login())
return
if len(sys.argv) > 1 and sys.argv[1] == "note":
+ if len(sys.argv) < 3:
+ print("用法:python review.py note <note_id> [script.txt]")
+ sys.exit(2)
note_id = sys.argv[2]
script_path = sys.argv[3] if len(sys.argv) > 3 else None
asyncio.run(run_with_id(note_id, script_path))
diff --git a/adapters/perf-data/xhs-explore/run.sh b/adapters/perf-data/xhs-explore/run.sh
index 7652bef..efd5b86 100644
--- a/adapters/perf-data/xhs-explore/run.sh
+++ b/adapters/perf-data/xhs-explore/run.sh
@@ -32,7 +32,15 @@ ADAPTER_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd
# Find Python — prefer venv in user's project root if exists
PYTHON=""
-PROJECT_ROOT="$( dirname "$( dirname "$( realpath "$VIDEO_FOLDER" )" )" )"
+# Walk up from VIDEO_FOLDER to find project root (.cheat-state.json)
+PROJECT_ROOT="$( realpath "$VIDEO_FOLDER" )"
+while [[ "$PROJECT_ROOT" != "/" && ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; do
+ PROJECT_ROOT="$( dirname "$PROJECT_ROOT" )"
+done
+if [[ ! -f "$PROJECT_ROOT/.cheat-state.json" ]]; then
+ echo "❌ Cannot find project root (.cheat-state.json) from $VIDEO_FOLDER" >&2
+ exit 3
+fi
if [[ -x "$PROJECT_ROOT/.venv/bin/python" ]]; then
PYTHON="$PROJECT_ROOT/.venv/bin/python"
elif [[ -x "$PROJECT_ROOT/.venv/Scripts/python.exe" ]]; then
diff --git a/adapters/script-extraction/whisper/run.sh b/adapters/script-extraction/whisper/run.sh
index ad3a45b..3c45a37 100755
--- a/adapters/script-extraction/whisper/run.sh
+++ b/adapters/script-extraction/whisper/run.sh
@@ -79,7 +79,7 @@ echo "[whisper] engine: $ENGINE | model: $MODEL | lang: $LANG"
echo "[whisper] transcribing: $VIDEO"
TMP_OUT=$(mktemp -d)
-trap "rm -rf $TMP_OUT" EXIT
+trap 'rm -rf "$TMP_OUT"' EXIT
# Transcribe — get raw text output
if [[ "$ENGINE" == "whisper-cpp" ]]; then
diff --git a/adapters/trend-sources/weibo-hot.md b/adapters/trend-sources/weibo-hot.md
index 8798ff8..96b4e2d 100644
--- a/adapters/trend-sources/weibo-hot.md
+++ b/adapters/trend-sources/weibo-hot.md
@@ -28,7 +28,7 @@ fetch(limit: int = 50) -> List[Candidate]
返回符合 [shared-references/candidate-schema.md](../../shared-references/candidate-schema.md) 的 items 列表。
字段映射:
-- `id`:`sha256("trend|" + normalized_title)[:12]`
+- `id`:`sha256("weibo-hot|" + normalized_title + "|" + url_path)[:12]`
- `title`:热搜词
- `source`:`"trend:weibo-hot"`
- `snapshot_text`:热搜词 + (如有)官方标签 + 简短摘要(自动从热搜详情页抓 1-2 句)
diff --git a/adapters/trend-sources/zhihu-hot.md b/adapters/trend-sources/zhihu-hot.md
index 304810d..95925af 100644
--- a/adapters/trend-sources/zhihu-hot.md
+++ b/adapters/trend-sources/zhihu-hot.md
@@ -28,7 +28,7 @@ fetch(limit: int = 50) -> List[Candidate]
返回符合 [shared-references/candidate-schema.md](../../shared-references/candidate-schema.md) 的 items 列表。
字段映射:
-- `id`:`sha256("trend|" + normalized_title)[:12]`
+- `id`:`sha256("zhihu-hot|" + normalized_title + "|" + url_path)[:12]`
- `title`:知乎问题标题
- `source`:`"trend:zhihu-hot"`
- `snapshot_text`:问题标题 + 高赞答案前 200 字摘要(可选——抓不到就只用标题)
diff --git a/hooks/log-event.sh b/hooks/log-event.sh
index b134b58..6b18029 100755
--- a/hooks/log-event.sh
+++ b/hooks/log-event.sh
@@ -30,6 +30,11 @@ input=$(cat 2>/dev/null || echo "{}")
# Build a compact event record. Best-effort jq parse — if it fails we still log a minimal record.
ts=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
+case "$event_type" in
+ tool_use|user_prompt|session_start|session_end) ;;
+ *) event_type="unknown" ;;
+esac
+
if command -v jq >/dev/null 2>&1; then
# Extract a few standard fields if present
event_json=$(printf '%s' "$input" | jq -c --arg ts "$ts" --arg type "$event_type" '
diff --git a/hooks/meta-logging.json b/hooks/meta-logging.json
index ddb6a2e..3e72ca5 100644
--- a/hooks/meta-logging.json
+++ b/hooks/meta-logging.json
@@ -7,9 +7,8 @@
"hooks": [
{
"type": "command",
- "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh tool_use",
- "timeout": 5,
- "async": true
+ "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh tool_use &",
+ "timeout": 5
}
]
}
@@ -20,9 +19,8 @@
"hooks": [
{
"type": "command",
- "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh user_prompt",
- "timeout": 5,
- "async": true
+ "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh user_prompt &",
+ "timeout": 5
}
]
}
@@ -33,9 +31,8 @@
"hooks": [
{
"type": "command",
- "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh session_start",
- "timeout": 5,
- "async": true
+ "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh session_start &",
+ "timeout": 5
}
]
}
@@ -46,9 +43,8 @@
"hooks": [
{
"type": "command",
- "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh session_end",
- "timeout": 5,
- "async": true
+ "command": "bash ${CLAUDE_PROJECT_DIR}/.cheat-hooks/log-event.sh session_end &",
+ "timeout": 5
}
]
}
diff --git a/hooks/prediction-immutability.sh b/hooks/prediction-immutability.sh
index 66681b4..c5950eb 100755
--- a/hooks/prediction-immutability.sh
+++ b/hooks/prediction-immutability.sh
@@ -106,10 +106,10 @@ if [[ "$tool_name" == "Edit" ]]; then
# Check whether old_string appears inside the prediction section.
# We use grep -F (literal) on a temporary file because old_string may contain regex chars.
pred_tmp=$(mktemp)
+ trap "rm -f '$pred_tmp'" EXIT
printf '%s' "$prediction_section" > "$pred_tmp"
if grep -qF -- "$old_string" "$pred_tmp" 2>/dev/null; then
- rm -f "$pred_tmp"
cat >&2 <<EOF
[cheat-on-content] 🚫 BLOCKED: edit targets the '## 预测' / '## Prediction' section of:
@@ -133,7 +133,6 @@ EOF
exit 1
fi
- rm -f "$pred_tmp"
exit 0
fi
diff --git a/hooks/session-start.sh b/hooks/session-start.sh
index e22b3df..88b8c1e 100755
--- a/hooks/session-start.sh
+++ b/hooks/session-start.sh
@@ -18,6 +18,15 @@
set -uo pipefail
+# Portable ISO-8601 timestamp → epoch converter (works on both GNU/Linux and BSD/macOS)
+parse_iso_epoch() {
+ local input="${1%%+*}" # strip timezone suffix like +08:00
+ input="${input%%Z}" # strip Z suffix
+ date -d "$input" "+%s" 2>/dev/null \
+ || date -j -f "%Y-%m-%dT%H:%M:%S" "$input" "+%s" 2>/dev/null \
+ || echo 0
+}
+
PROJECT_DIR="${CLAUDE_PROJECT_DIR:-.}"
STATE_FILE="$PROJECT_DIR/.cheat-state.json"
@@ -68,9 +77,7 @@ fi
self_scored_warning=""
if [[ "$last_prediction_self_scored" == "true" && -n "$last_self_scored_at" ]]; then
# Parse timestamp; tolerate +08:00 or Z suffix
- self_scored_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%S" "${last_self_scored_at%%+*}" "+%s" 2>/dev/null || \
- date -j -f "%Y-%m-%dT%H:%M:%SZ" "$last_self_scored_at" "+%s" 2>/dev/null || \
- echo 0)
+ self_scored_epoch=$(parse_iso_epoch "$last_self_scored_at")
if [[ $self_scored_epoch -gt 0 ]]; then
days_since=$(( (now_epoch - self_scored_epoch) / 86400 ))
if [[ $days_since -ge 7 ]]; then
@@ -103,7 +110,8 @@ if [[ "$target_cadence" == "null" ]] || [[ -z "$target_cadence" ]]; then
# Flexible cadence: no color, just count
buffer_label="📦 Buffer: ${buffer_count} 篇 (灵活节奏,无警戒)"
else
- buffer_days=$(( buffer_count * target_cadence ))
+ target_cadence_int=${target_cadence%%.*}
+ buffer_days=$(( buffer_count * target_cadence_int ))
if [[ $buffer_days -lt 1 ]]; then
buffer_label="📦 Buffer: ${buffer_count} 篇 🔴 红 (按 cadence ${target_cadence}d = <1 天预备)"
buffer_warning="🚨 buffer 警戒:下个发布日可能断更。今天必须拍 ≥1 条稳分。"
@@ -128,7 +136,7 @@ if [[ "$pending_retros_count" -gt 0 ]]; then
if [[ -f "$pred_path" ]]; then
pub_iso=$(grep -E '^\*\*Published at\*\*:' "$pred_path" 2>/dev/null | head -1 | sed -E 's/.*: *//')
if [[ -n "$pub_iso" ]]; then
- pub_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%S" "${pub_iso%%+*}" "+%s" 2>/dev/null || echo 0)
+ pub_epoch=$(parse_iso_epoch "$pub_iso")
if [[ $pub_epoch -gt 0 ]]; then
age_days=$(( (now_epoch - pub_epoch) / 86400 ))
if [[ $age_days -ge $retro_window ]]; then
@@ -173,7 +181,7 @@ fi
# --- Last trends run ---
trends_label=""
if [[ -n "$last_trends_at" ]]; then
- trends_epoch=$(date -j -f "%Y-%m-%dT%H:%M:%S" "${last_trends_at%%+*}" "+%s" 2>/dev/null || echo 0)
+ trends_epoch=$(parse_iso_epoch "$last_trends_at")
if [[ $trends_epoch -gt 0 ]]; then
days_ago=$(( (now_epoch - trends_epoch) / 86400 ))
trends_label="📅 上次抓热点: ${days_ago} 天前"
diff --git a/shared-references/bump-validation-protocol.md b/shared-references/bump-validation-protocol.md
index 3cec401..c38f0e3 100644
--- a/shared-references/bump-validation-protocol.md
+++ b/shared-references/bump-validation-protocol.md
@@ -110,7 +110,7 @@ v2.1 composite = (ER×2.0 + HP×1.5 + MS×1.5 + QL + SR + TS + SAT) / 9.0 × 2.
bump 落地必须一次性完成:
1. 在 `rubric_notes.md` 顶部更新 `**当前版本**` 和**版本速查表**新增一行
-2. 在 `rubric_notes.md` 的"vN → vN+1 升级 Memo" 段写完整 memo(触发观察 + 证据数据 + 诊断 + 新公式 + 已知局限)
+2. 在 `rubric-memo.md` 追加"vN → vN+1 升级 Memo" 段写完整 memo(含触发观察 + 证据数据 + 诊断 + 新公式 + 已知局限)。⚠️ 不写入 `rubric_notes.md`——它是 blind sub-agent 白名单,含实绩数据会污染盲评通道
3. 删除驱动本次升级、且已被吸收为正式维度的所有"观察记录"段条目
4. 删除升级过程中被推翻的"观察记录"段条目
5. 仍未解决的"观察记录"段条目 → 移到新版本的"待验证假设"段(保留)
@@ -127,7 +127,7 @@ bump 落地必须一次性完成:
| 失败位置 | 处理 |
|---|---|
| Step 3 本地排序不一致 | 候选公式回到"待验证"区。**不允许**默默放宽 THRESHOLD(如从 4/5 改到 3/5)—— 那是诚实的 self-deception。THRESHOLD 是协议刚性,与"何时可以提议 bump"的样本数门槛不同(后者可以软违反) |
-| Step 4 外部审核 REJECT | 把外部 LLM 的理由完整记录到 `rubric_notes.md` 的"被拒升级 log"段 |
+| Step 4 外部审核 REJECT | 把外部 LLM 的理由完整记录到 `rubric-memo.md` 的"被拒升级 log"段 |
| Step 4 外部审核与本地判定冲突(一个 PASS 一个 REJECT) | 视为 REJECT。冲突意味着至少一方对数据的解读不稳定,不应升级 |
| Step 5 清算无法完成(如某观察既不能删也不能保留) | bump 回滚到 step 0。Note:这意味着新公式还有未捕获的"未解决观察",方案不成熟 |
diff --git a/shared-references/prediction-anatomy.md b/shared-references/prediction-anatomy.md
index 53a9ea9..06b9a1d 100644
--- a/shared-references/prediction-anatomy.md
+++ b/shared-references/prediction-anatomy.md
@@ -98,7 +98,7 @@
这是 immutable 段的核心。`hooks/prediction-immutability.sh` 拦截这段往后到下一个 `##` 的所有 Edit。
```markdown
-## 预测
+## 预测 v1
**Bucket**: `30-100w`
diff --git a/shared-references/state-management.md b/shared-references/state-management.md
index 0e229ab..f36c533 100644
--- a/shared-references/state-management.md
+++ b/shared-references/state-management.md
@@ -157,7 +157,7 @@
|---|---|---|---|---|
| `consecutive_directional_errors` | array of "high"/"low" | cheat-retro(push) / cheat-bump(清空) | cheat-status / cheat-retro 自检 | 最近 N 次复盘的偏差方向;连续 3 同向触发 bump 提议 |
| `pending_retros` | array of file path | cheat-publish(push) / cheat-retro(remove) | cheat-status | 等待复盘的预测文件路径 |
-| `shoots` | array of {video_folder, prediction_file, shot_at, ad_hoc} | cheat-shoot(push) / cheat-publish(remove) | cheat-status / cheat-recommend / SessionStart hook | 已拍未发队列。`len(shoots) = buffer count`,`buffer_days = buffer × target_publish_cadence_days` 决定颜色 |
+| `shoots` | array of {video_folder, prediction_file, shot_at, ad_hoc, scripts_path, script_consistency, script_diff_pct, v2_prediction_written, script_hash_at_shoot} | cheat-shoot(push) / cheat-publish(remove) | cheat-status / cheat-recommend / SessionStart hook | 已拍未发队列。`len(shoots) = buffer count`,`buffer_days = buffer × target_publish_cadence_days` 决定颜色。v1.2 新增字段语义见 cheat-shoot Phase 4 |
### 会话状态
diff --git a/skills/cheat-init/SKILL.md b/skills/cheat-init/SKILL.md
index b1849e5..a0715df 100644
--- a/skills/cheat-init/SKILL.md
+++ b/skills/cheat-init/SKILL.md
@@ -240,9 +240,9 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, WebFetch, Skill
你能找一个对标账号吗?至少 3 条该账号的视频。
- - 你**完全没发过历史**(Q2=a/b)→ **强烈建议**——rubric 没 anchor 全靠对标。
+ - 你**完全没发过历史**(Q2=a)→ **强烈建议**——rubric 没 anchor 全靠对标。
不找的话用通用 v0 等权 rubric,前 5 篇精度更差更久
- - 你**已发历史**(Q2=c)→ **可选**——你也可以只用自己历史 calibrate;
+ - 你**已发历史**(Q2=b)→ **可选**——你也可以只用自己历史 calibrate;
但建议至少导 1 个对标做 sanity check(看你账号是否真的偏离对标方向)
a) 现在找 → 立刻进入 /cheat-learn-from(5-15 分钟,看你材料准备程度)
@@ -510,7 +510,7 @@ cheat-learn-from 完成后回到 init 的 Phase 5。
| 字段 | 写入时机 | 来源 |
|---|---|---|
-| `schema_version` | Phase 3 | 硬编码 "1.1" |
+| `schema_version` | Phase 3 | 硬编码 "1.4" |
| `skill_version` | Phase 3 | 硬编码 "1.0.0" |
| `rubric_version` | Phase 3 | "v0" |
| `content_form` | Phase 3 | Q1 → 查映射表换 enum 值(**不是字母**) |
diff --git a/skills/cheat-retro/SKILL.md b/skills/cheat-retro/SKILL.md
index 382ac80..61b4177 100644
--- a/skills/cheat-retro/SKILL.md
+++ b/skills/cheat-retro/SKILL.md
@@ -95,7 +95,7 @@ allowed-tools: Bash(*), Read, Edit, Write, Glob, Grep, Skill
|---|---|---|
| `douyin` | `adapters/perf-data/douyin-session/` | `bash <adapters-dir>/douyin-session/run.sh <aweme_id> <video_folder>` |
| `xhs` | `adapters/perf-data/xhs-explore/` | `bash <adapters-dir>/xhs-explore/run.sh <note_id> <video_folder>` |
-| `youtube` | `adapters/perf-data/youtube-data-api/`(待) | 调 YouTube Data API(需 API key) |
+| `youtube` | `adapters/perf-data/youtube-data-api/`(planned — batch 3, not yet available) | 调 YouTube Data API(需 API key) |
| `bilibili` | `adapters/perf-data/bilibili-stat/` | `bash <adapters-dir>/bilibili-stat/run.sh <bvid> <video_folder>` |
| 其他 | 无 adapter | 优雅降级到 Path A |
diff --git a/skills/cheat-score-blind/SKILL.md b/skills/cheat-score-blind/SKILL.md
index fcf2542..8642814 100644
--- a/skills/cheat-score-blind/SKILL.md
+++ b/skills/cheat-score-blind/SKILL.md
@@ -1,7 +1,7 @@
---
name: cheat-score-blind
description: |
- INTERNAL sub-agent for blind 9-dim rubric scoring. **NOT a user-facing skill — do NOT invoke from main conversation.** Called via Task tool by cheat-score / cheat-predict / cheat-bump to get a context-isolated score on a script. Receives ONLY script_path + rubric_notes_path; refuses any other input. Outputs strict JSON: 9 dimensions × {score 0-5, confidence enum, one-line reason}. **Hard refuses to Read** .cheat-state.json, predictions/*, retro 段, or anything that could leak post-publish data. This is channel B in the 3-channel calibration model (A=main, B=blind sub, C=cross-model).
+ INTERNAL sub-agent for blind 7-dim rubric scoring. **NOT a user-facing skill — do NOT invoke from main conversation.** Called via Task tool by cheat-score / cheat-predict / cheat-bump to get a context-isolated score on a script. Receives ONLY script_path + rubric_notes_path; refuses any other input. Outputs strict JSON: 9 dimensions × {score 0-5, confidence enum, one-line reason}. **Hard refuses to Read** .cheat-state.json, predictions/*, retro 段, or anything that could leak post-publish data. This is channel B in the 3-channel calibration model (A=main, B=blind sub, C=cross-model).
allowed-tools: Read, Glob, Grep
argument-hint: <script-path> <rubric-notes-path>
---
diff --git a/skills/cheat-status/SKILL.md b/skills/cheat-status/SKILL.md
index 1a9dcb0..f96f57a 100644
--- a/skills/cheat-status/SKILL.md
+++ b/skills/cheat-status/SKILL.md
@@ -85,7 +85,7 @@ rubric_lines = wc -l rubric_notes.md
8. **calibration_samples 跨入新 confidence 等级**(0→1, 2→3, 5→6, 10→11, 20→21)→ 提示"🎉 confidence 升级:<旧等级> → <新等级>。bucket 中枢精度从 ±X% 提到 ±Y%"。**仅作通知,无任何用户必须确认的操作**——所有 skill 都已经按 calibration_samples 自动调整
9. **calibration_samples 跨过 5** → "你的 rubric 形态可以第一次正式 bump 了。回顾 rubric_notes.md 看观察记录段是否有 ≥3 样本支持的 pattern → 跑 /cheat-bump"
10. **calibration_samples 跨过 10** → "可以跑 /cheat-bump --bucket-only --scheme percentile 让 bucket 边界改用 percentile(永远自洽)"
-11. **calibration_samples 跨过 SQLITE_UPGRADE_THRESHOLD** 且 data_layer=markdown → "建议跑 tools/md-to-sqlite.py"
+11. **calibration_samples 跨过 SQLITE_UPGRADE_THRESHOLD** 且 data_layer=markdown → "建议跑 tools/md-to-sqlite.py"(planned — batch 3, not yet available)
12. **rubric_notes.md 行数 > CLEANUP_LINE_THRESHOLD** → "建议清算观察段(手动或下次 bump 触发)"
13. **calibration_samples ≥ 5 + pool_status=none** → "可以开始建立选题池了"
14. **calibration_samples ≥ 15 + pool_status=none** → "强烈建议建池:/cheat-trends 或手动建 candidates.md"
diff --git a/skills/cheat-trends/SKILL.md b/skills/cheat-trends/SKILL.md
index 6c1c38a..10156de 100644
--- a/skills/cheat-trends/SKILL.md
+++ b/skills/cheat-trends/SKILL.md
@@ -38,7 +38,7 @@ allowed-tools: Bash(*), Read, Write, Edit, Glob, WebFetch, Skill
- **AUTO_SCORE = true** — 抓回来后自动调 cheat-score 粗打分
- **MIN_COMPOSITE_TO_SUGGEST = 6.0** — 低于此分的不推荐用户加入候选池(仍写入 trends-history 避免下次重复推)
-> 💡 调用时覆盖:`/cheat-trends — sources: manual-paste,hackernews,bilibili-popular — max-per: 10`
+> 💡 调用时覆盖:`/cheat-trends — sources: manual-paste,aihot,weibo-hot — max-per: 10`
## Inputs
@@ -66,17 +66,15 @@ enabled_adapters = args.sources or state.get('enabled_trend_sources', ['manual-p
你目前没有启用任何热点源。
最快配法:
-- 临时跑:/cheat-trends — sources: manual-paste,hackernews
+- 临时跑:/cheat-trends — sources: manual-paste,aihot
- 永久启用:编辑 .cheat-state.json 的 enabled_trend_sources 数组
可用 adapter(详见 adapters/trend-sources/):
- manual-paste(默认,永远能用)
-- hackernews(HN Algolia API,无需 key)
-- reddit-rising(公开 .json 端点)
-- youtube-trending(需 YouTube Data API key)
-- bilibili-popular(公开端点,偶有变动)
-- xhs-explore / douyin-hot(fragile,需 cookie)
-- thirdparty-paid(新榜 / 飞瓜,需自己接 API)
+- aihot(AI 热点聚合,无需 key)
+- weibo-hot(微博热搜,无需 key)
+- zhihu-hot(知乎热榜,无需 key)
+- trendradar-mcp(TrendRadar MCP 服务,需配置)
```
### Phase 1-2: 对每个 adapter 调 fetch + normalize
@@ -86,21 +84,19 @@ enabled_adapters = args.sources or state.get('enabled_trend_sources', ['manual-p
| Adapter | 实现机制 |
|---|---|
| `manual-paste` | 询问用户:"粘贴你今天的候选 URL/标题列表(每行一条)" → 解析每行,对 URL 做 WebFetch 拓展 snippet |
-| `hackernews` | WebFetch HN Algolia API:`https://hn.algolia.com/api/v1/search?tags=front_page&hitsPerPage={N}` → 提取 title/url/snippet |
-| `reddit-rising` | WebFetch Reddit JSON:`https://www.reddit.com/r/<subreddit>/rising.json?limit={N}` |
-| `youtube-trending` | 需 API key 配置在 `.env` 或 .cheat-state.json,调 YouTube Data API v3 `videos?chart=mostPopular` |
-| `bilibili-popular` | WebFetch B 站 popular 接口 |
-| `xhs-explore` / `douyin-hot` | 需用户提供 cookie 路径,调对应 platform-stub 描述的接口;缺 cookie → skip 该 adapter |
-| `thirdparty-paid` | schema only——读 `adapters/trend-sources/thirdparty-paid.md`,让用户自己接 |
+| `aihot` | 读 adapters/trend-sources/aihot.md 描述的 fetch 接口 |
+| `weibo-hot` | 读 adapters/trend-sources/weibo-hot.md 描述的 fetch 接口 |
+| `zhihu-hot` | 读 adapters/trend-sources/zhihu-hot.md 描述的 fetch 接口 |
+| `trendradar-mcp` | 读 adapters/trend-sources/trendradar-mcp.md 描述的 fetch 接口 |
每个 adapter 输出符合 [candidate-schema.md](../../shared-references/candidate-schema.md) 的 items。
**优雅降级**:单 adapter 失败(API key 缺失 / 端点 503 / cookie 失效)→ skip 该 adapter,**不抛异常**,在汇总里说明:
```
-✅ hackernews: 拉到 18 条
-⚠️ youtube-trending: 跳过(缺 API key——配置见 adapters/trend-sources/youtube-trending.md)
-✅ bilibili-popular: 拉到 15 条
-❌ douyin-hot: 跳过(cookie 文件不存在)
+✅ aihot: 拉到 18 条
+✅ weibo-hot: 拉到 15 条
+✅ zhihu-hot: 拉到 12 条
+⚠️ trendradar-mcp: 跳过(MCP 服务未配置——配置见 adapters/trend-sources/trendradar-mcp.md)
```
### Phase 3: 去重
@@ -133,17 +129,17 @@ enabled_adapters = args.sources or state.get('enabled_trend_sources', ['manual-p
```
🔥 抓热点完成。各源拉取统计:
- manual-paste: 5 条(用户输入)
-- hackernews: 18 条
-- bilibili-popular: 15 条
-跳过 douyin-hot(缺 cookie)
+- aihot: 18 条
+- weibo-hot: 15 条
+跳过 trendradar-mcp(MCP 服务未配置)
去重后剩 27 条新 item。
粗打分后 12 条 composite ≥ 6.0:
| # | 标题 | source | composite | bucket | rationale |
|---|---|---|---|---|---|
-| 1 | 为什么我们都讨厌主动联系朋友 | hackernews | 8.4 | 30-100w | ER+QL 双 5,AB 普适 |
-| 2 | "她不一样"的一千种变体 | bilibili-popular | 8.1 | 30-100w | MS 候选维度高 |
+| 1 | 为什么我们都讨厌主动联系朋友 | aihot | 8.4 | 30-100w | ER+QL 双 5,AB 普适 |
+| 2 | "她不一样"的一千种变体 | weibo-hot | 8.1 | 30-100w | MS 候选维度高 |
| 3 | ...... |
哪些加入 candidates.md?
diff --git a/starter-rubrics/long-essay-zero.md b/starter-rubrics/long-essay-zero.md
new file mode 100644
index 0000000..5753e19
--- /dev/null
+++ b/starter-rubrics/long-essay-zero.md
@@ -0,0 +1,136 @@
+# Starter Rubric:长文 (公众号 / Substack / Medium) — v0 cold-start 占位
+
+**这是给完全没数据的新作者用的占位 rubric。**它会打错。**前 5 篇预测精度大概 ±50%——这是 cold-start 的数学事实,不是 rubric 失败**。
+
+跑完 5 篇(每篇都走完 `/cheat-predict` → 发布 → `/cheat-retro` 闭环)之后,你会有第一份个人校准数据,可以提议第一次 `/cheat-bump` 升级到 v1(或直接采用同形式的稳定 rubric 作为起点重新校准权重)。
+
+---
+
+## v0 综合分公式(**等权占位**)
+
+```
+composite = (ER + HP + QL + NA + AB + SR + SAT) / 7 × 2.0
+```
+
+每个维度 0-5 整数分。综合分范围 0-10。
+
+**为什么等权**:你没有数据支持任何特定权重。等权能让你在数据出来之前对每个维度都给"中立的关注"。第 5 篇之后你的复盘数据会告诉你哪些维度真的预测了你的账号的传播。
+
+---
+
+## 7 个维度
+
+### ER — Emotional Resonance(情感共鸣)
+*文章能否让读者在某一段产生一种**具体的、能命名的**情感?*
+
+- **0** — 纯知识 / 信息搬运;没有情感层
+- **3** — 有共鸣但停留在"大家都这么说"的层面
+- **5** — 锐利、具体、让读者忍不住截图发朋友圈并加一句"这就是我"
+
+### HP — Hook Potential(钩子强度)
+*标题 + 第一段能不能让人在信息流里停下来点进去,并读完前三段?*
+
+- **0** — 通用标题("浅谈 XX 的几点思考")
+- **3** — 有具体承诺或反直觉论点;标题引发好奇
+- **5** — 标题即观点弹药,第一段就给出令人不安的具体场景
+
+### QL — Quotable Lines(金句密度)
+*文章里至少 2-3 句话能被截图传播、能脱离原文独立成立吗?*
+
+- **0** — 全是论述,没有可提取的单句
+- **3** — 结尾有一句总结性金句
+- **5** — 多句独立可传播的文字,散布在文章不同段落
+
+### NA — Narrativity(叙事弧线)
+*文章有可辨识的结构弧线,还是平铺直叙的论点堆砌?*
+
+- **0** — 列表 / 清单式;读到中间可以随时关掉
+- **3** — 有松散主线但中段可跳读
+- **5** — 紧凑弧线(悬念 → 转折 → 落点),读者必须读到最后
+
+### AB — Audience Breadth(受众广度)
+*这个话题的潜在读者群有多广?*
+
+- **0** — 极小众行业 / 圈层
+- **3** — 中等——特定人群(如职场人 / 家长 / 创业者)
+- **5** — 普世情感 / 社会议题,几乎所有人都能代入
+
+### SR — Social Resonance(社会议题共振)
+*文章触及当下的社会模式或集体情绪吗?*
+
+- **0** — 纯个人经历 / 技术细节
+- **3** — 触到公认现象但没新视角
+- **5** — 命名了读者认识但缺乏语言形容的结构性模式
+
+### SAT — Satire Depth(讽刺 / 文体深度)
+*文章在文体层面有多少"装置感"——反讽、戏仿、文体实验?*
+
+- **0** — 真诚直陈(大多数长文的正常状态)
+- **3** — 一层反讽或有意的文体选择
+- **5** — 嵌套反讽 / 戏仿 / 自指
+
+长文通常走真诚路线。如果你的写作风格是直陈型,SAT 给 2-3 当占位即可。
+
+---
+
+## Bucket 预测:比率桶方案
+
+> ⚠️ **新人的 bucket 不能用绝对数字**——参考博主的"10w 阅读是底部"对 0 粉新号来说是"现象级爆款"。
+
+### 第 1 篇:平台通用默认
+
+公众号 / Substack / Medium 上新号第 1 篇的典型分布:
+
+| Bucket | 范围(阅读数)| 先验概率 |
+|---|---|---|
+| 底部 | < 50 | 30% |
+| 基础盘 | 50 - 500 | 40% |
+| 命中 | 500 - 5,000 | 20% |
+| 小爆 | 5,000 - 50,000 | 8% |
+| 大爆 | > 50,000 | 2% |
+
+### 第 2 篇起:用比率桶
+
+`baseline = 上一篇实际阅读数`(或最近 3 篇中位数)。
+
+| Bucket | 倍数范围 | 含义 |
+|---|---|---|
+| 退步 | < 0.3 × baseline | 明显下滑 |
+| 持平 | 0.3 - 1 × baseline | 同档 |
+| 命中 | 1 - 3 × baseline | 中度突破 |
+| 小爆 | 3 - 10 × baseline | 显著破圈 |
+| 大爆 | > 10 × baseline | 量级跃迁 |
+
+第 5 篇后跑 `/cheat-bump --bucket-only` 重新校准边界。
+
+---
+
+## Cold-start 战略(简版)
+
+前 5 篇的"预测"不是预测——是**数据采集**。
+
+1. **建立纪律**:发布前写下盲判断
+2. **记录 7 维评分**:复盘后每条样本变成 (打分, 实绩) 配对
+3. **取样策略**:主动选维度组合差异最大的稿子——1 篇 ER 主导、1 篇 SR 主导、1 篇 QL 主导、1 篇叙事实验、1 篇综合中等
+
+| 校准样本 | 你能相信什么 |
+|---|---|
+| N=0-2 | 啥都别信 |
+| N=3-5 | 相信"哪个维度可能重要"的方向 |
+| N=5-10 | 相信 bucket 排序 |
+| N=10-20 | 中枢可信 ±30% |
+| N≥20 | rubric 真正成为"作弊器" |
+
+---
+
+## 重要警告
+
+- cold-start 期 composite 的置信度低——**不要基于 v0 分数决定要不要发某篇文章**
+- 前 5 篇**每篇必须走完整闭环**(predict → 发布 → retro),跳过任何一篇复盘 = 整个校准失败
+- 第 5 篇后**必须**跑 `/cheat-bump` 升级
+
+---
+
+## 最重要的一句话
+
+**前 5 篇你不是在做决策,你是在收集数据。** cold-start 期最大的诱惑是看着 composite 8.4 就觉得这条会爆——别信。
diff --git a/starter-rubrics/other-zero.md b/starter-rubrics/other-zero.md
new file mode 100644
index 0000000..d79e3d4
--- /dev/null
+++ b/starter-rubrics/other-zero.md
@@ -0,0 +1,149 @@
+# Starter Rubric:通用 / 未分类内容 — v0 cold-start 占位
+
+> **⚠️ 这是通用 catch-all rubric——当你的内容形式不属于观点视频、长文、短文、播客、教程中的任何一种时使用。**
+>
+> **它的维度定义是从"观点类视频"原样搬来的,没有针对你的具体内容形式做任何适配。** 你应该在使用时**大幅调整权重和维度解释**——不要把这份 rubric 当成"已经为你定制好的"。
+>
+> 如果你的内容形式已经稳定(比如固定做图文测评、Vlog、知识地图、newsletter),强烈建议在第 5 篇 bump 时**重新定义维度**而不是只调权重。
+
+**这是给完全没数据的新博主用的占位 rubric。**它会打错。**前 5 篇预测精度大概 ±50%——这是 cold-start 的数学事实,不是 rubric 失败**。
+
+跑完 5 篇(每篇都走完 `/cheat-predict` → 发布 → `/cheat-retro` 闭环)之后,你会有第一份个人校准数据,可以提议第一次 `/cheat-bump` 升级到 v1。
+
+---
+
+## v0 综合分公式(**等权占位**)
+
+```
+composite = (ER + HP + QL + NA + AB + SR + SAT) / 7 × 2.0
+```
+
+每个维度 0-5 整数分。综合分范围 0-10。
+
+**为什么等权**:你没有数据支持任何特定权重。等权能让你在数据出来之前对每个维度都给"中立的关注"。第 5 篇之后你的复盘数据会告诉你哪些维度真的预测了你的账号的传播。
+
+> **通用 rubric 特别提醒**:等权公式对你的内容形式几乎一定是错的——**但这正是 cold-start 的意义**。跑 5 篇之后你会知道哪些维度对你的形式根本不适用(可以在 bump 时去掉或替换)。
+
+---
+
+## 7 个维度(**通用定义,请根据你的内容形式自行微调理解**)
+
+### ER — Emotional Resonance(情感共鸣)
+*你的内容能否让受众产生一种**具体的、能命名的**情感?*
+
+- **0** — 纯信息传递;没有情感钩子
+- **3** — 一般共鸣
+- **5** — 锐利、具体、让人不太愿意承认的自我识别
+
+### HP — Hook Potential(钩子强度)
+*开头能不能逼受众继续消费下去?*
+
+- **0** — 通用开场
+- **3** — 具体的承诺或反直觉断言
+- **5** — 一个具体生动的场景 / 画面 / 问题,受众无法停止处理
+
+### QL — Quotable Lines(可传播密度)
+*内容里至少有 2-3 个元素能被截取、能作为独立片段单独传播吗?*
+
+- **0** — 全是叙述 / 流水内容
+- **3** — 有一个值得传播的片段
+- **5** — 多个独立可传播的片段,分布在内容不同位置
+
+### NA — Narrativity(叙事性 / 结构弧线)
+*有可辨识的弧线,还是平铺直叙?*
+
+- **0** — 无结构 / 列表式
+- **3** — 松散主线
+- **5** — 紧凑弧线结构
+
+### AB — Audience Breadth(受众广度)
+*这个议题 / 话题潜在受众有多广?*
+
+- **0** — 极小众
+- **3** — 中等
+- **5** — 普世
+
+### SR — Social Resonance(社会议题共振)
+*内容触及当下的社会模式吗?*
+
+- **0** — 纯个人 / 纯技术
+- **3** — 触到公认现象但没新视角
+- **5** — 命名了一个受众认识但没有语言形容的结构性模式
+
+### SAT — Satire Depth(讽刺 / 风格深度)
+*内容在语调和形式层面有多少"装置感"?*
+
+- **0** — 真诚直陈
+- **3** — 一层反讽 / 有意的风格选择
+- **5** — 嵌套反讽 / 戏仿 / 自指
+
+如果 SAT 不适用于你的内容形式,给 2-3 当占位,bump 时考虑替换为更相关的维度。
+
+---
+
+## Bucket 预测:比率桶方案
+
+> ⚠️ **新人的 bucket 不能用绝对数字**——不同平台、不同内容形式的基线差异极大。
+
+### 第 1 篇:平台通用默认
+
+由于内容形式未知,使用最保守的通用先验:
+
+| Bucket | 范围(核心指标数)| 先验概率 |
+|---|---|---|
+| 底部 | < 平台新号 P25 | 30% |
+| 基础盘 | P25 - P50 | 40% |
+| 命中 | P50 - P90 | 20% |
+| 小爆 | P90 - P99 | 8% |
+| 大爆 | > P99 | 2% |
+
+> "核心指标"取决于平台:播放、阅读、互动、下载、收藏……**第 1 篇时先确定你用哪个指标**。
+
+### 第 2 篇起:用比率桶
+
+`baseline = 上一篇实际核心指标`(或最近 3 篇中位数)。
+
+| Bucket | 倍数范围 | 含义 |
+|---|---|---|
+| 退步 | < 0.3 × baseline | 明显下滑 |
+| 持平 | 0.3 - 1 × baseline | 同档 |
+| 命中 | 1 - 3 × baseline | 中度突破 |
+| 小爆 | 3 - 10 × baseline | 显著破圈 |
+| 大爆 | > 10 × baseline | 量级跃迁 |
+
+第 5 篇后跑 `/cheat-bump --bucket-only` 重新校准边界。
+
+---
+
+## Cold-start 战略(简版)
+
+前 5 篇的"预测"不是预测——是**数据采集**。
+
+1. **建立纪律**:发布前写下盲判断
+2. **记录 7 维评分**:复盘后每条样本变成 (打分, 实绩) 配对
+3. **取样策略**:主动选维度组合差异最大的内容——确保 5 个样本覆盖不同的维度组合
+
+> **通用 rubric 额外建议**:前 5 篇复盘时,除了记录数据,还要记录"这个维度对我的内容形式到底意味着什么"。Bump 时你可能需要**重新定义维度**而不只是调权重。
+
+| 校准样本 | 你能相信什么 |
+|---|---|
+| N=0-2 | 啥都别信 |
+| N=3-5 | 相信"哪个维度可能重要"的方向 |
+| N=5-10 | 相信 bucket 排序 |
+| N=10-20 | 中枢可信 ±30% |
+| N≥20 | rubric 真正成为"作弊器" |
+
+---
+
+## 重要警告
+
+- **这是通用 rubric**——维度定义可能与你的内容形式严重不匹配。**用它收集数据,不要用它做决策**
+- cold-start 期 composite 的置信度低——**不要基于 v0 分数决定要不要发某篇内容**
+- 前 5 篇**每篇必须走完整闭环**(predict → 发布 → retro),跳过任何一篇复盘 = 整个校准失败
+- 第 5 篇后**必须**跑 `/cheat-bump` 升级——**通用 rubric 尤其需要 bump**,因为维度本身可能需要替换
+
+---
+
+## 最重要的一句话
+
+**前 5 篇你不是在做决策,你是在收集数据。** 通用 rubric 的价值不在于它的维度定义有多准——在于它强迫你建立预测-复盘的闭环习惯。第 5 篇 bump 时,大胆重新定义维度。
diff --git a/starter-rubrics/podcast-zero.md b/starter-rubrics/podcast-zero.md
new file mode 100644
index 0000000..32fdacc
--- /dev/null
+++ b/starter-rubrics/podcast-zero.md
@@ -0,0 +1,145 @@
+# Starter Rubric:播客 / 长视频 — v0 cold-start 占位
+
+**这是给完全没数据的新主播用的占位 rubric。**它会打错。**前 5 期预测精度大概 ±50%——这是 cold-start 的数学事实,不是 rubric 失败**。
+
+跑完 5 期(每期都走完 `/cheat-predict` → 发布 → `/cheat-retro` 闭环)之后,你会有第一份个人校准数据,可以提议第一次 `/cheat-bump` 升级到 v1。
+
+---
+
+## v0 综合分公式(**等权占位**)
+
+```
+composite = (ER + HP + QL + NA + AB + SR + SAT) / 7 × 2.0
+```
+
+每个维度 0-5 整数分。综合分范围 0-10。
+
+**为什么等权**:你没有数据支持任何特定权重。等权能让你在数据出来之前对每个维度都给"中立的关注"。第 5 期之后你的复盘数据会告诉你哪些维度真的预测了你的节目的传播。
+
+---
+
+## 7 个维度
+
+### ER — Emotional Resonance(情感共鸣)
+*这期节目能否在某个时刻让听众产生一种**具体的、能命名的**情感?*
+
+播客的情感共鸣通常来自嘉宾 / 主播的真实时刻——突然的沉默、声音的变化、一个没准备好但说出来的真话。
+
+- **0** — 全程信息传递;像在读稿
+- **3** — 有共鸣但停留在"聊得挺好"
+- **5** — 有至少一个让人摘下耳机愣一下的时刻
+
+### HP — Hook Potential(钩子强度)
+*前 60 秒能不能让听众决定听完这一期?*
+
+播客的竞争对手是"切到下一期" / "打开音乐 App"。前 60 秒决定留存。
+
+- **0** — "大家好欢迎来到第 N 期,今天我们聊..."
+- **3** — 开头给出具体承诺或抛出一个反直觉问题
+- **5** — 前 60 秒直接进入一个具体、生动、让人想知道后续的场景或争论
+
+### QL — Quotable Lines(可剪辑金句)
+*这期有没有 2-3 个值得做切片 / 短视频的片段?*
+
+播客的二次传播主要靠短视频切片和文字摘录。QL 衡量的是"能被切出来独立传播的密度"。
+
+- **0** — 全程闲聊,没有可独立传播的片段
+- **3** — 有一个值得切的高光片段
+- **5** — 多个可切片段,分布在节目不同位置;文字版也有可截图的句子
+
+### NA — Narrativity(节目弧线)
+*这期有没有让人想听到最后的整体弧线?*
+
+- **0** — 话题随机跳转;中间退出不影响理解
+- **3** — 有松散主线但中段可跳过
+- **5** — 紧凑弧线——有悬念、有转折、有落点;中途退出会觉得"没听完"
+
+### AB — Audience Breadth(受众广度)
+*这期话题的潜在听众群有多广?*
+
+- **0** — 极小众领域 / 需要大量前置知识
+- **3** — 特定群体(创业者 / 某行业从业者 / 某爱好圈)
+- **5** — 普世话题——任何人都能代入(关系、焦虑、选择、成长)
+
+### SR — Social Resonance(社会议题共振)
+*这期触及当下的社会模式或集体情绪吗?*
+
+- **0** — 纯个人经历 / 技术细节
+- **3** — 触到公认现象但没新视角
+- **5** — 对话中命名了一个听众感受到但没听人说出来的结构性模式
+
+### SAT — Satire Depth(幽默 / 反讽深度)
+*这期的对话在幽默和反讽层面有多少层次?*
+
+- **0** — 严肃正经;没有幽默成分
+- **3** — 有自然的幽默 / 一层调侃
+- **5** — 多层反讽、嘉宾之间的化学反应产生的"段子"、可传播的梗
+
+播客的幽默通常是自然涌现而非设计的。如果你的节目走严肃深度路线,SAT 给 2-3 当占位即可。
+
+---
+
+## Bucket 预测:比率桶方案
+
+> ⚠️ **新人的 bucket 不能用绝对数字**——头部播客的"5w 播放是底部"对新节目来说是梦想数据。
+
+### 第 1 期:平台通用默认
+
+小宇宙 / Apple Podcasts / Spotify / YouTube 新播客第 1 期的典型分布:
+
+| Bucket | 范围(播放 / 收听数)| 先验概率 |
+|---|---|---|
+| 底部 | < 30 | 30% |
+| 基础盘 | 30 - 300 | 40% |
+| 命中 | 300 - 3,000 | 20% |
+| 小爆 | 3,000 - 30,000 | 8% |
+| 大爆 | > 30,000 | 2% |
+
+> YouTube 长视频用播放数;纯音频平台用收听数。
+
+### 第 2 期起:用比率桶
+
+`baseline = 上一期实际播放数`(或最近 3 期中位数)。
+
+| Bucket | 倍数范围 | 含义 |
+|---|---|---|
+| 退步 | < 0.3 × baseline | 明显下滑 |
+| 持平 | 0.3 - 1 × baseline | 同档 |
+| 命中 | 1 - 3 × baseline | 中度突破 |
+| 小爆 | 3 - 10 × baseline | 显著破圈 |
+| 大爆 | > 10 × baseline | 量级跃迁 |
+
+第 5 期后跑 `/cheat-bump --bucket-only` 重新校准边界。
+
+---
+
+## Cold-start 战略(简版)
+
+前 5 期的"预测"不是预测——是**数据采集**。
+
+1. **建立纪律**:录制前根据提纲写下盲判断(播客不可能完全预测对话走向,但提纲级别的评估仍然有价值)
+2. **记录 7 维评分**:复盘后每期样本变成 (打分, 实绩) 配对
+3. **取样策略**:主动选维度组合差异最大的期——1 期深度访谈 (ER 主导)、1 期热点评论 (SR 主导)、1 期轻松闲聊 (SAT 主导)、1 期干货密集 (QL 主导)、1 期综合中等
+
+| 校准样本 | 你能相信什么 |
+|---|---|
+| N=0-2 | 啥都别信 |
+| N=3-5 | 相信"哪个维度可能重要"的方向 |
+| N=5-10 | 相信 bucket 排序 |
+| N=10-20 | 中枢可信 ±30% |
+| N≥20 | rubric 真正成为"作弊器" |
+
+---
+
+## 重要警告
+
+- cold-start 期 composite 的置信度低——**不要基于 v0 分数决定要不要录某期节目**
+- 播客制作周期长——5 期校准可能需要 1-3 个月,**坚持走完闭环**
+- 前 5 期**每期必须走完整闭环**(predict → 发布 → retro),跳过任何一期复盘 = 整个校准失败
+- 第 5 期后**必须**跑 `/cheat-bump` 升级
+
+---
+
+## 最重要的一句话
+
+**前 5 期你不是在做决策,你是在收集数据。** 播客迭代慢,更要珍惜每一期的校准价值——别跳过复盘。
diff --git a/starter-rubrics/short-text-zero.md b/starter-rubrics/short-text-zero.md
new file mode 100644
index 0000000..dc1396b
--- /dev/null
+++ b/starter-rubrics/short-text-zero.md
@@ -0,0 +1,145 @@
+# Starter Rubric:短文 (X / 微博 / 即刻 threads) — v0 cold-start 占位
+
+**这是给完全没数据的新作者用的占位 rubric。**它会打错。**前 5 条预测精度大概 ±50%——这是 cold-start 的数学事实,不是 rubric 失败**。
+
+跑完 5 条(每条都走完 `/cheat-predict` → 发布 → `/cheat-retro` 闭环)之后,你会有第一份个人校准数据,可以提议第一次 `/cheat-bump` 升级到 v1。
+
+---
+
+## v0 综合分公式(**等权占位**)
+
+```
+composite = (ER + HP + QL + NA + AB + SR + SAT) / 7 × 2.0
+```
+
+每个维度 0-5 整数分。综合分范围 0-10。
+
+**为什么等权**:你没有数据支持任何特定权重。等权能让你在数据出来之前对每个维度都给"中立的关注"。第 5 条之后你的复盘数据会告诉你哪些维度真的预测了你的账号的传播。
+
+---
+
+## 7 个维度
+
+### ER — Emotional Resonance(情感共鸣)
+*这条能不能在滑过的瞬间让人产生一种**具体的、能命名的**情感?*
+
+- **0** — 纯信息 / 通知性内容
+- **3** — 有共鸣但不够锐利,"嗯说得对"然后划走
+- **5** — 一击即中;读完忍不住转发或截图
+
+### HP — Hook Potential(钩子强度)
+*第一行能不能让拇指停下来?*
+
+短文的钩子就是第一行——它必须在信息流里和一百条动态竞争注意力。
+
+- **0** — 通用开头("今天想聊聊...")
+- **3** — 有反直觉断言或具体数字
+- **5** — 第一句话本身就是一个完整的、令人无法忽略的观点炸弹
+
+### QL — Quotable Lines(可传播密度)
+*这条的某一句话能被单独截图传播吗?*
+
+短文整条就是"金句"的载体——但真正的 QL 是:读者会不会**只截你某一句**发到另一个平台。
+
+- **0** — 整条是叙述 / 日记,没有可独立传播的句子
+- **3** — 整条作为一个单元可传播
+- **5** — 其中某一句能脱离语境独立爆炸
+
+### NA — Narrativity(线程弧线)
+*如果是 thread / 连续微博,有没有让人想滑到最后一条的弧线?*
+
+- **0** — 单条无弧线(正常)/ thread 但每条是独立碎片
+- **3** — thread 有松散主线
+- **5** — thread 有"追剧感"——必须看到最后一条
+
+单条帖子 NA 通常给 1-2 即可——短文的传播主要靠 ER/HP/QL。
+
+### AB — Audience Breadth(受众广度)
+*这条话题的潜在受众有多广?*
+
+- **0** — 极小众圈层梗
+- **3** — 特定群体(职场 / 互联网圈 / 家长)
+- **5** — 普世——任何人看了都有感觉
+
+### SR — Social Resonance(社会议题共振)
+*这条触及当下的集体情绪或社会模式吗?*
+
+- **0** — 纯个人 / 自说自话
+- **3** — 蹭到热点但没新视角
+- **5** — 用 280 字命名了一个大家感受到但没人说出来的结构
+
+### SAT — Satire Depth(讽刺 / 语调深度)
+*这条的语调有多少"装置感"——阴阳、反讽、戏仿?*
+
+- **0** — 真诚直陈
+- **3** — 一层阴阳 / 反讽
+- **5** — 嵌套反讽 / 自指——"一条讽刺讽刺的帖子"
+
+短文平台上讽刺 / 阴阳是传播利器。如果你的风格是真诚向,SAT 给 2-3 当占位。
+
+---
+
+## Bucket 预测:比率桶方案
+
+> ⚠️ **新人的 bucket 不能用绝对数字**——大 V 的"1000 转算塌房"对新号来说是梦想数据。
+
+### 第 1 条:平台通用默认
+
+X / 微博 / 即刻新号第 1 条的典型分布:
+
+| Bucket | 范围(曝光 / 互动)| 先验概率 |
+|---|---|---|
+| 底部 | < 50 曝光 | 30% |
+| 基础盘 | 50 - 500 曝光 | 40% |
+| 命中 | 500 - 5,000 曝光 | 20% |
+| 小爆 | 5,000 - 50,000 曝光 | 8% |
+| 大爆 | > 50,000 曝光 | 2% |
+
+> 即刻以互动(点赞 + 评论)为主要指标,曝光数据不透明——用互动数代替。
+
+### 第 2 条起:用比率桶
+
+`baseline = 上一条实际曝光 / 互动`(或最近 3 条中位数)。
+
+| Bucket | 倍数范围 | 含义 |
+|---|---|---|
+| 退步 | < 0.3 × baseline | 明显下滑 |
+| 持平 | 0.3 - 1 × baseline | 同档 |
+| 命中 | 1 - 3 × baseline | 中度突破 |
+| 小爆 | 3 - 10 × baseline | 显著破圈 |
+| 大爆 | > 10 × baseline | 量级跃迁 |
+
+第 5 条后跑 `/cheat-bump --bucket-only` 重新校准边界。
+
+---
+
+## Cold-start 战略(简版)
+
+前 5 条的"预测"不是预测——是**数据采集**。
+
+1. **建立纪律**:发布前写下盲判断
+2. **记录 7 维评分**:复盘后每条样本变成 (打分, 实绩) 配对
+3. **取样策略**:主动选维度组合差异最大的帖子——1 条 ER 主导、1 条 SR 主导、1 条 SAT 主导(阴阳怪气)、1 条 HP 极强但内容一般、1 条综合中等
+
+| 校准样本 | 你能相信什么 |
+|---|---|
+| N=0-2 | 啥都别信 |
+| N=3-5 | 相信"哪个维度可能重要"的方向 |
+| N=5-10 | 相信 bucket 排序 |
+| N=10-20 | 中枢可信 ±30% |
+| N≥20 | rubric 真正成为"作弊器" |
+
+---
+
+## 重要警告
+
+- cold-start 期 composite 的置信度低——**不要基于 v0 分数决定要不要发某条帖子**
+- 短文发布频率高——5 条校准可以在 1-2 周内完成,**不要拖**
+- 前 5 条**每条必须走完整闭环**(predict → 发布 → retro),跳过任何一条复盘 = 整个校准失败
+- 第 5 条后**必须**跑 `/cheat-bump` 升级
+
+---
+
+## 最重要的一句话
+
+**前 5 条你不是在做决策,你是在收集数据。** 短文的好处是迭代快——别浪费这个优势。
diff --git a/starter-rubrics/tutorial-builder-zero.md b/starter-rubrics/tutorial-builder-zero.md
new file mode 100644
index 0000000..1ab5b6c
--- /dev/null
+++ b/starter-rubrics/tutorial-builder-zero.md
@@ -0,0 +1,147 @@
+# Starter Rubric:教程 / How-to 内容 — v0 cold-start 占位
+
+**这是给完全没数据的新作者用的占位 rubric。**它会打错。**前 5 篇预测精度大概 ±50%——这是 cold-start 的数学事实,不是 rubric 失败**。
+
+跑完 5 篇(每篇都走完 `/cheat-predict` → 发布 → `/cheat-retro` 闭环)之后,你会有第一份个人校准数据,可以提议第一次 `/cheat-bump` 升级到 v1。
+
+---
+
+## v0 综合分公式(**等权占位**)
+
+```
+composite = (ER + HP + QL + NA + AB + SR + SAT) / 7 × 2.0
+```
+
+每个维度 0-5 整数分。综合分范围 0-10。
+
+**为什么等权**:你没有数据支持任何特定权重。等权能让你在数据出来之前对每个维度都给"中立的关注"。第 5 篇之后你的复盘数据会告诉你哪些维度真的预测了你的教程的传播。
+
+---
+
+## 7 个维度
+
+### ER — Emotional Resonance("啊哈"时刻)
+*读者 / 观众跟完教程后,能不能产生**"原来这么简单"或"终于搞懂了"**的顿悟感?*
+
+教程的情感共鸣不是催泪——是认知突破带来的满足感和掌控感。
+
+- **0** — 纯步骤搬运;跟完了但没有"懂了"的感觉
+- **3** — 能解决问题,但方式平淡、缺乏洞察
+- **5** — 教程本身揭示了一个更深的原理,读者不仅学会了"怎么做"还理解了"为什么"
+
+### HP — Hook Potential(问题陈述清晰度)
+*开头能不能在 10 秒内让读者确认"这就是我要解决的问题"?*
+
+教程的钩子 = 精准的问题描述。读者搜到你的教程时,开头必须让他确认"找对了"。
+
+- **0** — 标题模糊("Python 学习笔记");开头在介绍技术历史
+- **3** — 问题描述清晰但缺乏"痛点共鸣"("本文介绍如何...")
+- **5** — 开头就是读者的具体痛点场景("你在本地跑得好好的,部署到服务器就报错...")
+
+### QL — Quotable Lines(可复制内容密度)
+*教程里有没有"能直接 copy-paste 用的"代码片段、命令、配置、步骤清单?*
+
+教程的"金句"就是可直接复用的内容片段——读者收藏教程的核心原因。
+
+- **0** — 全是概念讲解,没有可直接使用的内容
+- **3** — 有代码 / 步骤但需要大量修改才能用
+- **5** — 多个可直接复制使用的代码片段 / 命令 / 配置模板,有清晰注释
+
+### NA — Narrativity(教程递进感)
+*教程有没有清晰的从简到难的递进弧线?*
+
+- **0** — 步骤之间没有逻辑关系;可以随机跳读
+- **3** — 有线性顺序但缺乏"每一步为什么在这里"的解释
+- **5** — 明确的递进(先跑通最小示例 → 逐步添加功能 → 处理边界情况),读者能感受到能力在增长
+
+### AB — Audience Breadth(问题普遍性)
+*这个教程解决的问题有多少人会遇到?*
+
+- **0** — 极小众工具 / 极特殊场景
+- **3** — 特定技术栈的常见问题(如某框架的部署问题)
+- **5** — 几乎所有同领域从业者都会遇到的问题(如 Git 合并冲突、环境配置)
+
+### SR — Social Resonance(技术趋势共振)
+*这个教程的话题与当下的技术趋势 / 行业热点有关吗?*
+
+- **0** — 已过时的技术 / 纯经典内容
+- **3** — 稳定技术栈的常规教程
+- **5** — 正处在风口上的技术(如当前的 AI 工具链)——搜索量正在飙升
+
+### SAT — Satire Depth(教学人格感)
+*教程在"讲人话"和展示个性方面做到什么程度?*
+
+教程的"讽刺深度"不是讽刺——是**教学人格**:你是一个有温度的人在教,还是一份文档在输出。
+
+- **0** — 纯文档式;没有任何个性
+- **3** — 有自然的口语化表达 / 偶尔的吐槽("这个 API 的设计确实反人类")
+- **5** — 有鲜明教学人格——幽默、自嘲、对坑的真实愤怒——读者会"因为喜欢你的风格"关注你
+
+如果你的教程走严谨技术文档路线,SAT 给 2-3 当占位即可。
+
+---
+
+## Bucket 预测:比率桶方案
+
+> ⚠️ **新人的 bucket 不能用绝对数字**——头部技术博主的"1w 阅读是正常"对新号来说不适用。
+
+### 第 1 篇:平台通用默认
+
+技术博客 / 掘金 / CSDN / Dev.to / YouTube 教程频道新号第 1 篇的典型分布:
+
+| Bucket | 范围(阅读 / 播放数)| 先验概率 |
+|---|---|---|
+| 底部 | < 50 | 25% |
+| 基础盘 | 50 - 500 | 40% |
+| 命中 | 500 - 5,000 | 25% |
+| 小爆 | 5,000 - 50,000 | 8% |
+| 大爆 | > 50,000 | 2% |
+
+> 教程类内容有长尾效应——发布后 1-6 个月内持续有搜索流量。Bucket 评估建议在发布 30 天后做第一次。
+
+### 第 2 篇起:用比率桶
+
+`baseline = 上一篇发布 30 天后的实际阅读数`(或最近 3 篇中位数)。
+
+| Bucket | 倍数范围 | 含义 |
+|---|---|---|
+| 退步 | < 0.3 × baseline | 明显下滑 |
+| 持平 | 0.3 - 1 × baseline | 同档 |
+| 命中 | 1 - 3 × baseline | 中度突破 |
+| 小爆 | 3 - 10 × baseline | 显著破圈 |
+| 大爆 | > 10 × baseline | 量级跃迁 |
+
+第 5 篇后跑 `/cheat-bump --bucket-only` 重新校准边界。
+
+---
+
+## Cold-start 战略(简版)
+
+前 5 篇的"预测"不是预测——是**数据采集**。
+
+1. **建立纪律**:发布前写下盲判断
+2. **记录 7 维评分**:复盘后每条样本变成 (打分, 实绩) 配对
+3. **取样策略**:主动选维度组合差异最大的教程——1 篇深度原理 (ER 主导)、1 篇热门工具速成 (SR 主导)、1 篇代码片段集 (QL 主导)、1 篇完整项目实战 (NA 主导)、1 篇综合中等
+
+| 校准样本 | 你能相信什么 |
+|---|---|
+| N=0-2 | 啥都别信 |
+| N=3-5 | 相信"哪个维度可能重要"的方向 |
+| N=5-10 | 相信 bucket 排序 |
+| N=10-20 | 中枢可信 ±30% |
+| N≥20 | rubric 真正成为"作弊器" |
+
+---
+
+## 重要警告
+
+- cold-start 期 composite 的置信度低——**不要基于 v0 分数决定要不要发某篇教程**
+- 教程有长尾流量——retro 建议在发布 30 天后做,不要看 Day 1 数据就下结论
+- 前 5 篇**每篇必须走完整闭环**(predict → 发布 → retro),跳过任何一篇复盘 = 整个校准失败
+- 第 5 篇后**必须**跑 `/cheat-bump` 升级
+
+---
+
+## 最重要的一句话
+
+**前 5 篇你不是在做决策,你是在收集数据。** 教程的长尾特性意味着你需要更多耐心——给每篇足够的时间窗口再做复盘。
diff --git a/templates/candidates.template.md b/templates/candidates.template.md
index e94f061..3009f20 100644
--- a/templates/candidates.template.md
+++ b/templates/candidates.template.md
@@ -70,7 +70,7 @@
---
-### [tier2] 弗洛伊德的性压抑哲学
+### [tier1] 弗洛伊德的性压抑哲学
- **id**: 8c4d92e1f0b3
- **source**: trend:manual-paste
diff --git a/templates/prediction.template.md b/templates/prediction.template.md
index c487814..7c3b368 100644
--- a/templates/prediction.template.md
+++ b/templates/prediction.template.md
@@ -24,6 +24,9 @@
← 例:`AB: claude=4 → user=3 (用户认为 '一人公司题没那么普适')` `中枢: claude=60w → user=40w`
← 复盘时这个字段帮诊断:用户哪个维度直觉跟 Claude 系统性偏离,被实绩验证 → rubric 可能漏了什么
**预测时数据状态**: **blind**(未看任何 `<平台>` 实际播放数据)
+**Prediction Basis**: `pre_shoot` ← 或 `post_shoot_pre_publish`(v2 段)
+**BlindScored By**: `subagent-v1` ← 或 `main-claude-self` / `mixed`
+**BlindScore Disagreement**: `<inline JSON — 每维度一条,见 prediction-anatomy.md>`
---
@@ -43,7 +46,7 @@
---
-## 预测
+## 预测 v1
> ⚠️ **本段是 immutable**——`hooks/prediction-immutability.sh` 会拦截对本段的 Edit。
> 写完不可改。如要重做请创建 `<本文件名>_redo.md`,原文件保留。
diff --git a/tools/diff_pct_test.sh b/tools/diff_pct_test.sh
index 3c2ac61..140ca0e 100755
--- a/tools/diff_pct_test.sh
+++ b/tools/diff_pct_test.sh
@@ -31,7 +31,7 @@ if [[ ! -f "$DIFF_PCT" ]]; then
fi
TMP=$(mktemp -d)
-trap "rm -rf $TMP" EXIT
+trap 'rm -rf "$TMP"' EXIT
PASS=0
FAIL=0