agentsclimarketplace

Arkts grammar standards

Skill noiseorigin/build-harmony-apps/skills/arkts-grammar-standards

Apply ArkTS syntax rules, static restrictions, TypeScript-to-ArkTS differences, Sendable constraints, and syntax-compliance review. Use when writing or reviewing ArkTS, explaining why syntax is accepted or rejected, porting TypeScript/JavaScript, or choosing a valid typed rewrite.From its SKILL.md

Install
npx -y skills add noiseorigin/build-harmony-apps --skill arkts-grammar-standards

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, as published. Nobody here has run it

ArkTS Grammar Standards

Prefer the installed compiler and current ArkTS specification over model memory. This skill adapts DevEco CodeGenie's separation between guide-oriented syntax, linter-derived restrictions, and TypeScript migration differences.

Read in this order as needed:

  1. references/basic-syntax.md for normal authoring.
  2. references/restrictions.md for forbidden/narrowed forms and Sendable.
  3. references/ts-diff.md for migration rewrites.

Source discipline

  • Label a rule as compiler evidence, official specification/guide, API documentation, project linter policy, or migration guidance.
  • Do not present a linter-derived rule as verbatim language specification.
  • Check the project's ArkTS/linter version before universal claims; restrictions evolve.
  • When code is available, prefer the exact diagnostic plus a minimal compiler-accepted rewrite.

Response or review shape

State the topic, source class, matching diagnostic/reference, why it applies, and the narrow rewrite. Build or run check_ets_files when the user asked for a code change rather than an explanation.

Boundaries

  • Keep syntax guidance separate from framework API availability.
  • Do not broaden a syntax fix into architecture or UI refactoring.
  • Avoid any, ESObject, unsafe assertions, or dynamic workarounds merely to silence a diagnostic.
  • Preserve runtime semantics while replacing unsupported TypeScript forms.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.