[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BT08YC4N7YZHNHSSC43H94":3,"skill-same:01M7BT08YC4N7YZHNHSSC43H94":60},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7BT08YC4N7YZHNHSSC43H94","compose-state-and-effects",null,"Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders, LaunchedEffect, DisposableEffect, SideEffect, Flow collection, navigation, snackbar, analytics, or focus requests.","maomaochong-ai\u002Fopen-astravia","maomaochong-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F321062662?v=4","01M7BSZW37METG7QR91AW0JK66","爱笑的毛毛虫","01M7BSZW3TNQXX3HYZF7XTQS8Y",53,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcompose-state-and-effects\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: compose-state-and-effects\ndescription: Use when writing or reviewing Jetpack Compose state ownership, remember state, state hoisting, screen state holders, LaunchedEffect, DisposableEffect, SideEffect, Flow collection, navigation, snackbar, analytics, or focus requests.\n---\n\n# Compose state and effects\n\n## Core principle\n\nGive every piece of UI state one lowest responsible owner, then run imperative\nwork through the effect whose lifecycle follows that owner. Composition renders;\nstate and effects make rendering change safely.\n\nA screen-ownership review is incomplete until it names the plain, previewable\ncontent composable that receives immutable state and event callbacks separately\nfrom app wiring and composition-owned runtime objects.\n\n## Procedure\n\n1. Establish the requested scope and visible behavioral requirements. Treat an\n   ownership change as a finding only when code or task evidence shows a\n   lifecycle, testability, business, or coordination need.\n2. Inventory mutable UI state, app state, event streams, app dependencies, and\n   imperative work in the affected screen or component.\n3. Place each state value at its lowest necessary owner: local UI state,\n   hoisted state, a plain UI state holder, or a screen state holder.\n4. For a screen boundary, keep durable data and intents in the wiring owner,\n   Compose runtime objects in composition or a plain UI state holder, and\n   rendering in a previewable content composable that takes immutable state\n   and callbacks. Read [State hoisting](references\u002Fstate-hoisting.md) for the\n   implementation shape; naming only state and intents is not that boundary.\n   Keep this content callable with sample state and callbacks; an `@Preview`\n   wrapper is optional and is not required for the state-driven boundary.\n   Before adding it, confirm the module declares its tooling; do not assume\n   Compose runtime or UI dependencies provide it. Respect the task's file\n   scope: do not add tooling or change build files unless authorized. If\n   Preview tooling is needed but unavailable within scope, omit the wrapper\n   and report the setup gap.\n5. Choose an effect API whose lifecycle matches the work, and key it by the\n   semantic input that should restart or dispose it.\n6. Load the focused reference for every material concern below. Do not use a\n   reference merely because its topic is adjacent.\n7. Route frame-rate reads, cross-phase back-writing, and\n   `@ReadOnlyComposable` contracts to [Compose performance](..\u002Fcompose-performance\u002FSKILL.md).\n   For that contract, distinguish a read of snapshot `State.value` from an\n   operation that changes the composer; the state read alone is not a violation.\n8. Before responding to a screen-ownership review, verify all three screen\n   seams in step 4 when visible code needs them.\n9. Finish when every state value has one owner, every effect has a justified\n   lifecycle and key, and the UI can be previewed and tested without app\n   dependencies. For review-only work, report no change when no evidence-backed\n   issue remains; do not invent product requirements.\n\n## Topic router\n\n| Signal | Read |\n|---|---|\n| Bare local `var`, `remember { mutableStateOf(...) }`, state lists\u002Fmaps, or reset state | [Local state](references\u002Flocal-state.md) |\n| State shared by siblings, UI state holders, ViewModel\u002Fcomponent wiring, or previewable screen boundaries | [State hoisting](references\u002Fstate-hoisting.md) |\n| `LaunchedEffect`, `DisposableEffect`, `SideEffect`, `snapshotFlow`, `rememberCoroutineScope`, `rememberUpdatedState`, `produceState`, imperative `requestFocus`, callbacks, event Flow collection, snackbar, navigation, or analytics | [Side effects](references\u002Fside-effects.md) |\n| Focus ownership and keyboard\u002FTV\u002FD-pad behavior | [Compose focus navigation](..\u002Fcompose-focus-navigation\u002FSKILL.md) |\n| Tests or previews for the resulting UI contract | [Compose UI testing patterns](..\u002Fcompose-ui-testing-patterns\u002FSKILL.md) |\n","# Compose state and effects\n\n## Core principle\n\nGive every piece of UI state one lowest responsible owner, then run imperative\nwork through the effect whose lifecycle follows that owner. Composition renders;\nstate and effects make rendering change safely.\n\nA screen-ownership review is incomplete until it names the plain, previewable\ncontent composable that receives immutable state and event callbacks separately\nfrom app wiring and composition-owned runtime objects.\n\n## Procedure\n\n1. Establish the requested scope and visible behavioral requirements. Treat an\n   ownership change as a finding only when code or task evidence shows a\n   lifecycle, testability, business, or coordination need.\n2. Inventory mutable UI state, app state, event streams, app dependencies, and\n   imperative work in the affected screen or component.\n3. Place each state value at its lowest necessary owner: local UI state,\n   hoisted state, a plain UI state holder, or a screen state holder.\n4. For a screen boundary, keep durable data and intents in the wiring owner,\n   Compose runtime objects in composition or a plain UI state holder, and\n   rendering in a previewable content composable that takes immutable state\n   and callbacks. Read [State hoisting](references\u002Fstate-hoisting.md) for the\n   implementation shape; naming only state and intents is not that boundary.\n   Keep this content callable with sample state and callbacks; an `@Preview`\n   wrapper is optional and is not required for the state-driven boundary.\n   Before adding it, confirm the module declares its tooling; do not assume\n   Compose runtime or UI dependencies provide it. Respect the task's file\n   scope: do not add tooling or change build files unless authorized. If\n   Preview tooling is needed but unavailable within scope, omit the wrapper\n   and report the setup gap.\n5. Choose an effect API whose lifecycle matches the work, and key it by the\n   semantic input that should restart or dispose it.\n6. Load the focused reference for every material concern below. Do not use a\n   reference merely because its topic is adjacent.\n7. Route frame-rate reads, cross-phase back-writing, and\n   `@ReadOnlyComposable` contracts to [Compose performance](..\u002Fcompose-performance\u002FSKILL.md).\n   For that contract, distinguish a read of snapshot `State.value` from an\n   operation that changes the composer; the state read alone is not a violation.\n8. Before responding to a screen-ownership review, verify all three screen\n   seams in step 4 when visible code needs them.\n9. Finish when every state value has one owner, every effect has a justified\n   lifecycle and key, and the UI can be previewed and tested without app\n   dependencies. For review-only work, report no change when no evidence-backed\n   issue remains; do not invent product requirements.\n\n## Topic router\n\n| Signal | Read |\n|---|---|\n| Bare local `var`, `remember { mutableStateOf(...) }`, state lists\u002Fmaps, or reset state | [Local state](references\u002Flocal-state.md) |\n| State shared by siblings, UI state holders, ViewModel\u002Fcomponent wiring, or previewable screen boundaries | [State hoisting](references\u002Fstate-hoisting.md) |\n| `LaunchedEffect`, `DisposableEffect`, `SideEffect`, `snapshotFlow`, `rememberCoroutineScope`, `rememberUpdatedState`, `produceState`, imperative `requestFocus`, callbacks, event Flow collection, snackbar, navigation, or analytics | [Side effects](references\u002Fside-effects.md) |\n| Focus ownership and keyboard\u002FTV\u002FD-pad behavior | [Compose focus navigation](..\u002Fcompose-focus-navigation\u002FSKILL.md) |\n| Tests or previews for the resulting UI contract | [Compose UI testing patterns](..\u002Fcompose-ui-testing-patterns\u002FSKILL.md) |\n",{"name":5,"description":7},"main","a22aa035efb630d8fdf1b71cbf2e8a0bf351f978",".agents\u002Fskills\u002Fcompose-state-and-effects",25,"https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia","https:\u002F\u002Fwww.astravia.dev","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai","2026-11-15 05:40:14",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add maomaochong-ai\u002Fopen-astravia --skill compose-state-and-effects",{"tool":38,"command":39},"bunx","bunx skills add maomaochong-ai\u002Fopen-astravia --skill compose-state-and-effects",{"tool":41,"command":42},"pnpm","pnpm dlx skills add maomaochong-ai\u002Fopen-astravia --skill compose-state-and-effects","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcompose-state-and-effects\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Flocal-state.md","REFERENCE","参考文档",1854,"https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcompose-state-and-effects\u002Freferences\u002Flocal-state.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fside-effects.md",2692,"https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcompose-state-and-effects\u002Freferences\u002Fside-effects.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fstate-hoisting.md",2984,"https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcompose-state-and-effects\u002Freferences\u002Fstate-hoisting.md",[61,68,75,82,89,96],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7BT4WM3HQV4NP6DD20CN5KB","publish-ability","Publish a skill, MCP server, plugin, or bundle to the Astravia ability marketplace. Use when the user asks to upload\u002Fpublish\u002Fsubmit an ability, put a plugin on the marketplace, share a skill with other users, or migrate an existing package into Astravia.","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fskill-presets\u002Fpublish-ability\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7BT4S0Z1PAVR1F8H0SYGNVW","install-ability","在本机 Astravia 中安装能力——插件（plugin）、Skill 与 MCP 服务器。用户说「装一个插件 \u002F install plugin \u002F 从能力市场安装 \u002F 加一个 MCP server \u002F 配置 MCP \u002F 装个 skill」，或插件装完没生效、需要 reload、pending 版本没应用时使用。不用于安装 npm 依赖、IDE 插件、浏览器扩展，也不用于开发插件（那是 plugin-workbench）或创作 Skill（那是 create-skill）。","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fskill-presets\u002Finstall-ability\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7BT4NRTKXF1T2DXNH0AMJ18","create-skill","Create or update Astravia-compatible Agent Skills. Use when the user asks to create a skill, add a SKILL.md workflow, register a skill in skills-manifest.json, package a skill in a Astravia plugin, or add a built-in Astravia skill preset.","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fskill-presets\u002Fcreate-skill\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7BT4JK6VQ1RQS4JD5DPCK0H","remotion-video","Create, modify, and render Remotion React video projects in the current Astravia conversation workspace. Use for requests to make programmatic videos, motion graphics, animated explainers, social videos, data videos, or to edit an existing Remotion composition and export it as MP4.","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fplugins\u002Fpresets\u002Fremotion-renderer\u002Fagent\u002Fskills\u002Fremotion-video\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7BT4DQWKHVKPB9HKXJT5GJP","plugin-workbench","Create, implement, build, pack, install, reload, and manage Astravia desktop plugins for non-developers. Use whenever the user wants a Astravia plugin, plugin scaffolding, apply a `.astraviapkg` package to Astravia, edit plugin.json name\u002FguidingWords, or debug plugin load\u002Finstall. Requires the Plugin Workbench input-bar toggle (hard isolation). The plugin handbook ships inside the project's own @astravia-org\u002Fplugin-sdk; locate it with the bundled CLI's docs command.","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fplugins\u002Fpresets\u002Fplugin-workbench\u002Fagent\u002Fskills\u002Fplugin-workbench\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7BT49Y9H2D5B01JEXA65JFW","review-content-quality","Evaluate generated images and videos against their creative brief, delivery requirements, continuity rules, and technical quality, then propose the smallest evidence-based repair. Use when the user asks whether an output is good, requests critique or selection among variants, reports weak or broken media, or before expanding an approved direction into more assets.","https:\u002F\u002Fgithub.com\u002Fmaomaochong-ai\u002Fopen-astravia\u002Fblob\u002Fmain\u002Fpackages\u002Fplugins\u002Fpresets\u002Fcontent-creation\u002Fagent\u002Fskills\u002Freview-content-quality\u002FSKILL.md",[],[]]