Organizes Swift source trees by concern, feature, and layer; splits oversized files, extracts extensions, normalizes MARK sections, file headers, and TODO/FIXME ledgers. Use after formatting baseline is clear.
Ships in swift-lang. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Keep Swift source trees small, navigable, and organized around real responsibility boundaries.
Use swift-format-style-workflow before structural edits and again afterward. Hand off to apple-dev-skills when file moves require Xcode target membership, project-file mutation, previews, schemes, or build/run validation.
// MARK: sections250 to 300 lines when two or more concerns are present500 to 600 lines as a hard split signal unless the file is generated or has a documented exceptionTypeName+Models.swiftTypeName+Validation.swiftTypeName+Pipeline.swiftTypeName+Formatting.swift// MARK: - <Heading> only when it improves navigation.Return:
Organization state: repo shape and largest concern problems.Split plan: files to split, target names, and reason for each split.Moves: directories or manifests that need updates.Handoffs: Apple Dev, Server-Side Swift, or package validation needs.Validation: formatting, build, test, or project-integrity checks.// MARK: as decoration.What SKILL.md sets; muted values are Claude Code's defaults
/swift-lang:swift-source-organization-workflowfrom swift-lang
npx claudepluginhub gaelic-ghost/socket --plugin swift-lang11 skills in this plugin
/choose-swift-language-toolingChoose SwiftSyntax, compiler, SourceKit, SourceKitten, IndexStoreDB, or SourceKit-LSP by information and project model. Use before Swift tooling work when Swiftly and Xcode may resolve different binaries./sourcekit-lsp-workflowConfigure or diagnose SourceKit-LSP across SwiftPM, compilation databases, and build servers. Use for completion, navigation, refactoring, diagnostics, semantic tokens, indexing, generated files, or editor-client failures./swift-api-style-workflowReview, design, or repair Swift APIs for Swifty naming, call-site ergonomics, access control, typed result shapes, human-friendly errors, and consistency across sibling symbols. Use swift-error-handling-style-workflow for deeper failure-shape decisions./swift-compiler-inspection-workflowInspect Swift toolchain selection, driver jobs, diagnostics, AST, SIL, LLVM IR, dependencies, modules, and interfaces. Use for compiler behavior, lowering, build-job, or emitted-artifact investigations./swift-error-handling-style-workflowDesign or repair Swift error handling style using throws, typed throws, Result, Optional, AsyncSequence failure types, domain errors, Cocoa bridging, and concise functional recovery paths./swift-format-style-workflowAlign SwiftFormat, SwiftLint, formatter and linter responsibility, checked-in style config, Git hooks, and CI formatting policy for Swift repositories. Use for shared Swift style and formatting before source-organization or modernization passes.Other plugins' skills for the same job