/alexandru-skills:cats-effect-iofrom alexandru-skills
Helps write and review Scala Cats Effect IO code: suspending side effects, choosing typeclasses (Sync/Async/Temporal/Concurrent), handling blocking I/O, testing with TestControl, and composing resources, fibers, and structured concurrency safely.
Ships in alexandru-skills. 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.
Read when SKILL.md points to them; scripts run unread.
IO[A], SyncIO[A], or F[A] with the smallest needed Cats Effect capability.Instant.now(), random/UUID generation, environment reads, and mutable allocation such as new Array[...] belong inside IO(...), Sync[F].delay, Clock, Random, or an effectful factory.IO/F/Resource factories and pass the resulting reference or service around. Do not hide effects in constructors, top-level vals, or default arguments.IO.interruptible by default (or Sync[F].interruptible); use blocking for acquisition, finalizers, and operations that must not be interrupted.Resource to acquire/release resources and IOApp for program entry points.parTraverse, parMapN, background, Supervisor) over manual fiber management.unsafeRun* (unsafeRunSync, unsafeRunAndForget, etc.) in app code or tests; for interop with non-Cats-Effect callback APIs, use Dispatcher.references/cats-effect-io.md for concepts, recipes, FAQ guidance, and verified samples.Resource guidance, use the cats-effect-resource skill.IO or polymorphic F[_] with the smallest capability (Clock, Random, Sync, Async, Temporal, Concurrent, etc.).IO(...), IO.interruptible, IO.blocking, IO.async, or the corresponding typeclass operation.create/resource factories returning F[A] or Resource[F, A].flatMap/for-comprehensions and collection combinators (traverse, parTraverse).Ref, Deferred, Queue, Semaphore, Supervisor) and structured concurrency to avoid fiber leaks.IOApp, framework runtime); for callback-style interop, bridge with Dispatcher.IO, SyncIO, and to F[_]: Sync/Async)IO (or F[_] with Cats Effect typeclasses/capabilities).Instant.now(), System.currentTimeMillis(), Random.nextInt(), UUID.randomUUID().Array, mutable.Map, Java collections, AtomicReference, caches).IO.interruptible/Sync[F].interruptible for blocking use-phase operations. This gives cancellation a chance to interrupt the underlying thread and is the right default for network/socket-style blocking APIs.interruptible; some APIs still ignore interruption, so add a resource-specific cancellation protocol when cancellation responsiveness matters and testing shows interruption is not enough.IO.blocking/Sync[F].blocking for acquisition, cleanup, and disposal (Closeable#close, AutoCloseable#close), where attempted interruption can leave lifecycle state ambiguous.IO/SyncIO or F[_]: Sync/Async); the guidance here applies equally to concrete IO and polymorphic F[_].scripts/verify-examples.scala script.unsafeRun* is forbidden in production and test code, including import cats.effect.unsafe.implicits.global.Dispatcher.IO[Assertion]/F[Assertion]) instead of manually running effects.IO.sleep/Thread.sleep in unit tests unless using virtual time with TestControl.references/cats-effect-io.md for documentation summary and patterns.references/cats-effect-io.md; the representative check is scripts/verify-examples.scala.cats-effect-resource skill for Resource-specific workflows and patterns.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/akka-streamsScala reactive streaming with Akka Streams and Pekko Streams. Use for dataflow and reactive programming patterns, testing stream components, and understanding when NOT to use streams (prefer plain functions for transformations and I/O)./arrow-resourceKotlin + Arrow Resource lifecycle discipline with `Resource`, `ResourceScope`, `resourceScope`, and context parameters. Use for safe acquisition/release of files, streams, DB pools/connections, HTTP clients, background scopes, or multipart parts; preventing resource leaks and use-after-close bugs; designing companion `Resource` builders; using `arrow-autoclose` when only synchronous `AutoCloseable` cleanup is possible; composing resources with typed errors, cancellation, or parallel acquisition./npx claudepluginhub alexandru/skills --plugin alexandru-skillsOther plugins' skills for the same job