Co-Pilot / 辅助式
更新于 24 days ago

arkts-agent-skill

Aaresbit
0.0k
aresbit/arkts-agent-skill
76
Agent 评分

💡 摘要

该技能为ArkTS开发提供全面的支持,包括语法、类型和最佳实践。

🎯 适合人群

ArkTS开发者学习ArkTS的软件工程师记录ArkTS的技术写作者学习编程语言的学生使用ArkTS的API开发者

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析低风险

风险:Low。建议检查:是否发起外网请求(SSRF/数据外发)。以最小权限运行,并在生产环境启用前审计代码与依赖。


name: arkts description: 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.

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
五维分析
清晰度8/10
创新性6/10
实用性9/10
完整性8/10
可维护性7/10
优缺点分析

优点

  • 全面的文档
  • 包含代码示例
  • 结构化以便于导航

缺点

  • 自动生成,可能缺乏深度
  • 仅限于ArkTS语言特性
  • 如果不刷新,可能会过时

相关技能

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

nuxt-skills

S
toolCo-Pilot / 辅助式
90/ 100

“这本质上是一份组织良好的小抄,能把你的 AI 助手变成一只 Nuxt 框架的复读机。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 aresbit.