code-generation

Generate C++ code for Matter applications from .zap and .matter IDL files.

Updated Mar 6, 2026
One-click install
npx skills add https://github.com/renne/skills --skill code-generation-renne
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-generation
Source: https://github.com/renne/skills/tree/main/matter/code-generation
Command: npx skills add https://github.com/renne/skills --skill code-generation-renne

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of generating C++ code for Matter applications, ensuring consistency and reducing manual effort when working with cluster definitions and IDL files.

Core Features & Use Cases

  • Code Generation: Automates the creation of cluster-specific data types, callbacks, and attribute storage using .zap files and .matter IDL files.
  • IDL Tooling: Provides tools like matter-data-model-xml-parser and matter-idl-lint for managing and validating Matter IDL files.
  • Use Case: When you update a Matter specification or add a new cluster to your application, use this Skill to regenerate the necessary C++ code and ensure your application stays in sync with the latest standards.

Quick Start

Use the code-generation skill to regenerate all Matter SDK code.

Frequently Asked Questions about code-generation

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

FAQPage Schema
How do I generate C++ code for Matter applications from .zap and .matter IDL files?

To generate C++ code for Matter applications, use Python-based codegen tools and ZAP to parse .zap and .matter IDL files, automating the creation of cluster-specific data types, callbacks, and attribute storage. This streamlines updating Matter specifications and adding new clusters.

What is the best way to regenerate Matter SDK code after updating cluster definitions?

The best way to regenerate Matter SDK code is using automated code generation tools that support full regeneration or single application regeneration, ensuring your application stays in sync with the latest Matter standards and reducing manual coding effort.

How does matter-idl-lint validate Matter IDL files before code generation?

Matter-idl-lint validates Matter IDL files by checking syntax and structure before code generation, ensuring the .matter files are correctly formatted and conform to standards before parsing them into C++ code.

Can I pre-generate C++ code for external Matter applications?

Yes, you can pre-generate C++ code for external Matter applications using Python-based codegen tools and ZAP, which supports pre-generation workflows for external applications alongside full and single application regeneration.

How does matter-data-model-xml-parser handle XML definitions in Matter SDK code generation?

Matter-data-model-xml-parser handles XML definitions by parsing Matter data model XML files, extracting cluster definitions and data types required for generating corresponding C++ code, callbacks, and attribute storage structures.

When do I need to regenerate Matter SDK code using .zap files?

You need to regenerate Matter SDK code using .zap files when you update a Matter specification, add a new cluster to your application, or modify cluster definitions, ensuring generated C++ code stays consistent with the latest IDL files.