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(cheat-init): generate .gitignore to protect adapter credentials (#48)
hnsci-ai7c0fc91c1a61
diff --git a/SKILL.md b/SKILL.mdindex 47a7693..5aa7fcf 100644--- a/SKILL.md+++ b/SKILL.md@@ -97,6 +97,7 @@ skill 期望用户的项目布局如下。`/cheat-init` 会创建缺失项;**```<user-content-project>/+├── .gitignore # cheat-init 创建;挡住 .auth*/.cheat-secrets.json 等凭证├── rubric_notes.md # 评分规则的真实来源├── WORKFLOW.md # 5 阶段流程文档(cheat-init 创建)├── STATUS.md # 看板(cheat-status 维护)@@ -166,6 +167,7 @@ cheat-on-content/│ ├── long-form-essay.md # ⬜ 公众号 / Substack│ └── short-form-text.md # ⬜ X thread / 微博长文├── templates/ # skill 写进用户 repo 的文件骨架+│ ├── gitignore.template # ✅ 用户项目 .gitignore(护凭证,保留 predictions/ 入库)│ ├── rubric_notes.template.md # ✅│ ├── prediction.template.md # ✅ 统一版(所有阶段,含 confidence header)│ ├── retro.template.md # ✅diff --git a/skills/cheat-init/SKILL.md b/skills/cheat-init/SKILL.mdindex 575d3b2..b1849e5 100644--- a/skills/cheat-init/SKILL.md+++ b/skills/cheat-init/SKILL.md@@ -263,6 +263,21 @@ c) 不找 → state 标 `benchmark_status: none`,用通用 v0 起步按顺序创建并**解释每一项的作用**:+0. **`.gitignore`(安全 — 必须第一步创建)**+ ```+ "先创建 .gitignore,把账号凭证挡在版本控制外——这是第一件事。+ .auth/ 和 .auth-xhs/ 存的是抖音 / 小红书的登录态(等同账号密码),+ .cheat-secrets.json 存 API key / cookie——一旦被 commit 或云同步就等于泄露账号。+ 注意:predictions/ videos/ scripts/ 这些**不**忽略——原则 #1/#3 依赖+ git history 作为预测的不可变档案,必须入库。"+ ```+ - 复制 `cheat-on-content/templates/gitignore.template` → `<user-repo>/.gitignore`+ - 如 `<user-repo>/.gitignore` **已存在** → 不覆盖;逐行检查并**追加缺失行**,至少确保+ `.auth/`、`.auth-xhs/`、`.cheat-secrets.json` 三行存在+ - 即使用户项目当前**还不是 git 仓库**也照常创建——它会在用户 `git init` 的那一刻立即生效+ - 创建后提醒一句:如果项目已经 `git init` 过且可能误加过 `.auth/`,让用户跑+ `git rm -r --cached .auth .auth-xhs .cheat-secrets.json` 把已暂存的凭证移出+1. **`.cheat-state.json`**```"正在创建 .cheat-state.json — 各子 skill 共享上下文的地方。diff --git a/templates/gitignore.template b/templates/gitignore.templatenew file mode 100644index 0000000..85ba1f5--- /dev/null+++ b/templates/gitignore.template@@ -0,0 +1,42 @@+# cheat-on-content — 内容项目 .gitignore+# 由 /cheat-init 生成。目的:保护账号凭证 + 本地状态,同时让你的创作产物+# (predictions/ videos/ scripts/ 等)正常进入版本控制——原则 #1/#3 依赖+# git history 作为预测的不可变档案,所以这些目录**不**忽略。+#+# 注意:.gitignore 的注释必须独占一行,行内 `#` 不是注释(会变成 pattern 的一部分)。++# ── 凭证 / 登录态:绝不提交(提交即等于泄露账号)──+# .auth/ = 抖音 Playwright 登录态(含 sessionid)+# .auth-xhs/ = 小红书 Playwright 登录态(含 web_session 等)+# .cheat-secrets.json = API key / cookie+.auth/+.auth-xhs/+.cheat-secrets.json++# ── 本地缓存与生成物 ──+# .cheat-cache = 使用日志/热点去重缓存;.cheat-hooks = init 生成的 hook 副本;.debug = adapter 调试输出+.cheat-cache/+.cheat-hooks/+.debug/++# ── Claude Code 本地配置(含机器相关路径 / 个人 permission)──+.claude/++# ── Python(adapter / 工具脚本跑过留下)──+__pycache__/+*.py[cod]+*$py.class+.venv/+venv/+.python-version++# ── macOS / 编辑器 / 临时文件 ──+.DS_Store+._*+.vscode/+.idea/+*.swp+*.swo+*~+*.tmp+*.log