The ValBuddy Codex skill provides an agent-ready way to run valbuddy.exe for comprehensive XML and JSON validation, schema validation checks, well-formedness verification, JSON formatting and beautification, and settings-based batch runs. This skill enables AI coding agents to programmatically validate, format, and process structured data files as part of automated workflows, continuous integration pipelines, and quality assurance processes.
Whether you're building automated testing pipelines, validating configuration files, ensuring data quality in batch processes, or integrating validation into your development workflow, the ValBuddy skill gives your AI agents the power to perform professional-grade XML and JSON validation with detailed error reporting and flexible configuration options.
The ValBuddy skill is built using the emerging Agent Skills / SKILL.md pattern, making it portable across multiple AI coding agents and platforms. This standardized approach to agent skills ensures that your investment in automation workflows can work across different tools and environments.
SKILL.md file,
plus optional PowerShell and Bash scripts in the scripts/ directory, and supporting documentation
in the references/ folder. Codex can discover and invoke skills automatically based on the skill's
declared capabilities.
SKILL.md following the same pattern.
Claude can use skills automatically when appropriate for the task at hand, or developers can explicitly invoke
them through direct references in prompts. Claude's skill integration allows for both autonomous and directed usage.
SKILL.md plus
optional scripts and resources. GitHub explicitly describes Agent Skills as an open standard intended
to work across multiple agents, not just their own. This commitment to openness ensures that skills like ValBuddy
can be shared and reused across different development environments and AI assistants.
This cross-platform compatibility means you can use the ValBuddy skill in your preferred AI coding environment without
modification. The standardized SKILL.md format describes the skill's capabilities, parameters, and usage
patterns in a way that different agents can understand and utilize effectively.
Installing the ValBuddy skill is straightforward and follows the standard Agent Skills installation pattern. The skill can be installed directly from GitHub using the built-in skill installer available in Codex and compatible agent environments.
Install from GitHub using the built-in skill installer:
python "$env:CODEX_HOME\skills\.system\skill-installer\scripts\install-skill-from-github.py" --repo Clemens-U/jsonbuddy --path skills/valbuddy-cli
After installation, you need to configure the path to the valbuddy.exe executable on your system.
This is done by setting the VALBUDDY_EXE environment variable to point to your ValBuddy CLI installation.
This approach allows the skill scripts to locate the executable regardless of where it's installed on your system.
Set the CLI path on the target system before running scripts (PowerShell):
$env:VALBUDDY_EXE="Z:\Software\JSONBuddy_7_4_4\valbuddy.exe"
Or for cmd.exe:
set VALBUDDY_EXE=Z:\Software\JSONBuddy_7_4_4\valbuddy.exe
Note: The environment variable must be set in the same session or shell where you intend to run the skill scripts. For persistent configuration, add the variable to your system environment variables or PowerShell profile.
The ValBuddy skill includes pre-built PowerShell scripts that wrap common validation and formatting operations. These scripts are designed to be invoked by AI agents as part of larger workflows, making it easy to integrate validation and formatting into your automated processes.
Validate JSON files against a JSON Schema with optional verbose output that provides detailed error messages and validation diagnostics:
./scripts/validate-json.ps1 -SchemaPath "D:\Schemas\library_schema.json" -InputFiles "D:\Data\library.json" -VerboseOutput
Validate XML files against an XSD schema to ensure structural correctness and data type compliance:
./scripts/validate-xml.ps1 -SchemaPath "D:\Schemas\invoice.xsd" -InputFiles "D:\Data\invoice.xml"
Format and beautify JSON files for improved readability, or minify them for production deployment:
./scripts/format-json.ps1 -Mode pretty -InputJson "D:\Data\raw.json" -OutputJson "D:\Output\pretty.json"
The skill supports batch operations on multiple files, making it ideal for validating entire directories of configuration files, data exports, or API responses in one operation.
The ValBuddy CLI follows a predictable exit-code contract that makes it easy to integrate into automated workflows and CI/CD pipelines. AI agents and scripts can reliably check the exit code to determine whether validation succeeded or failed.
0 means complete success – all files are valid, well-formed, and pass all checks.-1 is returned if any file is invalid, not well-formed, or has no schema assigned when validation is requested.This contract makes it simple to write conditional logic in scripts and workflows that respond appropriately to validation results, whether that means halting a build, triggering notifications, or proceeding with subsequent processing steps.
Most features of the ValBuddy CLI are available in the free version, making it accessible for individual developers, small teams, and evaluation purposes. However, some advanced features require commercial licenses:
<settings-xml>, -patch, -jsl, -jspp, -jst, and -j2csv.-jsv (JSON streaming validation for large files) requires a JSONBuddy Large Data license.The skill scripts automatically handle license-related limitations and will provide clear error messages if you attempt to use a feature that requires a commercial license.
The ValBuddy skill exposes a rich set of validation and formatting capabilities that AI agents can leverage in their workflows:
AI coding agents can use the ValBuddy skill in a variety of scenarios to improve code quality, ensure data integrity, and automate quality checks:
To start using the ValBuddy skill with your AI coding agent, follow these steps:
VALBUDDY_EXE to point to your valbuddy.exe location.
Once configured, your AI agent can automatically discover and use the ValBuddy skill when validation or
formatting tasks are needed. The agent will read the SKILL.md file to understand available
capabilities and parameter requirements.
Comprehensive documentation is available to help you get the most out of the ValBuddy skill. These resources cover everything from basic usage to advanced automation scenarios:
A formal test matrix publication covering validation behavior across different schema versions and edge cases is planned and will be linked here once available.
XML ValidatorBuddy is more than just an XML editor. Learn more on clicking the images and links below.
View and edit large XML data - not limited to well-formed input
Learn moreXML editor for Windows ® with syntax-coloring, code folding and many more...
Learn more