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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Mix.install( | |
| [ | |
| {:ash, "~> 3.0"}, | |
| {:ash_json_api, "~> 1.0"}, | |
| {:plug_cowboy, "~> 2.5"}, | |
| {:open_api_spex, "~> 3.16"} | |
| ], | |
| consolidate_protocols: false | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # class={classes("bar", foo: true)} | |
| def classes(string) when is_binary(string) do | |
| string | |
| end | |
| def classes({class, condition}) do | |
| if condition do | |
| to_string(class) | |
| end |
THIS IS A MANDATORY WORKFLOW - NO STEPS CAN BE SKIPPED
YOU MUST USE ALL AVAILABLE RESOURCES:
- Check existing usage rules via
get_usage_rulesMCP tool or CLAUDE.md links - Use
package_docs_searchfor ALL potentially relevant packages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # get current cmd before executing | |
| preexec() { | |
| export PLZ_CURRENT_COMMAND="$1" | |
| } | |
| # so we can provide it to plz | |
| plz() { | |
| PLZ_FULL_CMD="$PLZ_CURRENT_COMMAND" $HOME/.dotfiles/scripts/plz "$@" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ```elixir | |
| defmodule Thing do | |
| use Ash.TypedStruct | |
| typed_struct do | |
| field(:name, :string, allow_nil?: false) | |
| end | |
| end | |
| ``` |
Use list_generators to list available generators when available, otherwise mix help. If you have to run generator tasks, pass --yes. Always prefer to use generators as a basis for code generation, and then modify afterwards.
Use tidewave MCP tools when available, as they let you interrogate the running application in various useful ways.
NewerOlder