AGENT SKILL

merge-ready

Run all quality gates before merge — git hygiene, documentation completeness, code review, security audit, build, E2E, goal-backward verification, doc accuracy and UI/UX — then write the changelog entry.

适用职业开发工程师
使用场景代码审查
License 许可
MIT
最近更新
2026-10-23
Stars
★ 53
Forks
3

01 前言 Front Matter

arguments
[ "gate" ]
description
Run all quality gates before merge — git hygiene, documentation completeness, code review, security audit, build, E2E, goal-backward verification, doc accuracy and UI/UX — then write the changelog entry.
allowed-tools
Read, Glob, Grep, Edit, Write, Bash, Agent, TodoWrite
argument-hint
[gate name to rerun]

02 资源文件 1

03 SKILL.md 正文

Command: Merge Ready (seeded CI fixture — trimmed mirror, NOT the real file)

This is a trimmed, structurally-identical mirror of skills/merge-ready/SKILL.md's instinct steps, committed only so scripts/ci/validate-instinct-discipline.js's falsify step has a tree to run against. This file carries the C3/FR-1.5a dedup clause UNCHANGED and MUST pass every pre-existing discipline check. Its ONE deliberate defect: the Merge Reconciliation preamble's class (d) bullet has been removed — as if a later, unrelated edit quietly trimmed one repair class away — and nothing else is changed, proving the five-class assertion fires by name and isolates to the dropped class rather than only ever passing on the real file.

Post-Gate Instinct Capture

What fires it. For every gate, across this entire /merge-ready run, whose Auto-Fix Protocol needed at least one fix, capture exactly one instinct entry.

FR-1.5a pre-capture dedup scan — MANDATORY, restated here because capture fires in this file too, not only in /implement-slice. Before minting a new ### <slug> heading, scan every existing entry in BOTH ## Prevention Rules and ## Instincts Log for one whose Pattern: and Category: both match the pattern about to be captured. On a match, this is a recapture of that existing entry: update it in place — this feature's slug is added to (features: ...) only if not already present there. Only when no existing entry's Pattern: and Category: both match may a new slug be minted. Skipping this scan is exactly what fragments occurrence counts across near-duplicate headings until nothing ever elevates or retires.

Consolidate Instincts

Merge Reconciliation preamble — runs whenever the store shows merge artifacts (a union merge kept both branches' lines). Repair the five canonical classes, (e) first:

  • (a) duplicate Feature counter: lines → keep the max. Safe direction: max undercounts by one per concurrent feature, so it only ever delays retirement, never triggers it early; a sum-of-deltas is not computable without the merge base and must never replace it.
  • (b) duplicate ### <slug> entries → union their (features: ...) lists; Occurrences: is the max of the two sides, floored at the union length; Confidence: is min(formula ceiling at the repaired count, max of the two confidences) — the formula is an upper bound, never an equality. Section placement: a cross-section duplicate repairs to a single entry, placed in ## Prevention Rules only when the repaired count meets its category threshold, else ## Instincts Log, deleting the other copy.
  • (c) Last confirmed at above the counter → clamp it to the counter and recompute Retires at.
  • (e) duplicated section headings → fold each section's blocks into one before the other repair classes are applied — the store parser silently appends a duplicate heading's lines into the first, so the earlier repairs would mis-read an unfolded store.

04 同仓库更多 Skills

Koroqe
Koroqe/claude-code-sdlc

merge-ready

Run all quality gates before merge — git hygiene, documentation completeness, code review, security audit, build, E2E, goal-backward verification, doc accuracy and UI/UX — then write the changelog entry.

开发工程师设计师代码审查测试与质量
★ 53
Koroqe
Koroqe/claude-code-sdlc

implement-slice

Implement the next smallest slice from the current plan using TDD — tests first, then code, then verification, then an atomic commit. Reads the plan from the scratchpad.

开发工程师
★ 53
Koroqe
Koroqe/claude-code-sdlc

develop-feature

Autonomously implement a complete feature from request to merge-ready — documentation phase, wave-based TDD implementation, then all quality gates, without stopping for human input.

★ 53
Koroqe
Koroqe/claude-code-sdlc

bootstrap-feature

Run the documentation phase of the SDLC pipeline for a feature — PRD, use cases, architecture review, QA test cases, implementation plan, feature branch and scratchpad. Produces no code.

开发工程师产品经理
★ 53
Koroqe
Koroqe/claude-code-sdlc

merge-ready

Run all quality gates before merge — git hygiene, documentation completeness, code review, security audit, build, E2E, goal-backward verification, doc accuracy and UI/UX — then write the changelog entry.

开发工程师设计师代码审查测试与质量
★ 53
Koroqe
Koroqe/claude-code-sdlc

implement-slice

Implement the next smallest slice from the current plan using TDD — tests first, then code, then verification, then an atomic commit. Reads the plan from the scratchpad.

开发工程师
★ 53