Skip to content
Back to skills

Code Host Patterns

ASecurity

GitHub and GitLab CLI and API calls for PRs and MRs, review threads, comments, head refs, and PR templates. Load before any gh or glab call, however small.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill code-host-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Host Patterns?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Host Patterns
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-code-host-patterns/badge)](https://www.skillsdirectory.com/skills/ku5ic-code-host-patterns)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-host-patterns
description: GitHub and GitLab CLI and API calls for PRs and MRs, review threads, comments, head refs, and PR templates. Load before any gh or glab call, however small.
---

# Code host patterns

Default assumption: gh 2.106 and glab 1.133, per their releases.

A row applies when the installed `gh --version` or `glab --version` is at least its version, and an API row when the host serves it. Which host a repo is on: `skills/kit-rules/reference/tooling.md` section 4. A host with neither CLI: the matching operation of its MCP connector, or say none was found.

A skill names an operation (the PR's head SHA, a line comment, the PR template), and the host's file gives its command.

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                              | Read                                                     |
| ------------------------------------------------------------------- | -------------------------------------------------------- |
| A `gh` call, or any PR operation on GitHub                          | [reference/github.md](reference/github.md)               |
| A `glab` call, or any MR operation on GitLab                        | [reference/gitlab.md](reference/gitlab.md)               |
| A `gh` or `glab` call, or updating either CLI                       | [reference/upgrades.md](reference/upgrades.md)           |
| Writing or reviewing a `gh` or `glab` call, or a workflow using one | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Paginating, or handling a rate limit                                | [reference/practices.md](reference/practices.md)         |
| Linting a workflow or script that calls `gh` or `glab`              | [reference/tooling.md](reference/tooling.md)             |

Files in this skill

  • SKILL.md1.1 KB
  • reference/github.md10.1 KB
  • reference/gitlab.md10.9 KB
  • sources.md2.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.