/core:mobiai-brainfrom core
Loads per-project living memory for mobile apps. Retrieves past decisions, workarounds, bugfixes, and testing patterns to inform architecture and integration changes.
Ships in core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Per-project living memory for mobile projects. Lives at <repo>/.mobiai/brain/ — separate from MobiAI's global state in ~/.mobiai/. Each project has its own brain; nothing is shared between projects.
If the project has no .mobiai/brain/ yet and the user wants project memory, suggest running mobiai brain init. Don't run it yourself unless asked.
mobiai brain init # Create .mobiai/brain/ in the project (idempotent)
mobiai brain scan # Detect stack: Android / iOS / KMP / Flutter / RN + libs
mobiai brain context # Print Markdown context: config + scan + memories (filterable)
mobiai brain save decision # Append an architecture decision
mobiai brain save bugfix # Append a bugfix or workaround
mobiai brain save testing # Append a reusable testing pattern
mobiai brain search <query> # Free-text search over memories
mobiai brain mcp # Start an MCP server exposing the brain as tools
If your client (Claude Code, Cursor, Copilot CLI, Codex, Gemini CLI) has mobiai-brain registered as an MCP server, you'll see tools named mobile_context, mobile_search, mobile_scan, mobile_save_decision, mobile_save_bugfix, mobile_save_testing in your toolbox. Use those instead of shelling out to the CLI — they return structured output (JSON for search/scan, Markdown for context) that's easier to reason about and cite.
Setup instructions per client: brain/MCP-SETUP.md.
When MCP isn't configured, fall back to the CLI invocations shown above — both produce the same on-disk state.
As a project's brain grows, dumping everything via brain context wastes tokens. Both context and search accept the same filters with AND semantics:
| Flag | Notes |
|---|---|
--section | Only on context. Comma-separated or repeated: stack, rules, decisions, bugfixes, testing, integrations, releases, warnings. |
--platform | android | ios | shared | kmp | flutter | react-native. Exact match. |
--status | active | temporary | deprecated. Exact match. |
--area | Substring match against the area: metadata. |
Examples for skills/agents:
# Before making an iOS Firebase change — pull only iOS Firebase memory.
mobiai brain context --platform ios --area firebase
# Before writing tests — pull only testing patterns.
mobiai brain context --section testing
# Quick lookup before proposing a workaround — has it been done before?
mobiai brain search "module renaming" --platform ios
save flagsAll three save subcommands share the same flags:
| Flag | Required? | Notes |
|---|---|---|
--title <str> | yes | Short descriptive title (becomes the H2 heading) |
--platform <plat> | no | android | ios | shared | kmp | flutter | react-native |
--area <str> | no | Free-form (e.g. firebase_auth, dependency_injection, datastore) |
--status <s> | no | active (default) | temporary | deprecated |
--review-after YYYY-MM-DD | no | Mostly meaningful for temporary status |
--files a,b,c | no | Comma-separated repo-relative paths the entry refers to |
--body <md> | no | Markdown body. If omitted, the command reads stdin (handy for piping multi-line content) |
Type label mapping (visible in the rendered entry):
decision → architecture_decisionbugfix + temporary → platform_workaroundbugfix + active/deprecated → bug_fixtesting → testing_patternGuard: every save errors out if .mobiai/brain/config.json is missing. The CLI does NOT auto-init the brain — it suggests mobiai brain init and exits non-zero. When invoking from another skill, check the file first and skip silently if absent.
mobiai brain context (or read .mobiai/brain/memories/*.md directly) and respect what's there.status: active decisions. Treat them as project rules.status: temporary workarounds as provisional. They are not permanent decisions; do not promote them to CLAUDE.md.CLAUDE.md holds stable rules: architecture, commands, conventions..env, GoogleService-Info.plist, google-services.json) and refuses to read their contents. If you're about to write a memory, do the same: paths and behavior, not credentials.<repo>/.mobiai/brain/
├── config.json # version, project_name, project_type, platforms, rules
├── scan.json # last scan: stack, integrations, CI/CD, warnings
└── memories/
├── decisions.md
├── bugfixes.md
├── testing.md
├── integrations.md
└── releases.md
Memory entries are Markdown sections. Recommended shape (also what Phase 2 save will produce):
## <Title>
- id: <slug>
- type: architecture_decision | platform_workaround | testing_pattern | integration_note
- status: active | temporary | deprecated
- platform: android | ios | shared | flutter | react-native
- area: <free-form>
- date: <ISO date>
- review_after: <ISO date> (optional, for temporary entries)
### Decision / Problem / Pattern
...
### Reason / Root Cause / Solution
...
### Files
- path/to/file
CLAUDE.md/AGENTS.md/GEMINI.md, not a replacement.scan.json is older than the user's last large refactor, suggest re-running mobiai brain scan before relying on it.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arisguimera/mobiai-core --plugin core2 plugins ship this exact skill · first indexed Jul 20, 2026
22 skills in this plugin
/mobiai-analyze-crashUse when the user shares a crash from any source (stack trace, log, screenshot, error description) and wants to find the root cause and fix it./mobiai-crashlyticsUse when the user shares a Firebase Crashlytics crash link, crash ID, or asks to investigate a Crashlytics issue in depth./mobiai-create-prYOU MUST use this before ANY git push, branch push to remote, merge, or PR creation — regardless of phrasing or language. Covers all irreversible integration actions (committing, pushing, opening a PR, shipping finished work). Also triggers proactively after a fix when the user signals completion (still ask before pushing). Works with any git hosting provider./mobiai-fix-issueYou MUST use this before starting any bug fix from a ticket or issue, OR when re-opening a ticket whose previous fix attempt didn't work (user shares a commit SHA and says 'no anda' / 'didn't fix it' / 'still broken'). Fetch, understand, investigate root cause, apply the fix with tests, and verify. For small line-level fixes, runs autonomously end-to-end and gates only before push. For complex changes, gates at each phase boundary./mobiai-graphUse when the user asks about code impact, call graph, callers/callees, semantic exploration of the mobile codebase, or 'where is X used'. Routes the agent to query MobiAI Graph (mobiai graph search/callers/context) instead of grep/read. Pre-flight checks that .mobiai/graph/index.json exists; if not, suggests `mobiai graph init` without running it./mobiai-mobile-brainstormingYou MUST use this before any creative mobile work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.Other plugins' skills for the same job