[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6JQ9STWE7GVSQSBWBCZVD3D":3,"skill-same:01M6JQ9STWE7GVSQSBWBCZVD3D":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6JQ9STWE7GVSQSBWBCZVD3D","mobile-architecture",null,"Design mobile app architecture — native (Swift\u002FKotlin) vs cross-platform (React Native\u002FFlutter) selection, navigation and deep linking, state management, offline-first design and data sync, local persistence, push notifications, platform constraints (background work, battery, permissions). Triggers: mobile app architecture, iOS app, Android app, React Native or Flutter, offline first, data sync, mobile state management, deep linking, push notifications, app structure. Web SPA component architecture → frontend-architecture.","SWEStash\u002Fswe-workflow-skills","SWEStash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F272895713?v=4","01M6JNRQ84JN5WFK9S1V5H4G46","SWE Stash","01M6JNRQCM45X8WPNHY30TSAB0",1,"MIT","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmobile-architecture\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"mobile","mobile architecture","architecture","selection","design","linking","native","app","spa","deep","local","structure","component","frontend","react native","work","notifications","permissions","component architecture","react","2026-11-10 10:12:30",false,"---\nname: mobile-architecture\ndescription: \"Design mobile app architecture — native (Swift\u002FKotlin) vs cross-platform (React Native\u002FFlutter) selection, navigation and deep linking, state management, offline-first design and data sync, local persistence, push notifications, platform constraints (background work, battery, permissions). Triggers: mobile app architecture, iOS app, Android app, React Native or Flutter, offline first, data sync, mobile state management, deep linking, push notifications, app structure. Web SPA component architecture → frontend-architecture.\"\n---\n\n# Mobile Architecture\n\nDesign mobile apps around the constraints that make mobile different: the\nnetwork is intermittent, the OS kills your process whenever it likes, every\nrelease rides a store review you don't control, and yesterday's version keeps\nrunning on users' devices for months. Web assumptions imported unexamined\n(always-online, instant deploys, one running version) are where mobile\narchitectures go wrong. Boundary: `frontend-architecture` owns web SPA\ncomponent architecture; this skill owns apps that ship through app stores\n(shipping them: `mobile-release`).\n\n## Workflow\n\n### Step 1: Platform Strategy — the Costly-to-Reverse Decision\n\nNative (Swift\u002FKotlin), cross-platform (React Native\u002FFlutter), or web-wrapper —\ndecide from the actual drivers, not fashion: team skills (a JS team ships RN\nmonths before it ships Swift), how deep the platform integration runs (heavy\ncamera\u002FAR\u002Fbackground\u002Fwidgets favor native), performance sensitivity, and how\nmuch UI must feel platform-native vs brand-consistent. Cross-platform halves\nthe codebase, not the work — platform-specific edges remain. Record it as an\nADR (`architecture-design`) with the revisit trigger; migrating later is a\nrewrite.\n\n### Step 2: Structure and Navigation\n\nDefine the navigation graph early — mobile UI *is* navigation (stacks, tabs,\nmodals), and retrofitting it hurts. Design **deep links from day one**: every\nimportant screen gets an addressable route (push notifications, marketing\nlinks, and OS integrations all need them, and bolting them onto a\nnavigation-by-reference architecture later is painful). Modularize by feature,\nwith UI \u002F domain \u002F data layers inside each feature — build-time and ownership\nboth benefit.\n\n### Step 3: State and Data Layer\n\nUnidirectional data flow (whatever the platform flavor calls it) keeps\nlifecycle chaos manageable — the OS destroys and recreates screens, so state\nmust live above the view and **survive process death** (persist what matters;\nassume any screen can be killed and restored). Put a repository layer between\nUI and data sources so the UI never knows whether data came from cache,\ndatabase, or network — that boundary is where Step 4 lives.\n\n### Step 4: Offline and Sync — Decide, Don't Drift\n\nThe defining mobile decision. Choose explicitly per data domain:\n\n- **Online-only** (honest spinner + clear offline messaging) — legitimate for\n  real-time-only products; cheap; feels broken on the subway.\n- **Read cache** — local store serves last-known data, network refreshes;\n  right default for content\u002Fconsumption apps.\n- **Offline-first** — the local database is the source of truth the UI reads;\n  mutations queue and sync in the background. Best UX, and it buys you a\n  hard problem: **conflict resolution** (last-write-wins per field, merge\n  rules, or surface-to-user — pick per data type *before* building the sync).\n\nQueued mutations need idempotency keys (retries will happen) and visible\npending-state in the UI. Sync in delta batches, not full dumps — battery and\ndata plans are real constraints.\n\n### Step 5: Platform Integration Realities\n\n- **Push notifications**: design the token lifecycle and what each\n  notification deep-links to; push is delivery-best-effort, never the only\n  path to data.\n- **Background work**: both OSes ruthlessly limit it — design sync to make\n  progress in short foreground windows, treat background execution as a bonus.\n- **Permissions**: ask in context with a pre-prompt explaining why (a denied\n  permission is sticky and costly to win back).\n- **Secrets & storage**: tokens in Keychain\u002FKeystore, never in plain\n  preferences; the device is an untrusted environment (`threat-modeling` when\n  the data warrants it).\n\n### Step 6: Design for the Fleet You Can't Update\n\nUsers run old versions for months, so: **version your API contracts** with\ntolerance for old clients (`api-design` — additive changes only, server-side\ndefaults), gate risky features behind **remote config \u002F feature flags** (your\nonly instant off-switch once shipped — see `mobile-release` on the no-rollback\nreality), and plan a **forced-update mechanism** (minimum-supported-version\ncheck) *in the first release* — the release where you need it is too late to\nadd it.\n\n## Principles Applied\n\n- **The network is optional; the local store is the truth** — architectures\n  that assume connectivity degrade into spinners.\n- **Survive process death**: the OS is a chaos monkey you don't configure.\n- **Old versions live forever**: every contract and flag decision is made for\n  a fleet, not a deployment.\n\n## Cross-Skill References\n\n- `frontend-architecture` — the web SPA counterpart (state and component patterns overlap)\n- `mobile-release` — signing, store review, staged rollouts, hotfix reality\n- `api-design` — versioned, old-client-tolerant contracts\n- `architecture-design` — the platform-choice ADR\n- `ui-ux-design` \u002F `accessibility-design` — flows, states, and platform a11y\n- `performance-optimization` — startup time, jank, memory on constrained devices\n","# Mobile Architecture\n\nDesign mobile apps around the constraints that make mobile different: the\nnetwork is intermittent, the OS kills your process whenever it likes, every\nrelease rides a store review you don't control, and yesterday's version keeps\nrunning on users' devices for months. Web assumptions imported unexamined\n(always-online, instant deploys, one running version) are where mobile\narchitectures go wrong. Boundary: `frontend-architecture` owns web SPA\ncomponent architecture; this skill owns apps that ship through app stores\n(shipping them: `mobile-release`).\n\n## Workflow\n\n### Step 1: Platform Strategy — the Costly-to-Reverse Decision\n\nNative (Swift\u002FKotlin), cross-platform (React Native\u002FFlutter), or web-wrapper —\ndecide from the actual drivers, not fashion: team skills (a JS team ships RN\nmonths before it ships Swift), how deep the platform integration runs (heavy\ncamera\u002FAR\u002Fbackground\u002Fwidgets favor native), performance sensitivity, and how\nmuch UI must feel platform-native vs brand-consistent. Cross-platform halves\nthe codebase, not the work — platform-specific edges remain. Record it as an\nADR (`architecture-design`) with the revisit trigger; migrating later is a\nrewrite.\n\n### Step 2: Structure and Navigation\n\nDefine the navigation graph early — mobile UI *is* navigation (stacks, tabs,\nmodals), and retrofitting it hurts. Design **deep links from day one**: every\nimportant screen gets an addressable route (push notifications, marketing\nlinks, and OS integrations all need them, and bolting them onto a\nnavigation-by-reference architecture later is painful). Modularize by feature,\nwith UI \u002F domain \u002F data layers inside each feature — build-time and ownership\nboth benefit.\n\n### Step 3: State and Data Layer\n\nUnidirectional data flow (whatever the platform flavor calls it) keeps\nlifecycle chaos manageable — the OS destroys and recreates screens, so state\nmust live above the view and **survive process death** (persist what matters;\nassume any screen can be killed and restored). Put a repository layer between\nUI and data sources so the UI never knows whether data came from cache,\ndatabase, or network — that boundary is where Step 4 lives.\n\n### Step 4: Offline and Sync — Decide, Don't Drift\n\nThe defining mobile decision. Choose explicitly per data domain:\n\n- **Online-only** (honest spinner + clear offline messaging) — legitimate for\n  real-time-only products; cheap; feels broken on the subway.\n- **Read cache** — local store serves last-known data, network refreshes;\n  right default for content\u002Fconsumption apps.\n- **Offline-first** — the local database is the source of truth the UI reads;\n  mutations queue and sync in the background. Best UX, and it buys you a\n  hard problem: **conflict resolution** (last-write-wins per field, merge\n  rules, or surface-to-user — pick per data type *before* building the sync).\n\nQueued mutations need idempotency keys (retries will happen) and visible\npending-state in the UI. Sync in delta batches, not full dumps — battery and\ndata plans are real constraints.\n\n### Step 5: Platform Integration Realities\n\n- **Push notifications**: design the token lifecycle and what each\n  notification deep-links to; push is delivery-best-effort, never the only\n  path to data.\n- **Background work**: both OSes ruthlessly limit it — design sync to make\n  progress in short foreground windows, treat background execution as a bonus.\n- **Permissions**: ask in context with a pre-prompt explaining why (a denied\n  permission is sticky and costly to win back).\n- **Secrets & storage**: tokens in Keychain\u002FKeystore, never in plain\n  preferences; the device is an untrusted environment (`threat-modeling` when\n  the data warrants it).\n\n### Step 6: Design for the Fleet You Can't Update\n\nUsers run old versions for months, so: **version your API contracts** with\ntolerance for old clients (`api-design` — additive changes only, server-side\ndefaults), gate risky features behind **remote config \u002F feature flags** (your\nonly instant off-switch once shipped — see `mobile-release` on the no-rollback\nreality), and plan a **forced-update mechanism** (minimum-supported-version\ncheck) *in the first release* — the release where you need it is too late to\nadd it.\n\n## Principles Applied\n\n- **The network is optional; the local store is the truth** — architectures\n  that assume connectivity degrade into spinners.\n- **Survive process death**: the OS is a chaos monkey you don't configure.\n- **Old versions live forever**: every contract and flag decision is made for\n  a fleet, not a deployment.\n\n## Cross-Skill References\n\n- `frontend-architecture` — the web SPA counterpart (state and component patterns overlap)\n- `mobile-release` — signing, store review, staged rollouts, hotfix reality\n- `api-design` — versioned, old-client-tolerant contracts\n- `architecture-design` — the platform-choice ADR\n- `ui-ux-design` \u002F `accessibility-design` — flows, states, and platform a11y\n- `performance-optimization` — startup time, jank, memory on constrained devices\n",{"name":5,"description":7},"main","800dc9ad0ca2914d6ad15b8c5159d9b57bb104c2","skills\u002Fmobile-architecture","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills","https:\u002F\u002Fgithub.com\u002FSWEStash","A stash of things we felt like building","2026-11-12 00:14:33",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add SWEStash\u002Fswe-workflow-skills --skill mobile-architecture",{"tool":57,"command":58},"bunx","bunx skills add SWEStash\u002Fswe-workflow-skills --skill mobile-architecture",{"tool":60,"command":61},"pnpm","pnpm dlx skills add SWEStash\u002Fswe-workflow-skills --skill mobile-architecture","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmobile-architecture\u002FSKILL.md",true,[65],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002Fevals.json","REFERENCE","参考文档",5377,"https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmobile-architecture\u002Fevals\u002Fevals.json",[72,99,124,147,172,198],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":39},"01M6JQFADV3T1MS9V1BNZS1232","writing-skills","Use when authoring, editing, or reviewing a skill in this library — a new SKILL.md, one that under-triggers, or hardening an existing one. Covers description and listing-budget rules, frontmatter, progressive disclosure, the 3-eval rule, and pressure-testing against rationalizations.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwriting-skills\u002FSKILL.md",[],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"writing","writing skills","testing","eval","write","edit","Budget","authoring","new skill","library","frontmatter","editing","triggers","use","Existing","Rules","write a skill","when","listing","progressive disclosure",{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":39},"01M6JQF5DGMXPMQQVZBP8DH9SY","working-agreement","Define and validate how a multi-session project is run — where plans, status and decisions live, session routines, new work, milestone close. README\u002FCONTRIBUTING → project-documentation.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fworking-agreement\u002FSKILL.md",[],[106,107,108,109,110,111,34,112,113,114,115,116,117,118,119,120,121,122,91,123],"working agreement","project","definition of done","done","milestone","documentation","progress","how","contributing","close","run","sync","status","live","do","README","session","routines",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":39},"01M6JQF0SMRHN82RBSWMABC4J0","verification-before-completion","Evidence gate before any claim that work is done, fixed, passing, or deployed. Route here when a message declares the work finished or asks to commit, push, merge, ship, or close it out, including a brief sign-off, and before git-workflow or release-management act on it. Writing the commit message or PR text itself → git-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[131,132,133,134,135,136,79,137,109,138,139,140,34,141,115,142,143,144,145,146],"verification","verification before completion","brief","ready","fix","claim","workflow","commit","text","route","message","merge","release","git","act","ship",{"skillNo":148,"name":149,"nameZh":6,"description":150,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":151,"categories":152,"keywords":153,"publishedAt":39},"01M6JQEVGE9NJZ11DV60AE6VWC","ui-ux-design","Design user experiences from an engineer's perspective — user flows, wireframes, interaction patterns, responsive strategy, navigation, loading\u002Ferror\u002Fempty states. Triggers: design the UI, user flow, wireframe, how should this screen look, loading state, error state, empty state, responsive design, navigation, page layout, form design, mockup.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-ux-design\u002FSKILL.md",[],[23,154,155,156,157,158,159,160,161,162,163,164,113,165,166,167,168,169,170,171],"ux","ui","ui ux design","error","states","loading","flows","engineer","interaction","layout","responsive design","screen","flow","patterns","mockup","responsive","form","page",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":39},"01M6JQEN4HVFTZWQYWGTDS76K9","threat-modeling","Design-time security analysis of a system or feature before it's built — trust boundaries, attack surface, STRIDE per element, abuse cases, prioritized mitigations that become security requirements. Triggers: threat model, STRIDE, trust boundary, attack surface, what could go wrong security-wise, security design review, abuse case, secure this design, security requirements. Reviewing EXISTING code\u002Fconfig for vulnerabilities → security-audit; use this skill while the design is still on the whiteboard.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[179,180,181,182,183,184,23,185,186,187,188,189,190,191,192,193,194,195,196,197],"modeling","threat modeling","threat","model","time","element","whiteboard","security analysis","analysis","code","review","threat model","audit","security-audit","secure","config","go","security","trust",{"skillNo":199,"name":200,"nameZh":6,"description":201,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":202,"categories":203,"keywords":204,"publishedAt":39},"01M6JQEFT7VT3FQM16170EG9FW","test-suite-design","Design comprehensive test suites for existing code — strategy across unit\u002Fintegration\u002Fe2e, fixtures, factories, helpers. Triggers: add tests, write tests for, increase coverage, test this module, testing strategy, test plan, what tests do I need, test infrastructure, test helpers, this has no tests. Not for TDD — use tdd-workflow.","https:\u002F\u002Fgithub.com\u002FSWEStash\u002Fswe-workflow-skills\u002Fblob\u002Fmain\u002Fskills\u002Ftest-suite-design\u002FSKILL.md",[],[23,205,206,207,208,209,81,210,211,137,188,212,213,83,214,215,120,216,217,91],"test suite","test","test suite design","coverage","unit","write tests","testing strategy","across","plan","add","infrastructure","test plan","for"]