GitHub Ops Excellence
Purpose
Provide a bounded, auditable policy and control catalog for high-quality GitHub execution across repositories.
Hard constraints
- No unbounded loops or recursive retries.
- Maximum one full pass per invocation.
- Maximum ten actionable recommendations per invocation.
- No silent policy changes; propose changes with rationale.
- No bypass escalation without explicit approval trail.
- If required evidence is missing, return
NO_CHANGE with missing artifacts.
Modes
triage: issue quality and planning readiness.
refinement: backlog readiness and dependency hygiene.
pre-pr: branch hygiene and PR preparation.
pre-merge: review/check/ruleset merge readiness.
sprint-health: flow health, WIP risk, and review throughput.
release-readiness: release gate and rollback readiness.
incident-flow: containment-to-follow-up issue flow during production incidents.
admin-audit: governance/ruleset/admin posture review.
Scope boundary (catalog ownership)
This skill is the policy catalog owner, not the primary executor.
Primary execution belongs to specialist skills selected by github-ops-tree-router.
This skill provides:
- policy-profile calibration (
strict|standard|light)
- shared control definitions
- severity and verification standards
- conflict resolution guidance when specialists disagree
This skill is not the primary owner for repository profile/discoverability hygiene
(topics, homepage, social preview, community health file completeness). Delegate those to repo-profile-governance.
Invocation order
- For plan/feature-sensitive controls, run
github-capability-resolver first.
- Run
github-ops-tree-router to select execution skill(s).
- Apply
github-ops-excellence as profile overlay to calibrate strictness and evidence requirements.
Shared control packs by mode
triage
- Issue title is a plain imperative sentence ≤72 chars — no
type(scope): prefix (Conventional Commits belongs on commits/PRs, not issues).
- Issue title has no pseudo-prefixes (
[BUG], [P1], TICKET-123, JIRA-123) and does not duplicate type in the title when a type:* label exists.
- GitHub
#N is used as canonical ID; no parallel local ID schemes (TICKET-NNN, bracket tags, etc.) present.
- Issue includes: problem, expected outcome, acceptance criteria.
- Metadata includes: assignee, labels (priority + area + type), milestone/iteration, project link.
- Large work is decomposed with sub-issues/dependencies.
- Template/form adherence is verified;
blank_issues_enabled: false confirmed in repo.
refinement
- Backlog item has definition-of-ready (scope, acceptance, dependencies, risk).
- Parent/child issue relationships are coherent (sub-issues, dependencies).
- Priority and iteration fields are populated.
- Blocked work has explicit owner and next action.
pre-pr
- One branch per concern.
- PR links issue(s) and states test evidence.
- PR template fields completed.
- Reviewers and code owners requested where applicable.
pre-merge
- Required reviews satisfied.
- Required status checks passing on latest commit.
- Conversation resolution complete.
- Ruleset/branch-protection requirements satisfied.
- If merge queue is required, CI supports
merge_group trigger.
sprint-health
- WIP is within agreed team limits.
- Aged items are identified with owner and resolution plan.
- PR review latency and merge latency are measured against team targets.
- Blocked-item ratio is tracked and triaged.
release-readiness
- Changelog/release notes prepared.
- Release evidence links present (tests/checks/artifacts).
- Rollback or remediation path documented.
- No unresolved blocking issues for target milestone.
incident-flow
- Incident item includes severity, impact, owner, and containment plan.
- Hotfix branch/PR is linked to incident issue and validation evidence.
- Rollback trigger and rollback owner are explicit.
- Follow-up issues (root cause, prevention, docs/tests) are created before closure.
admin-audit
- Rulesets/protection target critical branches.
- CODEOWNERS coverage exists for protected paths (deep ownership hygiene belongs to
repo-profile-governance).
- Bypass list is minimal and justified.
- Ruleset history/insights reviewed for drift.
- Security gates (code scanning/dependency review) enforced where required.
actions-security
GITHUB_TOKEN least privilege baseline is enforced.
- Third-party actions pinning policy is enforced.
- OIDC is preferred for cloud auth over long-lived static secrets.
- Workflow ownership is protected (
.github/workflows/ under CODEOWNERS).
- Runner trust boundaries are documented and policy-compliant.
Output format (required)
GITHUB_OPS_POLICY_REPORT
mode: <triage|refinement|pre-pr|pre-merge|sprint-health|release-readiness|incident-flow|admin-audit>
scope: <repo|team|org|enterprise>
policy_profile: <strict|standard|light>
controls:
- id: F1
severity: <low|medium|high>
area: <ticketing|branching|pr|governance|security|release|projects|actions-security>
control: <policy control statement>
strict: <requirement>
standard: <requirement>
light: <requirement>
calibration_actions:
1) priority: <P1|P2|P3>
executor_skill: <selected specialist>
profile_adjustment: <specific calibration>
verification: <objective pass condition>
metrics_snapshot:
- metric: <lead-time|cycle-time|review-latency|merge-latency|blocked-age|wip|reopen-rate>
observed: <value>
target: <value>
status: <ok|breach>
decision:
- <apply|defer|NO_CHANGE>
missing_evidence:
- <none or required artifacts>
Evidence requirements
Collect only artifacts relevant to mode and selected specialist path:
- Issues/PR metadata
- Branch and ruleset/protection settings
- Check run results and review states
- Project field/status snapshots
- Project insights/charts or equivalent flow snapshot
- Release notes and milestone status
Stop conditions
Return NO_CHANGE when:
- Evidence is incomplete for the selected mode.
- Recommendation cannot be objectively verified.
- Proposed change would reduce required safety controls.
- Same recommendation was recently applied and verified.
- Metrics are unavailable and no reliable proxy exists.
Quality bar
A valid result must be:
- Specific (not generic)
- Testable (clear pass/fail)
- Minimal (least disruptive change)
- Traceable (links finding to action)
1---
2name: github-ops-excellence
3description: "Define and apply expert GitHub policy profiles and control catalogs used by specialized execution skills across ticketing, review/merge, governance, and release flows."
4argument-hint: "[mode: triage|refinement|pre-pr|pre-merge|sprint-health|release-readiness|incident-flow|admin-audit] [scope: repo|team|org|enterprise] [policy-profile: strict|standard|light]"
5user-invocable: true
6disable-model-invocation: false
7---
8
9# GitHub Ops Excellence
10
11## Purpose
12
13Provide a bounded, auditable policy and control catalog for high-quality GitHub execution across repositories.
14
15## Hard constraints
16
171. No unbounded loops or recursive retries.
182. Maximum one full pass per invocation.
193. Maximum ten actionable recommendations per invocation.
204. No silent policy changes; propose changes with rationale.
215. No bypass escalation without explicit approval trail.
226. If required evidence is missing, return `NO_CHANGE` with missing artifacts.
23
24## Modes
25
26- `triage`: issue quality and planning readiness.
27- `refinement`: backlog readiness and dependency hygiene.
28- `pre-pr`: branch hygiene and PR preparation.
29- `pre-merge`: review/check/ruleset merge readiness.
30- `sprint-health`: flow health, WIP risk, and review throughput.
31- `release-readiness`: release gate and rollback readiness.
32- `incident-flow`: containment-to-follow-up issue flow during production incidents.
33- `admin-audit`: governance/ruleset/admin posture review.
34
35## Scope boundary (catalog ownership)
36
37This skill is the **policy catalog owner**, not the primary executor.
38
39Primary execution belongs to specialist skills selected by `github-ops-tree-router`.
40
41This skill provides:
42
43- policy-profile calibration (`strict|standard|light`)
44- shared control definitions
45- severity and verification standards
46- conflict resolution guidance when specialists disagree
47
48This skill is **not** the primary owner for repository profile/discoverability hygiene
49(topics, homepage, social preview, community health file completeness). Delegate those to `repo-profile-governance`.
50
51## Invocation order
52
531. For plan/feature-sensitive controls, run `github-capability-resolver` first.
542. Run `github-ops-tree-router` to select execution skill(s).
553. Apply `github-ops-excellence` as profile overlay to calibrate strictness and evidence requirements.
56
57## Shared control packs by mode
58
59### triage
60
61- Issue title is a plain imperative sentence ≤72 chars — no `type(scope):` prefix (Conventional Commits belongs on commits/PRs, not issues).
62- Issue title has no pseudo-prefixes (`[BUG]`, `[P1]`, `TICKET-123`, `JIRA-123`) and does not duplicate type in the title when a `type:*` label exists.
63- GitHub `#N` is used as canonical ID; no parallel local ID schemes (`TICKET-NNN`, bracket tags, etc.) present.
64- Issue includes: problem, expected outcome, acceptance criteria.
65- Metadata includes: assignee, labels (priority + area + type), milestone/iteration, project link.
66- Large work is decomposed with sub-issues/dependencies.
67- Template/form adherence is verified; `blank_issues_enabled: false` confirmed in repo.
68
69### refinement
70
71- Backlog item has definition-of-ready (scope, acceptance, dependencies, risk).
72- Parent/child issue relationships are coherent (sub-issues, dependencies).
73- Priority and iteration fields are populated.
74- Blocked work has explicit owner and next action.
75
76### pre-pr
77
78- One branch per concern.
79- PR links issue(s) and states test evidence.
80- PR template fields completed.
81- Reviewers and code owners requested where applicable.
82
83### pre-merge
84
85- Required reviews satisfied.
86- Required status checks passing on latest commit.
87- Conversation resolution complete.
88- Ruleset/branch-protection requirements satisfied.
89- If merge queue is required, CI supports `merge_group` trigger.
90
91### sprint-health
92
93- WIP is within agreed team limits.
94- Aged items are identified with owner and resolution plan.
95- PR review latency and merge latency are measured against team targets.
96- Blocked-item ratio is tracked and triaged.
97
98### release-readiness
99
100- Changelog/release notes prepared.
101- Release evidence links present (tests/checks/artifacts).
102- Rollback or remediation path documented.
103- No unresolved blocking issues for target milestone.
104
105### incident-flow
106
107- Incident item includes severity, impact, owner, and containment plan.
108- Hotfix branch/PR is linked to incident issue and validation evidence.
109- Rollback trigger and rollback owner are explicit.
110- Follow-up issues (root cause, prevention, docs/tests) are created before closure.
111
112### admin-audit
113
114- Rulesets/protection target critical branches.
115- CODEOWNERS coverage exists for protected paths (deep ownership hygiene belongs to `repo-profile-governance`).
116- Bypass list is minimal and justified.
117- Ruleset history/insights reviewed for drift.
118- Security gates (code scanning/dependency review) enforced where required.
119
120### actions-security
121
122- `GITHUB_TOKEN` least privilege baseline is enforced.
123- Third-party actions pinning policy is enforced.
124- OIDC is preferred for cloud auth over long-lived static secrets.
125- Workflow ownership is protected (`.github/workflows/` under CODEOWNERS).
126- Runner trust boundaries are documented and policy-compliant.
127
128## Output format (required)
129
130```text
131GITHUB_OPS_POLICY_REPORT
132mode: <triage|refinement|pre-pr|pre-merge|sprint-health|release-readiness|incident-flow|admin-audit>
133scope: <repo|team|org|enterprise>
134policy_profile: <strict|standard|light>
135
136controls:
137- id: F1
138 severity: <low|medium|high>
139 area: <ticketing|branching|pr|governance|security|release|projects|actions-security>
140 control: <policy control statement>
141 strict: <requirement>
142 standard: <requirement>
143 light: <requirement>
144
145calibration_actions:
1461) priority: <P1|P2|P3>
147 executor_skill: <selected specialist>
148 profile_adjustment: <specific calibration>
149 verification: <objective pass condition>
150
151metrics_snapshot:
152- metric: <lead-time|cycle-time|review-latency|merge-latency|blocked-age|wip|reopen-rate>
153 observed: <value>
154 target: <value>
155 status: <ok|breach>
156
157decision:
158- <apply|defer|NO_CHANGE>
159
160missing_evidence:
161- <none or required artifacts>
162```
163
164## Evidence requirements
165
166Collect only artifacts relevant to mode and selected specialist path:
167
168- Issues/PR metadata
169- Branch and ruleset/protection settings
170- Check run results and review states
171- Project field/status snapshots
172- Project insights/charts or equivalent flow snapshot
173- Release notes and milestone status
174
175## Stop conditions
176
177Return `NO_CHANGE` when:
178
179- Evidence is incomplete for the selected mode.
180- Recommendation cannot be objectively verified.
181- Proposed change would reduce required safety controls.
182- Same recommendation was recently applied and verified.
183- Metrics are unavailable and no reliable proxy exists.
184
185## Quality bar
186
187A valid result must be:
188
189- Specific (not generic)
190- Testable (clear pass/fail)
191- Minimal (least disruptive change)
192- Traceable (links finding to action)