idris2-elab

Automates Idris2 meta-programming and elaboration scripts for code generation and typeclass derivation.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/shogochiai/vibecoding-demo --skill idris2-elab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: idris2-elab
Source: https://github.com/shogochiai/vibecoding-demo/tree/main/.claude/skills/idris2-elab
Command: npx skills add https://github.com/shogochiai/vibecoding-demo --skill idris2-elab

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of understanding and utilizing Idris2's elaborator reflection features, reducing the complexity of meta-programming and elaboration tasks.

Core Features & Use Cases

  • Enhanced Meta-Programming: Enables reflection, code generation, and automation within Idris2 projects.
  • Educational Resources: Offers detailed explanations and practical examples for deepening understanding of Idris2's elaboration system.
  • Use Case: Automate the derivation of typeclass instances like Eq and Show for custom data types, saving manual effort and ensuring correctness.

Quick Start

Use the Idris2 elaboration scripts to generate Eq and Show instances for your custom types automatically.

Frequently Asked Questions about idris2-elab

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate typeclass derivation in Idris2?

Automate typeclass derivation in Idris2 by leveraging elaboration scripts to automatically generate Eq and Show instances for custom data types. This approach uses reflection to analyze types and produce instances during compilation, saving manual effort and ensuring correctness.

What is Idris2 elaborator reflection and how does it work?

Idris2 elaborator reflection is a mechanism enabling meta-programming by allowing scripts to analyze and generate code during compilation. It works through Idris2's elaboration libraries to perform code generation, enabling advanced automation and typeclass derivation directly within the compiler.

Do I need specific Idris2 libraries to use elaboration and reflection features?

Yes, utilizing Idris2 reflection and elaboration features requires the Idris2 reflection and elaboration libraries. These libraries provide the necessary environment to perform code analysis and generation tasks during compilation for macro programming and typeclass derivation.

Can I generate code automatically during Idris2 compilation?

Yes, you can generate code automatically during Idris2 compilation by writing elaborator scripts. This meta-programming capability analyzes custom data types and generates boilerplate code like typeclass instances, reducing manual effort and ensuring correctness throughout the project.

What's the best way to learn Idris2 macro programming and elaboration?

The best way to learn Idris2 macro programming is by studying detailed explanations and practical examples of the elaboration system. Utilizing educational resources that demonstrate reflection and code generation helps deepen understanding of advanced meta-programming tasks and typeclass derivation.

Why does manual typeclass instance writing fail in complex Idris2 projects?

Manual typeclass instance writing in complex Idris2 projects often leads to boilerplate errors and maintenance overhead. By using elaboration scripts and reflection, you can automate the derivation of instances like Eq and Show, ensuring correctness and saving manual effort.