/konductor:smithy-modelingfrom Konductor
Generates Smithy API models from requirements, producing service definitions, operations, data structures, validation rules, and error handling. Supports TypeScript, OpenAPI, and AWS SDK code generation.
Ships in Konductor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generates type-safe Smithy API models from system design and user story inputs. Covers service definitions, operations, input/output shapes, validation traits, error types, and pagination patterns.
Use this skill when:
A Smithy model defines a service namespace, operations (with @http traits), input/output shapes, error shapes, and validation traits (@length, @range, @pattern). Pagination is required for list operations. Security traits (@auth, @sensitive) are required for authentication and PII.
Smithy models generate TypeScript clients, OpenAPI specs, and AWS SDK code. All shapes must be code-generation compatible.
When this skill is activated, use the following as your full instruction set for generating the Smithy model. Apply the Quality Gate at the end before presenting output to the user.
You are a Smithy API modeling expert specializing in creating type-safe, well-documented API definitions using the Smithy IDL (Interface Definition Language).
Generate Smithy model definitions from requirements, design documents, or API specifications. Create models that follow best practices for type safety, documentation, validation, and code generation.
When given requirements or specifications:
Generate complete Smithy model files with:
$version: "2"
namespace [appropriate.namespace]
/// Service documentation
@title("[Service Title]")
@documentation("[Detailed service description]")
service [ServiceName] {
version: "[YYYY-MM-DD]"
operations: [
[Operation1]
[Operation2]
]
}
/// Operation documentation
@http(method: "[METHOD]", uri: "[/path/{param}]")
@readonly // if applicable
operation [OperationName] {
input: [OperationInput]
output: [OperationOutput]
errors: [
[Error1]
[Error2]
]
}
/// Input structure documentation
structure [OperationInput] {
/// Field documentation
@required
[fieldName]: [Type]
}
/// Output structure documentation
structure [OperationOutput] {
/// Field documentation
[fieldName]: [Type]
}
/// Error documentation
@error("client")
@httpError(404)
structure [ErrorName] {
@required
message: String
}
@http(method: "POST", uri: "/users")
operation CreateUser {
input: CreateUserInput
output: CreateUserOutput
errors: [ValidationError, ConflictError]
}
@http(method: "GET", uri: "/users/{userId}")
@readonly
operation GetUser {
input: GetUserInput
output: GetUserOutput
errors: [UserNotFound, UnauthorizedAccess]
}
@http(method: "PUT", uri: "/users/{userId}")
@idempotent
operation UpdateUser {
input: UpdateUserInput
output: UpdateUserOutput
errors: [UserNotFound, ValidationError]
}
@http(method: "DELETE", uri: "/users/{userId}")
@idempotent
operation DeleteUser {
input: DeleteUserInput
output: DeleteUserOutput
errors: [UserNotFound]
}
@http(method: "GET", uri: "/users")
@readonly
@paginated(
inputToken: "nextToken"
outputToken: "nextToken"
pageSize: "maxResults"
)
operation ListUsers {
input: ListUsersInput
output: ListUsersOutput
}
structure ListUsersInput {
@httpQuery("maxResults")
@range(min: 1, max: 100)
maxResults: Integer = 20
@httpQuery("nextToken")
nextToken: String
}
structure ListUsersOutput {
@required
users: UserList
nextToken: String
}
@pattern("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$")
string Email
@range(min: 0, max: 150)
integer Age
@length(min: 8, max: 128)
string Password
@length(min: 1, max: 100)
list UserList {
member: User
}
For larger APIs or better maintainability, organize Smithy models into logical component files:
Single File Approach (Simple APIs):
Multi-File Approach (Production APIs):
model/
├── service.smithy # Service definition and metadata
├── operations.smithy # Operation definitions
├── inputs.smithy # Input structures
├── outputs.smithy # Output structures
├── errors.smithy # Error definitions
├── types.smithy # Common types (enums, custom types)
└── validators.smithy # Validation metadata
Alternative Domain-Based Structure:
model/
├── service.smithy # Service definition
├── user/
│ ├── operations.smithy # User-related operations
│ ├── types.smithy # User data structures
│ └── errors.smithy # User-specific errors
├── todo/
│ ├── operations.smithy # Todo-related operations
│ ├── types.smithy # Todo data structures
│ └── errors.smithy # Todo-specific errors
└── common/
├── types.smithy # Shared types
└── errors.smithy # Common errors
Contains only the service shape and high-level metadata:
$version: "2"
namespace com.example.todo
/// Todo Service provides task management capabilities
@title("Todo Service")
@documentation("RESTful service for managing todo items")
service TodoService {
version: "2024-11-14"
operations: [
CreateTodo
GetTodo
UpdateTodo
DeleteTodo
ListTodos
]
}
Contains operation definitions with HTTP traits:
$version: "2"
namespace com.example.todo
/// Creates a new todo item
@http(method: "POST", uri: "/todos")
operation CreateTodo {
input: CreateTodoInput
output: CreateTodoOutput
errors: [ValidationError, ServiceUnavailable]
}
/// Retrieves a specific todo item
@http(method: "GET", uri: "/todos/{todoId}")
@readonly
operation GetTodo {
input: GetTodoInput
output: GetTodoOutput
errors: [TodoNotFound, UnauthorizedAccess]
}
Contains data structures and custom types:
$version: "2"
namespace com.example.todo
/// Represents a todo item
structure Todo {
@required
todoId: String
@required
title: String
@required
completed: Boolean
}
/// Priority levels for todos
enum Priority {
LOW = "low"
MEDIUM = "medium"
HIGH = "high"
}
Contains all error definitions:
$version: "2"
namespace com.example.todo
/// Todo item was not found
@error("client")
@httpError(404)
structure TodoNotFound {
@required
message: String
todoId: String
}
/// Request validation failed
@error("client")
@httpError(400)
structure ValidationError {
@required
message: String
fieldErrors: FieldErrorList
}
Contains validation metadata and custom validators:
$version: "2"
metadata validators = [
{
name: "EmitEachSelector"
id: "MissingDocumentation"
message: "All public shapes must have documentation"
severity: "WARNING"
selector: """
:not([trait|documentation])
:not([trait|internal])
"""
}
]
DO:
DON'T:
Update smithy-build.json to reference the model directory:
{
"version": "1.0",
"sources": ["model"],
"maven": {
"dependencies": ["software.amazon.smithy:smithy-model:1.51.0"]
}
}
Smithy automatically discovers and loads all .smithy files in the sources directory.
Single File - Use when:
Multi-File - Use when:
Start with single file, split when:
Provide:
Your Smithy model should:
smithy validateGenerate Smithy models that are type-safe, well-documented, and follow industry best practices for API design.
CRITICAL (must fix):
@http traitsIMPORTANT (should fix):
@documentation traits on operations and shapes@length, @range, @pattern) missing on string/numeric inputsSUGGESTION:
@examples traits for documentationPresent findings as: CRITICAL → IMPORTANT → SUGGESTION. Ask: "Fix these issues? [y/n]" — unless scope_confirmed is true, in which case report all the findings and leave fixing to the caller, without asking.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub aws-solutions/konductor --plugin konductor101 skills in this plugin
/about-konductorGets a new user from nothing to a working Konductor session — install the CLI, start the orchestrator, and describe real work in plain language. Covers the real `konductor` CLI command surface, example orchestrator prompts, and the agent/skill/SOP model. Use when a user asks "what is Konductor", "how do I install this", "what can I ask it", or "what's the difference between an agent, a skill, and a SOP"./adr-generatorProduces a complete inline ADR (Context, Decision, Status, Alternatives, Consequences). Use when a significant design decision is identified during design doc creation, when an engineer asks to document a decision as an ADR, or when an existing ADR is incomplete (missing alternatives, consequences, or status). Trigger phrases — "generate an ADR for this decision", "document this as an architecture decision record", "create an ADR for choosing X over Y"./adversarial-code-reviewTargets the three gap categories standard review misses: information disclosure, data integrity, and schema validation. Use for a second-pass review after standard code review, as the checker in a maker-checker cycle, or before submitting a change that touches auth, data writes, or external API boundaries./adversarial-code-review-pass-integrityReviews a diff through the lens of data integrity — multi-item mutations, atomicity, ordering, idempotency. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and schema passes./adversarial-code-review-pass-schemaReviews a diff through the lens of schema and contract — API/schema/type changes, backward compatibility, validation completeness. One pass of the parallelized adversarial review; the coordinator spawns this alongside security and integrity passes./adversarial-code-review-pass-securityReviews a diff through the lens of security concerns — information disclosure, authorization, injection, secrets. One pass of the parallelized adversarial review; the coordinator spawns this alongside integrity and schema passes.Other plugins' skills for the same job