mobile-instinct-v2
Skill66 starsChanged 6 months agoMITView on GitHub
V2 instinct-based observational learning. Analyzes sessions to extract reusable mobile development patterns across time.
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-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
Files
Mobile Instinct v2 - Observational Learning
Cross-session observational learning that extracts patterns from your development workflow over time.
Overview
V2 instincts observe your sessions and extract patterns that emerge across multiple development activities. Unlike V1's immediate capture, V2 looks for:
- Recurring architectural decisions
- Problem-solving approaches
- Code organization patterns
- Testing strategies
Session Analysis
At session end, V2 analyzes:
- Code changes: What was modified
- Problem context: What issue was being solved
- Solution approach: How it was resolved
- Dependencies: What libraries/techniques were used
Pattern Categories
Architectural Patterns
| Pattern | Detected By | Example |
layer-separation | Consistent data/ui/domain separation | Repository + ViewModel + Composable |
dependency-injection | Koin module patterns | factoryOf, viewModel |
navigation-pattern | Compose Navigation usage | NavHost with routes |
state-management | MVI/MVVM consistency | StateFlow + sealed classes |
Problem-Solution Patterns
| Pattern | Detected By | Example |
error-boundary | Try-catch with UI feedback | Error state in Composable |
loading-state | isLoading + Content pattern | Box with progress |
pagination | LazyColumn with Pager | Paging 3 integration |
caching-strategy | Repository layer caching | Cached repository pattern |
Code Organization Patterns
| Pattern | Detected By | Example |
feature-module | Self-contained feature folders | feature/auth/ structure |
shared-UI | Reusable Composables | ui/components/ |
test-mirroring | Test structure matching src | Parallel test folders |
naming-convention | Consistent naming patterns | XxxViewModel, XxxScreen |
Observation Windows
V2 uses sliding windows for pattern detection:
Window 1 (Current Session): Immediate patterns
Window 2 (Last 5 Sessions): Emerging patterns
Window 3 (Last 20 Sessions): Established patterns
Window 4 (All Time): Core patternsConfidence Evolution
Session 1-3: Experimental (0.1-0.3)
Session 4-10: Validating (0.3-0.6)
Session 11-20: Established (0.6-0.8)
Session 20+: Best Practice (0.8-1.0)Commands
View Observations
/instinct-status --v2
/instinct-status --observationsShows:
- Recent session observations
- Emerging patterns (low confidence)
- Established patterns (high confidence)
- Pattern clusters by domain
Manual Observation
/instinct-observe "Used Ktor with retry pattern for API calls"Manually add an observation for pattern learning.
Integration
V2 instincts are evaluated by:
- Session hooks:
hooks/instinct-hooks.jsonStop event - Pattern extractor:
agents/mobile-pattern-extractor.md - Pre-compact preservation: Maintains learning during context compression
Difference from V1
| Aspect | V1 | V2 |
| Trigger | Code write | Session observation |
| Scope | Single file | Cross-file patterns |
| Timing | Immediate | End of session |
| Focus | Code patterns | Architectural patterns |
Remember: V2 needs multiple sessions to build confidence. The more you develop, the smarter it gets.
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.

