A Codex-ready Agent skill for safe, searchable, and reviewable GitHub management workflows.
github-management is an Agent skill for GitHub management. It helps Codex and other AI coding agents safely inspect, triage, and operate GitHub repositories through gh CLI and GitHub API workflows for pull requests, issues, CI checks, GitHub Actions, releases, repository hygiene, security audits, dependency alerts, and governance tasks.
This repository is primarily a Codex Agent skill package. SKILL.md defines the agent behavior and safety contract; the Python scripts provide deterministic helper tools for read-only inspection and structured GitHub data collection.
GitHub management work has a wide blast radius: a single action can alter shared history, releases, permissions, labels, issues, branch protection, repository settings, or security posture. This skill makes the agent collect facts first, verify authentication, summarize risk, and require explicit confirmation before any mutating action.
Use it when an agent needs to work on:
- GitHub authentication setup and
ghCLI readiness checks. - Pull request inspection, review comments, and check status collection.
- GitHub Actions and CI diagnostics.
- Issue triage, release inspection, and repository hygiene.
- Security best-practice review, dependency-alert handling, threat modeling, and ownership mapping.
- Repository governance tasks such as labels, milestones, branch protection, settings review, and release readiness checks.
flowchart LR
context["Context"]
auth["Auth"]
inspect["Read-only Inspect"]
risk["Risk Summary"]
confirm["Confirmation"]
mutate["Mutation"]
verify["Verification"]
context --> auth --> inspect --> risk --> confirm --> mutate --> verify
Clone the repository:
git clone https://github.com/Eriemon/github-management.git
cd github-managementInspect helper scripts:
python .\scripts\inspect_pr.py --help
python .\scripts\inspect_ci.py --help
python .\scripts\repo_audit.py --help
python .\scripts\triage_issues.py --helpConfigure GitHub authentication locally. Never paste tokens into chat, issues, commits, or logs:
Copy-Item .\config\auth.example.json .\config\auth.local.json
$secureToken = Read-Host "Paste token" -AsSecureString
$tokenPtr = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureToken)
try {
$plainToken = [Runtime.InteropServices.Marshal]::PtrToStringBSTR($tokenPtr)
Set-Content -NoNewline -Path .\config\token -Value $plainToken
}
finally {
[Runtime.InteropServices.Marshal]::ZeroFreeBSTR($tokenPtr)
Remove-Variable secureToken, plainToken -ErrorAction SilentlyContinue
}
gh auth login --with-token < .\config\token
gh auth setup-git
gh auth statusThe repository tracks only config/auth.example.json. Local credentials and operational state must stay private.
Before publishing changes, check that these are not staged or committed:
config/auth.local.jsonconfig/tokenconfig/*.secret.json- logs, temporary reports, or generated ownership-map outputs
- real tokens, private repository data, or sensitive audit exports
The Codex skill trigger is $github-management.
Agents should use the deterministic helpers whenever possible:
python .\scripts\inspect_pr.py --repo "." --json
python .\scripts\inspect_ci.py --repo "." --json
python .\scripts\inspect_pr_checks.py --repo "." --json
python .\scripts\fetch_comments.py --repo "." --json
python .\scripts\triage_issues.py --repo "." --json
python .\scripts\repo_audit.py --repo "." --jsonFor detailed behavior, read:
SKILL.mdreferences/authentication.mdreferences/safety-policy.mdreferences/workflows.mdreferences/ci-diagnostics.mdreferences/review-comments.md
Run lightweight local checks before publishing:
python .\scripts\inspect_pr.py --help
python .\scripts\repo_audit.py --help
python .\scripts\triage_issues.py --helpDeveloper: Jiyuan Liu. For questions, collaboration, or academic use, contact: erie@seu.edu.cn.
If this skill helps your research, teaching, or engineering workflow, please cite it. The canonical citation metadata is maintained in CITATION.cff.
@software{liu_2026_github_management,
author = {Jiyuan Liu},
title = {{github-management}: An Agent Skill for Conservative GitHub Repository Management},
year = {2026},
version = {0.1.0},
date = {2026-05-09},
url = {https://github.com/Eriemon/github-management},
license = {Apache-2.0},
note = {Agent skill package for conservative GitHub repository management workflows}
}Apache-2.0. See LICENSE.