一键导入
working-with-json-output-types
Guide to the JSON output types used by CLI commands, where they are defined, and how to find them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Guide to the JSON output types used by CLI commands, where they are defined, and how to find them
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new runtime implementation to the kdn runtime system
Guide to using the instances manager API for workspace management and project detection
Guide to understanding and working with the kdn runtime system architecture
Guide to configuring the Podman runtime including image setup, agent configuration, and containerfile generation
Conventional Commit Message Generator
Guide to the autoconf package — how secret detection, filtering, and the runner are wired together, and how to extend the system with new detector types
| name | working-with-json-output-types |
| description | Guide to the JSON output types used by CLI commands, where they are defined, and how to find them |
| argument-hint |
All JSON output types for CLI commands are defined in the external module github.com/openkaiden/kdn-api/cli/go. This module is the single source of truth for every JSON shape that kdn commands emit.
The module is listed in go.mod — check there for the current version:
grep 'openkaiden/kdn-api/cli/go' go.mod
After downloading (run make build if you haven't yet), the source is in the Go module cache. Use the version from go.mod to build the path:
$(go env GOPATH)/pkg/mod/github.com/openkaiden/kdn-api/cli/go@<version>/
The only file that matters is api.go in that directory — it contains every type definition. Read it to see the exact JSON field names and which fields are optional (omitempty):
cat $(go env GOPATH)/pkg/mod/github.com/openkaiden/kdn-api/cli/go@$(grep 'openkaiden/kdn-api/cli/go' go.mod | awk '{print $2}')/api.go