Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides building HarmonyOS NEXT apps with ArkTS, ArkUI, Stage model and distributed capabilities, following strict typing rules.
70% 96%+26 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 16 of 23 without it.
Write an ArkTS event handler function inside an ArkUI component that appends a newly selected tag string into an @State tags: string[] array state variable when a button is clicked.
Reassigns the array state using spread syntax or concat
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
any or dynamic typesThese rules are mandatory. Violating them means the skill is not working correctly.
ArkTS prohibits dynamic typing. Never use any, type assertions, or dynamic property access.
// ❌ FORBIDDEN: Dynamic types
let data: any = fetchData();
let obj: object = {};
obj['dynamicKey'] = value; // Dynamic property access
(someVar as SomeType).method(); // Type assertion
// ✅ REQUIRED: Strict typing
interface UserData {
id: string;
name: string;
}
let data: UserData = fetchData();
// Use Record for dynamic keys
let obj: Record<string, string> = {};
obj['key'] = value; // OK with Record type
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.