← Back to Skills Marketplace
louiseleven

harmonyOS developer

by LouisEleven · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
427
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install harmonyos
Description
Develop ArkTS apps with HarmonyOS SDK using ArkUI components, manage state, handle navigation, network, storage, permissions, and app signing.
README (SKILL.md)

HarmonyOS Developer Skills

Core Rules

  • Use .equals() for string comparison, not ==
  • HarmonyOS uses ArkTS/TypeScript
  • UI built with ArkUI framework
  • App signing requires certificate configuration

Development Environment

  • IDE: DevEco Studio
  • Language: ArkTS (TypeScript superset)
  • SDK: HarmonyOS SDK
  • API: HarmonyOS Next API

ArkUI Basics

Components

// Basic component
@Entry
@Component
struct Index {
  @State message: string = 'Hello World'

  build() {
    Column() {
      Text(this.message)
        .fontSize(50)
        .fontWeight(FontWeight.Bold)
    }
    .alignItems(HorizontalAlign.Center)
    .width('100%')
    .height('100%')
  }
}

State Management

// @State - Component internal state
@State count: number = 0

// @Prop - Parent component prop
@Prop message: string

// @Link - Two-way binding
@Link childCount: number

// @Observed + @ObjectLink - Deep observation
@Observed
class Person {
  name: string = ''
  age: number = 0
}

@ObjectLink person: Person

Lifecycle

// Component lifecycle
aboutToAppear() {}    // About to display
onDidBuild() {}       // Build complete
aboutToDisappear() {} // About to destroy

Common Components

  • Text - Text display
  • Image - Image display
  • Button - Interactive button
  • Column/Row - Layout containers
  • List - Scrollable list
  • Grid - Grid layout
  • Stack - Stacked layout
  • Swiper - Carousel
  • TabContent - Tab pages

Layouts

// Linear layout
Column() { }  // Vertical
Row() { }     // Horizontal

// Flex layout
Flex() { 
  direction: FlexDirection.Row 
}

// Grid layout
Grid() { 
  columnsTemplate: '1fr 1fr 1fr' 
}

// Stack
Stack() { }

Routing

import router from '@ohos.router'

// Navigate
router.pushUrl('pages/Detail')

// Go back
router.back()

// With params
router.pushUrl({
  url: 'pages/Detail',
  params: { id: 123 }
})

// Get params
const params = router.getParams()

Network Requests

import http from '@ohos.net.http'

let httpRequest = http.createHttp()
httpRequest.request(
  'https://api.example.com/data',
  {
    method: http.RequestMethod.GET,
    header: { 'Content-Type': 'application/json' }
  },
  (err, data) => {
    if (!err) {
      console.log(JSON.stringify(data.result))
    }
  }
)

Local Storage

import preferences from '@ohos.data.preferences'

// Write
let preferences = await preferences.getPreferences(context, 'myPrefs')
await preferences.put('username', 'tom')
await preferences.flush()

// Read
let value = await preferences.get('username', 'default')

Permissions

import abilityAccessCtrl from '@ohos.abilityAccessCtrl'

// Declare in module.json5
// "requestPermissions": [
//   { "name": "ohos.permission.INTERNET" }
// ]

// Request at runtime
let atManager = abilityAccessCtrl.createAtManager()
atManager.requestPermissionsFromUser(context, ['ohos.permission.INTERNET'])

Common Permissions

  • ohos.permission.INTERNET - Network access
  • ohos.permission.GET_NETWORK_INFO - Network status
  • ohos.permission.CAMERA - Camera access
  • ohos.permission.WRITE_MEDIA - Media write
  • ohos.permission.READ_MEDIA - Media read

Build & Signing

  1. DevEco Studio → Build → Build Hap
  2. Configure signing in Project Structure → Signing Configs
  3. Requires .p12 certificate and .cer public key
  4. Use debug signing for development, release for production

Quick Reference

Need Solution
State management @State, @Prop, @Link, @Observed
Lists List + ListItem
Network @ohos.net.http
Storage @ohos.data.preferences
Routing router.pushUrl()
Toast promptAction.showToast()
Dialog dialog.showDialog()

Learning Resources

Usage Guidance
This skill is a text-only developer guide and appears coherent for HarmonyOS/ArkTS development. Before using: (1) confirm you trust the skill/source since source/homepage are unknown; (2) never paste real private keys or .p12 passphrases into public chats — keep signing certificates private and use official DevEco tooling; (3) when following network examples, replace placeholder URLs with trusted endpoints; (4) if the skill is later updated to include an install script or code files, re-evaluate for downloads, unexpected URLs, or requests for credentials.
Capability Analysis
Type: OpenClaw Skill Name: harmonyos Version: 1.0.0 The skill bundle contains standard metadata and a comprehensive Markdown document (`SKILL.md`) detailing HarmonyOS development concepts, code examples, and official resources. There are no instructions for the AI agent to perform unauthorized actions, exfiltrate data, establish persistence, or engage in any other malicious behavior. The network and storage code examples are illustrative and use generic placeholders, not targeting sensitive data or external malicious endpoints. No prompt injection attempts or obfuscation were detected.
Capability Assessment
Purpose & Capability
The name and description claim HarmonyOS/ArkTS development guidance; the SKILL.md contains ArkUI components, state management, routing, network, storage, permissions, and signing instructions — all expected for this purpose. The skill requests no binaries, environment variables, or installs that would be out-of-scope. Note: the skill's source/homepage are unknown, but the content itself matches the stated purpose.
Instruction Scope
The instructions are limited to development guidance (code samples, SDK APIs, permission declarations, signing steps). They do not instruct the agent to read arbitrary host files, access unrelated environment variables, or transmit sensitive agent data to external endpoints. Network examples use a placeholder domain (api.example.com).
Install Mechanism
There is no install specification and no code files — this is instruction-only, so nothing is written to disk or fetched at install time. That is the lowest-risk install profile.
Credentials
The skill declares no required environment variables, credentials, or config paths. The SKILL.md references typical development artifacts (module.json5, .p12 signing certificate) that are expected for app signing and are proportional to the described tasks.
Persistence & Privilege
always is false and disable-model-invocation is false (normal). The skill does not request persistent system presence or modify other skills' configuration. As an instruction-only skill it has no privileged install-time behavior.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install harmonyos
  3. After installation, invoke the skill by name or use /harmonyos
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
HarmonyOS Developer Skills A comprehensive skill set for building HarmonyOS applications using ArkTS and ArkUI. Topics covered: - Development environment setup (DevEco Studio, SDK) - ArkUI components and layouts (Text, Image, Button, Column, Row, List, Grid, etc.) - State management (@State, @Prop, @Link, @Observed) - Component lifecycle - Routing and navigation - Network requests (@ohos.net.http) - Local storage (@ohos.data.preferences) - Permissions and user authorization - Build and signing configuration Perfect for developing apps for HarmonyOS Next and OpenHarmony devices.
Metadata
Slug harmonyos
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is harmonyOS developer?

Develop ArkTS apps with HarmonyOS SDK using ArkUI components, manage state, handle navigation, network, storage, permissions, and app signing. It is an AI Agent Skill for Claude Code / OpenClaw, with 427 downloads so far.

How do I install harmonyOS developer?

Run "/install harmonyos" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is harmonyOS developer free?

Yes, harmonyOS developer is completely free (open-source). You can download, install and use it at no cost.

Which platforms does harmonyOS developer support?

harmonyOS developer is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created harmonyOS developer?

It is built and maintained by LouisEleven (@louiseleven); the current version is v1.0.0.

💬 Comments