Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计异常

debug-generated-project调试生成的项目

Agent Skill

debug-generated-project 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

6,891

周安装

296

GitHub Stars

33

下载量

2,415
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:debug-generated-project(调试生成的项目)
来源仓库:https://github.com/tuist/agent-skills
仓库路径:skills/debug-generated-project
安装命令:
npx skills add https://github.com/tuist/agent-skills --skill debug-generated-project
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tuist/agent-skills --skill debug-generated-project

简介

debug-generated-project 专门处理 Tuist 项目生成失败问题,覆盖 targets 配置与依赖解析异常。

  • 适用于 mise exec tuist@latest -- tuist generate 命令报错场景,提供本地复现与源码构建方案。
  • 自动比对 latest release 与 main 分支差异,输出 PR 修复建议或用户反馈指引。
  • 操作前应备份 project.yml 与 Package.resolved 文件,防止配置损坏导致构建中断。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Debug Tuist Project Issue

Quick Start

  1. Ask the user to describe the issue and the project setup (targets, dependencies, configurations, platform).
  2. Confirm the issue exists with the latest release by running mise exec tuist@latest -- tuist generate against a reproduction project.
  3. If confirmed, clone the Tuist repository and build from source to test against main.
  4. Triage: fix the bug and open a PR, advise on misconfiguration, or recommend the user files an issue with a reproduction.

Step 1: Gather Context

Ask the user for:

  • What command they ran (e.g. tuist generate)
  • The error message or unexpected behavior
  • When the issue happens: generation time, compile time, or runtime (app launch or later)
  • Their project structure: targets, platforms, dependencies (SwiftPM, XCFrameworks, local packages)
  • Their Project.swift and Tuist.swift content (or relevant excerpts)
  • Their Tuist version (tuist version)

The answer to "when" determines the verification strategy:

  • Generation time: the issue might be a Tuist bug or a project misconfiguration. Reproduce with tuist generate.
  • Compile time: the generated project has incorrect build settings, missing sources, or wrong dependency wiring. Reproduce with xcodebuild build after generation.
  • Runtime: the app builds but crashes or misbehaves on launch or during use. Reproduce by installing and launching on a simulator.

Step 2: Reproduce with the latest release

Before investigating the source code, confirm the issue is not already fixed in the latest release.

Set up a temporary reproduction project

REPRO_DIR=$(mktemp -d)
cd "$REPRO_DIR"

Create minimal Tuist.swift, Project.swift, and source files that reproduce the user's scenario. Keep it as small as possible while still triggering the issue.

Run generation with the latest Tuist release

mise exec tuist@latest -- tuist generate --no-open --path "$REPRO_DIR"

If the issue involves dependencies, install them first:

mise exec tuist@latest -- tuist install --path "$REPRO_DIR"

Check the result

  • If generation succeeds and the issue is gone, tell the user to update to the latest version.
  • If the issue persists, continue to Step 3.

Step 3: Build Tuist from Source

Clone the repository and build the tuist executable and ProjectDescription library from source to test against the latest code on main.

TUIST_SRC=$(mktemp -d)
git clone --depth 1 https://github.com/tuist/tuist.git "$TUIST_SRC"
cd "$TUIST_SRC"
swift build --product tuist --product ProjectDescription --replace-scm-with-registry

The built binary will be at .build/debug/tuist. Use it to test the reproduction project:

"$TUIST_SRC/.build/debug/tuist" generate --no-open --path "$REPRO_DIR"

If the issue is fixed on main

Tell the user the fix is already on main, and it hasn't been released, tell them it'll be in the nest release and point them to the relevant commit if you can identify it.

If the issue persists on main

Continue to Step 4.

Step 4: Triage the Issue

Investigate the Tuist source code to understand why the issue occurs.

Outcome A: It is a bug

  1. Identify the root cause in the source code.
  2. Apply the fix.
  3. Verify by rebuilding and running against the reproduction project: cd "$TUIST_SRC" swift build --product tuist --product ProjectDescription --replace-scm-with-registry "$TUIST_SRC/.build/debug/tuist" generate --no-open --path "$REPRO_DIR"
  4. Zip the reproduction project and include it in the PR: cd "$REPRO_DIR" && cd.. zip -r reproduction.zip "$(basename "$REPRO_DIR")" -x '*.xcodeproj/*' -x '*.xcworkspace/*' -x 'Derived/*' -x '.build/*'
  5. Open a PR on the Tuist repository with:

- The fix - The zipped reproduction project attached or committed as a fixture - A clear description of the root cause and how to verify the fix

Outcome B: It is a misconfiguration

Tell the user what is wrong and how to fix it. Common misconfigurations:

  • Missing tuist install before tuist generate when using external dependencies
  • Incorrect source or resource globs that exclude or double-include files
  • Mismatched build configurations between the project and external dependencies
  • Wrong product types for dependencies (static vs dynamic)
  • Missing -ObjC linker flag for Objective-C dependencies
  • Using sources and resources globs together with buildableFolders

Provide the corrected manifest snippet so the user can apply the fix directly.

Outcome C: Unclear or needs team input

If you cannot determine whether it is a bug or misconfiguration, recommend the user:

  1. Open a GitHub issue at https://github.com/tuist/tuist/issues with:

- The reproduction project (zipped) - The error output - Their Tuist version and environment details

Provide a summary of what you investigated and what you ruled out, so the user does not have to repeat the triage.

Build Verification

When testing a fix, always verify the full cycle:

# Build the patched tuist
cd "$TUIST_SRC"
swift build --product tuist --product ProjectDescription --replace-scm-with-registry

# Install dependencies if needed
"$TUIST_SRC/.build/debug/tuist" install --path "$REPRO_DIR"

# Generate the project
"$TUIST_SRC/.build/debug/tuist" generate --no-open --path "$REPRO_DIR"

# Build the generated project
xcodebuild build \
  -workspace "$REPRO_DIR"/*.xcworkspace \
  -scheme <scheme> \
  -destination "platform=iOS Simulator,name=iPhone 16 Pro"

Runtime Verification

When the user reports a runtime issue (crash on launch, missing resources at runtime, wrong bundle structure, or unexpected behavior), you must go beyond building and actually launch the app on a simulator.

Launch and monitor for crashes

# Boot a simulator
xcrun simctl boot "iPhone 16 Pro" 2>/dev/null || true

# Build for the simulator
xcodebuild build \
  -workspace "$REPRO_DIR"/*.xcworkspace \
  -scheme <scheme> \
  -destination "platform=iOS Simulator,name=iPhone 16 Pro" \
  -derivedDataPath "$REPRO_DIR/DerivedData"

# Install the app
xcrun simctl install booted "$REPRO_DIR/DerivedData/Build/Products/Debug-iphonesimulator/<AppName>.app"

# Launch and monitor — this will print crash info if the app terminates abnormally
xcrun simctl launch --console-pty booted <bundle-identifier>

The --console-pty flag streams the app's stdout/stderr so you can observe logs and crash output directly. Watch for:

  • Immediate crash on launch: usually a missing framework, wrong bundle ID, missing entitlements, or stripped ObjC categories (-ObjC linker flag missing)
  • Crash after a few seconds: often missing resources (images, storyboards, XIBs, asset catalogs) or a bundle structure mismatch
  • Runtime misbehavior without crash: wrong resource paths, missing localization files, or incorrect Info.plist values

Check crash logs

If the app crashes without useful console output, pull the crash log:

# List recent crash logs for the app
find ~/Library/Logs/DiagnosticReports -name "<AppName>*" -newer "$REPRO_DIR" -print

Read the crash log to identify the crashing thread and the faulting symbol.

Done Checklist

  • Gathered enough context from the user to reproduce the issue
  • Determined whether the issue is at generation time, compile time, or runtime
  • Confirmed whether the issue exists in the latest release
  • Tested against Tuist built from source (main branch)
  • If runtime issue: launched the app on a simulator and verified the crash or misbehavior
  • Triaged the issue as a bug, misconfiguration, or unclear
  • If bug: applied fix, verified it, and opened a PR with reproduction project
  • If misconfiguration: provided corrected manifest to the user
  • If unclear: gave the user a summary and recommended next steps

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.36%
按下载量换算854

Claude

32.26%
按下载量换算779

Cursor

19.41%
按下载量换算469

Gemini CLI

8.96%
按下载量换算216

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills