arkts

ArkTS Language Specification. ArkTS is a statically-typed programming language developed by Huawei for HarmonyOS, extending TypeScript with features from Java and Kotlin. Use for ArkTS syntax, types, classes, functions, and language features.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "arkts" with this command: npx skills add aresbit/arkts-agent-skill/aresbit-arkts-agent-skill-arkts

Arkts Skill

Comprehensive assistance with arkts development, generated from official documentation.

When to Use This Skill

This skill should be triggered when:

  • Working with arkts
  • Asking about arkts features or APIs
  • Implementing arkts solutions
  • Debugging arkts code
  • Learning arkts best practices

Quick Reference

Common Patterns

Pattern 1: Parentheses in types (where a type is a combination of array, function, or union types) are used to specify the required type structure. Without parentheses, the symbol ‘|’ that constructs a union type has the lowest precedence as presented in the following example:

|

Pattern 2: A compile-time error occurs if typeReference is not a class or interface type. The semantics of the keyof type is presented in the following example:

1 class A {
2    field: number
3    method() {}
4 }
5 type KeysOfA = keyof A // "field" | "method"
6 let a_keys: KeysOfA = "field" // OK
7 a_keys = "any string different from field or method"
8   // Compile-time error: invalid value for the type KeysOfA

Example Code Patterns

Example 1 (javascript):

1 let b: boolean  // using primitive value type name
2 let n: number   // using primitive value type name
3 let o: Object   // using predefined class type name
4 let a: number[] // using array type

Example 2 (javascript):

1 let b: boolean  // using primitive value type name
2 let n: number   // using primitive value type name
3 let o: Object   // using predefined class type name
4 let a: number[] // using array type

Example 3 (javascript):

1 let b: boolean  // using primitive value type name
2 let n: number   // using primitive value type name
3 let o: Object   // using predefined class type name
4 let a: number[] // using array type

Reference Files

This skill includes comprehensive documentation in references/:

  • introduction.md - Introduction documentation
  • language_basics.md - Language Basics documentation
  • modules.md - Modules documentation
  • other.md - Other documentation
  • type_system.md - Type System documentation

Use view to read specific reference files when detailed information is needed.

Working with This Skill

For Beginners

Start with the getting_started or tutorials reference files for foundational concepts.

For Specific Features

Use the appropriate category reference file (api, guides, etc.) for detailed information.

For Code Examples

The quick reference section above contains common patterns extracted from the official docs.

Resources

references/

Organized documentation extracted from official sources. These files contain:

  • Detailed explanations
  • Code examples with language annotations
  • Links to original documentation
  • Table of contents for quick navigation

scripts/

Add helper scripts here for common automation tasks.

assets/

Add templates, boilerplate, or example projects here.

Notes

  • This skill was automatically generated from official documentation
  • Reference files preserve the structure and examples from source docs
  • Code examples include language detection for better syntax highlighting
  • Quick reference patterns are extracted from common usage examples in the docs

Updating

To refresh this skill with updated documentation:

  1. Re-run the scraper with the same configuration
  2. The skill will be rebuilt with the latest information

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated