/github-project-skills:gh-set-active-projectfrom github-project-skills
One-time setup that writes a repo-level GitHub project config, enabling silent auto-verification for all subsequent agent sessions and sharing context across the team via git.
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 performs a one-time interactive setup that writes .github/project-config.json
to the current repository. Once the config exists, gh-verifying-context switches from a
mandatory human-confirmation gate to a silent auto-verify mode: it checks the live
environment against the config and only alerts the user when a mismatch is detected.
Once committed and pushed, the config is shared with all team members automatically — every developer who clones or pulls the repository gets the correct context without running this skill.
Run the following to confirm the authenticated account and repository:
gh auth status && git remote -v
Parse and report:
Logged in as: GitHub usernameActive Repository: <owner>/<repo> from git remoteRemote URL: origin URLPresent these values to the user before proceeding. This is the only manual confirmation step required — it happens once during setup.
gh repo view --json owner,name --jq '{"owner": .owner.login, "repo": .name}'
gh project list --owner <owner> --json number,title,id,url
Present the project list as a numbered table so the user can select the target project.
GATE: Ask the user: "Which project should be set as active for this repository?" DO NOT proceed until a project is selected.
Create or overwrite .github/project-config.json with the confirmed values:
{
"owner": "<owner>",
"repo": "<repo>",
"project_number": <number>,
"project_id": "<PVT_...>",
"set_at": "<ISO-8601 timestamp>"
}
Ensure .github/ directory exists before writing:
mkdir -p .github
Ask the user: "Should I commit and push this config so all team members receive it automatically?"
If the user confirms, run:
git add .github/project-config.json
git commit -m "chore: set active GitHub project to <title> (#<number>)"
git push
NOTE: The config contains only public, non-sensitive values (owner, repo, project number). It is safe to commit to both public and private repositories.
If the repository uses branch protection rules, open a PR instead:
git checkout -b chore/set-active-project
git add .github/project-config.json
git commit -m "chore: set active GitHub project to <title> (#<number>)"
git push -u origin chore/set-active-project
gh pr create --title "chore: set active GitHub project" \
--body "Sets .github/project-config.json so all team members auto-verify silently."
Report the outcome to the user:
Active project set successfully:
- Owner: <owner>
- Repository: <repo>
- Project: <title> (#<number>)
- Config written: .github/project-config.json
- Committed: yes / no (pushed to <branch>)
All team members will auto-verify silently after pulling this change.
No confirmation prompts unless a mismatch is detected.
See references/commands.md for the full command reference and config schema.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub yu-iskw/github-project-skills --plugin github-project-skills5 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-verifying-contextVerifies the current GitHub authentication status and git remote against the repo-level config at .github/project-config.json. Proceeds silently when the environment matches the config. Alerts only when a mismatch is detected or no config exists. Use at the start of every session.Other plugins' skills for the same job