Skip to content

Add non-interactive command rules and helper scripts to todo-handler - #9

Merged
aphelps-claude-bot merged 1 commit into
mainfrom
avoid-interactive-cmds
Apr 19, 2026
Merged

aphelps-claude-bot merged 1 commit into
mainfrom
avoid-interactive-cmds

Conversation

@aphelps-claude-bot

Copy link
Copy Markdown
Collaborator

Summary

  • Prohibits interactive git/gh commands in todo-handler (rebase -i, add -p, commit without -m, pr create without --title/--body)
  • Clarifies that human input is only required at three points: plan approval, execution start, PR review
  • Adds a Non-Interactive Command Reference section with copy-paste recipes
  • Three new helper scripts in `skills/todo-handler/scripts/`:
    • `squash-branch.sh` — squash current branch onto a base ref via `git reset --soft`
    • `create-task-branch.sh` — fetch + create branch in parent repo and any listed submodules
    • `open-pr.sh` — non-interactive `gh pr create` wrapper
  • Task Execution and PR Handling sections updated to reference scripts

Test plan

  • Review SKILL.md General Guidelines and Non-Interactive Command Reference
  • Run each script with no args and confirm usage message
  • Run `squash-branch.sh` on a test branch and confirm single commit result
  • Run `create-task-branch.sh` and confirm branch created from origin/main

🤖 Generated with Claude Code

- General Guidelines: forbid interactive git/gh commands (rebase -i,
  add -p, commit without -m, pr create without --title/--body); clarify
  that human input is only required at plan approval, execution start,
  and PR review
- New Non-Interactive Command Reference section with copy-paste recipes
  for squash, branch creation, submodule pointer update, and PR opening
- scripts/squash-branch.sh: squashes current branch onto a base ref
  using git reset --soft (preserves gitignored files)
- scripts/create-task-branch.sh: fetches origin/main and creates a
  branch in the parent repo and any listed submodule paths
- scripts/open-pr.sh: non-interactive gh pr create wrapper enforcing
  --title and --body flags
- Task Execution and PR Handling sections updated to reference scripts

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@aphelps-claude-bot
aphelps-claude-bot merged commit aa44bc2 into main Apr 19, 2026
@aphelps-claude-bot
aphelps-claude-bot deleted the avoid-interactive-cmds branch April 19, 2026 18:15
aphelps-claude-bot added a commit that referenced this pull request Jul 30, 2026
ArduinoLibs d047ce2 (#9) -- pack rs485/xbee/rfm69 socket headers + assertion sweep
WLED 3c11ec16 (#14)     -- RS485B_SOCKET_HDR_LEN 8 -> 7, host-test coverage, readme

Both squash-merged, so this replaces the branch-tip pointers this PR opened with.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ
aphelps-claude-bot added a commit that referenced this pull request Jul 30, 2026
…rget) (#24)

* bump ArduinoLibs + WLED: pack the RS485 socket header (7B on every target)

Both pointers move in ONE commit deliberately. rs485_socket_hdr_t goes from an
unpacked struct (7 bytes on AVR, 8 on ESP32) to a packed 7 everywhere, and
RS485B_SOCKET_HDR_LEN follows it from 8 to 7. Any intermediate state with one side
advanced fails `pio run -e ampworks` at the static_assert in
usermod_rs485_bridge.cpp:19 -- which is the build the hardware bring-up depends on.

What this unblocks: until now the rs485_bridge usermod could not exchange a single
frame with a real HMTL module. sizeof(rs485_socket_hdr_t) positions the payload at
both ends, so the ESP32 emitted [7 header][1 pad][payload] while an ATMega328 read
the payload from offset 7, and vice versa -- every frame misparsed by one byte, in
both directions. The bench session for the bridge was blocked on this and nothing
else.

  aphelps/ArduinoLibs#9 -- pack rs485/xbee/rfm69 socket headers + static_assert sweep
  aphelps/WLED#14       -- RS485B_SOCKET_HDR_LEN 8 -> 7, host-test coverage, readme

Submodule PRs merge first; this pointer pair is re-pointed at the merged shas before
this PR lands.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ

* bump submodules: self-review fixes on the socket-header stack

ArduinoLibs f4afaab -- README scopes the packing guarantee and names TCPSocket as
not covered.
WLED 40d4ecdf -- the new host-test assert was tautological (7 == 7, green even with
the packing attribute removed); replaced with a packed replica plus offsetof checks
that actually fail, and the three comments that overclaimed cross-ABI coverage now
say what the check can and cannot see. Also documents a pre-existing sizing bug the
review surfaced: a full 64-byte TX slot goes on the wire as 71 bytes and overflows a
default 64-byte receive buffer, so the real payload ceiling is 57. Filed separately
rather than fixed here.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ

* re-point submodules at the merged socket-header packing commits

ArduinoLibs d047ce2 (#9) -- pack rs485/xbee/rfm69 socket headers + assertion sweep
WLED 3c11ec16 (#14)     -- RS485B_SOCKET_HDR_LEN 8 -> 7, host-test coverage, readme

Both squash-merged, so this replaces the branch-tip pointers this PR opened with.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013HqzdRdTRnreSvevaQGQSJ

---------

Co-authored-by: aphelps-claude-bot <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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