Skip to content

Skill: warn that stdin '-' support is v0.10.0+ - #688

Open
dhh wants to merge 1 commit into
mainfrom
skill-stdin-version-note
Open

Skill: warn that stdin '-' support is v0.10.0+#688
dhh wants to merge 1 commit into
mainfrom
skill-stdin-version-note

Conversation

@dhh

@dhhdhh commented Sep 8, 2026

Copy link
Copy Markdown
Member

Following the current skill against an older installed CLI (0.9.1) silently posts broken content: the skill says - reads stdin on every content input, but before v0.10.0 (#641) only comments create did. Everywhere else the dash is accepted as literal content — messages create "Title" - posts a body of -, which the Markdown conversion renders as an empty <ul><li>. That's a silent failure an agent won't notice unless it reads the message back.

This adds a version-boundary bullet to the skill's stdin rules: how the failure looks on older CLIs, to check basecamp --version when unknown, and the portable "$(cat file.md)" fallback.

🤖 Generated with Claude Code

On older CLIs only 'comments create' reads stdin; every other content
positional accepts the dash silently as literal content, so
'messages create "Title" -' posts a body of '-' that Markdown renders
as an empty bullet list. Seen in the wild against a 0.9.1 binary paired
with the current skill. Document the boundary and the portable
"$(cat file)" fallback.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CopilotAI balanced review requested due to automatic review settings September 8, 2026 07:01
@github-actionsgithub-actionsBot added the skills Agent skills label Sep 8, 2026

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The warning incorrectly excludes comments update and overgeneralizes unsupported inputs as silently posting literal content.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Documents the v0.10.0 boundary for universal stdin - support and provides a fallback for older CLI versions.

Changes:

  • Adds version-check guidance and a portable file-content fallback.
  • Explains the silent literal-content failure mode.

[!TIP]
If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

File summaries
FileDescription
skills/basecamp/SKILL.mdDocuments stdin compatibility across CLI versions.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +138 to +143
- Universal `-` support (and the stray-`-` guard) shipped in **v0.10.0**. Older
CLIs read stdin only for `comments create` — everywhere else the dash is
**accepted silently as literal content**, so `messages create "Title" -`
posts a body of `-`, which Markdown renders as an empty bullet list. When the
CLI version is unknown, check `basecamp --version` first, or pass the content
portably as `"$(cat file.md)"` and verify the posted `content` when it matters.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skillsAgent skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@dhh