Find Card { OneChild() } patterns
ProprietaryA Card { OneChild() } allocates a layout node and an elevation surface for exactly one composable. If the child already styles itself (Modifier.background/Modifier.shadow), the Card is decorative duplication — pull the styling into the child's Modifier chain.
org. openrewrite. kotlin. compose. FindCardWithSingleChild$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. compose. FindCardWithSingleChild$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.