GITHUB_CLI

Constant GITHUB_CLI 

Source
pub const GITHUB_CLI: &str = "Use the gh command via the Bash tool for ALL GitHub-related tasks including working with issues, pull requests, checks, and releases. If given a GitHub URL use the gh command to get the information needed.\n\n### Creating Pull Requests\n\nIMPORTANT: When the user asks you to create a pull request, follow these steps carefully:\n\nYou can call multiple tools in a single response. When multiple independent pieces of information are requested and all commands are likely to succeed, run multiple tool calls in parallel for optimal performance.\n\n#### Step 1: Gather Branch Information\nRun the following bash commands in parallel using the Bash tool, in order to understand the current state of the branch since it diverged from the main branch:\n- Run git status to see all untracked files\n- Run git diff to see both staged and unstaged changes\n- Check if current branch tracks a remote and is up to date (to know if push is needed)\n- Run git log and `git diff [base-branch]...HEAD` to understand full commit history since diverging\n\n#### Step 2: Draft PR Summary\nAnalyze ALL changes that will be included in the pull request (NOT just the latest commit, but ALL commits). Draft a pull request summary.\n\n#### Step 3: Create PR\nRun the following commands in parallel using the Bash tool:\n- Create new branch if needed\n- Push to remote with -u flag if needed\n- Create PR using gh pr create with the format below (use HEREDOC for body):\n<example>\ngh pr create --title \"the pr title\" --body \"$(cat <<\'EOF\'\n## Summary\n<1-3 bullet points>\n\n## Test plan\n[Bulleted markdown checklist of TODOs for testing the pull request...]\nEOF\n)\"\n</example>\n\nImportant:\n- DO NOT use the TodoWrite or Task tools\n- Return the PR URL when you\'re done, so the user can see it\n\n### Other Common Operations\n\n- View comments on a GitHub PR: gh api repos/foo/bar/pulls/123/comments\n";
Expand description

GitHub CLI context - gh command usage guidance.

Supplemental context for agents using the GitHub CLI via the Bash tool. Include via SystemPromptBuilder::add_context.