kg provides schemas that make editing much nicer.
With editor support configured, you get:
- autocompletion while you type
- validation before you run
kg validate - hover documentation for available fields
- fewer typo-driven mistakes
kg config often, this is one of the highest-leverage setup steps.
Add $schema to your files
Use the manifest schema for files under manifests/:
agents/:
Schema URLs
These docs publish the schema files directly:https://kiro-generator.io/manifest.jsonhttps://kiro-generator.io/agent.json
Generate schemas locally
If you want the schema files from the installed binary instead:kg version on your machine.
Editor and LSP setup
taplo (Recommended)
Add to.taplo.toml in your project:
tombi
Add totombi.toml in your project:
VS Code
Install the Even Better TOML extension. It uses taplo and will pick up the$schema field from your TOML files automatically.
Neovim
Usingnvim-lspconfig:
Why this is worth doing
Without schemas,kg config is still workable, but you are relying on memory and trial-and-error.
With schemas, your editor can catch mistakes much earlier.
That is especially helpful when you are:
- adding a field you do not use often
- checking whether a setting belongs in a manifest or agent file
- exploring native tool configuration
- editing a large config without wanting to bounce between docs and terminal output