Swiftgen Integration

🌐Community
by kaakati · vlatest · Repository

Automatically generate Swift code from Figma designs using kaakati's swiftgen integration for streamlined UI development.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add swiftgen-integration npx -- -y @trustedskills/swiftgen-integration
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "swiftgen-integration": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/swiftgen-integration"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill integrates with SwiftGen, a tool that generates Swift code from assets like images and fonts. It allows AI agents to automatically generate Swift files containing these asset definitions based on provided input. This streamlines the development process by reducing manual coding and ensuring consistency in asset management within iOS projects.

When to use it

  • Automating Asset Generation: When you need to quickly create Swift code for your assets, avoiding repetitive manual work.
  • Maintaining Consistency: To ensure all asset references are consistent across your project.
  • Working with Large Projects: In large iOS projects where managing many assets manually becomes cumbersome.
  • SwiftGen Integration: When migrating or integrating existing SwiftGen workflows into an automated build process.

Key capabilities

  • Generates Swift code from assets.
  • Integrates with SwiftGen tool.
  • Automates asset definition creation in iOS projects.

Example prompts

  • "Generate Swift files for all images in the 'Resources' folder."
  • "Create a Swift file containing definitions for all fonts used in my project."
  • “Update the existing SwiftGen generated code with new assets.”

Tips & gotchas

  • Requires SwiftGen to be installed and configured within your development environment.
  • Ensure correct asset paths are provided as input to achieve accurate code generation.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
kaakati
Installs
12

🌐 Community

Passed automated security scans.