tuist-generation-doctor

tuist-generation-doctor is a skill for Claude Code, Codex from Xopoko/build-swift-apps. It costs 40 tokens per session (716 once invoked), scanned A, original, MIT.

A troubleshooting guide for Tuist generation, Xcode builds, and app launch failures. Tuist generates Xcode workspaces from project configuration.

In plain words
What is it for?
It helps collect reproduction details, test different Tuist versions, reduce failures to small examples, and diagnose generation or build problems.
Why use it?
It helps separate configuration and dependency mistakes from problems in Tuist itself, so debugging starts at the correct stage.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the build-swift-apps plugin — 61 skills, 3 commands, 3 MCP servers shipped together

Good fit It helps collect reproduction details, test different Tuist versions, reduce failures to small examples, and diagnose generation or build problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xopoko/build-swift-apps/tuist-generation-doctor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Xopoko/build-swift-apps --skill tuist-generation-doctor
Clone the repo
git clone --depth 1 https://github.com/Xopoko/build-swift-apps

Made for: Claude Code, Codex.

Or install build-swift-apps, the plugin that ships this one along with the rest of its 61 skills, 3 commands, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tuist-generation-doctor

README.md
[![agentmods](https://agentmods.dev/badge/skills/xopoko/build-swift-apps/tuist-generation-doctor/github.svg)](https://agentmods.dev/skills/xopoko/build-swift-apps/tuist-generation-doctor)
Your own site
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/tuist-generation-doctor"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/tuist-generation-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tuist-generation-doctor

Your own site · 80×15
<a href="https://agentmods.dev/skills/xopoko/build-swift-apps/tuist-generation-doctor"><img src="https://agentmods.dev/badge/skills/xopoko/build-swift-apps/tuist-generation-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 716 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 56
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00716
Opus 5 $0.00020 $0.00358
Sonnet 5 $0.00008 $0.00143
Haiku 4.5 $0.00004 $0.00072

Measured 8d ago against content hash c50e5dea3d54, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

tuist-generation-doctor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/tuist-generation-doctor/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tuist Generation Doctor

Before invoking Apple-only binaries, confirm the execution context is macOS. From Windows or Linux, run those steps in a Mac SSH project or through an already configured remote transport; do not retry missing Apple binaries locally.

Use this skill to determine whether a Tuist-generated workspace problem is a project configuration issue, a dependency wiring issue, or a Tuist bug.

Triage Route

  1. Classify the failure stage:
    • generation: tuist generate or tuist install
    • build: generated .xcworkspace exists but xcodebuild fails
    • runtime: app builds but crashes or behaves incorrectly
  2. Capture the exact command, Tuist version, Xcode version, platform, scheme, and relevant manifest snippets.
  3. Reproduce on the local project first. If the issue is broad or suspicious, retry with the latest Tuist release through mise.
  4. Reduce to a minimal reproduction before filing or fixing a Tuist-level bug.

Commands

tuist version
mise exec tuist@latest -- tuist install --path "$PROJECT_DIR"
mise exec tuist@latest -- tuist generate --no-open --path "$PROJECT_DIR"

For build-stage failures:

xcodebuild build \
  -workspace "$PROJECT_DIR"/*.xcworkspace \
  -scheme "$SCHEME" \
  -destination "platform=iOS Simulator,name=<available iPhone simulator>,OS=latest" \
  -derivedDataPath "$PROJECT_DIR/DerivedData"

For runtime-stage failures, launch the generated app:

xcrun simctl boot "<available simulator name or UDID>" 2>/dev/null || true
xcrun simctl install booted "$APP_PATH"
xcrun simctl launch --console-pty booted "$BUNDLE_ID"

Common Causes

  • Missing tuist install before generation.
  • Source/resource globs that omit files or include Swift files as resources.
  • Package product type mismatches: static vs dynamic frameworks/libraries.
  • Missing SDK dependencies, entitlements, Info.plist values, or resource bundles.
  • Objective-C categories stripped from static dependencies; verify -ObjC or targeted -force_load.
  • Generated workspace drift after manifest edits; regenerate before judging.

Read the full file on GitHub · 85 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 85 lines · 40 tokens per session scan A c50e5dea3d54

Subscribe to this mod's changes

tuist-generation-doctor is a skill published in the GitHub repository Xopoko/build-swift-apps (45 stars, last pushed 15d ago), licensed MIT. It adds 40 tokens to every session and 716 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

firebase-crashlytics

Use when implementing crash reporting, capturing fatal/non-fatal errors, recording isolate/async exceptions, customizing reports, or uploading obfuscated symbols.

evanca/flutter-ai-rules · 34 tokens

flutter-errors

Use when hitting layout errors (RenderFlex overflow, unbounded constraints, RenderBox not laid out), scroll errors, or setState-during-build errors.

evanca/flutter-ai-rules · 34 tokens

push-notification-tester

Test VoIP push notifications for Telnyx WebRTC iOS (APNs) and Android (FCM) apps. Use when debugging push notification delivery, validating certificate/credential setup, or testing that a device receives VoIP pushes correctly.

team-telnyx/ai · 55 tokens

mobile-emulator-start

Boot Android emulator + Metro (Expo / bare RN) in order: inspect IDE terminals, kill stale ports, pick an AVD. Use when "start Metro", "start emulator", "Cannot connect to Expo", or a stuck dev loop. QA on the running emulator → mobile-emulator-test.

kensaurus/cursor-kenji · 65 tokens

agent-dart-build-resolver

Dart/Flutter build, analysis, and dependency error resolution specialist. Fixes dart analyze errors, Flutter compilation failures, pub dependency conflicts, and buildrunner issues with minimal, surgical changes. Use when Dart/Flutter builds fail.

KunanonJ/ai-skills-hub · 55 tokens

apple-cleanup

Exhaustive engineering hardening of an iOS app. Reviews for Swift 6 compliance, crash risks, App Store rejection risks, and tech debt; builds a surgical plan; dispatches parallel subagents to fix all P0-P2 issues; then pushes an alpha to TestFlight. Use for pre-submission cleanup and code hardening, not design polish.

markdavidgan/apple-dev-skills · 77 tokens