arkts-coding-standard — community arkts-coding-standard, app-StrayPet, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for HarmonyOS Development Agents requiring strict ArkTS coding standards and performance optimizations. ArkTS 编码标准提供了写出正确的 ArkTS 代码的指南,重点关注严格类型和性能优化

imansmallapple imansmallapple
[0]
[0]
Updated: 2/20/2026

Agent Capability Analysis

The arkts-coding-standard skill by imansmallapple is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for HarmonyOS Development Agents requiring strict ArkTS coding standards and performance optimizations.

Core Value

Empowers agents to enforce strict typing and validate ArkTS code, preventing the use of forbidden types like 'any' and 'unknown', and promoting best practices for HarmonyOS development using protocols like TypeScript.

Capabilities Granted for arkts-coding-standard

Validating ArkTS code for HarmonyOS development
Enforcing strict typing to prevent 'any' and 'unknown' types
Optimizing ArkTS code for better performance on HarmonyOS

! Prerequisites & Limits

  • Requires TypeScript support
  • HarmonyOS development only
  • Restricts the use of 'any' and 'unknown' types
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

arkts-coding-standard

Install arkts-coding-standard, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

ArkTS Coding Standards

This skill provides guidelines and validation for writing correct ArkTS code, focusing on strict typing and performance optimizations required for HarmonyOS development.

❌ Illegal / Discouraged Practices

The following patterns are forbidden or highly discouraged in ArkTS:

  1. Any/Unknown Types:

    typescript
    1let x: any = 1; // ❌ Not allowed: `any` and `unknown` are forbidden.
  2. Object Literal Types:

    typescript
    1type Inline = { value: number }; // ❌ Don't declare object-literal-based types.
  3. Fresh Object Literals (Untyped):

    typescript
    1const bad: Inline = { value: 1 }; // ❌ Fresh object literal without declared class/interface instance.
  4. Runtime Shape Changes:

    typescript
    1bad.newProp = "later"; // ❌ Changing object shape (adding properties) at runtime is forbidden.
  5. Implicit Object Shapes:

    typescript
    1const obj = { 2 value: 1, 3 double() { 4 return this.value + this.value; // ❌ `this` in a non-method context is disallowed. 5 } 6}; // ❌ Even with an object literal, it must match an explicit class/interface.
  6. Type Mismatches:

    typescript
    1bad.value = "7"; // ❌ Assigning string to a number-typed field fails.
  7. Implicit Coercion:

    typescript
    1console.info(String(+bad.value)); // ❌ Unary `+` on a string for coercion is not permitted.

✅ Correct Practices

Use explicit types, classes, and safe conversions:

  1. Explicit Numeric Parsing:

    typescript
    1const s: string = "7"; 2// Use explicit parsing methods instead of unary + 3const n: number = Number.parseInt(s);
  2. Classes and Interfaces: Always define explicit classes or interfaces for your data structures.

    typescript
    1class Doubler { 2 value: number; 3 constructor(value: number) { 4 this.value = value; 5 } 6} 7 8let obj = new Doubler(n);

Summary of Rules

  • Static Typing: ArkTS is statically typed. Avoid dynamic features like any.
  • Fixed Layout: Object layout is fixed at compile time. You cannot add/remove properties at runtime.
  • Explicit Types: Define types explicitly using class or interface. Avoid anonymous object types.
  • Strict Safety: No implicit type coercion. Use standard library functions (e.g., Number.parseInt) for conversions.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is arkts-coding-standard?

Perfect for HarmonyOS Development Agents requiring strict ArkTS coding standards and performance optimizations. ArkTS 编码标准提供了写出正确的 ArkTS 代码的指南,重点关注严格类型和性能优化

How do I install arkts-coding-standard?

Run the command: npx killer-skills add imansmallapple/app-StrayPet. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for arkts-coding-standard?

Key use cases include: Validating ArkTS code for HarmonyOS development, Enforcing strict typing to prevent 'any' and 'unknown' types, Optimizing ArkTS code for better performance on HarmonyOS.

Which IDEs are compatible with arkts-coding-standard?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for arkts-coding-standard?

Requires TypeScript support. HarmonyOS development only. Restricts the use of 'any' and 'unknown' types.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add imansmallapple/app-StrayPet. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use arkts-coding-standard immediately in the current project.

Related Skills

Looking for an alternative to arkts-coding-standard or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI