/github-project-skills:gh-verifying-contextfrom github-project-skills
Verifies GitHub authentication and git remote against a repo-level config file, proceeding silently on match or alerting on mismatch.
Ships in github-project-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill ensures the agent is operating in the correct GitHub account and repository before
performing any actions. It uses a repo-level config file (.github/project-config.json)
as the baseline — if the live environment matches the config, the skill proceeds silently
without requiring human confirmation. Only mismatches or missing configs surface to the user.
| State | Behavior |
|---|---|
| Config exists + live env matches | Proceed silently — no output, no gate |
| Config exists + mismatch detected | STOP — alert user with details of the mismatch |
| No config found | Prompt once — ask user to run gh-set-active-project to create the config |
Step 1 – Read the config:
cat .github/project-config.json
Parse owner, repo, and project_number from the file.
Step 2 – Check live environment:
gh auth status && gh repo view --json owner,name
Step 3 – Compare:
authenticated_user.org matches config.owner AND repo.name matches config.repo →
proceed silently with the config values available for downstream skills.When the live environment does not match the config:
⚠️ Context mismatch detected — stopping.
Expected (from .github/project-config.json):
- Owner: <config.owner>
- Repository: <config.repo>
Actual (live environment):
- Logged in as: <current_username>
- Repository: <current_owner>/<current_repo>
Resolution options:
1. Run `gh-set-active-project` to update the config for this repository.
2. Switch to the correct GitHub account: gh auth switch
3. Navigate to the correct repository directory.
When .github/project-config.json does not exist:
ℹ️ No project config found at .github/project-config.json.
To set up context verification for this repository, run:
gh-set-active-project
This is a one-time setup. After setup, all sessions auto-verify silently.
Do not proceed with GitHub operations until the config is created.
When auto-verify succeeds, the skill produces no output — downstream skills simply receive the config values and proceed. This is by design: the absence of a prompt means all is correct.
After a successful silent pass, the following values are available for use in other skills:
| Field | Source | Used By |
|---|---|---|
owner | config | gh-issue-management, gh-project-management |
repo | config | gh-issue-management, gh-project-management |
project_number | config | gh-project-management |
project_id | config | gh-project-management (item-edit) |
See references/commands.md for the full command reference, output parsing format, and config schema.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
github-auth, context-verification, project-config, git-remote
5 skills in this plugin
/gh-issue-managementComprehensive management of GitHub issues, including sub-issue hierarchies. Use to create, update, close, list, search, view, comment on, and manage parent-child relationships between issues in a single skill./gh-linking-branches-to-issuesCreates and links a development branch to an issue. Use to start implementation work./gh-project-managementComprehensive management of GitHub Projects (v2). Use to list projects, view items, add items, update fields, and manage project structure in a single skill./gh-set-active-projectSets the active GitHub project and repository context by writing a repo-level config file at .github/project-config.json. Run once per repository to eliminate repeated context verification prompts and share the context with all team members via git. All subsequent agent sessions will auto-verify silently against this config.npx claudepluginhub yu-iskw/github-project-skills --plugin github-project-skillsOther plugins' skills for the same job