ds-code-audit

Detect design-system violations in Swift code using automated token checks.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill ds-code-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ds-code-audit
Source: https://github.com/artosetrov/iron-fist-arena-backend/tree/main/.claude/skills/ds-code-audit
Command: npx skills add https://github.com/artosetrov/iron-fist-arena-backend --skill ds-code-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DS Code Auditor identifies design-system violations in Swift code, surfacing inline patterns that should be reusable components, hardcoded values, missing tokens, and duplicate UI patterns to enforce DS consistency.

Core Features & Use Cases

  • Phase 1: Automated Token Scan to detect token usage violations across the codebase
  • Phase 2: Duplicate Pattern Detection to surface repeated inline UI patterns for extraction
  • Phase 3: Component Inventory & Token Coverage to map opportunities to extract components and ensure token usage

Quick Start

Audit the Hexbound iOS codebase to surface all design-system violations and produce actionable extraction opportunities.

Frequently Asked Questions about ds-code-audit

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

FAQPage Schema
How do I find hardcoded values and missing design tokens in Swift code?

To find hardcoded values and missing design tokens in Swift code, an automated token scan detects inline patterns that should be reusable components and reports back with tokens, patterns, and recommended fixes to enforce design-system consistency.

How do I detect duplicate SwiftUI patterns for component extraction?

Detecting duplicate SwiftUI patterns for component extraction involves a duplicate pattern detection phase that surfaces repeated inline UI patterns across the codebase, mapping opportunities to extract them into reusable components and ensure proper token usage.

Can I audit design-system consistency in an iOS project using SwiftUI?

Yes, you can audit design-system consistency in an iOS project using SwiftUI. The auditing process applies to iOS projects with SwiftUI implementations, enforcing automated token checks defined in Theme files to report violations.

What is the best way to prepare a Swift codebase for Figma component extraction?

The best way to prepare a Swift codebase for Figma component extraction is running a component inventory and token coverage phase to map inline UI patterns, identify missing tokens, and generate actionable extraction opportunities.

Why does my SwiftUI code have design-system violations after adding new UI elements?

SwiftUI code has design-system violations when new UI elements introduce hardcoded values or duplicate inline patterns instead of using defined Theme tokens. An automated token scan identifies these deviations and recommends specific fixes.

Does an automated token scan work with custom Theme files in Swift?

Yes, an automated token scan works with custom Theme files in Swift by enforcing the automated token checks defined within those files. It evaluates the codebase against your specific token definitions to accurately report coverage gaps and violations.