Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Elixir macros and DSLs: quote, hygiene and validation v1.0.0

Use this resource to write an Elixir macro or declarative DSL correctly

New

  • 466 downloads
  • 154 likes
  • 163 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install elixir-macro-dsl-design

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews Elixir macros and DSLs against rules covering quote and unquote, __using__, module attributes and compile-time validation. It first notes that a function is often enough. You get a macro that stays readable and reports errors at compile time.

Mostly picked by

Updated November 2, 2026

Card for the “Elixir macros and DSLs: quote, hygiene and validation” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on accumulated attributes, unquote fragments and minimal __using__
  • references/: cards on hygiene, escaping and guard macros

Good fit for

  • You are writing a routes or schema DSL for your application
  • A macro re-evaluates expressions and causes surprising effects

Not for

    Tags

    • elixir
    • macros
    • dsl
    • quote
    • metaprogramming

    About

    You say

    “Write a macro that declares this API's routes from a list, with validation at compile time.”

    Card for the “Elixir macros and DSLs: quote, hygiene and validation” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write an Elixir macro or declarative DSL correctly
    3. Review and adjust the result

    Content preview

    Files

    • AGENTS.md3.5 KB
    • assets/templates/_template.md1.1 KB
    • LICENSE1.1 KB
    • metadata.json1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md2.2 KB
    • references/dsl-accumulate-attributes.md2 KB
    • references/dsl-introspection-function.md1.4 KB
    • references/dsl-unquote-fragments.md1.3 KB
    • references/dsl-using-minimal.md1.2 KB
    • references/macro-defguard-for-guards.md1.2 KB
    • references/macro-thin-delegate-runtime.md1.5 KB
    • references/quote-bind-quoted-single-eval.md1.5 KB
    • references/quote-escape-runtime-data.md1.2 KB
    • references/quote-rely-on-hygiene.md1.5 KB
    • references/valid-fail-at-compile-time.md1.4 KB
    • references/valid-locate-errors-at-caller.md1.7 KB
    • SKILL.md6.1 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/elixir-meta-programming
    Licence
    MIT

    Notice

    « elixir-meta-programming » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.