kiro-generator (aka kg) is a tool for managing and generating Kiro custom agent files.
- Initialize your config
$ kg init
Created /home/user/.kiro/generators/kg.kdl
Created /home/user/.kiro/generators/default.kdl
Created /home/user/.kiro/generators/example.kdl
✓ Initialized kg configuration in /home/user/.kiro/generators
- Review/Modify/Add to your config
See documentation for further info and examples
- Validate your config
$ kg validate
╭────────────────────┬─────┬─────────────────┬────────────────────────────────────────────────┬────────────────────┬────────┬────────┬────────╮
│ Agent 🤖 (PREVIEW) ┆ Loc ┆ MCP 💻 ┆ Allowed Tools ⚙️ ┆ Resources 📋 ┆ Overrides │
╞════════════════════╪═════╪═════════════════╪════════════════════════════════════════════════╪════════════════════╪══════════════════════════╡
│ default ┆ 📁 ┆ ┆ knowledge, read, web_search ┆ - file://README.md ┆ │
│ ┆ ┆ ┆ ┆ - file://AGENTS.md ┆ │
│ ┆ ┆ ┆ ┆ ┆ │
├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ rust ┆ 📁 ┆ cargo, rustdocs ┆ @cargo, @rustdocs, knowledge, read, web_search ┆ - file://README.md ┆ │
│ ┆ ┆ ┆ ┆ - file://AGENTS.md ┆ │
│ ┆ ┆ ┆ ┆ - file://RUST.md ┆ │
│ ┆ ┆ ┆ ┆ ┆ │
╰────────────────────┴─────┴─────────────────┴────────────────────────────────────────────────┴────────────────────┴──────────────────────────╯
🎉 Config is valid
→ Run kg generate to generate agent files- Generate
$ kg generateprofit
cargo install kiro-generator- Rust Nightly: Required for code formatting with advanced features
rustup install nightly
-
Clone the repository
git clone https://github.com/CarteraMesh/kiro-generator.git cd kiro-generator -
Build and test
# Build the project cargo build # Run tests (requires valid Fireblocks credentials in .env) cargo test # Format code (requires nightly) cargo +nightly fmt --all
This project uses advanced Rust formatting features that require nightly:
# Format all code
cargo +nightly fmt --all
# Check formatting
cargo +nightly fmt --all -- --check- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
See CONTRIBUTING.md.