Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →HarmonyOS ArkTS rules for components, state, resources, layout, lifecycle, and accessibility
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -19% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 13% | 0% |
| case-15 | ✓→✓ | = Same ✓ | -31% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -2% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 17% | 0% |
HarmonyOS ArkTS rules for components, state, resources, layout, lifecycle, and accessibility
Synced from https://github.com/PatrickJS/awesome-cursorrules/tree/main/rules/harmony-arkts.mdc.
@Component for component definitions and PascalCase for component structs.build().build() last and keep it focused on UI composition.@State for component-owned state.@Prop for parent-to-child data.@Link only for intentional two-way binding.Column, Row, Stack, List, and other ArkUI primitives intentionally.$r() for app resources.build().console.log calls in production code.Other measured skills in the registry, with their headline benchmark lift.