Skip to content
Agentmart
Submit a tool
This entry duplicates github, which is the one we list in search.

github

Use when interacting with GitHub repositories, authentication, remotes, pushes, or repository creation through the GitHub CLI and related git workflows.

Skill by JayanaGunaweera01

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jayanagunaweera01-github

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when interacting with GitHub repositories, authentication, remotes, pushes, or repository creation through the GitHub CLI and related git workflows.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill name
github
Description
Use when interacting with GitHub repositories, authentication, remotes, pushes, or repository creation through the GitHub CLI and related git workflows.
License
Apache-2.0
Metadata
emoji: 🐙
Instructions
291 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# GitHub

## Overview

Prefer `gh` for all GitHub operations. The default goal is to complete the full GitHub flow with the least possible user effort: detect existing authentication first, reuse it if available, and only ask the user for the smallest missing step.

Never ask the user to manually perform a long GitHub setup if the agent can check, reuse, or finish it directly.

## Core Rules

- Prefer `gh` over raw GitHub API calls.
- Prefer existing authenticated state over asking for new credentials.
- Prefer non-interactive checks before prompting the user.
- Prefer the smallest unblock request:
  - paste a one-time code
  - confirm browser login
  - provide a PAT
  - confirm repository visibility
- Do not ask the user to manually create the repository if `gh` can do it.
- Do not ask the user to manually add remotes, initialize Git, or push if the agent can do it.
- Never print, echo, log, summarize, or restate secrets.
- Never store secrets in files, commits, repo config, docs, examples, or chat summaries.
- Never switch credential strategy unless the current one actually fails.

### Interactive login driving rules

When using `gh auth login` through a shell session, do not assume the browser login step has started after the first prompt or after sending one key.

You must continue driving the interactive flow until there is explicit evidence of one of these states:

1. GitHub CLI has clearly started browser/device authentication
2. GitHub CLI is explicitly waiting for the user to complete external authentication
3. GitHub CLI reports that authentication succeeded
4. GitHub CLI reports a real error and cannot continue

While driving the login flow:

- keep polling the session after each input
- handle intermediate prompts such as protocol selection, SSH/HTTPS choice, credential helper confirmation, browser/device flow confirmation, or similar setup questions
- use minimal inputs such as `enter`, arrow keys, `y`, `n`, or short submitted text as needed
- do not stop after only one successful prompt response
- do not tell the user that the browser has opened unless the command output explicitly indicates that a browser login or web flow has started
- do not tell the user that login is complete unless the command output explicitly indicates success

Acceptable evidence that browser or external auth has actually started includes output such as:

- a message that a browser is being opened
- a URL to visit
- a device code to enter
- explicit wording that GitHub authentication is waiting for completion

If the shell session remains running but only shows that an earlier prompt was answered, continue polling instead of summarizing the state prematurely.

Only ask the user to act when the output clearly shows an external action is now required.

When the user says they completed browser or device authorization, do not start a new `gh auth login` flow immediately.

Instead:

1. continue polling the existing shell session if it is still running
2. wait for explicit success or failure from that same session
3. only if that session has exited or is unrecoverable, then check `gh auth status`
4. only start a brand-new login flow if the previous login session has clearly failed or been closed

If the shell output contains prompts like:

- "Press Enter to open ..."
- "Press Enter to continue"
- similar one-step local confirmation prompts

then send `enter` automatically and continue polling the same session.

Do not stop at that prompt.
Do not ask the user to confirm completion yet.
Do not start a new login flow while this session is still running.

## Credential Handling Priority

### 1. Reuse `gh` authentication first

Check whether `gh` exists and is already authenticated.

Use this path when possible:

- `gh auth status`
- if authenticated, continue directly with:
  - repo detection
  - `gh repo create`
  - remote setup
  - push

If `gh` is authenticated, do not ask the user for tokens, passwords, SSH keys, or browser login.

### 2. If `gh` exists but is not authenticated, log in with `gh` directly

If `gh` is installed but not authenticated, use `gh auth login` directly and continue the GitHub flow after login succeeds.

Preferred order:

1. browser/web login via `gh auth login -h github.com -w`
2. standard interactive `gh auth login -h github.com`
3. PAT-based login only if the normal `gh` login path is unavailable or fails

Rules:

- do not switch away from `gh` login unless it actually fails
- do not ask the user to manually create repositories or configure git
- do not ask the user to perform a long GitHub setup outside the login itself
- continue automatically as soon as login succeeds

When login requires user interaction:

- ask for only the smallest possible action
- examples:
  - “Please complete the GitHub browser login that just opened.”
  - “Please finish the GitHub CLI login prompts.”
  - “Please paste a GitHub PAT with repo access.”

After login succeeds, continue directly with:

From JayanaGunaweera01/open-agent-sloth, Apache-2.0.

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Oct 22, 2026 (5 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

Cite this page

github skill. Agent Mart. https://agentmart.dev/skills/jayanagunaweera01-github (last updated 2026-10-24)