fix(clerk-cli): require explicit --input-json - for stdin#52
Merged
Conversation
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
force-pushed
the
rafa-thayto/clerk-cli-input-json-stdin
branch
from
July 23, 2026 14:22
2e76f0a to
5ea8d37
Compare
wyattjoh
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-cliskill still taught the removed behavior, so an agent following it would writeecho '{...}' | 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).