textkit-auditor
Automatically scans for TextKit 1 fallback triggers, deprecated glyph APIs, and missing Writing Tools integration — prevents loss of Writing Tools support and ensures modern text handling for complex scripts.
How to Use This Agent
Natural language (automatic triggering):
- "Check my text editor for TextKit issues"
- "Why isn't Writing Tools appearing in my text view?"
- "Review my UITextView code"
- "Check for TextKit 2 compatibility"
Explicit command:
bash
/axiom:audit-textkitWhat It Does
- TextKit 1 Fallback Triggers (CRITICAL) — Direct
.layoutManageraccess, NSLayoutManager usage - Deprecated Glyph APIs (CRITICAL) —
numberOfGlyphs,glyphRange,glyphIndex(breaks with Arabic, Kannada) - NSRange with TextKit 2 (HIGH) — Using NSRange instead of NSTextRange/NSTextLocation
- Missing Writing Tools (MEDIUM) — No
writingToolsBehaviorproperty (iOS 18+) - Missing State Checks (MEDIUM) — Text mutations without
isWritingToolsActivecheck
Related
- textkit-ref skill — Complete TextKit 2 architecture, migration patterns, and Writing Tools integration guide