Markdown Converter
Agent skill for markdown-converter
<!-- usage-rules-header -->
Sign in to like and favorite skills
IMPORTANT: Consult these usage rules early and often when working with the packages listed below. Before attempting to use any of these packages or to discover if you should use them, review their usage rules to understand the correct patterns, conventions, and best practices.
_Authentication extension for the Ash Framework. _
ash_authentication usage rules
_Utilities for integrating Ash and Phoenix _
_The PostgreSQL data layer for Ash Framework _
_A code generation and project patching framework _
if/else or case in function bodies{:ok, result} and {:error, reason} tuples for operations that can failwith for chaining operations that return {:ok, _} or {:error, _}Enum functions on large collections when Stream is more appropriatecase statements - refactor to a single case, with or separate functionsString.to_atom/1 on user input (memory leak risk)Enum functionsEnum functions like Enum.reduce over recursionwhen is_binary(name) and byte_size(name) > 0calculate_total_price/2 not calc/2is and should end in a question mark.is_thing should be reserved for guardsdefstruct [:name, :age][timeout: 5000, retries: 3][new | list] not list ++ [new]mix help to list available mix tasksmix help task_name to get docs for an individual taskmix test test/my_test.exs and a specific test
with the line number mix test path/to/test.exs:123mix test --max-failures n@tag to tag specific tests, and mix test --only tag to run only those testsassert_raise for testing expected exceptions: assert_raise ArgumentError, fn -> invalid_function() endhandle_continue/2 for post-init workterminate/2 when necessaryGenServer.call/3 for synchronous requests expecting repliesGenServer.cast/2 for fire-and-forget messages.call over cast, to ensure back-pressurecall/3 operations:max_restarts and :max_seconds to prevent restart loopsTask.Supervisor for better fault toleranceTask.yield/2 or Task.shutdown/2Task.async_stream/3 for concurrent enumeration with back-pressure_The extension for integrating Ash resources with Oban. _
_A declarative, extensible framework for building Elixir applications. _