Skip to content

Quote the Placeholders in Shell Fences So a Pasted Line Parses - #1749

Merged
ptr727 merged 2 commits into
developfrom
feature/quote-shell-fence-placeholders
Sep 24, 2026
Merged

ptr727 merged 2 commits into
developfrom
feature/quote-shell-fence-placeholders

Conversation

@ptr727

@ptr727 ptr727 commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

A shell reads an unquoted <N> as input redirection, so a pasted line fails on a missing file before the command runs, and the error names the file rather than the placeholder that wasn't filled in. STANDUP.md already states the rule and quotes its own example. This change brings every other shell fence into line with it.

  • Quotes every angle-bracket placeholder inside sh, bash and shell fences: repo-worktree, session-handoff, GOVERNANCE.md, RESYNC.md, STANDUP.md and docs/devcontainer.md.
  • A leading ~/ stays outside the quotes so it still expands, for example ~/repos/"<Repo>".
  • Also quotes the placeholder inside a command substitution in repo-worktree. The outer double quotes don't protect the inside of $(...).
  • Realigns the comment columns that the quoting moved in two fences.
  • Regenerates both skills trees with scripts/build_dist.py.

Prose and inline code spans are out of scope, per the issue.

Verified: no shell fence in tracked Markdown still has a < outside quotes, apart from the deliberate redirection in OPERATIONS.md. build_dist.py --check, spec/validate.py, the pre-commit gates and the pytest suite all pass. Two local strict review passes are recorded, the second with no findings.

Refs #1744. The closing keyword goes on the promotion pull request.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated command examples throughout the project to quote placeholder paths, branch names, and other arguments, keeping each value together as a single shell argument.

ptr727 and others added 2 commits September 23, 2026 21:27
A shell reads an unquoted `<N>` as input redirection, so the line fails on a
missing file before the command runs. STANDUP.md already states the rule and
quotes its own example, and 23 source lines still broke it: repo-worktree and
session-handoff, GOVERNANCE.md, RESYNC.md, STANDUP.md itself, and
docs/devcontainer.md. Each placeholder is now double quoted, a leading `~/`
stays outside the quotes so it still expands, and the generated skills trees
are rebuilt. Prose and inline code spans are unchanged.

Fixes #1744

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Outer double quotes do not protect the inside of `$(...)`, so the
`<base-clone>` in repo-worktree's TASK_ORIGIN line still redirected.
Also realign the devcontainer comment column the first change moved.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Copilot AI lite review requested due to automatic review settings September 24, 2026 04:32
@ptr727

ptr727 commented Sep 24, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: ptr727/ProjectTemplate/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: e12f952b-a739-4b10-835b-a21b0af9849a

📥 Commits

Reviewing files that changed from the base of the PR and between 7fe3e5d and 04d0e53.

⛔ Files ignored due to path filters (6)
  • .claude-plugin/fleet-skills/.source-digests/repo-worktree is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/.source-digests/session-handoff is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/repo-worktree/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .claude-plugin/fleet-skills/skills/session-handoff/SKILL.md is excluded by !.claude-plugin/fleet-skills/**
  • .github/skills/repo-worktree/SKILL.md is excluded by !.github/skills/**
  • .github/skills/session-handoff/SKILL.md is excluded by !.github/skills/**
📒 Files selected for processing (6)
  • .agents/skills/repo-worktree/SKILL.md
  • .agents/skills/session-handoff/SKILL.md
  • GOVERNANCE.md
  • RESYNC.md
  • STANDUP.md
  • docs/devcontainer.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Shell command examples across skills and repository documentation now quote placeholder arguments. No command behavior or implementation logic changed.

Changes

Shell example quoting

Layer / File(s) Summary
Quote placeholder arguments
.agents/skills/repo-worktree/SKILL.md, .agents/skills/session-handoff/SKILL.md, GOVERNANCE.md, RESYNC.md, STANDUP.md, docs/devcontainer.md
Examples quote placeholder paths, branch names, revisions, and package names in shell commands.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Merge Risk: ⚪ Minimal · up to 04d0e

This PR updates example quoting and matching skill digests without a concrete behavior risk, so it is mergeable subject to normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: quoting shell placeholders so pasted commands parse correctly.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The changes are consistent, paste-safe, and confined to documentation/skill text plus regenerated artifacts, with no functional code-path impact.

Review effort: Lite
Findings: None

What changed in this PR

This PR standardizes Markdown shell-fence examples across the repo by quoting angle-bracket placeholders (for example, "<Repo>") so pasted commands do not get misparsed as input redirection, and updates the generated skills trees accordingly.

Changes:

  • Quoted all angle-bracket placeholders inside sh/bash/shell fenced snippets in core docs and skill sources (preserving ~/ expansion by keeping ~/ outside quotes).
  • Updated command-substitution placeholders where quoting is required inside $(...).
  • Regenerated the .github/skills/ and .claude-plugin/fleet-skills/ trees (including updated source digests).
File Description
STANDUP.md Quotes placeholders in shell-fence commands used during standup and baseline carry.
RESYNC.md Quotes placeholders in shell-fence commands used during resync and audit workflows.
GOVERNANCE.md Quotes placeholders in the pinned prose-gate reproduction snippet to keep it paste-safe.
docs/​devcontainer.md Quotes the <package> placeholder in the Python-container verification snippet.
.agents/​skills/​session-handoff/​SKILL.md Quotes placeholders in handoff tool examples (source of truth for generated skills).
.agents/​skills/​repo-worktree/​SKILL.md Quotes placeholders in worktree/clone examples (source of truth for generated skills).
.github/​skills/​session-handoff/​SKILL.md Regenerated copy reflecting the updated session-handoff source skill.
.github/​skills/​repo-worktree/​SKILL.md Regenerated copy reflecting the updated repo-worktree source skill.
.claude-plugin/​fleet-skills/​skills/​session-handoff/​SKILL.md Regenerated plugin skill copy reflecting the updated source skill.
.claude-plugin/​fleet-skills/​skills/​repo-worktree/​SKILL.md Regenerated plugin skill copy reflecting the updated source skill.
.claude-plugin/​fleet-skills/​.source-digests/​session-handoff Updated digest to match regenerated session-handoff content.
.claude-plugin/​fleet-skills/​.source-digests/​repo-worktree Updated digest to match regenerated repo-worktree content.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 merged commit f747d1e into develop Sep 24, 2026
9 checks passed
@ptr727
ptr727 deleted the feature/quote-shell-fence-placeholders branch September 24, 2026 04:36
ptr727 added a commit that referenced this pull request Sep 24, 2026
Promotes one change: angle-bracket placeholders in shell fences are now
quoted, so a pasted line parses instead of failing on input redirection.

Closes #1744

## What reaches main

Every `sh`, `bash` and `shell` fence in tracked Markdown that had an
unquoted angle-bracket placeholder now quotes it, following the rule
`STANDUP.md` already states. That covers the `repo-worktree` and
`session-handoff` skills, both generated skills trees, `GOVERNANCE.md`,
`RESYNC.md`, `STANDUP.md`, and `docs/devcontainer.md`. A leading `~/`
stays outside the quotes so it still expands. A placeholder inside a
`$(...)` command substitution is quoted as well, since the outer double
quotes don't protect it. Prose and inline code spans are unchanged.

Also carries #1752, a Dependabot bump of `astral-sh/setup-uv` from
10.1.0 to 10.2.0 that the merge bot landed on develop after this pull
request opened.

`#1744` was closed early by the previous promotion even though its lines
were still unfixed. It was reopened, and this promotion closes it for
real.

## Review state

Merged to develop as f747d1e, then #1752 as 0cba92c. Copilot reviewed
both heads with full coverage and no findings. On #1749, CodeRabbit
generated no actionable comments, and there were no threads. CodeRabbit
is rate-limited on this pull request. Two local strict review passes
ran. The first found a placeholder inside a command substitution, and
that is fixed. The second found nothing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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