audit-textkit
Scan for TextKit 1 fallback triggers, deprecated glyph APIs, and missing Writing Tools integration.
What This Command Does
Launches the textkit-auditor agent to detect issues that prevent Writing Tools integration and cause incorrect behavior with complex scripts (Arabic, Kannada, Thai).
What It Checks
- TextKit 1 Fallback Triggers — Direct
.layoutManageraccess that causes one-way fallback to TextKit 1 - Deprecated Glyph APIs —
numberOfGlyphs,glyphRange,glyphIndexthat break with complex scripts - NSRange with TextKit 2 — Using NSRange instead of NSTextRange/NSTextLocation
- Missing Writing Tools Integration — No
writingToolsBehaviorconfiguration (iOS 18+) - Missing State Awareness — Text mutations without
isWritingToolsActivechecks
Related Agent
- textkit-auditor — The agent that powers this command
- textkit-ref — Complete TextKit 2 reference and migration guide