/alexandru-skills:cats-effect-resourcefrom alexandru-skills
Helps write and review Scala Cats Effect Resource code, preventing resource leaks and use-after-release bugs. Covers Resource factories, Java AutoCloseable wrapping, composition, and cancellation-safe release.
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.
Resource.make, Resource.makeCase, or Resource.fromAutoCloseable..use; it is released when .use completes. Return only values computed inside the scope.Resource[F, Service], then pass acquired private dependencies into constructors.AutoCloseable values with Resource.fromAutoCloseable(Sync[F].blocking(...)) or IO.blocking(...).flatMap, mapN, parMapN, or helper constructors; expose Resource[F, A] from lifecycle-owning APIs.references/resource.md for patterns, best practices, and type-checked samples.Resource[F, A]; suspend side effects in F (Sync[F].delay/blocking, IO.blocking, etc.).resource/create factories that return Resource..use..use at the lifecycle boundary (IOApp, server startup, test fixture), and keep raw handles inside the use scope.allocated only for interop that truly needs separate acquire/release, and guarantee the finalizer is called exactly once.Resource over try/finally or bracket when composition and cancelation safety matter.IO.blocking (or Sync[F].blocking) for acquisition and release when calling blocking JVM APIs.IO.interruptible/Sync[F].interruptible for blocking use-phase operations inside .use.Resource.eval only for effects that do not own a finalizer; it is not a substitute for resource acquisition.use acquires a fresh resource each time. If the same handle must be shared for multiple operations, do those operations inside one .use.Resource, .background, or Supervisor to ensure cleanup on cancelation.scripts/verify-examples.scala script.references/resource.md for API details, patterns, and examples; the representative check is scripts/verify-examples.scala.arrow-resource skill.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./arrow-typed-errorsModels Kotlin logical failures with Arrow's context-parameter Raise DSL and wrappers such as Either, nullable, Option, and Ior. Use when implementing or simplifying typed-error flows, translating error types, replacing verbose Either handling, validating input with accumulation, or selecting an error wrapper./cats-effect-ioHelps agents write and review Scala Cats Effect IO code. Use for suspending side effects and non-determinism in IO or F[_], choosing Sync/Async/Temporal/Concurrent/Clock/Random, handling blocking I/O, testing with TestControl, and composing resources, fibers, races, and structured concurrency safely./cats-mtl-typed-errorsScala typed errors with Cats MTL Raise/Handle and allow/rescue. Use for designing custom domain error types without EitherT, while keeping Cats Effect and ecosystem composition. Covers Scala 2/3 syntax and IO-only or F[_] usage./code-refineRefines code through the three lenses in `code-refinements` with verified, behavior-preserving edits. Use when the user asks to refine a scope of code, such as a module, a directory, or the changes on a branch.npx claudepluginhub alexandru/skills --plugin alexandru-skillsOther plugins' skills for the same job