/alexandru-skills:arrow-resourcefrom alexandru-skills
Guides safe acquisition/release of resources in Kotlin with Arrow's Resource, ResourceScope, and context parameters. Prevents leaks and use-after-close bugs for files, streams, DB connections, HTTP clients, and more.
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 and acquire it only inside resourceScope, resource {}, or Resource.use.arrow.fx.coroutines.resource.context imports for context-parameter-friendly resource, resourceScope, bind, install, and autoCloseable.resourceScope { ... }, resource { ... }, or resource.use { ... }; that returns a closed handle.Resource<Class> or requiring context(ResourceScope).Resource cannot be used, use arrow-autoclose/AutoCloseable with the same no-leak discipline.references/resource.md before writing examples, reviews, or new APIs.Resource recipe or context(ResourceScope) builder..bind() or context-parameter builders.resourceScope/.use, and keep finalizers idempotent.Resource over use/try/finally for suspend finalizers, cancellation awareness, composition, or multiplatform code.context(_: ResourceScope) suspend fun acquire....ExitCase when release behavior depends on success, failure, or cancellation.Resource is FP-style ownership: acquisition and finalization are values/effects that compose; hidden side-effectful constructors are a design smell.scripts/verify-examples.kt check.references/resource.md for rules, source links, and typechecked examples.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alexandru/skills --plugin alexandru-skills18 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-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.Other plugins' skills for the same job