kiro-wiz 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ryo Lambert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,125 @@
1
+ # Kiro Wiz
2
+
3
+ Unified CLI, TUI, and MCP server for the Kiro ecosystem — scaffold generators, workspace auditing, knowledge base sync, and tool recommendations.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ cd ~/.kiro/tools/kiro-wiz
9
+ bun install
10
+
11
+ # Launch interactive TUI
12
+ bun run dev
13
+
14
+ # Or use CLI subcommands
15
+ bun run dev -- scaffold hook my-hook
16
+ bun run dev -- audit
17
+ bun run dev -- sync --all
18
+ bun run dev -- query hooks
19
+ bun run dev -- recommend "enforce code review standards"
20
+ bun run dev -- validate .kiro/agents/my-agent.json
21
+ bun run dev -- install --scope local
22
+
23
+ # Start MCP server
24
+ bun run dev:mcp
25
+ ```
26
+
27
+ ## Interface Modes
28
+
29
+ | Mode | Invocation | Description |
30
+ |------|-----------|-------------|
31
+ | TUI | `kiro-wiz` (no args) | Interactive terminal UI with menus |
32
+ | CLI | `kiro-wiz <command>` | Scriptable subcommands |
33
+ | MCP | `kiro-wiz --mcp` | MCP server for agent integration |
34
+
35
+ ## CLI Commands
36
+
37
+ ```
38
+ kiro-wiz scaffold <type> <name> Scaffold a Kiro tool
39
+ kiro-wiz audit [path] Audit workspace for best practices
40
+ kiro-wiz sync --all Sync knowledge base from kiro.dev
41
+ kiro-wiz query [search-term] Search the knowledge base
42
+ kiro-wiz install [--scope ...] Install pre-built configs
43
+ kiro-wiz validate <file> Validate a Kiro config file
44
+ kiro-wiz recommend <use-case> Get tool recommendations
45
+ ```
46
+
47
+ ### Scaffold Types
48
+
49
+ `spec`, `hook`, `steering-doc`, `skill`, `power`, `mcp-server`, `custom-agent`, `autonomous-agent`, `subagent`, `context-provider`
50
+
51
+ ### Options
52
+
53
+ | Flag | Description |
54
+ |------|-------------|
55
+ | `--mcp` | Start as MCP server (stdio) |
56
+ | `--tui` | Force TUI mode |
57
+ | `--dry-run` | Preview without writing files |
58
+ | `--scope local\|global` | Install scope |
59
+ | `--force` | Overwrite existing files |
60
+ | `--help` | Show help |
61
+
62
+ ## MCP Tools
63
+
64
+ When running as MCP server, 9 tools are available:
65
+
66
+ | Tool | Description |
67
+ |------|-------------|
68
+ | `scaffold_tool` | Generate tool scaffolds |
69
+ | `install_tool` | Install scaffolded files |
70
+ | `audit_workspace` | Scan for best practices |
71
+ | `sync_knowledge_base` | Crawl and update KB |
72
+ | `query_knowledge_base` | Search KB |
73
+ | `validate_config` | Validate configs |
74
+ | `get_decision_matrix` | Tool selection matrix |
75
+ | `get_template` | Get scaffold templates |
76
+ | `get_platform_guide` | Platform guidance |
77
+
78
+ ## Kiro IDE Integration
79
+
80
+ ### Power
81
+
82
+ The `powers/kiro-wiz/` directory contains a Kiro IDE power that exposes all MCP tools to agents. Configure it in your agent's `mcpServers` field.
83
+
84
+ ### Hook
85
+
86
+ `.kiro/hooks/kb-sync.kiro.hook` — manually triggered hook for KB sync.
87
+
88
+ ### Steering
89
+
90
+ `.kiro/steering/kiro-wiz-context.md` — always-included context for agents working in this workspace.
91
+
92
+ ## Architecture
93
+
94
+ ```
95
+ src/main.ts → Unified entry point (TUI / CLI / MCP)
96
+ src/cli/router.ts → CLI subcommand dispatcher
97
+ src/cli/commands/ → 8 command handlers
98
+ src/tui/ → OpenTUI React terminal UI
99
+ lib/ → 28 core modules (shared by all interfaces)
100
+ powers/kiro-wiz/ → Kiro IDE power integration
101
+ ```
102
+
103
+ ## Development
104
+
105
+ ```bash
106
+ bun install # Install dependencies
107
+ bun run dev # Run in dev mode
108
+ bun run test # Run tests
109
+ bun run build # Build for distribution
110
+ ```
111
+
112
+ ## Pre-built Configs
113
+
114
+ Install best-practice configs to your workspace:
115
+
116
+ ```bash
117
+ kiro-wiz install --scope local # → .kiro/ in current directory
118
+ kiro-wiz install --scope global # → ~/.kiro/
119
+ ```
120
+
121
+ Includes: agents, steering docs, skills, and reference material.
122
+
123
+ ## Scope Precedence
124
+
125
+ Local (`.kiro/`) overrides global (`~/.kiro/`) for agents, settings, and MCP configs.