krispuckett

SwiftUIShaders — Development skill for Claude Code

Development community

41 hand-curated drop-in SwiftUI Metal shader effects — holographic foil, kaleidoscope, magnetic fields, glitch, neon edges and more.

How to install SwiftUIShaders

This entry records only its repository, not the path inside it, so there is no exact command to give. Open krispuckett/SwiftUIShaders and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What SwiftUIShaders does

41 hand-curated drop-in SwiftUI Metal shader effects — holographic foil, kaleidoscope, magnetic fields, glitch, neon edges and more. Typed View modifiers, agent-friendly docs.

Alternatives in Development

  • SwiftUI Expert Skill — Modern SwiftUI best practices and iOS 26+ Liquid Glass adoption 2.3k ★
  • Claude Code iOS Dev Guide — A comprehensive guide for setting up Claude Code CLI with PRD-driven workflows, extended thinking (ultrathink) 492 ★
  • Video To Shader Prompt — Prompt: recreate a reference video as a GLSL shader 483 ★

README

SwiftUIShaders

41 SwiftUI Metal shaders. Holographic foil, kaleidoscope mandalas, magnetic fields, glitch, neon edges, and a pile more. Each one is a `[[ stitchable ]]` Metal function with a typed SwiftUI `View` modifier wrapped around it, so dropping one onto a view is a single line.

SwiftUIShaders running live in the shader lab

These started as a hidden shader lab inside Epilogue, my reading app. I built way more than I ever shipped, so I pulled the good ones out to share. Every shader here got rendered on a real book cover and kept only if it actually looked good. The duds, the washed-out ones, and the ones that only work on a blank gradient got cut. What's left is the set I'd reach for myself.

Drop them into your own project and mess around. They're also built to hand straight to a coding agent like Claude Code or Codex. If one sparks an idea, point your agent at [AGENTS.md](AGENTS.md) and let it riff.

Want to dial them in by eye? Hand the repo to your agent and ask it to build a slider-based tuning tool. Everything it needs is in [`Docs/parameters.json`](Docs/parameters.json), and the recipe is in [AGENTS.md](AGENTS.md). Tune against your own content, copy the line it spits out, paste it into your code.

The `bcs_` prefix is just the shader namespace. Nothing here is wired to Epilogue's actual app code.

Requirements

  • iOS 17+ / macOS 14+ / tvOS 17+ / visionOS 1+
  • Xcode 15+ (the Metal toolchain compiles the shaders into the package's default.metallib)

One gotcha: build with Xcode or `xcodebuild`, not bare `swift build`. SwiftPM's command-line driver on macOS doesn't run the Metal toolchain, so `Bundle.module` and `default.metallib` never get produced. In Xcode it just works.

Install

Swift Package Manager. In Xcode, go to **File ▸ Add Package Dependencies** and point it at this repo's URL. Or add it in `Package.swift`:

.package(url: "https://github.com/krisp