igniter

Rules for working with Igniter

⭐2stars🔀0forks📁View on GitHub🕐Updated Oct 21, 2025

When & Why to Use This Skill

Igniter is a powerful code generation and project patching framework specifically designed for Elixir development. It enables semantic manipulation of codebases by leveraging AST (Abstract Syntax Trees) through Sourceror.Zipper, allowing for safe, context-aware modifications to both new and existing files. This skill is essential for developers looking to automate boilerplate creation, manage project configurations, and perform precise code refactoring within the Elixir ecosystem.

Use Cases

  • Automated Project Patching: Safely update Elixir configuration files (config.exs, runtime.exs) and application modules without manual intervention.
  • Intelligent Code Generation: Create custom generators that not only scaffold new modules but also intelligently integrate them into the existing project structure and mix.exs.
  • Dependency and Task Management: Programmatically manage project dependencies, task aliases, and formatter settings to ensure consistency across large-scale Elixir projects.
  • Semantic AST Refactoring: Perform complex code transformations on functions, maps, lists, and keyword lists using precise, context-aware AST manipulation tools.
nameigniter
descriptionRules for working with Igniter

Rules for working with Igniter

Understanding Igniter

Igniter is a code generation and project patching framework that enables semantic manipulation of Elixir codebases. It provides tools for creating intelligent generators that can both create new files and modify existing ones safely. Igniter works with AST (Abstract Syntax Trees) through Sourceror.Zipper to make precise, context-aware changes to your code.

Available Modules

Project-Level Modules (Igniter.Project.*)

  • Igniter.Project.Application - Working with Application modules and application configuration
  • Igniter.Project.Config - Modifying Elixir config files (config.exs, runtime.exs, etc.)
  • Igniter.Project.Deps - Managing dependencies declared in mix.exs
  • Igniter.Project.Formatter - Interacting with .formatter.exs files
  • Igniter.Project.IgniterConfig - Managing .igniter.exs configuration files
  • Igniter.Project.MixProject - Updating project configuration in mix.exs
  • Igniter.Project.Module - Creating and managing modules with proper file placement
  • Igniter.Project.TaskAliases - Managing task aliases in mix.exs
  • Igniter.Project.Test - Working with test and test support files

Code-Level Modules (Igniter.Code.*)

  • Igniter.Code.Common - General purpose utilities for working with Sourceror.Zipper
  • Igniter.Code.Function - Working with function definitions and calls
  • Igniter.Code.Keyword - Manipulating keyword lists
  • Igniter.Code.List - Working with lists in AST
  • Igniter.Code.Map - Manipulating maps
  • Igniter.Code.Module - Working with module definitions and usage
  • Igniter.Code.String - Utilities for string literals
  • Igniter.Code.Tuple - Working with tuples