| name | mdsmith-kinds |
| description | Inspect how mdsmith resolves file kinds in the current workspace. `resolve` shows the effective kind and merged rule config for one file; `list` enumerates all declared kinds. Trigger when the user asks "what kind is this file", "which rules apply here", "show me the kinds", or "resolve this file's config". |
| user-invocable | true |
| argument-hint | [resolve <file> | list] |
| allowed-tools | Bash(mdsmith:*), Bash(git rev-parse:*), Bash(go run ./cmd/mdsmith:*) |
mdsmith kinds
Inspect file-kind resolution and the effective
rule config that results.
Subcommands
Pass the subcommand as the skill argument.
resolve <file> — print the kind(s)
assigned to <file> and the merged rule
config. Required when the user asks about a
specific file.
list — enumerate all declared kinds in
the workspace config.
When no argument is given, default to list.
Steps
-
Locate the workspace root:
git rev-parse --show-toplevel
Run every subsequent command from that path.
Without git, use the current directory.
-
Detect the mdsmith CLI. Try, in order:
mdsmith version
go run ./cmd/mdsmith version
If only the second succeeds, substitute
go run ./cmd/mdsmith for mdsmith below.
-
Run the subcommand:
For resolve <file>:
mdsmith kinds resolve -- <file>
For list:
mdsmith kinds list
-
Surface the full stdout. If the command exits
non-zero, surface stderr as well.