Agent SkillsOpenSwiftUIProject/OpenSwiftUI › openswiftui-test-authoring

openswiftui-test-authoring

GitHub

指导 OpenSwiftUI 测试文件的编写与审查,遵循共享约定并按类型(单元、兼容性等)调用对应指南。

.agents/skills/openswiftui-test-authoring/SKILL.md OpenSwiftUIProject/OpenSwiftUI

Trigger Scenarios

创建新的 OpenSwiftUI 测试文件 审查现有测试代码规范

Install

npx skills add OpenSwiftUIProject/OpenSwiftUI --skill openswiftui-test-authoring -g -y
More Options

Non-standard path

npx skills add https://github.com/OpenSwiftUIProject/OpenSwiftUI/tree/main/.agents/skills/openswiftui-test-authoring -g -y

Use without installing

npx skills use OpenSwiftUIProject/OpenSwiftUI@openswiftui-test-authoring

指定 Agent (Claude Code)

npx skills add OpenSwiftUIProject/OpenSwiftUI --skill openswiftui-test-authoring -a claude-code -g -y

安装 repo 全部 skill

npx skills add OpenSwiftUIProject/OpenSwiftUI --all -g -y

预览 repo 内 skill

npx skills add OpenSwiftUIProject/OpenSwiftUI --list

SKILL.md

Frontmatter
{
    "name": "openswiftui-test-authoring",
    "description": "Route OpenSwiftUI test authoring and review work to the appropriate test guide while applying shared test-file conventions. Use for unit, compatibility, symbol-dual, or UI tests."
}

OpenSwiftUI Test Authoring

Shared Conventions

  • Follow the organization and naming of the nearest tests in the same target.

  • Sort import declarations alphabetically by imported module name, preserving any attributes attached to each declaration.

  • Start each new Swift test file with this header, substituting the actual file name and the actual test target name:

    //
    //  <FileName.swift>
    //  <TestTargetName>
    
    

    Leave one blank line after the target name. Do not add a closing decorative // line, and do not copy a target name from an unrelated example.

Test-Type Guides

Read only the guide that matches the requested test type:

Version History

  • 0.20.1 Current 2026-08-28 11:47

Same Skill Collection

.agents/skills/openswiftui-pr-authoring/SKILL.md

Metadata

Files
0
Version
0.20.1
Hash
fb0be3e3
Indexed
2026-08-28 11:47

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 15:30
浙ICP备14020137号-1 $Carte des visiteurs$