بنقرة واحدة
playground
Quick code experimentation using IEx tool
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Quick code experimentation using IEx tool
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
行为驱动开发编译器 (BDDC)。使用此技能通过 DSL 管理 BDD 测试,该 DSL 可编译为 ExUnit 测试。包括从 .dsl 文件生成测试、验证指令集以及通过 lint 确保测试质量。
Create and use Mix.install standalone scripts for debugging Elixir code, testing APIs, exploring libraries, and isolating problems. Use when you need to test third-party integrations, verify library behavior, debug signatures, or prototype solutions outside the main project.
调用 Google Jules API 进行远程代理协作编程。适用于跨仓库重构、自动 PR 生成、以及需要利用 Google 强大远程代理能力的场景。
Remote debugging for BEAM/Elixir in production-like environments. Use when you need to enter a live container or host via kubectl exec or ssh to run IEx/remote RPC, reproduce issues, and collect telemetry/metrics safely with human-in-the-loop approval.
Invoke external agent CLIs (codex/gemini/claude) via shell from chat.
Manage Elixir dependencies at runtime using Mix
| name | playground |
| description | Quick code experimentation using IEx tool |
Use the iex tool for quick experimentation and debugging Elixir code.
The IEx tool provides a persistent Elixir session where you can:
Each session maintains state across tool calls, so variables persist.
iex("MyModule.my_function(arg1, arg2)")
iex("data = %{key: \"value\", nested: %{a: 1}}")
iex("Map.keys(data)") # Variables persist across calls
iex("[1, 2, 3] |> Enum.map(&(&1 * 2)) |> IO.inspect(label: \"doubled\")")
iex("""
[1, 2, 3, 4, 5]
|> Enum.filter(&rem(&1, 2) == 0)
|> Enum.map(&(&1 * 2))
|> Enum.sum()
""")
iex("Regex.match?(~r/[0-9]+/, \"abc123\")")
iex("MyModule.__info__(:functions)")
iex("{:ok, value} = {:ok, 42}")
iex("value") # => 42
iex("list = [1, 2, 3]")
iex("[head | tail] = list")
iex("head") # => 1
iex("tail") # => [2, 3]
iex("map = %{a: 1, b: 2}")
iex("Map.put(map, :c, 3)")
iex("Map.get(map, :a)")
iex("map.a") # Access syntax
iex("Enum.reduce([1, 2, 3], 0, &+/2)")
iex("Enum.zip([1, 2], [:a, :b])")
iex("Enum.group_by([\"apple\", \"apricot\", \"banana\"], &String.first/1)")
iex("String.split(\"hello world\", \" \")")
iex("String.upcase(\"hello\")")
iex("\"hello #{\"world\"}\"") # String interpolation
iex("""
[1, 2, 3, 4]
|> IO.inspect(label: "original")
|> Enum.map(&(&1 * 2))
|> IO.inspect(label: "doubled")
|> Enum.sum()
|> IO.inspect(label: "sum")
""")
iex("is_binary(\"hello\")")
iex("is_atom(:hello)")
iex("is_list([1, 2, 3])")
iex(":timer.tc(fn -> Enum.reduce(1..10000, 0, &+/2) end)")
✅ Good use cases:
❌ Don't use for:
""")# User asks: "How do I get unique values from a list?"
# Test it in IEx first
iex("Enum.uniq([1, 2, 2, 3, 3, 3])")
# => [1, 2, 3]
# Verify it works with strings
iex("Enum.uniq([\"apple\", \"banana\", \"apple\"])")
# => ["apple", "banana"]
# Then implement it in actual code
write_file(
path: "lib/helper.ex",
content: """
defmodule Helper do
def unique_values(list) do
Enum.uniq(list)
end
end
"""
)