agentleFS
EriemonEriemon/github-management/SKILL.md

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

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    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
  1. Very specific:

    Use this skill for full-cycle GitHub repository management.

    line 8
  2. Distinctive:

    Run the pipeline exactly:

    line 16
  3. Distinctive:

    If context, authentication, target identifiers, or user intent are missing, stop and ask.

    line 20
  4. Distinctive:

    When this skill is triggered, first decide whether GitHub authentication is already ready for the requested repo.

    line 24
  5. Very specific:

    Do not skip this onboarding.

    line 26
  6. Very specific:

    Ask the user to create a classic Personal Access Token with repo scope.

    line 28
  7. Very specific:

    Run python "<skill-path>/scripts/inspect_repo_context.py" --repo "." --json when you need one read-only snapshot of local remotes, current …

    line 37
  8. Distinctive:

    If the task references a PR, issue, release, branch, label, or workflow, resolve its exact identifier before acting.

    line 40
  9. Very specific:

    Read references/authentication.md and inspect config/auth.example.json for the expected local auth shape.

    line 42
  10. Very specific:

    If authentication or scope is missing, guide the user through gh auth login --with-token < config/token, gh auth setup-git, or the …

    line 44
  11. Very specific:

    Do not accept tokens pasted into chat.

    line 45
  12. Very specific:

    Use scripts in scripts/ when they match the task.

    line 47
  13. Very specific:

    Use --json output when the result will feed later reasoning.

    line 48
  14. Distinctive:

    If a helper script supports dry-run mode, run dry-run first and show the planned command/effect.

    line 54
  15. Very specific:

    Use the smallest scoped gh command or API call.

    line 56
  16. Distinctive:

    Use these scripts from the repository being managed unless the user provides another path:

    line 64
  17. Distinctive:

    All JSON output uses:

    line 77
  18. Very specific:

    Read references/authentication.md before configuring or troubleshooting GitHub authentication.

    line 119
  19. Very specific:

    Read references/safety-policy.md before any mutating GitHub action.

    line 120
  20. Very specific:

    Read references/workflows.md for task-specific GitHub workflows.

    line 121
  21. Very specific:

    Read references/review-comments.md for PR comment and review-thread handling.

    line 122
  22. Very specific:

    Read references/ci-diagnostics.md for failing check and log inspection.

    line 123
  23. Very specific:

    Read references/development-practices.md before code changes caused by GitHub management work.

    line 124
  24. Very specific:

    Read references/release-installation.md for this skill's local release branch, floating install tag, and Codex install path.

    line 125
  25. Very specific:

    Read references/source-attribution.md when source provenance matters.

    line 126
  26. Very specific:

    Do not infer authentication from local git access.

    line 130
  27. Distinctive:

    Do not treat external CI as GitHub Actions.

    line 131
  28. Distinctive:

    Do not merge or close anything because tests pass.

    line 132
  29. Distinctive:

    Do not modify repository settings from an audit command.

    line 133
  30. Very specific:

    Do not assume release is a safe short ref if a tag named release exists.

    line 134
  31. Distinctive:

    Do not hide uncertainty. If GitHub returns partial data or permissions block a check, report the gap.

    line 135

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Ask the user to create a classic Personal Access Token with repo scope.
  2. Tell them to save it locally under this skill's config/ folder, never in chat.
  3. Tell them to run gh auth login --with-token < config/token and gh auth setup-git.
  4. Tell them to verify with gh auth status.
  5. Continue only after authentication is confirmed or the task is explicitly read-only and does not require GitHub access.

Workflow

  1. Confirm repository context.
    • Run python "<skill-path>/scripts/inspect_repo_context.py" --repo "." --json when 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.
  2. Verify authentication.
    • Read references/authentication.md and inspect config/auth.example.json for 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.
  3. Gather read-only state.
    • Use scripts in scripts/ when they match the task.
    • Use --json output when the result will feed later reasoning.
  4. 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.
  5. 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.
  6. Execute the confirmed action.
    • Use the smallest scoped gh command or API call.
    • Preserve user work and avoid unrelated repo changes.
  7. 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 "." --json

All JSON output uses:

{"ok": true, "source": "github-management", "items": [], "warnings": [], "next_actions": []}

Task Guide

TaskFirst inspectionConfirmation needed before
Issue triagetriage_issues.py or gh issue list --json ...labeling, assigning, closing, editing milestone
Repo contextinspect_repo_context.pyswitching target repo assumptions, pushing, merging, release edits
PR reviewinspect_pr.pypushing fixes, submitting reviews, merging
Review commentsfetch_comments.py; read references/review-comments.mdresolving conversations or pushing fixes
CI failureinspect_ci.py or inspect_pr_checks.py; read references/ci-diagnostics.mdrerunning workflows or applying fixes
Releaseinspect_release.py or gh release list/viewcreating, editing, deleting, or publishing a release
Repo auditrepo_audit.pychanging settings, protections, permissions, secrets, Actions policy
Security reviewRead the matching security best-practice reference listed belowfiling issues, changing policy, applying fixes
Threat modelRead references/security-threat-model-template.md and references/security-controls-and-assets.mdwriting files, filing issues, applying mitigations
Security ownership mapRun scripts/security_ownership/run_ownership_map.py and query with scripts/security_ownership/query_ownership.pywriting 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.md before configuring or troubleshooting GitHub authentication.
  • Read references/safety-policy.md before any mutating GitHub action.
  • Read references/workflows.md for task-specific GitHub workflows.
  • Read references/review-comments.md for PR comment and review-thread handling.
  • Read references/ci-diagnostics.md for failing check and log inspection.
  • Read references/development-practices.md before code changes caused by GitHub management work.
  • Read references/release-installation.md for this skill's local release branch, floating install tag, and Codex install path.
  • Read references/source-attribution.md when 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 release is a safe short ref if a tag named release exists; use github-management-release for 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.