Typed Error Throwing Fixes is an agent skill for Codex and other AI coding assistants that helps review and repair Swift 6 typed-throws code.
It is useful when Swift's typed throws(E) model meets current compiler and concurrency edge cases, including async let, Task, continuations, task groups, cancellation, typed closures, do throws(E), and Result-based error tunnels.
Install the skill with npx:
npx skills add https://github.com/Gucky/TypedErrorThrowingFixes --skill typed-error-throwing-fixesTo install it globally for Codex:
npx skills add https://github.com/Gucky/TypedErrorThrowingFixes --skill typed-error-throwing-fixes --agent codex --globalFor a specific agent:
npx skills add https://github.com/Gucky/TypedErrorThrowingFixes --skill typed-error-throwing-fixes --agent claude-codeFor all supported agents:
npx skills add https://github.com/Gucky/TypedErrorThrowingFixes --skill typed-error-throwing-fixes --agent '*'If npx is not available, install Node.js first. On macOS with Homebrew:
brew install nodeIn Codex, trigger the skill directly:
$typed-error-throwing-fixes
You can also ask naturally:
Use the Typed Error Throwing Fixes skill to review this Swift typed-throws code.
The skill helps with:
- Preserving concrete thrown error types across Swift Concurrency boundaries.
- Replacing accidental
any Errorwidening with typedResulttunnels or explicit mapping. - Handling current rough edges in
async let,Task, continuations, and task groups. - Writing explicit typed-throwing closure signatures when inference falls short.
- Treating cancellation deliberately inside typed domain error APIs.
This skill is guidance and reference material for Swift code changes. It does not run project-specific migrations on its own. When used to modify a codebase, validate with the active Swift toolchain because typed-throws diagnostics can depend on the compiler version.
- Swift 6 typed-throws code or review context
- Node.js for
npx - An AI coding assistant that supports agent skills
Typed Error Throwing Fixes was created by Wolfgang Muhsal. It is available under the MIT License, which permits commercial use, modification, distribution, and private use.
