/developer-experience:devex-cli-and-errorsfrom developer-experience
Guides designing and reviewing CLI tools and developer-facing error messages: stdout/stderr discipline, exit codes, help output, machine-readable output, config precedence, flag naming, telemetry opt-out, shell completion, and structured error formats.
Ships in developer-experience. 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.
Part 2 of 9 of the Developer Experience Blueprint (plugin
developer-experience), covering: CLI; Error messages. Sibling skills:devex-principles-and-feedback-loops,devex-api-sdk-and-docs,devex-interfaces-onboarding-and-agents,devex-surface-placement,devex-editor-and-desktop-surfaces,devex-mobile-and-web-surfaces,devex-non-developers-and-visual-design,devex-reference. A reference into a sibling is written Section name →skill.Currency: the blueprint is dated Oct 23, 2026; its evidence base and the AI-tooling claims age fastest, so re-check those first.
Evidence grades used throughout: A = peer-reviewed or large study, B = credible practitioner or single study, C = vendor or opinion. Thin evidence is flagged where it occurs, and collected under Where the evidence is weak or conflicting in
devex-reference.
The spec below follows the Command Line Interface Guidelines (read through a condensed copy, since clig.dev itself could not be fetched).
| Area | Rule |
|---|---|
| Output streams | Primary data to stdout; messages, progress and errors to stderr |
| Exit codes | 0 on success, non-zero on failure; use distinct codes for usage errors, not-found and transient failures, and document them |
| Help | -h/--help on every command; lead with examples; show the most common flags first; suggest the next command |
| Color and TTY | Color and spinners only on a TTY; honor NO_COLOR and a --no-color flag |
| Machine output | --json for stable structured output; --plain for line-oriented text; never change field names without a version bump |
| Interactivity | Prompt only on a TTY; --no-input disables all prompts; never require a prompt for something a flag can supply |
| Safety | --dry-run for destructive or remote actions; confirm dangerous operations; --force skips confirmation |
| Config precedence | Flags, then environment variables, then project config, then user config, then defaults; print the effective value on request |
| Speed | Respond within about 100 ms; print something before slow work begins; show progress for anything longer |
| Naming | Verb-noun or noun-verb, picked once and applied everywhere; no ambiguous abbreviations; short flags only for the most common options |
| Compatibility | Additive changes only inside a major version; warn before removing anything |
| Telemetry | Opt-in, documented, disclosed on first run, and off when DO_NOT_TRACK is set |
Typo and discovery help. Suggest the closest command for a misspelling, offer shell completion for bash, zsh and fish, and ship a man page or help topic for each concept.
Agent-friendly extras. JSON output, semantic exit codes, no required prompts and self-describing commands make a CLI easy for AI agents to drive. This pattern is supported by weak, practitioner-only evidence, but it costs little and also helps scripts.
An error is the most-read text in your product: eye-tracking work finds developers spend roughly 13–25% of task time reading errors, and a study of compiler messages found many unhelpful. The Rust compiler is the best-documented model (diagnostics guide).
E0382) that links to a longer explanation, and support --explain <code>.For API errors add a machine-readable type, a human message, a request_id for support and a docs link. An elm-style friendly tone helps, but clarity matters more than personality.
One study found that adding LLM-generated explanations to errors did not help; fix the message itself before adding a layer on top of it.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub the-vibey-project/vibey --plugin developer-experience9 skills in this plugin
/devex-api-sdk-and-docsUse when designing an API or SDK a developer will call, or writing and restructuring the documentation they read: method placement and discoverability, consistency, defaults, autocomplete, time-to-first-call, idempotency keys, API versioning and deprecation policy, Diataxis (tutorial, how-to, reference, explanation), README first screen, executable docs tested in CI, docs style, and docs feedback. Triggers on API usability, SDK design, time to first call, Stripe-style versioning, deprecation, Diataxis, README, docs-as-code. Companion to the other developer-experience skills./devex-editor-and-desktop-surfacesUse when building or reviewing a VS Code or IDE extension (Command Palette, sidebar views, welcome views, walkthroughs, status bar, quick pick, panels, notifications, webviews, activation events, disposables, language servers, Open VSX publishing) or a desktop app (Electron, Tauri, SwiftUI, GTK4, Qt, menu-bar extras and system tray, native-feel checklist, menu bar, undo, window-state restoration, Liquid Glass, signed and notarized installers). Triggers on VS Code extension UX, webview rules, notification rules, walkthrough, desktop app native feel, macOS menu-bar extra, Linux desktop conventions. Companion to the other developer-experience skills./devex-interfaces-onboarding-and-agentsUse when building a web UI, TUI or dashboard for developers; making a terminal tool accessible to screen-reader users; onboarding new contributors or maintainers; writing CONTRIBUTING.md and good-first-issues; building golden paths; or making a repository usable by coding agents: AGENTS.md, llms.txt, MCP server tool count and token budgets, deterministic CLI output, agent guard rails. Triggers on TUI accessibility, keyboard-first, onboarding time to first hello world, Steinmacher barriers, golden path, AGENTS.md, llms.txt, MCP tool design. Companion to the other developer-experience skills./devex-mobile-and-web-surfacesUse when designing the mobile or web surface of a developer product: iOS (touch targets, Dynamic Type, sheets, widgets, App Shortcuts, push; evidence flagged unverified against Apple), Android (widget quality tiers, core app quality, notification channels, Sharesheet, WorkManager, Material 3 Expressive), and web or PWA (manifest, installability, beforeinstallprompt on iOS, responsive conventions, cross-platform identity versus native interaction). Triggers on iOS widget, Android widget quality, PWA installable, cross-platform trade-off, what a phone is for. Companion to the other developer-experience skills./devex-non-developers-and-visual-designUse when making a developer product usable by people who are not developers: the template-run-change-reveal-export ladder, prebuilt environments, teaching in context, progressive disclosure, undo over confirmation, private-by-default for AI-built apps, the aesthetic-usability effect, design tokens (three tiers, DTCG), WCAG 2.2 AA, the European Accessibility Act, contrast, Material 3 Expressive and Liquid Glass. Triggers on non-developer onboarding, vibe coding security, AI app builder defaults, design system tokens, accessibility law, empty states. Companion to the other developer-experience skills./devex-principles-and-feedback-loopsUse when deciding what to improve first in a developer-facing product or codebase, weighing developer-experience (DevEx / DX) advice by how strong its evidence is, shortening build, test, lint and review feedback loops, cutting cognitive load, making local setup one command, adding a doctor command, quarantining flaky tests, keeping pre-commit hooks fast, or writing architecture decision records. Triggers on developer experience, DX, DevEx, feedback loops, flow state, cognitive load, build time, flaky tests, onboarding setup, SPACE framework, DX Core 4. Companion to the other developer-experience skills.