AcademyRulesDevelopment

HarmonyOS ArkTS Rules for Cursor

Mobile development teams building HarmonyOS apps who want Cursor to generate ArkTS components in a consistent style.

  • Recommendedour rating
  • 40,892repository stars
  • CC0-1.0licence
  • 4 months agolast update
mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/harmony-arkts.mdc -o .cursor/rules/harmony-arkts.mdc
harmony-arkts.mdc

Loading the file...

What it does

A Cursor rules file for writing HarmonyOS apps in ArkTS. It covers component structure, state decorators, layout and styling, event handling, lifecycle hooks, and the use of app resources, so generated components follow one pattern.

Use cases

  1. 01Choose between State, Prop and Link for component data
  2. 02Split a large build method into smaller components
  3. 03Handle async errors and show them to the user

Questions about
HarmonyOS ArkTS Rules for Cursor.

What is HarmonyOS ArkTS Rules for Cursor used for?

Mobile development teams building HarmonyOS apps who want Cursor to generate ArkTS components in a consistent style. A Cursor rules file for writing HarmonyOS apps in ArkTS. It covers component structure, state decorators, layout and styling, event handling, lifecycle hooks, and the use of app resources, so generated components follow one pattern.

How do I install HarmonyOS ArkTS Rules for Cursor?

Run this in your terminal: mkdir -p .cursor/rules && curl -fsSL https://raw.githubusercontent.com/PatrickJS/awesome-cursorrules/main/rules/harmony-arkts.mdc -o .cursor/rules/harmony-arkts.mdc

Is HarmonyOS ArkTS Rules for Cursor open source?

Yes. The code is on GitHub (PatrickJS/awesome-cursorrules) under the CC0-1.0 licence.

Is HarmonyOS ArkTS Rules for Cursor safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.