Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Smithy CLI

$ smithy Official Low Risk
AWS · Design & Docs · Apache-2.0 · macos / linux / windows

The official AWS Smithy CLI validates .smithy interface definition models, compiles AST JSON representations (smithy ast), and projects OpenAPI specs, client/server code, and documentation via smithy build. Supports --no-color, --logging, and deterministic CI exit codes.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
brew install smithy-lang/tap/smithy-cli
CLI vs MCP Decision CLI Preferred vs MCP

Smithy model validation, AST export (smithy ast), and OpenAPI projection run directly on local .smithy workspaces via smithy.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

smithy ast emits clean JSON AST on stdout, --no-color and --logging control output, and smithy validate runs non-interactively with strict exit codes.

  • smithy ast outputs full semantic JSON AST
  • Supports --no-color, --logging <LEVEL>, and headless validate
Trust & Safety 22 / 25

validate and ast are strictly read-only; build writes projections cleanly inside build/smithy (or --output).

  • Read-only validate and ast subcommands
Setup & Portability 12 / 15

Installed via Homebrew tap (smithy-lang/tap/smithy-cli) or official archive, carrying a heavier JVM/Gradle dependency resolution footprint than single Go/Rust binaries.

  • Requires smithy-lang/tap on Homebrew and JVM-backed dependency resolution
Utility & Efficiency 13 / 15

First-class IDL compiler for AWS-style service models, projecting OpenAPI, SDKs, and docs from one source of truth.

  • Single-source IDL projecting OpenAPI and multi-language SDKs
Maintenance & Lineage 10 / 10

Official AWS repository (smithy-lang/smithy) actively maintained under Apache-2.0.

  • Official AWS Smithy organization
Docs & Verifiability 9 / 10

Thorough official Smithy 2.0 CLI documentation at smithy.io.

  • Official CLI guides at smithy.io/2.0/guides/smithy-cli/

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

None required for local models; Maven repository credentials may reside in local config when resolving private model dependencies.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and Apache-2.0 open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Smithy CLI Agent Rules
- Run `smithy validate --no-color` before `smithy build` to catch model errors without writing artifacts.
- Use `smithy ast` when inspecting resolved shapes programmatically in JSON.
- Pass `--no-color` and `--logging WARNING` when compact output is needed.

Agent-Ready Command Recipes

Safe Read-Only Queries

Validate Smithy models without writing build artifacts
smithy validate --no-color

Parses and validates smithy-build.json and .smithy files read-only without emitting artifacts.

Export the resolved Smithy semantic AST as JSON
smithy ast model/

Serializes the validated Smithy model into a single machine-readable JSON AST on stdout.

Controlled Writes & Previews

Build Smithy projections into build/smithy
smithy build --no-color

Projects configured OpenAPI schemas, SDKs, or artifacts into build/smithy.

Strengths for Agents

  • + Official AWS IDL toolchain with strict validate and smithy ast JSON AST export.
  • + Clean --no-color and --logging controls for CI and agent sandboxes.
  • + Projects OpenAPI specs and SDKs deterministically from .smithy models.

Caveats & Pitfalls

  • ! Requires tapping smithy-lang/tap/smithy-cli on Homebrew or installing platform archives.
  • ! Project builds resolving external Maven/JAR model dependencies require network access on cold caches.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI