translate-docs-swift

Translate TypeScript API documentation examples in YAML files to Swift code blocks.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/transistorsoft/docforge --skill translate-docs-swift
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate-docs-swift
Source: https://github.com/transistorsoft/docforge/tree/main/skills/translate-docs-swift
Command: npx skills add https://github.com/transistorsoft/docforge --skill translate-docs-swift

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the conversion of TypeScript API documentation examples embedded in YAML docs to Swift equivalents for iOS, reducing manual translation effort and keeping documentation aligned with the Swift API.

Core Features & Use Cases

  • Translate TypeScript code examples in docs-db/*.yaml files to Swift, generating or updating corresponding swift blocks.
  • Maintain accuracy by applying translation rules and avoiding legacy flat-config patterns.
  • Use cases include converting API samples, config examples, and event-handling snippets for Swift projects.

Quick Start

Run translate-docs-swift on your docs-db YAML files to generate Swift code blocks from TypeScript examples.

Frequently Asked Questions about translate-docs-swift

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

FAQPage Schema
How do I convert TypeScript code examples in YAML docs to Swift for iOS?

You can translate TypeScript API documentation examples in YAML files to Swift by running an automated conversion process that parses docs-db YAML files, identifies ts blocks, and generates corresponding Swift code blocks using translation rules.

Can I automatically generate Swift code blocks from TypeScript documentation samples?

Yes, you can automatically generate Swift code blocks from TypeScript documentation samples by processing YAML files that contain ts blocks. The translation applies rules to produce valid Swift code while preserving existing placeholders and comments.

Do I need a Swift environment to translate TypeScript API docs to Swift?

Yes, a Swift environment is required to produce valid Swift blocks when translating TypeScript API docs. The translation process also needs access to specific translation rules to ensure accurate conversion from TypeScript samples in YAML files.

What's the best way to translate API documentation samples from TypeScript to Swift?

The best way to translate API documentation samples from TypeScript to Swift is to automate the conversion of YAML-documented TS samples, applying translation rules to generate Swift blocks while avoiding legacy flat-config patterns and preserving comments.

Does the TypeScript to Swift docs translation preserve placeholders and comments?

Yes, translating TypeScript docs to Swift preserves placeholders and comments during the conversion. The process generates Swift code blocks from YAML-documented TS samples while maintaining the integrity of existing comments and placeholders.

Why does the docs translation skip legacy TypeScript examples when converting to Swift?

The translation skips legacy TypeScript examples to maintain accuracy and align documentation with the current Swift API. It avoids legacy flat-config patterns during the conversion of YAML-documented TS samples to valid Swift code blocks.