Arrow resource

From alexandru/social-publish · View interactive version

Arrow resource is an AI agent skill from the GitHub repository alexandru/social-publish. Kotlin + 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; d

How to use this skill

Skill file

Arrow Resource (Kotlin)

Quick start

Workflow

  1. Identify every owned disposable dependency and its release action.
  2. Move acquisition into a Resource recipe or context(ResourceScope) builder.
  3. Compose resources into higher-level resources with .bind() or context-parameter builders.
  4. Keep resource handles private to the scoped object; expose operations, not the raw handle.
  5. Execute at lifecycle boundaries with resourceScope/.use, and keep finalizers idempotent.

Usage guidance

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.