Skip to content
Back to skills

Gh Verifying Context

ASecurity

Verifies the current GitHub authentication status and git remote to ensure the agent is operating in the correct account and repository. Use at the start of every session.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill gh-verifying-context --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Gh Verifying Context?

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

Security grade badge for Gh Verifying Context
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-gh-verifying-context/badge)](https://www.skillsdirectory.com/skills/majiayu000-gh-verifying-context)

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: gh-verifying-context
description: Verifies the current GitHub authentication status and git remote to ensure the agent is operating in the correct account and repository. Use at the start of every session.
---

# Verifying GitHub Context

## Purpose

This skill ensures that the agent is aware of its identity (GitHub user) and location (repository and organization) before performing any actions. This prevents accidental data leakage between personal and work accounts.

## 1. Safety & Verification

- **Mandatory First Step**: This skill MUST be executed at the beginning of every interaction involving GitHub.
- **Human Confirmation**: The agent MUST report the results (User, Organization, Repository) to the user and wait for explicit confirmation that the context is correct.

## 2. Common Workflows

### Workflow: Check Authentication and Remote

Retrieves current login and remote URLs.

**Command**:

```bash
gh auth status && git remote -v
```

## 3. Output Handling

The agent should parse the output and present it clearly:

- **Logged in as**: [username]
- **Active Repository**: [owner/repo]
- **Remotes**: [origin URL]

If the user or repository does not match the expected context for the task (e.g., work-related task in a personal repo), the agent MUST STOP and alert the user.

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.

Comments

Loading comments…

Newsletter

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