OpenParable
Skip to content
← Back to skills

Room Migration Audit

Testing & Quality
room-migration-audit

Room Migration Audit is an Agent Skill for testing & quality published in the oxyroid/M3UAndroid repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Audit M3UAndroid Room schema and migration changes for versioning, schema artifacts, data preservation, indices, defaults, DAO compatibility, and migration validation.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/oxyroid/M3UAndroid/blob/HEAD/.claude/skills/room-migration-audit/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/room-migration-audit, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Room Migration Audit

Audit Room database changes for complete migration and data-preservation evidence.

When To Use

Use when a task changes or reviews:

  • Room entities, DAOs, database versions, migrations, or schema JSON
  • Persistence models or query behavior that changes stored data semantics

Required Context

Read first:

  • AGENTS.md
  • data/AGENTS.md
  • docs/ai/playbooks/room-migration.md
  • Relevant entity, DAO, database, migration, schema, and test files

Audit Checks

Verify with file evidence:

  • Database version, migration code, and schema artifacts are updated together.
  • Migration preserves existing user data or documents intentional loss.
  • Added columns have defaults or nullable semantics compatible with existing rows.
  • Indices, foreign keys, and constraints match entity/query expectations.
  • DAO/repository behavior remains compatible with upper layers.
  • Migration tests cover every affected version path when available.

Process

  1. Map changed entities, database version, migration objects, schema files, and tests.
  2. Compare old and new schema semantics.
  3. Trace how repositories and DAOs consume changed columns/tables.
  4. Check data preservation and default values.
  5. Cite file paths and line numbers for every finding.

Validation

Recommend:

./gradlew :data:testDebugUnitTest

If schema generation or migration tests are unavailable, state the remaining migration risk.

Output

Return a concise Markdown report with:

  • Scope and affected versions
  • Pass/fail table for each audit check
  • Evidence-backed findings with file paths
  • Required migration or test fixes
  • Validation run or not run, with reason