Elixir
streamband/hydra-srt
A skill your agent uses for Elixir/Phoenix development in this repo: implementing features, refactors, debugging, tests, Ecto changes, and production-safe fixes.
Work with the Membrane multimedia streaming framework in Elixir.
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install membraneframework/membrane_core membrane-framework --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/membrane-framework .claude/skills/membrane-framework && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .claude/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-frameworkType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install membraneframework/membrane_core membrane-framework --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/membrane-framework .agents/skills/membrane-framework && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .agents/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install membraneframework/membrane_core membrane-framework --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/membrane-framework .cursor/skills/membrane-framework && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .cursor/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/membraneframework/membrane_core.git --path skills/membrane-framework--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install membraneframework/membrane_core membrane-framework --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/membrane-framework .gemini/skills/membrane-framework && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .gemini/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install membraneframework/membrane_core membrane-frameworkInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/membrane-framework .github/skills/membrane-framework && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .github/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add membraneframework/membrane_core --skill membrane-framework -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install membraneframework/membrane_core membrane-framework --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/membraneframework/membrane_core.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/membrane-framework .opencode/skills/membrane-framework && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "membrane-framework" agent skill from https://github.com/membraneframework/membrane_core/tree/master/skills/membrane-framework into .opencode/skills/membrane-framework/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "membrane-framework", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
membrane-frameworkWork with the Membrane multimedia streaming framework in Elixir.
Membrane Framework is an agent skill from membraneframework/membrane_core. Work with the Membrane multimedia streaming framework in Elixir. Use this skill whenever the user is building or debugging Membrane pipelines, writing custom Elements, Bins, or Filters, connecting pads, implementing callbacks, handling stream formats or EOS, or asking about Membrane architecture. Trigger on any mention of membranecore, membrane, membrane framework, Membrane.Pipeline, Membrane.Sink, Membrane.Source, Membrane.Filter, Membrane.Endpoint, Membrane.Bin, Membrane.Pad, or multimedia streaming in an…
Its SKILL.md is about 4.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development. It works with Elixir. The repository describes itself as: The core of Membrane Framework, multimedia processing framework written in Elixir. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit 3aca29d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are elixir).
From the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
hexdocs.pmgithub.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Membrane Framework loads about 4.2k tokens when it runs. Until then it costs about 160 tokens; SKILL.md has 1,204 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from membraneframework/membrane_core at commit 3aca29d, republished under its Apache-2.0 licence (© membraneframework). 1,204 words, ~4,165 tokens.
.claude/skills/membrane-framework/SKILL.md (or your agent's skills folder).Package: membrane_core ~> 1.3 | Docs: https://hexdocs.pm/membrane_core/ | Module index: https://hexdocs.pm/membrane_core/llms.txt | Demos: https://github.com/membraneframework/membrane_demo | All packages: packages_list.md
handle_buffer/4 for filters/sinks, handle_demand/5 for manual-flow sources)mix membrane.gen.filter MyApp.MyFilter, mix membrane.gen.source, mix membrane.gen.sink, mix membrane.gen.endpoint, mix membrane.gen.bin, mix membrane.gen.pipeline instead of writing component skeletons by handFilter for transformations (has sensible defaults for stream_format forwarding); use Endpoint only when output is unrelated to input (e.g. a UDP Endpoint); use Source/Sink for pure producers/consumers:auto on all pads; only use :manual when you need fine-grained backpressure control; Almost the only use case of :push are output pads of Sources/Endpoints that cannot control when they produce data, e.g. UDP Source/Endpoint.child/2, get_child/1, via_in/2, via_out/2) (more info: Membrane.ChildrenSpec)spec: from handle_init/2 for static pipelines; return additional spec: actions from any callback (e.g. handle_child_notification/4) to grow the topology at runtime:source) for singletons, tuples ({:decoder, track_id}) for multi-instance children of the same typehandle_element_end_of_stream/4 in the pipeline to know when a sink's input pad received EOS; then return {[terminate: :normal], state} (doesn't work if sink is a Membrane.Bin - then expect a custom message from the bin in handle_child_notification callback instead, if the bin sends it){spec, group: <name>, crash_group_mode: :temporary}; handle recovery in handle_crash_group_down/3; see Crash Groups guidechild(:probe, %Membrane.Debug.Filter{handle_buffer: &IO.inspect(&1, label: :buffer)}) between any two elements to log buffers without changing pipeline logic. You can use different logging functions than IO.inspect/2. More info: Membrane.Debug.Filter.accepted_format compatibilityctx; key fields: ctx.children, ctx.pads, ctx.playback; crash callbacks also have ctx.crash_initiator, ctx.exit_reason, ctx.group_name; see Pipeline.CallbackContext, Bin.CallbackContext, Element.CallbackContextMembrane.Logger instead of Logger in Membrane components; it prepends component path and name to log messages. Requires require Membrane.Logger in the module before calling any logging functions.mix hex.info <plugin name> when you need to check the newest version of a plugindeps/ (use cat <filename> | grep def_input_pad and cat <filename> | grep def_output pad) to make sure output pad's accepted_stream_format is compatible with accepted_stream_format of the input pad which it is linked to.accepted_stream_format doesn't match, search for an element which can act as an adapterdeps/ directory - never do thatchild/2 for an already-spawned child — child/2 always spawns a new process; use get_child/1 to reference an existing one; duplicating a name raises an errorspec that spawns the component; linking them later raises a LinkErrorhandle_pad_added/3 — a dynamic bin input pad must be connected to an internal child within 5 seconds or a LinkError is raisedhandle_init/2 — handle_init is synchronous and blocks the parent; move file I/O, network connections, etc. to handle_setup/2handle_playing/2 — pads are not ready until :playing; don't send buffers from handle_setup/2handle_init/2 — we recommend to return only :spec action from this callback.Pipeline
├── Element (Source/Filter/Sink/Endpoint) ← leaf, processes data
├── Bin ← dual role: parent (has children) + child (has pads)
│ ├── Element
│ └── Bin ← bins nest arbitrarily deep
└── ...| Type | Parent | Child | Has Pads |
|---|---|---|---|
| Pipeline | yes | no | no |
| Bin | yes | yes | yes |
| Element | no | yes | yes |
Element subtypes: Source (output only) · Filter (in + out, output is transformed input) · Sink (input only) · Endpoint (in + out, but output might be not related to input)
Defined on Elements and Bins (not Pipelines) using def_input_pad/2 (Membrane.Element.WithInputPads) and def_output_pad/2 (Membrane.Element.WithOutputPads):
def_input_pad :input, accepted_format: _any
def_output_pad :output, accepted_format: Membrane.RawAudio, flow_control: :auto:always (static, one instance, referenced by atom) or :on_request (dynamic, reference via Pad.ref(:name, id)):auto (framework manages demand — preferred), :manual (explicit via :demand/:redemand), :push (no demand, risk of overflow)accepted_format:input/:output allow omitting via_in/via_out in specsaccepted_format matching syntax: _any (accept anything) · Membrane.RawAudio (any struct of that type) · %Membrane.RawAudio{channels: 2} (match specific fields) · %Membrane.RemoteStream{} (unknown/unparsed stream). any_of(pattern1, pattern2, ...) matches if any pattern matches. handle_init/2 sync, blocks parent — parse opts, return initial spec
handle_setup/2 async — heavy init (open files, connect services)
return {[setup: :incomplete], state} to delay :playing
handle_pad_added/3 fires for dynamic pads linked in the same spec
handle_playing/2 component is ready — start producing/consuming dataAll components spawned in the same :spec action enter :playing together (they synchronize to the slowest setup). Elements and Bins wait for their parent before handle_playing/2.
Stream format and EOS rules (critical for filter authors):
{:stream_format, {pad, format}} before the first buffer on each output pad, or downstream elements crashhandle_stream_format/4 in filters forwards the format downstream — if you override it, you must forward manually or return the {:stream_format, ...} action yourselfhandle_end_of_stream/3 in filters forwards EOS downstream — overriding without forwarding will stall the pipelineFull lifecycle guide: Lifecycle of Membrane Components
# Linear chain — child/2 spawns a new named child
child(:source, %Membrane.File.Source{location: "input.mp4"})
|> child(:filter, MyFilter)
|> child(:sink, %Membrane.File.Sink{location: "out.raw"})
# Explicit pad names (required for non-default names or dynamic pads)
get_child(:demuxer)
|> via_out(Pad.ref(:output, track_id))
|> via_in(:video_input)
|> child(:decoder, Membrane.H264.FFmpeg.Decoder)
# Link to an already-existing child
get_child(:existing_filter) |> child(:new_sink, MySink)
# Inside a Bin — bin_input/bin_output connect the bin's own pads to internal children
bin_input(:input) |> child(:filter, MyFilter) |> bin_output(:output)
# Crash group — all children in the spec share the group; a crash in any terminates all
{child(:source, Source) |> child(:sink, Sink), group: :my_group, crash_group_mode: :temporary}Bin pad wiring rules:
bin_input(pad_ref) / bin_output(pad_ref) are the interior side of the bin's own padshandle_pad_added/3 within 5 seconds or a LinkError is raisedThe standard approach for variable-track streams (e.g. MP4 demuxers):
# 1. Spawn source + demuxer; demuxer hasn't identified tracks yet
def handle_init(_ctx, state) do
{[spec: child(:source, Source) |> child(:demuxer, Demuxer)], state}
end
# 2. Demuxer notifies parent once tracks are known
def handle_child_notification({:new_tracks, tracks}, :demuxer, _ctx, state) do
spec = Enum.map(tracks, fn {id, _fmt} ->
get_child(:demuxer)
|> via_out(Pad.ref(:output, id))
|> child({:decoder, id}, Decoder)
|> child({:sink, id}, Sink)
end)
{[spec: spec], state}
end| Module | Purpose |
|---|---|
Membrane.Funnel | Multiple inputs → one output |
Membrane.Tee | One input → multiple outputs |
Membrane.Connector | Connect dynamic pads with internal buffering |
Membrane.Testing.Source | Inject buffers into a pipeline in tests |
Membrane.Testing.Sink | Capture and assert on buffers in tests |
Membrane.Debug.Filter | Log/inspect buffers flowing through pipeline |
Membrane.Debug.Sink | Log/inspect buffers at pipeline end |
Membrane.FilterAggregator | It is deprecated, just don't use it |
import Membrane.ChildrenSpec
import Membrane.Testing.Assertions
alias Membrane.Testing
pipeline = Testing.Pipeline.start_link_supervised!(spec: [
child(:source, %Testing.Source{output: [<<1, 2, 3>>, <<4, 5, 6>>]})
|> child(:sink, Testing.Sink)
])
assert_sink_buffer(pipeline, :sink, %Membrane.Buffer{payload: <<1, 2, 3>>})
assert_start_of_stream(pipeline, :sink)
assert_end_of_stream(pipeline, :sink)Testing.DynamicSource — like Testing.Source but with a dynamic output padAll timestamps are Membrane.Time.t(). It is integer nanoseconds under the hood, but don't use this information, because it is a part of the private API. However, keep in mind you can perform operations on Membrane.Time.t() using + or - operators. Helpers: Membrane.Time.seconds/1, Membrane.Time.milliseconds/1, Membrane.Time.microseconds/1, etc. Timers started with :start_timer action fire handle_tick/3.
More info: Membrane.Time, Timestamps guide.
Actions are returned from callbacks as {[action_list], state}. Full reference by component type:
| Module | Purpose |
|---|---|
Membrane.Pipeline | Pipeline behaviour & all callbacks |
Membrane.Pipeline.Action | Pipeline action type specs |
Membrane.Bin | Bin behaviour & all callbacks |
Membrane.Bin.Action | Bin action type specs |
Membrane.Element.Base | Shared element callbacks |
Membrane.Element.WithInputPads | handle_buffer/4, handle_stream_format/4, handle_end_of_stream/3 |
Membrane.Element.WithOutputPads | handle_demand/5 |
Membrane.Element.Action | Element action type specs |
Membrane.Pad | Pad definitions, Pad.ref/2 |
Membrane.Buffer | Buffer struct |
Membrane.ChildrenSpec | Topology DSL |
Callbacks are documented in the relevant behaviour modules:
handle_init, handle_setup, handle_playing, handle_call, handle_child_notification, handle_child_terminated, handle_crash_group_down, handle_element_end_of_stream, etc.handle_pad_added, handle_pad_removed, handle_parent_notificationhandle_init, handle_setup, handle_playing, handle_pad_added, handle_pad_removed, handle_parent_notification, handle_info, handle_tickhandle_buffer, handle_stream_format, handle_start_of_stream, handle_end_of_streamhandle_demand© membraneframework, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/membrane-framework of membraneframework/membrane_core.
Open the folder on GitHubat commit 3aca29d
Membrane Framework next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Membrane Framework this skillmembraneframework/membrane_core | 1.5k | — | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Elixirstreamband/hydra-srt | 146 | — | ~804 | Automated safety check: Pass | Apache-2.0 | |
| Idiomatic Elixirgeorgeguimaraes/elixir-agent-tools | 184 | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| Releasedmkenney/xamal | 106 | — | ~873 | Automated safety check: Pass | MIT | |
| Change CleanupSimon-Initiative/oli-torus | 119 | — | ~3.7k | Automated safety check: Pass | MIT | |
| Elixir AntipatternsGentleman-Programming/Gentleman-Skills | 657 | — | ~2.1k | Automated safety check: Pass | MIT |
streamband/hydra-srt
A skill your agent uses for Elixir/Phoenix development in this repo: implementing features, refactors, debugging, tests, Ecto changes, and production-safe fixes.
georgeguimaraes/elixir-agent-tools
Writes and refactors idiomatic Elixir modules and functions, with rules for pattern matching, error handling, protocols and when a process is really needed.
dmkenney/xamal
Cut a Xamal release end-to-end (maintainer-only). An agent skill from dmkenney/xamal.
Simon-Initiative/oli-torus
Clean up and harden code introduced by the current branch without drifting into broad refactors.
Gentleman-Programming/Gentleman-Skills
Core catalog of 8 critical Elixir/Phoenix anti-patterns covering error handling, separation of concerns, Ecto queries, and testing.
dmkenney/xamal
Prepare a new Xamal version locally — bump @version in mix.exs, roll the CHANGELOG.md
Works with
Categories
Work with the Membrane multimedia streaming framework in Elixir. Membrane Framework is an agent skill from membraneframework/membrane_core. Work with the Membrane multimedia streaming framework in Elixir.
Membrane Framework fits situations like: the user is building; debugging Membrane pipelines; writing custom Elements; connecting pads.
Run `npx skills add membraneframework/membrane_core --skill membrane-framework -a claude-code`. Or copy the skill folder (skills/membrane-framework in membraneframework/membrane_core) into .claude/skills/membrane-framework in your project. Claude Code loads it when a task matches its description.
Run `npx skills add membraneframework/membrane_core --skill membrane-framework -a codex`. Or copy the skill folder (skills/membrane-framework in membraneframework/membrane_core) into .agents/skills/membrane-framework in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add membraneframework/membrane_core --skill membrane-framework -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/membrane-framework, .gemini/skills/membrane-framework, .github/skills/membrane-framework and .opencode/skills/membrane-framework in your project.
SKILL.md names no scripts, command-line tools or credentials: Membrane Framework is instructions for the agent only.
SKILL.md names 2 domains. As links in the text: hexdocs.pm and github.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Membrane Framework is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.2k tokens (SKILL.md is roughly 17k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Membrane Framework: Elixir (streamband/hydra-srt, 146 stars), Idiomatic Elixir (georgeguimaraes/elixir-agent-tools, 184 stars), Release (dmkenney/xamal, 106 stars) and Change Cleanup (Simon-Initiative/oli-torus, 119 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
membraneframework (a GitHub organization) maintains it in membraneframework/membrane_core, which has 1,517 GitHub stars. The repository was last updated on October 1, 2026.
Source: membraneframework/membrane_core on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.