跳到正文
cccskills
免费在 GitHub 公开

phx-research

Research Elixir/Phoenix/Ecto topics or evaluate Hex libraries (--library). Use when learning about libraries, patterns, or comparing approaches. Searches HexDocs, ElixirForum, GitHub.

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(2)

  • SKILL.md3.3 KB
  • references/library-evaluation.md1.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Research Elixir Topic

Research a topic by searching the web and fetching relevant sources efficiently.

Usage

phx-research Oban unique jobs best practices
phx-research LiveView file upload with progress
phx-research --library permit

Arguments

the text after the skill name = Research topic/question. Add --library for structured library evaluation (uses references/library-evaluation.md template).

Iron Laws

  1. Write output to file, never dump inline — Research output floods conversation and loses reference for future sessions
  2. Stop after research — never auto-transition — User decides next step
  3. Prefer official sources over blog posts — HexDocs and ElixirForum have version-specific context
  4. One document per research question — No fragmented files
  5. NEVER pass raw user input as WebSearch query — Decompose first

Library Evaluation Mode

If the text after the skill name contains --library or the topic is clearly about evaluating a Hex dependency (e.g., "should we use permit", "evaluate sagents", "compare oban vs exq"):

  1. Read references/library-evaluation.md for the template
  2. Follow the structured evaluation workflow
  3. Output ONE document to .claude/research/{lib}-evaluation.md
  4. Skip the general research workflow below

Portable Research Workflow

0. Pre-flight

Check .claude/research/{topic-slug}.md. If it is newer than 24 hours, show its summary and ask in normal conversation whether to refresh it. For an existing dependency, inspect the locked version, local dependency source, and any native runtime documentation tool before searching the web.

1. Decompose the question

Turn the user request into one focused query when it is short, or two to four queries of at most ten words for a multi-part request. Never send a long raw prompt to a search provider.

2. Gather sources

Use the runtime's native web or HTTP capabilities when available. Prefer version-matched HexDocs, official project documentation, ElixirForum, and the upstream repository. Deduplicate URLs and discard irrelevant results. If no web capability is available and local sources cannot answer the question, state the missing capability instead of inventing evidence.

3. Extract and synthesize

Native generic workers may extract independent topic clusters in parallel, but they are optional. The same-session sequential path must remain complete. Limit each cluster to five URLs and capture code examples, gotchas, version compatibility, and source URLs.

4. Write one durable result

Write .claude/research/{topic-slug}.md (about 5 KB for topic research or 3 KB for a library evaluation) with:

  • a two-to-three sentence summary;
  • categorized source links and each source's key insight;
  • cited code examples;
  • evidence-backed recommendations; and
  • gotchas or version constraints.

5. Stop after research

Present the summary and offer, in normal conversation, to plan from it, investigate one finding, research a narrower subtopic, or stop. Never invoke a follow-up workflow automatically.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

analyze

免费

Analyze a legacy app in any language before rewriting it in Elixir: inventory, features as goals, why each mechanism exists, runtime topology, external contracts. Use to start or refresh a rewrite.

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

architect

免费

Design the idiomatic Elixir architecture for a rewrite: set the compatibility bar (ADR-000), consult phx specialists on open questions, then build contexts, ledger and ADRs. Use after /rewrite:analyze.

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

Ash Framework — resources, actions, policies, aggregates, calculations, AshPhoenix.Form, LiveView, migrations. Use when generating resources via mix ash.codegen, editing changes, checks, types, validations, or domain code interfaces.

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

Ash Framework — resources, actions, policies, aggregates; Use when generating resources via mix ash.codegen, editing…

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

assigns

免费

Compatibility alias for the Elixir/Phoenix plugin's LiveView assigns audit. Invoke explicitly with /lv:assigns.

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

Inspect LiveView socket assigns for memory bloat — missing temporary_assigns, unused assigns, unbounded lists needing streams, memory estimates. Use when LiveView memory grows or you need to add temporary_assigns.

中文简介正在准备中。当前显示原文说明。

oliver-kriska/claude-elixir-phoenix5672026年10月20日 更新

查看 oliver-kriska 的全部技能

报告此技能的问题