validate-design-tokens

Detect hardcoded design tokens and deprecated SwiftUI APIs in Xcode projects.

1|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/n0rvyn/indie-toolkit --skill validate-design-tokens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: validate-design-tokens
Source: https://github.com/n0rvyn/indie-toolkit/tree/main/apple-dev/skills/validate-design-tokens
Command: npx skills add https://github.com/n0rvyn/indie-toolkit --skill validate-design-tokens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill finds hardcoded spacing, colors, fonts, corner radii, shadows, and deprecated SwiftUI APIs in SwiftUI View files and provides actionable recommendations to align code with your design token system and layout conventions.

Core Features & Use Cases

  • Conditional deprecated API detection: Reads the Xcode deployment target and skips iOS 18+ checks when appropriate.
  • Token compliance audits: Detects hardcoded spacing, color constructors, font sizes, and nonstandard corner radii and suggests exact token substitutes.
  • Cross-file layout consistency: Identifies components with the same suffix (Card, Row, Cell, etc.) and compares width strategy, padding, background, corner radius, and shadow usage for consistency.
  • Use Case: Run on a feature branch to produce a compliance report grouped by severity with file:line references and suggested code changes prior to code review.

Quick Start

Validate design tokens across my SwiftUI View files and produce a grouped compliance report with file:line locations and suggested token replacements.

Frequently Asked Questions about validate-design-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find hardcoded colors and spacing in SwiftUI view files?

To find hardcoded colors and spacing in SwiftUI view files, you can run a design token compliance audit that detects hardcoded color constructors, spacing values, and font sizes, then provides exact token replacement suggestions.

How does deprecated SwiftUI API detection work for different iOS deployment targets?

Deprecated SwiftUI API detection works by reading the project's Xcode deployment target to conditionally apply rules, skipping iOS 18+ checks when the deployment target is lower to avoid false positives.

Can I check cross-component layout consistency for SwiftUI views like Cards and Rows?

Yes, you can check cross-component layout consistency by grouping SwiftUI views with matching suffixes like Card or Row, then comparing their width strategy, padding, background, corner radius, and shadow usage.

What's the best way to enforce design token compliance before a SwiftUI code review?

The best way to enforce design token compliance before a code review is generating a grouped compliance report with file:line locations, severity levels, and suggested code changes for hardcoded spacing, colors, and typography.

Does this design token validation work with nonstandard corner radii and shadows in SwiftUI?

Yes, this design token validation works with nonstandard corner radii and shadows in SwiftUI by detecting hardcoded values during the audit and suggesting exact design token substitutes to align with your layout conventions.