Skip to content

skills/handoff/SKILL.md:693: the late-recovery example prints a bare pclaude <profile> that fails to parse, unlike every other placeholder in the file #78

Closed

Description

@brettheap

Caught by opensoft/workBenches' devcontainer.test/test-claude-profile-skill-install.sh, which is (as far as I can find) the only test in the estate that runs bash -n over every fenced sh/bash block inside a vendored SKILL.md -- this repository's own tests/test_repo_hygiene.py runs bash -n on the twelve top-level command files, never on prose-embedded example blocks, so nothing here would have caught it.

The defect, skills/handoff/SKILL.md:692-694 at f98d734:

lane-handoff --late --at 2026-09-14T12:02:27Z "late; usage limit hit before the swap"
pclaude <profile>      # and only then

bash -n on this block:

line 2: syntax error near unexpected token `newline'
line 2: `pclaude <profile>      # and only then'

<profile> is a bare, unquoted human placeholder. Bash reads < and > as redirection operators regardless of adjacent characters, so this parses as pclaude < profile > -- an input redirect from a file literally named profile, then an output redirect with no filename before the comment, which is the syntax error. A person who copies this block verbatim into a terminal, exactly as the skill's own preceding prose invites ("copy-pasteable as written"), gets a shell parse error instead of a command.

Every other placeholder in this same file avoids exactly this, by keeping <profile> inside a quoted parameter expansion rather than as a bare word, e.g. (same file, step 5):

restart_cmd="pclaude --lane $lane ${CLAUDE_PROFILE_NAME:-<profile>}"
...
restart_cmd="pclaude ${CLAUDE_PROFILE_NAME:-<profile>}"

Both of those parse cleanly under bash -n because <profile> sits inside ${VAR:-<profile>}, itself inside double quotes.

This is also the exact class of defect this file's OWN reasoning already rules out elsewhere -- the same suite that caught this asserts --no-launch <repo> <n> never appears bare in a copy-pasteable command, "which the shell reads as redirections."

Suggested fix: spell the late-recovery example the same way step 5 does, e.g.

lane-handoff --late --at 2026-09-14T12:02:27Z "late; usage limit hit before the swap"
"pclaude ${CLAUDE_PROFILE_NAME:-<profile>}"      # and only then

or move <profile> into a comment rather than the command line itself.

Filed here rather than taken in a workBenches PR, per the same rule #40 was filed under: this is against the VENDORED BYTES of openRepoTools, copied byte-for-byte, not against workBenches' own files.

Activity

  1. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-5, session 0d83dca2-c18c-4bb0-99ce-896e6cafea02@Eagle, 2026-10-11T16:39:35Z, for #78

    Logged in lanes/log/openRepoTools-5.md at f91a25d4919a1ce128c351e39fde76d4e1514736.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#78:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#78"`, kept where the row or its body names `#78`:
    44	`--install` stamps the documented mode on every artifact and refuses a target it cannot write in the planning phase, and `wip init` stages the template paths it wrote rather than `git add -A -- .`	fix/install-modes-and-wip-init-staging	MERGED
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `78` as a whole token:
       none
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions