kiro-generator (kg) helps you manage Kiro custom agents without hand-editing piles of JSON.
Define agents in TOML, compose them with inheritance and templates, validate the result, then generate the JSON Kiro expects.
If editing agent JSON by hand has ever felt like doing plumbing with a spoon, this tool exists for you.
Install
Get
kg onto your machine with the install path that fits your platform.Quickstart
Learn the
--skeleton flow and see the generated file layout.Guided migration
Use
kg-helper to inspect existing agents and migrate them into TOML.Why kg?
Kiro agent files are JSON. JSON is fine right up until you want reuse, overrides, shared defaults, or confidence that a larger config change did not quietly break something.
kg gives you:
- Reusable agent definitions built from TOML
- Inheritance and templates for shared configuration
- Global config in
~/.kiro/generators/and project-local config in.kiro/generators/ - Validation before generation
- Helpful inspection commands like
diff,tree, andschema
Basic workflow
Most people will usekg like this:
- Install
kg - Run
kg init - Define agents in manifest and agent config files
- Run
kg validate - Run
kg generate - Use
kg diff,kg tree, orkg watchwhen you need more visibility or automation
What this first migration covers
- Install gets
kgon your machine - Quickstart walks through the
--skeletonpath - Guided migration covers the
kg-helpermigration flow
Prerequisites
- kiro-cli
- A working tolerance for TOML
- A mild distrust of hand-maintained JSON