cheat-migrate

cheat-migrate is a skill for Claude Code from XBuilderLAB/cheat-on-content. It costs 93 tokens per session (2,907 once invoked), scanned A, original, MIT.

A migration tool for updating an old .cheat-state.json file to the schema version expected by the current cheat-on-content tool. A schema is the format and set of fields that a data file must follow.

In plain words
What is it for?
It helps upgrade project state files, optionally to a chosen version, verify that the result can be read, and preserve a backup before changes are written.
Why use it?
State files can become incompatible when software changes its data format. This tool works through the required version changes in order, shows a dry-run plan, makes a backup, and stops if a step fails.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps upgrade project state files, optionally to a chosen version, verify that the result can be read, and preserve a backup before changes are written.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xbuilderlab/cheat-on-content/cheat-migrate
About the project

Cheat on Content is a workflow for content creators that records predictions and results for each post, reviews performance later, and updates the criteria used for future decisions. It is intended to make content planning and publishing an experiment that becomes more informed over time. The catalogue contains the skills that implement this workflow.

XBuilderLAB/cheat-on-content · 7,309 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add XBuilderLAB/cheat-on-content --skill cheat-migrate
Clone the repo
git clone --depth 1 https://github.com/XBuilderLAB/cheat-on-content

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cheat-migrate

README.md
[![agentmods](https://agentmods.dev/badge/skills/xbuilderlab/cheat-on-content/cheat-migrate/github.svg)](https://agentmods.dev/skills/xbuilderlab/cheat-on-content/cheat-migrate)
Your own site
<a href="https://agentmods.dev/skills/xbuilderlab/cheat-on-content/cheat-migrate"><img src="https://agentmods.dev/badge/skills/xbuilderlab/cheat-on-content/cheat-migrate/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cheat-migrate

Your own site · 80×15
<a href="https://agentmods.dev/skills/xbuilderlab/cheat-on-content/cheat-migrate"><img src="https://agentmods.dev/badge/skills/xbuilderlab/cheat-on-content/cheat-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.02907
Opus 5.5 $0.00037 $0.01163
Sonnet 5.5 $0.00019 $0.00581
Haiku 4.5 $0.00009 $0.00291

Measured 1mo ago against content hash da1c296cfe9d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cheat-migrate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/cheat-migrate/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/cheat-migrate — Schema 版本迁移

把用户 .cheat-state.json 从旧 schema_version 升级到 cheat-on-content 当前期望的 LATEST_SCHEMA。


Overview

[用户:迁移 / 或 SessionStart 提示后用户跑]
  ↓
[Phase 0: 读 .cheat-state.json + migrations/registry.md → 确定迁移链]
  ↓
[Phase 1: dry-run(默认)展示迁移计划,等用户确认]
  ↓
[Phase 2: 备份 .cheat-state.json → .cheat-state.json.backup-<timestamp>]
  ↓
[Phase 3: 按顺序对每个 step 应用对应迁移文件的 HOW 段]
  ↓
[Phase 4: 验证升级后 state 文件能被解析 + schema_version 已更新]
  ↓
[Phase 5: 报告 + 提示如有备份需要清理]

Constants

  • REGISTRY_PATH = ${SKILL_DIR}/../../migrations/registry.md — 版本链单一来源
  • MIGRATIONS_DIR = ${SKILL_DIR}/../../migrations/ — 迁移文件目录
  • DRY_RUN_BY_DEFAULT = true — 首次跑展示计划,不直接改文件
  • BACKUP_BEFORE_WRITE = true — 写之前必备份;备份文件保留至下次成功 init / 用户手动清理
  • STOP_ON_STEP_FAILURE = true — 任何 step 失败 → 停在中间版本,不前进,不回滚

💡 调用时覆盖:/cheat-migrate — dry-run: false 直接执行 / /cheat-migrate — to: 1.2 仅升到指定版本


Inputs

必填 来源
.cheat-state.json 用户项目根
migrations/registry.md LATEST_SCHEMA + 版本链表
migrations/<from>-to-<to>.md 每步具体迁移指令

Workflow

Phase 0: 确定迁移链

  1. 读 .cheat-state.json → 解析 current_version = state.schema_version
  2. 读 migrations/registry.md → 解析 LATEST_SCHEMA 字段(行:LATEST_SCHEMA = "X.Y")
  3. 解析 args.to 覆盖(如有);否则 target = LATEST_SCHEMA
  4. 解析 args.from 覆盖(罕见场景:用户的 state 文件 schema 字段坏了,强制指定起点)
  5. 状态判断:
    • current_version == target → 输出"✅ state 已是 {target},无需迁移" → 退出
    • current_version > target(比如用户跑了 dev 版又切回 release)→ 报错"无法降级,请手动调整或重新 init"
    • current_version < target → 继续,从注册表查出迁移链
  6. 从注册表"版本链"表算出 chain = [(from, to, file), ...],按顺序串起 current → target

如果某一步在注册表里缺失(比如 current_version 不在表里)→ 报错并展示"目前已知版本:[1.0, 1.1, ...]",让用户检查。

Phase 1: dry-run

输出迁移计划:

📋 迁移计划

当前版本: 1.0
目标版本: 1.2
将按顺序跑 2 步:

  [1/2] 1.0 → 1.1(MINOR)
       新增字段:typical_duration_seconds, target_publish_cadence_days, ...(共 12 字段)
       删除字段:mode, prediction_complexity, bucket_scheme
       详见: migrations/1.0-to-1.1.md

  [2/2] 1.1 → 1.2(MINOR)
       新增字段:[...]
       详见: migrations/1.1-to-1.2.md

⚠️ 备份位置: .cheat-state.json.backup-<timestamp>

继续吗?回 yes 执行 / no 退出 / dry-run-detail 看每步具体改什么。

Read the full file on GitHub · 235 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 235 lines · 93 tokens per session scan A da1c296cfe9d

Subscribe to this mod's changes

cheat-migrate is a skill published in the GitHub repository XBuilderLAB/cheat-on-content (7,309 stars, last pushed yesterday), licensed MIT. It adds 93 tokens to every session and 2,907 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

create-pr

Creates a GitHub PR with a Linear-ticket-prefixed title and a decision-led, narrative description for Prisma 8. Use when the user wants to create a pull request, open a PR, or submit changes for review.

prisma/orm · 48 tokens

schema-exploration

Lists tables, describes columns and data types, identifies foreign key relationships, and maps entity relationships in a database. Use when the user asks about database schema, table structure, column types, what tables exist, ERD, foreign keys, or how entities relate.

langchain-ai/deepagents · 57 tokens

atlas-mssql

SQL Server specifics for Atlas (also Azure SQL and MSSQL): login, dev database and URL scope (mode=schema vs mode=database, the database query parameter), compatibility level and collation, system-generated constraint names, clustered index defaults and datetime2 precision in HCL, GO batches and the delimiter…

ariga/atlas · 147 tokens

ha-data-stores

Map of Hope Agent's local data stores and safe read-only query workflow. Use when the user asks where Hope Agent stores data, wants to inspect sessions/messages/memory/logs/background jobs/knowledge indexes/settings, asks the model to query local app data, or debugging requires checking persisted state. Trigger…

shiwenwen/hope-agent · 115 tokens

nornicdb-cypher-queries

Pick fast, predictable Cypher query shapes in NornicDB — point lookups, batch retrieval, pagination, search, traversal, batched UNWIND/MERGE writes, cleanup, multi-tenant isolation. Use when writing or reviewing Cypher whose latency or throughput matters; maps user intent to the executor's hot-path query templates.

orneryd/NornicDB · 79 tokens

volcengine-rds-postgresql

A tool for operating PostgreSQL databases hosted by Volcano Engine's managed database service. PostgreSQL is a relational database used to store structured application data.

bytedance/agentkit-samples · 63 tokens