一键导入
spark
Use this skill when building or modifying the Spark DSL extension. Consult for entity definitions, sections, transformers, and verifiers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use this skill when building or modifying the Spark DSL extension. Consult for entity definitions, sections, transformers, and verifiers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Formal specification workflow for state machines using TLX (TLA+ in Elixir). Covers writing abstract specs from ADRs, generating concrete specs from code, enriching extracted skeletons with invariants and properties, refinement checking, and CI integration. Use when asked to write a spec, formally specify, verify a state machine, check refinement, generate a concrete spec, enrich a skeleton, or compare abstract and concrete specs.
Scan an Elixir/Erlang project for modules that TLX can formally specify. Covers OTP behaviours (GenServer, gen_statem, LiveView), framework extensions (Ash.StateMachine), and workflow/pipeline libraries (Reactor, Broadway). Reports spec coverage and suggests where to focus verification effort. Use when asked to audit, scan, find extractable modules, check spec coverage, or triage formal verification targets.
Detect when implementation code has changed but its formal TLX spec has not been updated. Compares git timestamps, re-extracts structure, and diffs against existing specs. Use when asked to check spec drift, detect stale specs, verify specs are up to date, or audit spec freshness.
Generate state machine diagrams from TLX specs in multiple formats (DOT, Mermaid, PlantUML, D2). Use when asked to visualize a spec, generate a diagram, draw a state machine, create a graph, or render a spec as an image.
| name | spark |
| description | Use this skill when building or modifying the Spark DSL extension. Consult for entity definitions, sections, transformers, and verifiers. |
| metadata | {"managed-by":"usage-rules"} |
mix usage_rules.search_docs "search term" -p spark
mix spark.cheat_sheets - Creates cheat sheets for each Extension provided. Useful for CI with --check flag.mix spark.cheat_sheets.docsmix spark.cheat_sheets_in_search - Includes generated cheat sheets in the search barmix spark.formatter - Manages a variable called spark_locals_without_parens in the .formatter.exs from a list of DSL extensions.mix spark.install - Installs spark by adding the Spark.Formatter plugin, and providing a basic configuration for it in config.exs.mix spark.replace_doc_links - Replaces any spark dsl specific doc links with text appropriate for hex docs.