Skip to content

fix(clerk-cli): require explicit --input-json - for stdin#52

Merged
rafa-thayto merged 1 commit into
mainfrom
rafa-thayto/clerk-cli-input-json-stdin
Jul 23, 2026
Merged

fix(clerk-cli): require explicit --input-json - for stdin#52
rafa-thayto merged 1 commit into
mainfrom
rafa-thayto/clerk-cli-input-json-stdin

Conversation

@rafa-thayto

@rafa-thayto rafa-thayto commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

clerk/cli#341 removed implicit stdin auto-detection in --input-json. The CLI now reads stdin only when the explicit - marker is passed (--input-json -); bare piped stdin is left untouched so shell loops (while read … | clerk …) and self-reading commands (cat body.json | clerk api …) aren't disturbed.

The clerk-cli skill still taught the removed behavior, so an agent following it would write echo '{...}' | clerk init — which now silently no-ops (JSON discarded, no error).

Changes

  • skills/core/clerk-cli/SKILL.md — stdin example now uses the explicit --input-json - marker; notes bare piped stdin is not auto-detected.
  • skills/core/clerk-cli/references/agent-mode.md — removed the auto-detect example and paragraph; documents the explicit-marker-only behavior.

The existing cat payload.json | clerk api … body-read examples are left as-is — upstream #341 actually fixes those (they were previously pre-empted by the stdin expander).

clerk/cli#341 removed implicit stdin auto-detection; --input-json now
reads stdin only with the explicit `-` marker. Update the skill so it
no longer teaches `echo '{...}' | clerk init` as a working pattern
(it now silently no-ops) and notes that bare piped stdin is left
untouched for shell loops and self-reading commands.

Claude-Session: https://claude.ai/code/session_01W6swrwZfwkAB5ye7EBy98z
@rafa-thayto
rafa-thayto force-pushed the rafa-thayto/clerk-cli-input-json-stdin branch from 2e76f0a to 5ea8d37 Compare July 23, 2026 14:22
@rafa-thayto
rafa-thayto merged commit 7abbb51 into main Jul 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants