/metaschema-tools:using-metaschema-javafrom metaschema-tools
Provides CLI commands for metaschema-java: validate modules and content, generate XML/JSON schemas, and convert between XML and JSON formats.
Ships in metaschema-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The metaschema-java CLI provides command-line tools for working with Metaschema modules.
→ For programmatic Java usage: See metaschema-java-library skill
metaschema-cli validate <metaschema-file>
Validates the Metaschema module syntax and structure.
metaschema-cli validate-content --metaschema <metaschema-file> <content-file>
Validates XML or JSON content against the constraints defined in a Metaschema module.
metaschema-cli generate-schema --as xml <metaschema-file>
metaschema-cli generate-schema --as json <metaschema-file>
metaschema-cli convert --metaschema <metaschema-file> --to xml <json-file>
metaschema-cli convert --metaschema <metaschema-file> --to json <xml-file>
Converts content between XML and JSON formats using the Metaschema as the model definition.
| Option | Description |
|---|---|
--as <format> | Specify output format (xml, json) |
-o <file> | Write output to file |
--help | Show command help |
--help on any command to see available options| Issue | Solution |
|---|---|
| Validation errors | Check module imports and namespace declarations |
| Content validation failures | Review constraint violations in output |
| Schema generation issues | Verify all referenced modules are accessible |
| Conversion errors | Ensure source content is valid before converting |
| Task | Skill |
|---|---|
| CLI commands (you are here) | using-metaschema-java |
| Java library/API usage | metaschema-java-library |
| Understanding Metaschema | metaschema-basics (from metaschema plugin) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
2 skills in this plugin
npx claudepluginhub metaschema-framework/claude-plugins --plugin metaschema-tools