swift-compiler-inspection-workflow
/swift-compiler-inspection-workflow
Inspect 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.
- Author
- gaelic-ghost ↗
- Repository
- socket ↗
- Licence
- Apache-2.0
- Last repository change
- 26.08.2026
Assessment and security
- Files in this package
- 3
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 26.08.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Inspect 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.
Original author description
Inspect 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.
How it works
- Workflow
- Driver Boundary
- Toolchain Contract
- Output
- Guardrails
SKILL.md preview
---
name: swift-compiler-inspection-workflow
description: Inspect 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.
license: Apache-2.0
metadata:
owner: gaelic-ghost
repo: socket
category: swift-language
hermes:
category: swift-language
tags: [swift, compiler, swiftc, sil, llvm]
---
# Swift Compiler Inspection Workflow
Inspect the Swift compilation pipeline while distinguishing supported driver behavior from version-sensitive compiler internals.
## Workflow
1. Inspect repository guidance and determine whether SwiftPM, Xcode, another build system, or a standalone compiler invocation owns the real build.
2. Resolve toolchain ownership:
- inspect Swiftly with `swiftly use --print-location` and `swift --version`
- inspect Xcode with `xcode-select -p`, `xcrun --find swiftc`, and `xcrun swiftc --version`
- choose the owner matching the actual build and keep all compiler, SDK, plugin, and module paths within it
3. Reproduce the narrowest compiler phase that answers the question:
- parse
- type check
- print driver jobs
- dependency scan
- emit or inspect AST
- emit SIL or LLVM IR
- emit module, interface, or diagnostics
4. Run experiments against copied or temporary inputs unless the user asked to change the repository.
5. Capture the complete command, toolchain identity, target triple, SDK, language mode, conditional flags, module paths, and relevant environment.
6. Classify every surface using [references/compiler-surfaces.md](references/compiler-surfaces.md): supported CLI, version-sensitive diagnostic surface, or compiler-internal surface.
7. Compare artifacts only across intentionally matched configurations.
8. Hand full package or Xcode builds and tests to their owning workflow.
## Driver Boundary
- Treat `swift` and `swiftc` as compiler-driver entry points that plan and coordinate frontend and linker jobs.
- Treat `swift-driver` as the driver implementation, not a second compiler frontend.
- Prefer driver options over invoking `swift-frontend` directly.
- Use `swift-frontend` only when a documented compiler-development workflow or unavailable driver surface requires it, and label the command internal and version-sensitive.
## Toolchain Contract
- Use Swiftly-selected toolchains for Swift.org release or snapshot comparison, cross-platform compiler behavior, and `.swift-version`-controlled repositories.
- Use Xcode-selected tools through `xcrun` for Apple SDK imports, Xcode build reproduction, Xcode-bundled SourceKit behavior, and Apple target triples.
- Do not combine Swiftly's compiler with Xcode's private toolchain libraries or combine Xcode's compiler with Swiftly's host plugins.
- Recognize `swiftly use xcode` as a proxy into the selected Xcode toolchain and record both selectors.
## Output
Return the question, selected compiler phase, toolchain owner and version, exact invocation, artifact stability class, result, and limitations.
## Guardrails
- Do not claim compiler dump formats are stable interchange formats.
- Do not infer optimizer or runtime behavior from a Debug-only or parse-only artifact.
- Do not omit compiler arguments when reproducing a type-check or module failure.
- Do not run multiple SwiftPM or Xcode compiler validations concurrently.
- Do not mutate the global Swiftly or Xcode selection for inspection alone.
Files in this package (3)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
- references/compiler-surfaces.md 2 KB
Versions
The database has no other skills named swift-compiler-inspection-workflow.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version ac795bdf8d00 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100compiler-toolchain
Compiler toolchain development for custom processor ISAs — LLVM/GCC backend, assembler, linker scripts, runtime libraries, and regression validation. Use when building a compiler for a custom RISC-V extension, proprietary ISA, or any processor where no existing toolchain targets it correctly. - 100swift-concurrency-expert
Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file. - 100llvm-compiler-architecture
Use this skill when the user says 'LLVM', 'LLVM IR', 'compiler backend', 'optimization pass', 'frontend/backend separation', 'SSA IR'. Explains LLVM's three-phase design, SSA-form IR, and the pass pipeline. Do NOT use for: eBPF bytecode specifics (use… - 95compiler-frontend
Use when building a lexer, Pratt or recursive-descent parser, AST, symbol table, type checker, or LLVM IR emitter for a language or DSL. Not for optimizing IR. - 100swift-concurrency-expert
Swift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurrency compiler errors in a feature or file. - 100compiler-frontend
Compiler frontend skill for lexing, parsing, and type checking. Use when building a lexer/parser, designing AST nodes, implementing symbol tables, type checking, error recovery, or emitting LLVM IR. Activates on queries about lexer, Pratt parser, recursive descent, AST, symbol…