返回顶部
a

app-intents-code-review应用意图审查

Reviews App Intents code for intent structure, entities, shortcuts, and parameters. Use when reviewing code with import AppIntents, @AppIntent, AppEntity, AppShortcutsProvider, or @Parameter.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.2.0
安全检测
已通过
131
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

app-intents-code-review

App Intents 代码审查

快速参考

问题类型参考文档
AppIntent 协议、perform()、返回类型references/intent-structure.md
AppEntity、EntityQuery、标识符
references/entities.md | | AppShortcutsProvider、短语、发现机制 | references/shortcuts.md | | @Parameter、验证、动态选项 | references/parameters.md |

审查清单

  • - [ ] 若访问 UI/主线程资源,perform() 需标记 @MainActor
  • [ ] perform() 在 30 秒超时内完成(无繁重下载/处理)
  • [ ] 自定义错误遵循 CustomLocalizedStringResourceConvertible
  • [ ] EntityQuery.entities(for:) 优雅处理缺失标识符
  • [ ] 如需 Siri 语音输入,使用 EntityStringQuery(而非普通 EntityQuery)
  • [ ] suggestedEntities() 为消歧返回合理的默认值
  • [ ] AppShortcut 短语包含 .applicationName 参数
  • [ ] 非可选 @Parameter 具有合理默认值或使用 requestValue()
  • [ ] iOS 16 目标上不使用 @IntentParameterDependency(会导致崩溃)
  • [ ] 短语本地化在 AppShortcuts.strings 中,而非 Localizable.strings
  • [ ] App Intents 定义在应用包中,而非 Swift Package(iOS 17 之前)
  • [ ] 内部/仅小组件意图设置 isDiscoverable = false

何时加载参考文档

  • - AppIntent 协议实现 -> intent-structure.md
  • 实体查询、标识符、Spotlight -> entities.md
  • App Shortcuts、短语、发现机制 -> shortcuts.md
  • 参数验证、动态选项 -> parameters.md

审查问题

  1. 1. perform() 是否处理长时间运行操作的超时限制?
  2. 实体查询是否自包含(Siri 上下文中无 @Dependency 注入)?
  3. 短语是否读起来自然且包含应用名称?
  4. SwiftData 模型是否通过 persistentModelID 传递,而非直接传递?
  5. 从 SiriKit 迁移是否会破坏现有用户快捷指令?

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 app-intents-code-review-1776111571 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 app-intents-code-review-1776111571 技能

通过命令行安装

skillhub install app-intents-code-review-1776111571

下载

⬇ 下载 app-intents-code-review v1.2.0(免费)

文件大小: 9.42 KB | 发布时间: 2026-4-14 10:14

v1.2.0 最新 2026-4-14 10:14
- Added a detailed SKILL.md with quick references, a review checklist, and review questions to guide App Intents code reviews.
- Outlined specific best practices for intent structure, entity handling, shortcuts, and parameter validation.
- Provided direct references for common issues and platform-specific considerations.
- Clarified when to use supplemental documentation for deeper code analysis.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部