Use Write tool + --body-file for all skill gh commands to fix permission prompts#99
Conversation
Heredocs in Bash commands — quoted, unquoted, or via $(cat) — all trigger Claude Code permission prompts due to shell metacharacter detection (#, $, quotes). Moving body content to a temp file via the Write tool bypasses shell parsing entirely. The gh command becomes a clean prefix match for Bash(gh:*). Testing in start.md first before applying to other skills. Ref #82 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Replace heredoc patterns (--body-file - <<EOF, --notes-file - <<EOF) with a two-step approach: write body to /tmp/cc_*.md via the file-writing tool, then pass --body-file /tmp/cc_*.md to gh. This avoids all shell metacharacter issues that trigger Claude Code permission prompts ($, #, quoted delimiters). Updated skills: start.md, submit-for-review.md, deploy.md Regenerated all 12 adapter files via sync.sh. Closes #82 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
ffc8a2a to
e5e8b3e
Compare
Review SummaryVerdict: APPROVE Findings
No correctness, security, or convention issues found. The change is a straightforward, well-scoped refactor of how multi-line body content is passed to |
Summary
/tmp/cc_*.mdvia the file-writing tool, then pass--body-file /tmp/cc_*.md$,#, quoted delimiters, substitutions) that trigger Claude Code permission promptsstart.md,submit-for-review.md,deploy.md) and regenerated all 12 adapter filesCloses #82
Test plan
/start— verifiedgh issue createandgh issue commentexecute without permission prompts/submit-for-review— verifygh pr create,gh issue comment, andgh issue create(follow-ups) work without prompts/deploy— verifygh pr createandgh release creatework without prompts