mobile-memory
Skill66 starsChanged 6 months agoMITView on GitHub
Memory persistence for mobile development context across sessions. Maintains project structure, dependencies, architecture, and test state.
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-checkpointSkill
- mobile-compactionSkill
- mobile-instinct-v1Skill
- mobile-instinct-v2Skill
- 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
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 145
Test runs: Test coverage, failing tests
- Very specific: line 182
Always available via /memory-query
- Very specific: line 194
Query, don't remember: Use /memory-query instead of asking user
- Distinctive: line 195
Validate on load: Check memory matches actual project
- Very specific: line 196
Update after changes: Run /memory-save after major changes
- Very specific: line 197
Clean up: Use /memory-forget to remove stale data
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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 Memory Skill
Persistent memory system that maintains mobile development context across sessions.
Purpose
Unlike instincts (which capture patterns), memory retains factual project state:
- What modules exist
- What dependencies are installed
- What the architecture looks like
- What tests cover what code
This survives session breaks and compaction.
Memory Types
Project Structure Memory
Remembers your Android project layout:
{
"modules": ["app", "core:network", "feature:auth"],
"buildVariants": ["debug", "release", "staging"],
"featureModules": ["auth", "home", "profile"]
}Use when: Starting work on a new feature, need to know project layout
Dependencies Memory
Tracks all Gradle dependencies:
{
"libraries": [
{"name": "compose-runtime", "group": "androidx.compose", "version": "1.5.0"}
],
"kgpVersion": "1.9.20",
"gradleVersion": "8.2"
}Use when: Adding new dependencies, checking compatibility
Architecture Memory
Documents your architecture patterns:
{
"pattern": "mvi",
"uiLayer": {"screens": ["Home", "Profile"]},
"dataLayer": {"repositories": ["UserRepository"]},
"di": {"framework": "koin", "modules": ["appModule"]}
}Use when: Onboarding new developers, explaining codebase
Test Coverage Memory
Tracks test metrics:
{
"totalCoverage": 78,
"trend": "improving",
"failingTests": [
{"class": "AuthViewModelTest", "method": "testLogin"}
]
}Use when: Planning testing work, tracking quality goals
Compose Screens Memory
Indexes all Composable screens:
{
"screens": [
{"name": "HomeScreen", "route": "home", "file": "HomeScreen.kt"}
]
}Use when: Finding screens, understanding navigation
Usage
Load Memory
# At session start - load all memory
/memory-load all
# Load specific type
/memory-load project-structure
/memory-load dependenciesSave Memory
# Save current state
/memory-save project-structure
/memory-save test-coverage
# Save all (usually automatic)
/memory-save allQuery Memory
# Ask questions about project
/memory-query "What modules use Ktor?"
/memory-query "Which screens are not tested?"
/memory-query "What's the test coverage for auth module?"Forget Memory
# Remove stale memory
/memory-forget recent-changes
/memory-forget --older-than 90daysSummary
# Get overview of all memory
/memory-summaryMemory Refresh Triggers
Memory auto-refreshes on:
- Gradle sync: Dependencies, build variants
- File changes: Recent changes, architecture
- Test runs: Test coverage, failing tests
- Session start: Load all memory
- Session end: Save all memory
Memory vs Instincts
| Aspect | Memory | Instincts |
| Content | Factual state | Patterns |
| Examples | Module list, deps | "Use collectAsStateWithLifecycle" |
| Updates | On changes | On observations |
| Confidence | Binary (exists/doesn't) | 0.0-1.0 score |
| Retention | 30-90 days | Persistent |
Integration
With Checkpoints
Checkpoints include memory state:
{
"checkpoint": {
"memory": {
"project-structure": {...},
"dependencies": {...}
}
}
}Restoring a checkpoint restores memory too.
With Compaction
Memory survives compaction:
- Recent memory: Kept as-is
- Old memory: Summarized
- Always available via
/memory-query
With Instincts
Memory informs instinct extraction:
- Project structure → Where to look for patterns
- Dependencies → What frameworks are used
- Architecture → What patterns to expect
Best Practices
- Let it auto-refresh: Memory updates automatically on hooks
- Query, don't remember: Use
/memory-queryinstead of asking user - Validate on load: Check memory matches actual project
- Update after changes: Run
/memory-saveafter major changes - Clean up: Use
/memory-forgetto remove stale data
Example Session
User: I need to add a new feature for user profiles
Agent: /memory-query project-structure
Response: Found modules: app, core:network, feature:auth
No profile module exists.
Agent: /memory-query dependencies
Response: Using Compose 1.5.0, Ktor 2.3.0, Koin 3.4.0
Agent: Based on memory, I'll create feature:profile module
following your existing architecture pattern.Remember: Memory is about what exists, not what should be. That's what instincts are for.
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.

