elixir-phoenix-research
Research Phoenix topics or evaluate Hex libraries from primary sources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Research Phoenix topics or evaluate Hex libraries from primary sources.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Recommend the right `$elixir-phoenix-*` skill for the current task.
Elixir/Phoenix: Review lifecycle, state-machine, Oban, persistence, pause/resume, retry, and restart-sensitive changes before commit, push, or PR. Use for concurrency-sensitive runtime work to produce explicit blocking vs optional findings, require durability checks, and verify smoke plus restart resilience when applicable.
Capture a solved Phoenix problem as a reusable solution doc.
Audit LiveView assigns for memory bloat, dead assigns, and stream candidates.
Audit project health across architecture, security, performance, tests, and deps.
Analyze Phoenix context boundaries and coupling with `mix xref`.
| name | elixir-phoenix-research |
| description | Research Phoenix topics or evaluate Hex libraries from primary sources. |
| metadata | {"short-description":"Research Phoenix topics and libraries"} |
Research a topic by searching the web and fetching relevant sources efficiently.
$elixir-phoenix-research Oban unique jobs best practices
$elixir-phoenix-research LiveView file upload with progress
$elixir-phoenix-research --library permit
$ARGUMENTS = Research topic/question. Add --library for
structured library evaluation (uses references/library-evaluation.md
template).
If $ARGUMENTS contains --library or the topic is clearly
about evaluating a Hex dependency (e.g., "should we use permit",
"evaluate sagents", "compare oban vs exq"):
references/library-evaluation.md for the template.codex/research/{lib}-evaluation.mdCache check: Check if .codex/research/{topic-slug}.md already
exists. If recent (<24 hours): present existing summary, ask
"Refresh or use existing?"
Tidewave shortcut: If the topic is about an existing dependency
(library already in mix.exs), prefer Tidewave over web search:
mcp__tidewave__get_docs(module: "LibraryModule")
This returns docs matching your exact mix.lock version — faster,
more accurate, zero web tokens. Only fall through to web search if
Tidewave is unavailable or the topic needs community discussion
(gotchas, real-world patterns, comparisons).
NEVER pass raw $ARGUMENTS into web search. Decompose first:
$ARGUMENTS < 30 words and focused → use as single query$ARGUMENTS > 30 words or multi-topic → extract 2-4 queriesEach query: max 10 words, targets ONE specific aspect.
Example:
Input: "detect files, export to md, feed database with embeddings,
use ReqLLM for OpenAI API..."
Queries:
1. "Elixir PDF text extraction library hex"
2. "Ecto pgvector embeddings setup"
3. "ReqLLM OpenAI embeddings Elixir"
Search ALL decomposed queries in a SINGLE response (parallel):
web.search_query("{query1} site:elixirforum.com OR site:hexdocs.pm OR site:github.com")
web.search_query("{query2} site:hexdocs.pm OR site:elixirforum.com")
Deduplicate URLs across results. Discard clearly irrelevant hits.
Group URLs by topic cluster. Spawn 1-3 web-researcher agents in parallel (one per topic cluster):
For each topic cluster, delegate one focused web research agent with explicit URLs,
required extraction fields (examples, patterns, gotchas, version compatibility), and
a concise summary target (500-800 words).
Each agent writes results to a deterministic path:
.codex/research/{cluster-slug}/worker-{n}.md.
Rules:
After ALL agents complete, synthesize summaries into ONE file. Target: ~5KB for topic research, ~3KB for library evaluations.
Create .codex/research/{topic-slug}.md:
# Research: {topic}
## Summary
{2-3 sentence answer combining all worker findings}
## Sources
### {Category}
- [{title}]({url}) - {key insight}
### Code Examples
```elixir
# From {source}: {what this demonstrates}
{code}
### 5. After Research — STOP
**STOP and present the research summary.** Do NOT auto-transition.
Use `ask the user directly` to let the user choose next action:
- "Plan a feature based on this research" → `$elixir-phoenix-plan`
- "Investigate a specific finding" → `$elixir-phoenix-investigate`
- "Research more on a subtopic" → continue research
- "Done" → end
**NEVER auto-invoke `$elixir-phoenix-plan` or any other skill after research.**