mobile-checkpoint
Skill66 starsChanged 6 months agoMITView on GitHub
Checkpoint workflow for mobile development safety. Save/restore Android project state at critical points.
- Deletes or force-pushes
In this repository51 other files it gives its agents.
- AGENTS.mdAGENTS.md
- rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/everything-mobile.mdcCursor rule
- accessibility-patternsSkill
- analytics-patternsSkill
- android-patternsSkill
- app-lifecycleSkill
- ci-cd-patternsSkill
- combine-frameworkSkill
- continuous-learningSkill
- continuous-learning-v2Skill
- core-dataSkill
- coroutines-patternsSkill
- deep-linkingSkill
- expect-actualSkill
- feature-builderSkill
- feature-flagsSkill
- gradle-patternsSkill
- image-loadingSkill
- ios-testingSkill
- jetpack-composeSkill
- kmp-diSkill
- kmp-navigationSkill
- kmp-networkingSkill
- kmp-repositoriesSkill
- koin-patternsSkill
- ktor-patternsSkill
- liquid-glassSkill
- localization-patternsSkill
- m3-expressiveSkill
- mobile-compactionSkill
- mobile-instinct-v1Skill
- mobile-instinct-v2Skill
- mobile-memorySkill
- mobile-securitySkill
- mobile-testingSkill
- mobile-verificationSkill
- mvi-architectureSkill
- navigation-composeSkill
- offline-firstSkill
- pagination-patternsSkill
- push-notificationsSkill
- room-patternsSkill
- shared-coroutinesSkill
- shared-modelsSkill
- sqldelight-patternsSkill
- swift-patternsSkill
- swiftui-patternsSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 119
Use descriptive names with operation and context:
- Very specific: line 129
Avoid: checkpoint1, save, temp
- Distinctive: line 179
Check git state: git status
- Very specific: line 180
Verify checkpoint integrity: /mobile-checkpoint verify <name>
- Distinctive: line 191
Use git diff to see test file changes
- Distinctive: line 195
Checkpoint Before: Always save before major changes
- Distinctive: line 196
Name Clearly: Use operation-based names
- Distinctive: line 197
Verify After: Run tests before confirming checkpoint
- Distinctive: line 198
Clean Regularly: Remove old checkpoints monthly
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mobile Checkpoint Skill
Comprehensive checkpoint workflow for Android development safety and state recovery.
When to Use
Before risky operations:
- Large refactors (MVI migration, architecture changes)
- Gradle updates (
./gradlew wrapper, dependency upgrades) - Manifest changes (permissions, components)
- Navigation restructuring
- Experimental features
After milestones:
- Feature completion
- Passing all tests
- Successful release build
- Performance optimization
Checkpoint Workflow
1. Pre-Operation Check
# Verify clean state
git status
./gradlew check
# Create checkpoint
/mobile-checkpoint save before-<operation>2. Perform Operation
# Make your changes
# ... edits, refactors, updates ...
# Verify build
./gradlew build3. Post-Operation Verification
# If successful - create new checkpoint
/mobile-checkpoint save after-<operation>
# If failed - restore
/mobile-checkpoint restore before-<operation>Checkpoint Content Levels
| Level | Content | Use Case |
| Quick | Git status, branch, recent files | Quick experiments |
| Standard | + Build config, tests | Default for most ops |
| Full | + Dependencies, manifest, instincts | Major refactors, releases |
State Recovery
Git State Recovery
/mobile-checkpoint restore <name>
# Agent will:
# 1. Show git diff to current state
# 2. Offer git reset --hard <commit>
# 3. Restore staged/unstaged changesDependency Recovery
# Checkpoint includes:
# - build.gradle.kts files
# - gradle/wrapper/gradle-wrapper.properties
# - version catalog (libs.versions.toml)
# Agent provides diff for manual restorationTest State Recovery
# Checkpoint shows:
# - Previous test results
# - Failing tests (if any)
# - Coverage metrics
# Run tests to verify state:
./gradlew testAuto-Checkpoint Integration
The checkpoint system integrates with hooks:
// hooks/checkpoint-hooks.json
{
"trigger": "PreToolUse",
"matcher": "tool == \"Bash\" && command contains \"gradle\"",
"action": "Create quick checkpoint"
}
{
"trigger": "PostToolUse",
"matcher": "tool == \"Edit\" && file == \"AndroidManifest.xml\"",
"action": "Create standard checkpoint"
}Checkpoint Naming Convention
Use descriptive names with operation and context:
| Name Pattern | Example |
before-{operation} | before-mvi-migration |
after-{operation} | after-koin-refactor |
{feature}-complete | auth-flow-complete |
{version}-rc | v1.2.0-rc1 |
working-{date} | working-2026-02-03 |
Avoid: checkpoint1, save, temp
Checkpoint Management
List Checkpoints
/mobile-checkpoint list
# Output:
# before-mvi-refactor 2 hours ago Standard
# auth-feature-done 1 day ago Full
# working-0203 2 days ago QuickDelete Old Checkpoints
# Keep last 10
/mobile-checkpoint prune --keep 10
# Delete specific
/mobile-checkpoint delete working-0203Export for Backup
# Export to file
/mobile-checkpoint export release-ready > ~/backups/mobile-checkpoint.json
# Import from file
/mobile-checkpoint import ~/backups/mobile-checkpoint.jsonIntegration with Instincts
Checkpoints preserve instinct learning:
{
"instincts": {
"version": "2.0",
"count": 47,
"highConfidence": 23,
"lastUpdated": "2026-02-03T10:30:00Z"
}
}Restoring a checkpoint also restores your learned patterns.
Troubleshooting
Restore Fails
- Check git state:
git status - Verify checkpoint integrity:
/mobile-checkpoint verify <name> - Manual recovery: Checkout commit manually
Missing Dependencies
- Checkpoint shows original versions
- Restore build.gradle.kts manually
- Run
./gradlew --refresh-dependencies
Tests Differ After Restore
- Tests may have changed between checkpoint and now
- Checkpoint captures test STATE, not test CODE
- Use git diff to see test file changes
Best Practices
- Checkpoint Before: Always save before major changes
- Name Clearly: Use operation-based names
- Verify After: Run tests before confirming checkpoint
- Clean Regularly: Remove old checkpoints monthly
- Export Milestones: Export before releases
- Trust Git: Checkpoints complement, don't replace, version control
Remember: A checkpoint is a safety net, not a time machine. It shows you what changed, not how to undo every change.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

