name: "merge-readiness"
description: "Use to decide whether a branch appears ready to merge from local and available CI/review evidence without merging it."
maturity-level: "L3"
risk-scope: "R0-R1"
version: "1.0.0"
Merge Readiness
Core Question
Is this branch ready to merge, and which blockers, warnings, or evidence gaps remain?
When To Use
Use this skill when:
- the user asks whether a branch is ready to merge
- pre-merge blockers need to be listed
- CI, tests, conflicts, changelog, or release requirements need a readiness verdict
- the user wants merge risks without performing the merge
When Not To Use
Do not use this skill when:
- performing the merge
- approving or bypassing review controls
- pushing branches or tags
- resolving conflicts
Route to:
- PR summary routes to
pr-review-prep - generic checks route to
preflight-checks - branch sync issues route to
sync-branch - conflicts route to
resolve-conflicts
Required Evidence
Before action, inspect or establish:
- status and branch relationship to target
- merge-base and conflict likelihood where available
- local verification results
- CI or review evidence when available
- changelog/release/version indicators
- open blockers from diff risk
No-evidence rule:
- Do not make strong claims without observed evidence.
- State assumptions when proceeding under incomplete evidence.
- Stop when missing evidence affects safety, correctness, user work, remote state, or irreversible action.
Operating Contract
You MAY:
- inspect relevant repository state and project files.
- generate a plan, report, or local artifact within the declared risk scope.
- route to another skill when the requested action is outside this skill's owner boundary.
You MUST:
- inspect before acting.
- keep the task within the declared owner boundary.
- classify state and risk before any meaningful action.
- preserve unrelated user work.
- verify outcomes proportional to risk.
- report evidence, assumptions, actions, verification, and residual risk.
You MUST NOT:
- invent project policy.
- expose secrets or sensitive values.
- mutate unrelated files or refs.
- perform destructive, remote, shared, history-rewriting, or irreversible actions without explicit action-specific confirmation.
- continue after unexpected destructive output.
State / Risk Table
| State | Evidence | Risk | Default Action | Confirmation | Verification |
|---|
| Ready with evidence | clean state and required checks satisfied | R1 | Report ready with evidence | no | readiness checklist |
| Blocked | conflict, failing check, missing required evidence, or dirty state | R1 | Report not ready and route blockers | no | blocker list |
| Ready with caveats | local evidence incomplete but no blockers found | R1 | Report caveats; do not overclaim | no | evidence gaps listed |
Workflow
- Identify the user goal and current owner boundary.
- Inspect required evidence.
- Classify repository/task state.
- Classify risk using the declared scope.
- Choose the minimal sufficient action or route.
- Execute only allowed actions, if any.
- Verify outcome or self-check the artifact.
- Report result, evidence, verification, assumptions, and residual risk.
Decision Rules
- Do not perform merges from this skill.
- Do not claim CI or approvals passed unless inspected.
- Separate merge blockers from non-blocking warnings.
- Prefer target-branch evidence over generic assumptions.
- May run read-only checks and inspect local/available CI artifacts.
- Must not merge, push, approve, or delete branches.
Verification
Minimum verification:
- Verify every readiness claim has evidence.
- Verify each blocker routes to an owning skill.
- Report uninspected external systems.
Risk-based floor:
- R0-R1: evidence inspected and output self-checked.
- R2: inspect resulting diff or local state.
- R3: verify local state and report recovery limits.
- R4-R5: require explicit confirmation, preflight evidence, and post-action verification where this skill owns the action.
Output Contract
Final response must include:
## Result
- Decision, action, or artifact produced.
## Evidence
- Files, commands, diffs, refs, or assumptions used.
## Verification
- Checks performed and their result.
## Risks / Limitations
- Remaining uncertainty, blocked actions, or routed next steps.
Stop / Confirmation Rules
Stop when the repository state is dirty, conflicted, diverged, missing required evidence, or ambiguous in a way that could overwrite user work, invalidate the requested scope, or require a gated action.
Require explicit action-specific confirmation for:
- destructive local mutation.
- remote/shared mutation.
- history rewriting.
- security/secret/data impact.
- irreversible or hard-to-recover operation.
Broad approval such as "do whatever" is not enough for R4-R5 actions.
Lazy-load References
Load references/readiness-checklist.md when:
- the task needs the detailed guidance described by the file name.
- the state/risk table identifies an ambiguous or high-risk path.
Load references/ci-evidence.md when:
- the task needs the detailed guidance described by the file name.
- the state/risk table identifies an ambiguous or high-risk path.
Load references/merge-risks.md when:
- the task needs the detailed guidance described by the file name.
- the state/risk table identifies an ambiguous or high-risk path.