skills/gh-setup/SKILL.md
Set up or align a repository's GitHub collaboration and delivery surface: repo settings, branch/ruleset policy, PR and security templates, Actions hardening, GitHub Environments, release workflows, and deploy workflows. Use when standardizing GitHub setup for repos, CI/CD, publishing versioned packages, or deploying running apps; route app deploy details to deploy references and package publish details to release references.
npx skillsauth add uinaf/skills gh-setupInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Make GitHub the boring, enforceable shell around a repo: settings, templates, Actions, secrets, releases, and deploys should all point at the same delivery contract.
This skill owns GitHub policy and workflow shape. It does not own product architecture, provider-specific infrastructure internals, app security review, or repo boot/readiness setup.
It also owns baseline existence and template shape for GitHub-facing collaboration files such as PR templates, issue templates, SECURITY.md, and CONTRIBUTING.md.
.github/workflows/.github/actions/.github/pull_request_template.md.github/ISSUE_TEMPLATE/SECURITY.mdCONTRIBUTING.mddocs/gh repo view --json defaultBranchRef,mergeCommitAllowed,rebaseMergeAllowed,squashMergeAllowed,deleteBranchOnMergegh api repos/{owner}/{repo}/actions/permissionsgh api repos/{owner}/{repo}/environmentsgh api repos/{owner}/{repo}/rulesetsREADME.md, CONTRIBUTING.md, SECURITY.md, AGENTS.md, and docs/ current when GitHub changes affect contributor or operator workflows.main is continuously releasable or deployable after verification passes.main run verify before release or deploy.Read repo settings when changing merge policy, branch protections, rulesets, tag protection, Actions permissions, Environment settings, or repository descriptions.
Default posture:
main must remain allowed, prefer branch protection with conversation resolution rather than forcing all default-branch changes through PRs by accident.Read templates when creating or aligning PR templates, issue templates, SECURITY.md, or contributor-facing GitHub guidance.
Default posture:
SECURITY.md should be private-first and avoid public issue reporting for vulnerabilities.CONTRIBUTING.md should describe contributor setup, validation, and PR workflow only when the repo accepts outside or cross-team contributions.Read Actions security before editing workflows that execute code, load secrets, publish artifacts, sign binaries, or deploy.
Hard defaults:
pull_request_target for workflows that check out, install, build, test, package, publish, sign, deploy, or execute project code.{} and grant scopes per job.actionlint for syntax and zizmor for GitHub Actions security before inventing bespoke validators.Use this route for versioned packages, libraries, CLIs, marketplace actions, Homebrew-published tools, Swift/CocoaPods packages, Go/Rust releases, and registry publishes.
Core shape:
pull request -> verify
push to main -> verify -> release/publish -> version bump or release PR
Read only the target-specific references needed:
Use this route for running apps and services: static sites, SST apps, Cloudflare, containers, APIs, and hosted frontends.
Core shape:
push to main
-> detect changes
-> verify lane and build immutable payload
-> e2e against that payload
-> deploy through GitHub Environment
-> monitoring and rollback handoff
Read only the deploy references needed:
Report the setup compactly:
If live GitHub settings were not checked, say so. Do not present inferred settings as confirmed.
Example:
files changed: .github/workflows/release.yml, SECURITY.md
settings: live rulesets not checked; require manual confirmation
target: npm package release from verified main
evidence: actionlint, npm test
risks: publish token environment still needs maintainer update
development
Ban direct `useEffect` in React code. Use when writing, refactoring, reviewing, or migrating React components or hooks that import, call, add, or replace direct `useEffect`; when an agent reaches for effects for derived state, fetching, event reactions, resets, or external sync; or when adding lint/agent rules for a no-direct-useEffect policy. Do not use for ordinary React work with no effect smell, non-React code, or legitimate effect architecture outside React.
development
Independently audit existing code, diffs, branches, or pull requests by spawning mandatory concern-specific reviewer subagents, then synthesizing their evidence into a ship decision. Use when triaging PR risk, deciding whether someone else's change is safe to ship, or following up after runtime proof. Produces a `ship it` / `needs review` / `blocked` verdict. Do not use to self-check a change you just authored.
tools
Run structured Codex/Claude autoreview closeout for uncommitted changes, branch/PR diffs, or single commits: choose the target, run the bundled review helper, validate findings, and rerun focused tests until clean. Use when asked for autoreview, Codex review, Claude review, automated PR review, second-model review, or merge-readiness review.
tools
Run Codex's built-in `codex review` closeout: pick local/branch/commit targets, run the helper or raw review command, filter findings, and rerun focused tests plus review until clean. Use when the user asks for Codex review, autoreview, second-model review, merge-readiness review, or parallel tests plus review before final, commit, ship, or PR update.