github-management
Skill4 starsChanged 6 months agoApache-2.0View on GitHub
Use when Codex needs to manage GitHub repositories with gh CLI or GitHub APIs, including issues, pull requests, review comments, GitHub Actions CI, releases, labels, milestones, branch protection, repository hygiene, security audit, dependency alerts, or repo governance tasks.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- mhenke/claude-code-unpluggedtheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- mhenke/claude-code-unplugged★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 11 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 8
Use this skill for full-cycle GitHub repository management.
- Distinctive: line 16
Run the pipeline exactly:
- Distinctive: line 20
If context, authentication, target identifiers, or user intent are missing, stop and ask.
- Distinctive: line 24
When this skill is triggered, first decide whether GitHub authentication is already ready for the requested repo.
- Very specific: line 26
Do not skip this onboarding.
- Very specific: line 28
Ask the user to create a classic Personal Access Token with repo scope.
- Very specific: line 37
Run python "<skill-path>/scripts/inspect_repo_context.py" --repo "." --json when you need one read-only snapshot of local remotes, current …
- Distinctive: line 40
If the task references a PR, issue, release, branch, label, or workflow, resolve its exact identifier before acting.
- Very specific: line 42
Read references/authentication.md and inspect config/auth.example.json for the expected local auth shape.
- Very specific: line 44
If authentication or scope is missing, guide the user through gh auth login --with-token < config/token, gh auth setup-git, or the …
- Very specific: line 45
Do not accept tokens pasted into chat.
- Very specific: line 47
Use scripts in scripts/ when they match the task.
- Very specific: line 48
Use --json output when the result will feed later reasoning.
- Distinctive: line 54
If a helper script supports dry-run mode, run dry-run first and show the planned command/effect.
- Very specific: line 56
Use the smallest scoped gh command or API call.
- Distinctive: line 64
Use these scripts from the repository being managed unless the user provides another path:
- Distinctive: line 77
All JSON output uses:
- Very specific: line 119
Read references/authentication.md before configuring or troubleshooting GitHub authentication.
- Very specific: line 120
Read references/safety-policy.md before any mutating GitHub action.
- Very specific: line 121
Read references/workflows.md for task-specific GitHub workflows.
- Very specific: line 122
Read references/review-comments.md for PR comment and review-thread handling.
- Very specific: line 123
Read references/ci-diagnostics.md for failing check and log inspection.
- Very specific: line 124
Read references/development-practices.md before code changes caused by GitHub management work.
- Very specific: line 125
Read references/release-installation.md for this skill's local release branch, floating install tag, and Codex install path.
- Very specific: line 126
Read references/source-attribution.md when source provenance matters.
- Very specific: line 130
Do not infer authentication from local git access.
- Distinctive: line 131
Do not treat external CI as GitHub Actions.
- Distinctive: line 132
Do not merge or close anything because tests pass.
- Distinctive: line 133
Do not modify repository settings from an audit command.
- Very specific: line 134
Do not assume release is a safe short ref if a tag named release exists.
- Distinctive: line 135
Do not hide uncertainty. If GitHub returns partial data or permissions block a check, report the gap.
≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Github Management
Use this skill for full-cycle GitHub repository management. Prefer gh CLI for authenticated operations and use GitHub REST or GraphQL only when gh does not expose the needed data cleanly.
Core Rule
Collect facts first, summarize risk, then ask before any mutating action.
Mutating actions include pushing commits, merging PRs, closing issues, deleting branches or tags, creating releases, changing labels or milestones, editing branch protection, changing repository settings, modifying permissions, dismissing reviews, rerunning workflows, and applying generated fixes.
Run the pipeline exactly:
Context -> Auth -> Read-only Inspect -> Risk Summary -> Confirmation -> Mutation -> Verification
If context, authentication, target identifiers, or user intent are missing, stop and ask. Do not guess.
Authentication Onboarding
When this skill is triggered, first decide whether GitHub authentication is already ready for the requested repo. If readiness is unknown or missing, tell the user how to configure GitHub access step by step before doing GitHub management work.
Do not skip this onboarding. Use references/authentication.md and present the user-facing steps there. Keep the guidance practical:
- Ask the user to create a classic Personal Access Token with
reposcope. - Tell them to save it locally under this skill's
config/folder, never in chat. - Tell them to run
gh auth login --with-token < config/tokenandgh auth setup-git. - Tell them to verify with
gh auth status. - Continue only after authentication is confirmed or the task is explicitly read-only and does not require GitHub access.
Workflow
- Confirm repository context.
- Run
python "<skill-path>/scripts/inspect_repo_context.py" --repo "." --jsonwhen you need one read-only snapshot of local remotes, current branch, repo slug, and auth readiness. - Identify the local repository path and remote with
git remote -v. - Confirm the target owner/repo with
gh repo view --json nameWithOwner,url. - If the task references a PR, issue, release, branch, label, or workflow, resolve its exact identifier before acting.
- Run
- Verify authentication.
- Read
references/authentication.mdand inspectconfig/auth.example.jsonfor the expected local auth shape. - Run
gh auth status. - If authentication or scope is missing, guide the user through
gh auth login --with-token < config/token,gh auth setup-git, or the configured token environment. - Do not accept tokens pasted into chat. Do not log tokens. Do not commit
config/auth.local.json,config/token, or secret config files.
- Read
- Gather read-only state.
- Use scripts in
scripts/when they match the task. - Use
--jsonoutput when the result will feed later reasoning.
- Use scripts in
- Summarize findings.
- Include target repo, object IDs, URLs, current state, risks, and recommended next actions.
- Separate GitHub Actions from external CI providers; report external provider URLs without attempting provider-specific access.
- Get explicit confirmation before mutation.
- For high-risk operations, require the user to name the exact operation and target.
- If a helper script supports dry-run mode, run dry-run first and show the planned command/effect.
- Execute the confirmed action.
- Use the smallest scoped
ghcommand or API call. - Preserve user work and avoid unrelated repo changes.
- Use the smallest scoped
- Verify after action.
- Re-run the relevant read-only inspection.
- Report the evidence, not assumptions.
Helper Scripts
Use these scripts from the repository being managed unless the user provides another path:
python "<skill-path>/scripts/inspect_pr.py" --repo "." --json
python "<skill-path>/scripts/inspect_ci.py" --repo "." --json
python "<skill-path>/scripts/inspect_pr_checks.py" --repo "." --json
python "<skill-path>/scripts/inspect_repo_context.py" --repo "." --json
python "<skill-path>/scripts/inspect_release.py" --repo "." --json
python "<skill-path>/scripts/fetch_comments.py" --repo "." --json
python "<skill-path>/scripts/triage_issues.py" --repo "." --json
python "<skill-path>/scripts/repo_audit.py" --repo "." --jsonAll JSON output uses:
{"ok": true, "source": "github-management", "items": [], "warnings": [], "next_actions": []}Task Guide
| Task | First inspection | Confirmation needed before |
| Issue triage | triage_issues.py or gh issue list --json ... | labeling, assigning, closing, editing milestone |
| Repo context | inspect_repo_context.py | switching target repo assumptions, pushing, merging, release edits |
| PR review | inspect_pr.py | pushing fixes, submitting reviews, merging |
| Review comments | fetch_comments.py; read references/review-comments.md | resolving conversations or pushing fixes |
| CI failure | inspect_ci.py or inspect_pr_checks.py; read references/ci-diagnostics.md | rerunning workflows or applying fixes |
| Release | inspect_release.py or gh release list/view | creating, editing, deleting, or publishing a release |
| Repo audit | repo_audit.py | changing settings, protections, permissions, secrets, Actions policy |
| Security review | Read the matching security best-practice reference listed below | filing issues, changing policy, applying fixes |
| Threat model | Read references/security-threat-model-template.md and references/security-controls-and-assets.md | writing files, filing issues, applying mitigations |
| Security ownership map | Run scripts/security_ownership/run_ownership_map.py and query with scripts/security_ownership/query_ownership.py | writing analysis outside the requested output directory |
Security Reference Routing
For security best practices, identify the repo language and framework, then load every matching reference:
- Go backend:
references/security-best-practices-golang-general-backend-security.md - JavaScript Express backend:
references/security-best-practices-javascript-express-web-server-security.md - JavaScript frontend, no framework or unclear framework:
references/security-best-practices-javascript-general-web-frontend-security.md - jQuery frontend:
references/security-best-practices-javascript-jquery-web-frontend-security.md - TypeScript/Next.js backend or full-stack app:
references/security-best-practices-javascript-typescript-nextjs-web-server-security.md - TypeScript/React frontend:
references/security-best-practices-javascript-typescript-react-web-frontend-security.md - TypeScript/Vue frontend:
references/security-best-practices-javascript-typescript-vue-web-frontend-security.md - Python Django backend:
references/security-best-practices-python-django-web-server-security.md - Python FastAPI backend:
references/security-best-practices-python-fastapi-web-server-security.md - Python Flask backend:
references/security-best-practices-python-flask-web-server-security.md
For threat modeling, stay repo-grounded: use evidence anchors, trust boundaries, assets, attacker capabilities, abuse paths, mitigations, and explicit assumptions from references/security-threat-model-template.md.
For security ownership map tasks, keep analysis read-only against git history. Write artifacts only to the user-specified output directory or a repo-local ownership-map-out/, then use references/security-ownership-neo4j-import.md only when graph import is requested.
References
- Read
references/authentication.mdbefore configuring or troubleshooting GitHub authentication. - Read
references/safety-policy.mdbefore any mutating GitHub action. - Read
references/workflows.mdfor task-specific GitHub workflows. - Read
references/review-comments.mdfor PR comment and review-thread handling. - Read
references/ci-diagnostics.mdfor failing check and log inspection. - Read
references/development-practices.mdbefore code changes caused by GitHub management work. - Read
references/release-installation.mdfor this skill's local release branch, floating install tag, and Codex install path. - Read
references/source-attribution.mdwhen source provenance matters.
Common Mistakes
- Do not infer authentication from local git access; always check
gh auth status. - Do not treat external CI as GitHub Actions; report the URL and ask for access or logs.
- Do not merge or close anything because tests pass; summarize and ask first.
- Do not modify repository settings from an audit command. Audits are read-only.
- Do not assume
releaseis a safe short ref if a tag namedreleaseexists; usegithub-management-releasefor the floating install tag and report ambiguity explicitly. - Do not hide uncertainty. If GitHub returns partial data or permissions block a check, report the gap.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

