debug-generated-project

tuist/agent-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/tuist/agent-skills --skill debug-generated-project
0 commentsdiscussion
summary

Ask the user for:

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
how to use debug-generated-project

How to use debug-generated-project on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add debug-generated-project
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

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

The skills CLI fetches debug-generated-project from GitHub repository tuist/agent-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/debug-generated-project

Reload or restart Cursor to activate debug-generated-project. Access the skill through slash commands (e.g., /debug-generated-project) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.648 reviews
  • Michael Liu· Dec 20, 2024

    debug-generated-project is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Pratham Ware· Dec 12, 2024

    debug-generated-project reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Hiroshi Wang· Dec 12, 2024

    Useful defaults in debug-generated-project — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Hiroshi Chen· Dec 8, 2024

    Registry listing for debug-generated-project matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Michael White· Nov 15, 2024

    debug-generated-project reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Sofia Abbas· Nov 11, 2024

    debug-generated-project fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Sophia Abebe· Nov 3, 2024

    debug-generated-project has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Mei Smith· Oct 22, 2024

    Solid pick for teams standardizing on skills: debug-generated-project is focused, and the summary matches what you get after install.

  • Fatima Farah· Oct 6, 2024

    Registry listing for debug-generated-project matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Michael Farah· Oct 2, 2024

    We added debug-generated-project from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

showing 1-10 of 48

1 / 5