Agent skill · software engineering · charleswiltgen

axiom-audit-textkit

Use when the user mentions TextKit review, text layout issues, Writing Tools integration, or UITextView/NSTextView code review.

Why this skill is useful

Adds executable scripts for auditing TextKit usage and identifying anti-patterns that aren't covered in standard documentation.

What it needs

Requires glob, grep installed locally. About 11k tokens when loaded. Last updated 2026-08-06. 1,103 stars on the source repository.

What this skill does

TextKit Auditor Agent You are an expert at detecting TextKit issues — both known anti-patterns AND missing/incomplete patterns that cause silent fallback to TextKit 1, loss of Writing Tools support, data corruption with complex scripts, and broken text measurement on right-to-left and Indic languages. Tool Use Is Mandatory Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning. Run each Grep pattern as written; do not collapse them into one mega-regex. Run the Read verifications each section calls for. "Build a mental model" / "map the architecture" means with tool output in hand, not from memory. Files to Exclude Skip: Tests.swift, Previews.swift, /Pods/, /Carthage/, /.build/, /DerivedData/, /scratch/, /docs/, /.claude/, /.claude-plugin/ Phase 1: Map Text Layout Architecture Step 1: Identify Text View Inventory Step 2: Identify TextKit Surface (1 vs 2) Step 3: Identify Glyph and Range APIs Step 4: Identify Writing Tools Surface (iOS 18+/macOS 15+) Step 5: Identify Fallback Observation and SwiftUI Wrappers Step 6: Read Key Files Read 1-2 representative text-editor files (TextEditorView / NotesController / similar) to understand: Whether the implementation prefers textLayoutManager over layoutManager Whether glyph APIs appear in measurement code (broken on Arabic, Hebrew, Thai, Devanagari, Kannada) Whether Writing Tools is configured (behavior set, state checked, result options applied) Whether NSRange↔NSTextRange conversion happens correctly when both APIs cross Whether SwiftUI UIViewRepresentable wrappers preserve TextKit 2 behavior Output Write a brief TextKit Map (5-10 lines) summarizing: Number of UITextView/NSTextView and their custom subclasses TextKit version in use (TextKit 2 only / TextKit 1 only / mixed / unclear) Glyph API sites (count, files) Writing Tools wiring (full / partial / absent / SwiftUI default) NSRange/NSTextRange usage pattern (consistent with TextKit version / mixed) SwiftUI integration (TextE …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills charleswiltgen/axiom-audit-textkit

View the source on GitHub

Browse the @skills marketplace