Skip to main content

YamlExchange Package

Overview​

This package converts (exports) Next Design models to YAML files and allows you to import (return) edits made in the YAML file back into the Next Design model. Because design information can be treated as text, it can be used for analysis and editing by AI agents, and for integration and sharing with external tools other than Next Design.

YAML files can be split into multiple files according to their purpose and team structure. For example, suppose design teams are organized by component, with one team primarily using AI-centered, text-based design and another primarily using a modeling approach with Next Design. Splitting the YAML files by component makes it easier for both teams to work with the design information.

This package includes the following two things:

  • Extensions

  • You can export and import models and specify how files are separated (YAML exchange settings) from the Next Design ribbon.

  • During import, existing models are matched and updated using the id written in the YAML. Even if you repeatedly import the exported file, the models will not be duplicated.

  • For details, please refer to How to Use from Next Design.

  • yamlexchange (command-line tool)

  • Allows you to perform export and import operations from the command line without launching Next Design. It can be used for batch processing and checking the consistency between Git-managed models and YAML files.

  • For details, please refer to How to use with commands.

Before using this package

When editing a model, you will also use the metamodel information file (nd.metamodel.yaml) output during export. There are restrictions on the output of the metamodel information file. Please refer to the following page.

To use this package, you must meet the prerequisites, such as the version of Next Design.

Please refer to the following page.

Package Contents​

File NameCategoryDescription
YamlExchange.ExtensionExtensionAn extension that allows you to export and import models and specify file structure from the Next Design ribbon.
yamlexchange.exeCommand Line ToolA command line tool that allows you to export and import models, etc., without launching Next Design.

YAML Editing Guide​

This guide primarily provides information for when AI edits YAML files, and schemas primarily for when users edit and inspect YAML files. Please save and use the files from the following link.

FileDescription
YamlEditGuide.mdA summary explanation of how to write YAML files.
yamlexchange.schema.jsonA file for checking YAML formatting errors in a JSON Schema-compatible editor.

For what to pass to AI and the procedure, see How to use from Next Design > Processing YAML with AI, and for the structure of the files you handle, see File Structure and Format.

Sample Git Hook​

When managing Next Design projects and YAML files with Git, we provide a sample Git hook (pre-push) to help maintain consistency. This sample is available at the following location:

For usage instructions, please refer to Git Consistency Check.