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