$npx -y skills add Dicklesworthstone/agent_flywheel_clawdbot_skills_and_integrations --skill githubGitHub CLI - manage repositories, issues, pull requests, actions, releases, and more from the command line.
| 1 | # GitHub CLI Skill |
| 2 | |
| 3 | Use the `gh` CLI to interact with GitHub repositories and services. |
| 4 | |
| 5 | ## Authentication |
| 6 | |
| 7 | Check auth status: |
| 8 | ```bash |
| 9 | gh auth status |
| 10 | ``` |
| 11 | |
| 12 | Login: |
| 13 | ```bash |
| 14 | gh auth login |
| 15 | ``` |
| 16 | |
| 17 | Refresh token: |
| 18 | ```bash |
| 19 | gh auth refresh |
| 20 | ``` |
| 21 | |
| 22 | ## Repositories |
| 23 | |
| 24 | Clone repository: |
| 25 | ```bash |
| 26 | gh repo clone owner/repo |
| 27 | ``` |
| 28 | |
| 29 | Create new repo: |
| 30 | ```bash |
| 31 | gh repo create my-repo --public --source=. --push |
| 32 | ``` |
| 33 | |
| 34 | Fork repository: |
| 35 | ```bash |
| 36 | gh repo fork owner/repo --clone |
| 37 | ``` |
| 38 | |
| 39 | View repo in browser: |
| 40 | ```bash |
| 41 | gh repo view --web |
| 42 | ``` |
| 43 | |
| 44 | List your repos: |
| 45 | ```bash |
| 46 | gh repo list |
| 47 | ``` |
| 48 | |
| 49 | ## Issues |
| 50 | |
| 51 | List issues: |
| 52 | ```bash |
| 53 | gh issue list |
| 54 | ``` |
| 55 | |
| 56 | Create issue: |
| 57 | ```bash |
| 58 | gh issue create --title "Bug: Login fails" --body "Description here" |
| 59 | ``` |
| 60 | |
| 61 | Create issue interactively: |
| 62 | ```bash |
| 63 | gh issue create |
| 64 | ``` |
| 65 | |
| 66 | View issue: |
| 67 | ```bash |
| 68 | gh issue view 123 |
| 69 | ``` |
| 70 | |
| 71 | Close issue: |
| 72 | ```bash |
| 73 | gh issue close 123 |
| 74 | ``` |
| 75 | |
| 76 | Reopen issue: |
| 77 | ```bash |
| 78 | gh issue reopen 123 |
| 79 | ``` |
| 80 | |
| 81 | Comment on issue: |
| 82 | ```bash |
| 83 | gh issue comment 123 --body "Working on this" |
| 84 | ``` |
| 85 | |
| 86 | Assign issue: |
| 87 | ```bash |
| 88 | gh issue edit 123 --add-assignee @me |
| 89 | ``` |
| 90 | |
| 91 | Add labels: |
| 92 | ```bash |
| 93 | gh issue edit 123 --add-label "bug,priority:high" |
| 94 | ``` |
| 95 | |
| 96 | ## Pull Requests |
| 97 | |
| 98 | List PRs: |
| 99 | ```bash |
| 100 | gh pr list |
| 101 | ``` |
| 102 | |
| 103 | Create PR: |
| 104 | ```bash |
| 105 | gh pr create --title "Add feature" --body "Description" |
| 106 | ``` |
| 107 | |
| 108 | Create PR from current branch: |
| 109 | ```bash |
| 110 | gh pr create --fill |
| 111 | ``` |
| 112 | |
| 113 | View PR: |
| 114 | ```bash |
| 115 | gh pr view 45 |
| 116 | ``` |
| 117 | |
| 118 | View PR in browser: |
| 119 | ```bash |
| 120 | gh pr view 45 --web |
| 121 | ``` |
| 122 | |
| 123 | Checkout PR locally: |
| 124 | ```bash |
| 125 | gh pr checkout 45 |
| 126 | ``` |
| 127 | |
| 128 | Review PR: |
| 129 | ```bash |
| 130 | gh pr review 45 --approve |
| 131 | gh pr review 45 --request-changes --body "Please fix X" |
| 132 | gh pr review 45 --comment --body "Looks good but..." |
| 133 | ``` |
| 134 | |
| 135 | Merge PR: |
| 136 | ```bash |
| 137 | gh pr merge 45 --squash |
| 138 | gh pr merge 45 --merge |
| 139 | gh pr merge 45 --rebase |
| 140 | ``` |
| 141 | |
| 142 | Close PR: |
| 143 | ```bash |
| 144 | gh pr close 45 |
| 145 | ``` |
| 146 | |
| 147 | List PR checks: |
| 148 | ```bash |
| 149 | gh pr checks 45 |
| 150 | ``` |
| 151 | |
| 152 | View PR diff: |
| 153 | ```bash |
| 154 | gh pr diff 45 |
| 155 | ``` |
| 156 | |
| 157 | ## Actions (CI/CD) |
| 158 | |
| 159 | List workflow runs: |
| 160 | ```bash |
| 161 | gh run list |
| 162 | ``` |
| 163 | |
| 164 | View run details: |
| 165 | ```bash |
| 166 | gh run view 12345 |
| 167 | ``` |
| 168 | |
| 169 | Watch run in progress: |
| 170 | ```bash |
| 171 | gh run watch 12345 |
| 172 | ``` |
| 173 | |
| 174 | View run logs: |
| 175 | ```bash |
| 176 | gh run view 12345 --log |
| 177 | ``` |
| 178 | |
| 179 | Rerun failed jobs: |
| 180 | ```bash |
| 181 | gh run rerun 12345 --failed |
| 182 | ``` |
| 183 | |
| 184 | List workflows: |
| 185 | ```bash |
| 186 | gh workflow list |
| 187 | ``` |
| 188 | |
| 189 | Run workflow manually: |
| 190 | ```bash |
| 191 | gh workflow run deploy.yml |
| 192 | ``` |
| 193 | |
| 194 | Run with inputs: |
| 195 | ```bash |
| 196 | gh workflow run deploy.yml -f environment=production |
| 197 | ``` |
| 198 | |
| 199 | Disable/enable workflow: |
| 200 | ```bash |
| 201 | gh workflow disable deploy.yml |
| 202 | gh workflow enable deploy.yml |
| 203 | ``` |
| 204 | |
| 205 | ## Releases |
| 206 | |
| 207 | List releases: |
| 208 | ```bash |
| 209 | gh release list |
| 210 | ``` |
| 211 | |
| 212 | Create release: |
| 213 | ```bash |
| 214 | gh release create v1.0.0 --title "Version 1.0" --notes "Release notes" |
| 215 | ``` |
| 216 | |
| 217 | Create from tag: |
| 218 | ```bash |
| 219 | gh release create v1.0.0 --generate-notes |
| 220 | ``` |
| 221 | |
| 222 | Upload assets: |
| 223 | ```bash |
| 224 | gh release upload v1.0.0 ./dist/app.zip |
| 225 | ``` |
| 226 | |
| 227 | Download assets: |
| 228 | ```bash |
| 229 | gh release download v1.0.0 |
| 230 | ``` |
| 231 | |
| 232 | Delete release: |
| 233 | ```bash |
| 234 | gh release delete v1.0.0 |
| 235 | ``` |
| 236 | |
| 237 | ## Gists |
| 238 | |
| 239 | Create gist: |
| 240 | ```bash |
| 241 | gh gist create file.txt --public |
| 242 | ``` |
| 243 | |
| 244 | Create from stdin: |
| 245 | ```bash |
| 246 | echo "Hello" | gh gist create - |
| 247 | ``` |
| 248 | |
| 249 | List gists: |
| 250 | ```bash |
| 251 | gh gist list |
| 252 | ``` |
| 253 | |
| 254 | View gist: |
| 255 | ```bash |
| 256 | gh gist view GIST_ID |
| 257 | ``` |
| 258 | |
| 259 | Edit gist: |
| 260 | ```bash |
| 261 | gh gist edit GIST_ID |
| 262 | ``` |
| 263 | |
| 264 | ## Search |
| 265 | |
| 266 | Search repos: |
| 267 | ```bash |
| 268 | gh search repos "react hooks" --limit 10 |
| 269 | ``` |
| 270 | |
| 271 | Search issues: |
| 272 | ```bash |
| 273 | gh search issues "bug authentication" --repo owner/repo |
| 274 | ``` |
| 275 | |
| 276 | Search PRs: |
| 277 | ```bash |
| 278 | gh search prs "fix memory leak" --state open |
| 279 | ``` |
| 280 | |
| 281 | Search code: |
| 282 | ```bash |
| 283 | gh search code "function handleAuth" --repo owner/repo |
| 284 | ``` |
| 285 | |
| 286 | ## API |
| 287 | |
| 288 | Make API request: |
| 289 | ```bash |
| 290 | gh api repos/owner/repo |
| 291 | ``` |
| 292 | |
| 293 | POST request: |
| 294 | ```bash |
| 295 | gh api repos/owner/repo/issues -f title="New issue" -f body="Description" |
| 296 | ``` |
| 297 | |
| 298 | GraphQL query: |
| 299 | ```bash |
| 300 | gh api graphql -f query='{ viewer { login } }' |
| 301 | ``` |
| 302 | |
| 303 | Paginate results: |
| 304 | ```bash |
| 305 | gh api repos/owner/repo/issues --paginate |
| 306 | ``` |
| 307 | |
| 308 | ## Labels |
| 309 | |
| 310 | List labels: |
| 311 | ```bash |
| 312 | gh label list |
| 313 | ``` |
| 314 | |
| 315 | Create label: |
| 316 | ```bash |
| 317 | gh label create "priority:high" --color FF0000 --description "High priority" |
| 318 | ``` |
| 319 | |
| 320 | ## Projects |
| 321 | |
| 322 | List projects: |
| 323 | ```bash |
| 324 | gh project list |
| 325 | ``` |
| 326 | |
| 327 | View project: |
| 328 | ```bash |
| 329 | gh project view 1 |
| 330 | ``` |
| 331 | |
| 332 | ## SSH Keys |
| 333 | |
| 334 | List SSH keys: |
| 335 | ```bash |
| 336 | gh ssh-key list |
| 337 | ``` |
| 338 | |
| 339 | Add SSH key: |
| 340 | ```bash |
| 341 | gh ssh-key add ~/.ssh/id_ed25519.pub --title "My laptop" |
| 342 | ``` |
| 343 | |
| 344 | ## GPG Keys |
| 345 | |
| 346 | List GPG keys: |
| 347 | ```bash |
| 348 | gh gpg-key list |
| 349 | ``` |
| 350 | |
| 351 | Add GPG key: |
| 352 | ```bash |
| 353 | gh gpg-key add key.gpg |
| 354 | ``` |
| 355 | |
| 356 | ## Secrets (for Actions) |
| 357 | |
| 358 | List secrets: |
| 359 | ```bash |
| 360 | gh secret list |
| 361 | ``` |
| 362 | |
| 363 | Set secret: |
| 364 | ```bash |
| 365 | gh secret set MY_SECRET |
| 366 | ``` |
| 367 | |
| 368 | Set from file: |
| 369 | ```bash |
| 370 | gh secret set MY_SECRET < secret.txt |
| 371 | ``` |
| 372 | |
| 373 | Delete secret: |
| 374 | ```bash |
| 375 | gh secret delete MY_SECRET |
| 376 | ``` |
| 377 | |
| 378 | ## Variables (for Actions) |
| 379 | |
| 380 | List variables: |
| 381 | ```bash |
| 382 | gh variable list |
| 383 | ``` |
| 384 | |
| 385 | Set variable: |
| 386 | ```bash |
| 387 | gh variable set MY_VAR --body "value" |
| 388 | ``` |
| 389 | |
| 390 | ## Extensions |
| 391 | |
| 392 | List installed extensions: |
| 393 | ```bash |
| 394 | gh extension list |
| 395 | ``` |
| 396 | |
| 397 | Install extension: |
| 398 | ```bash |
| 399 | gh extension install owner/gh-extension |
| 400 | ``` |
| 401 | |
| 402 | Browse extensions: |
| 403 | ```bash |
| 404 | gh extension browse |
| 405 | ``` |
| 406 | |
| 407 | ## Aliases |
| 408 | |
| 409 | Create alias: |
| 410 | ```bash |
| 411 | gh alias set pv 'pr view' |
| 412 | ``` |
| 413 | |
| 414 | List aliases: |
| 415 | ```bash |
| 416 | gh alias li |