backup-consistency-check

Compare backup selection, execution, UI display, and restore logic across Android and Web.

2|Updated May 12, 2026
One-click install
npx skills add https://github.com/youfengknight/Android-Code-Skills --skill backup-consistency-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: backup-consistency-check
Source: https://github.com/youfengknight/Android-Code-Skills/tree/main/other/backup-consistency-check
Command: npx skills add https://github.com/youfengknight/Android-Code-Skills --skill backup-consistency-check

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

你在使用备份功能时,最怕“备份没选全”“展示的备份内容不准确”以及“恢复时实际读不到”,导致数据丢失或误导用户。

Core Features & Use Cases

  • 跨端一致性核查:对比同一套备份项在实际备份逻辑、备份选择器、安卓端展示、Web端展示、恢复逻辑中的一致性。
  • 问题分型定位:识别选择器/展示缺项、多余项、备份与恢复不匹配,以及显示名不一致等类别问题。
  • 面向代码落地的检查流程:围绕关键文件路径提取备份项清单并生成可执行的分析报告,用于修复与回归。

Quick Start

让 AI 按照 SKILL.md 中的 5 个关键文件路径,提取每个文件定义的备份项清单并输出“备份一致性检查报告”,同时给出逐项修复建议。

Frequently Asked Questions about backup-consistency-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify Android and Web backup consistency to prevent restore mismatches?

You can perform a backup consistency check by extracting backup item lists from key files like Backup.kt and Restore.kt to build a five-column comparison matrix. This matrix classifies mismatches across selection, execution, UI display, and restore logic to ensure recoverability.

Why does my Android backup skip items that appear in the Web controller display?

Android backups skip items due to mismatches between the backup selector configuration and the Web controller display logic. Extracting mappings from BackupSelectorConfig.kt and BackupController.kt helps classify missing items and identify display inconsistencies.

What is a backup consistency check and when do I need it for my codebase?

A backup consistency check validates that backup selection, execution, UI display, and restore logic remain aligned across platforms. You need this check when verifying whether backups are correct, identifying skipped items, or ensuring restore operations match exported content.

How to audit backup logic across Backup.kt and Restore.kt to find missing data?

Audit backup logic by extracting file-name mappings from Backup.kt, BackupSelectorConfig.kt, and Restore.kt to construct a five-column comparison matrix. This structured approach classifies missing items and generates a Markdown report with concrete fix recommendations.

Can I check if my backup selector configuration matches the actual restore logic?

Yes, you can check if your backup selector matches restore logic by comparing mappings from BackupSelectorConfig.kt against Restore.kt. This process identifies mismatches where backed up content cannot be read during restoration, producing a structured report for fixes.

What are common limitations when performing a cross-platform backup consistency check?

Limitations include relying on accurate extraction from specific files like BackupInfoHelper.kt and BackupController.kt. The check requires these five key files to be present; any missing file prevents building the comparison matrix and stops the consistency audit.