Skip to content
Back to skills

App Intents Code Review

ASecurity

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

  • 92 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
developmentswiftcode-review

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add existential-birds/beagle --skill app-intents-code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of App Intents Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for App Intents Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/existential-birds-app-intents-code-review/badge)](https://www.skillsdirectory.com/skills/existential-birds-app-intents-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: app-intents-code-review
description: Reviews App Intents code for intent structure, entities, shortcuts, and parameters. Use when reviewing code with import AppIntents, AppIntent, @AppIntent(schema:), AppEntity, AppShortcutsProvider, or @Parameter.
---

# App Intents Code Review

## Quick Reference

| Issue Type | Reference |
|------------|-----------|
| AppIntent protocol, perform(), Sendable, return types | [references/intent-structure.md](references/intent-structure.md) |
| AppEntity, EntityQuery, IndexedEntity, @Dependency | [references/entities.md](references/entities.md) |
| AppShortcutsProvider, phrases, localization, migration | [references/shortcuts.md](references/shortcuts.md) |
| @Parameter, validation, dynamic options | [references/parameters.md](references/parameters.md) |

## Review Checklist

- [ ] `AppIntent`, `AppEntity`, and `@Parameter` types satisfy `Sendable` (Swift 6 concurrency)
- [ ] `perform()` marked with `@MainActor` if accessing UI/main thread resources
- [ ] `perform()` completes within ~30-second timeout (no heavy downloads/processing)
- [ ] Custom errors conform to `CustomLocalizedStringResourceConvertible`
- [ ] `EntityQuery.entities(for:)` handles missing identifiers gracefully
- [ ] `EntityStringQuery` used if Siri voice input needed (not plain `EntityQuery`)
- [ ] `suggestedEntities()` returns reasonable defaults for disambiguation
- [ ] `@Dependency` services are registered via `AppDependencyManager.shared.add(dependency:)` in `App.init()` (and use App Group storage if an extension runs out-of-process)
- [ ] `AppShortcut` phrases include `.applicationName` parameter
- [ ] `AppShortcutsProvider.updateAppShortcutParameters()` called on launch and when dynamic entities change
- [ ] Non-optional `@Parameter` has sensible defaults or uses `requestValue()`
- [ ] `@IntentParameterDependency` guarded with `@available(iOS 17, *)` on iOS 16 targets (crashes at runtime on iOS 16)
- [ ] Phrases localized in `AppShortcuts.strings` or `AppShortcuts.xcstrings`, not `Localizable.strings`
- [ ] App Intents defined in app bundle or `AppIntents` extension, not Swift Package on pre-iOS 17 targets
- [ ] `isDiscoverable = false` for internal/widget-only intents

## When to Load References

- AppIntent protocol implementation -> intent-structure.md
- Entity queries, identifiers, Spotlight, `@Dependency` -> entities.md
- App Shortcuts, phrases, discovery, SiriKit migration -> shortcuts.md
- Parameter validation, dynamic options -> parameters.md

## Review Questions

1. Does `perform()` handle timeout limits for long-running operations?
2. Are `@Dependency` dependencies registered early via `AppDependencyManager.shared.add(dependency:)` (and using App Group storage if an extension runs out-of-process)?
3. Do phrases read naturally and include `.applicationName`?
4. Are SwiftData models passed by `persistentModelID` (not non-`Sendable` `@Model` instances)?
5. Would migrating from SiriKit (`CustomIntentMigratedAppIntent`) break existing user shortcuts or minimum OS targets?

## Hard gates (before reporting)

Complete **in order** for each finding you intend to report. Do not advance until the pass condition is satisfied.

1. **Location artifact** — The finding includes `[FILE:LINE]` (or a line range) copied from the current file contents; the path resolves in this repo.
2. **Scope read** — You read the full surrounding type: the `AppIntent` / `AppEntity` / `EntityQuery` / `AppShortcutsProvider` (or equivalent) that contains the flagged code, not only a diff hunk or snippet.
3. **Platform or integration claim** (only if the finding depends on minimum iOS, Swift Package vs app target, `@IntentParameterDependency` availability, SiriKit migration, or `isDiscoverable` / extension placement) — You name one concrete artifact you inspected (for example `IPHONEOS_DEPLOYMENT_TARGET` or target membership in the Xcode project, `Package.swift` `platforms`, entitlements, or where the intent file lives) **or** you drop or downgrade the finding to an open question.
4. **Protocol** — Pre-report steps in `review-verification-protocol` ([../review-verification-protocol/SKILL.md](../review-verification-protocol/SKILL.md) if installed) are satisfied for this item (no finding if they are not).

Use the issue format `[FILE:LINE] ISSUE_TITLE` for each reported finding. Hard gate 4 is the full pre-report checklist for this skill’s review type.

Files in this skill

  • SKILL.md2.2 KB
  • references/entities.md5.7 KB
  • references/intent-structure.md4 KB
  • references/parameters.md5.3 KB
  • references/shortcuts.md4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.