rea-ci-tests-audit
MOmorluto/rea485k近 7 天新增 7,690 个 star
Trigger: commit splitting, chained PRs, keeping tests and docs with code. Plan commits as reviewable work units.
Load this skill when deciding what belongs in each commit or PR.
Use it for:
| Rule | Requirement |
|---|---|
| Commit by work unit | A commit represents a deliverable behavior, fix, migration, or docs unit. |
| Do not commit by file type | Avoid models, then services, then tests if none works alone. |
| Keep tests with code | Tests belong in the same commit as the behavior they verify. |
| Keep docs with the user-visible change | Docs belong with the feature or workflow they explain. |
| Tell a story | A reviewer should understand why each commit exists from its diff and message. |
| Future PR-ready | Each commit should be a candidate chained PR when the change grows. |
| Delivery workload guard | If the task forecast produces a >400-line change, honor the selected delivery_strategy. On chaining paths only, group commits into chained PR slices before implementation. For explicit single-pr or exception-ok, keep one PR, report the review load, and follow the destination repository's documented contribution/size policy; selection alone does not accept an exception. |
| Budget is not code-golf | Never shrink a diff by deleting comments, blank lines, docs, or tests, or by compressing code, to fit the review budget (about 400 authored changed lines). Slice by work unit or report the overage. |
Before committing, confirm:
| Weak split | Better work-unit split |
|---|---|
add models | feat(auth): add token validation domain model and tests |
add services | feat(auth): wire token validation into login flow |
add tests | Tests included with each behavior commit |
update docs | Docs included with the user-facing change they explain |
Use work-unit commits as the foundation for chained PRs:
The chosen delivery_strategy governs how commits group into PRs, and the budget constrains how work is sliced, never the code itself.
delivery_strategy — ask on ask-on-risk, auto-slice with the cached chain choice on auto-chain, follow the destination repository's documented contribution/size policy on over-budget single-pr, or record an explicitly accepted policy exception on exception-ok. A single-PR selection does not itself accept an exception.size:exception is a Gentle-owned repository policy, not a universal label requirement. Never request, create, or add the label for generic users unless the destination policy uses it; preserve its maintainer acceptance and protected-label authorization gates.Each work unit should map cleanly to a commit or PR with:
ODD commits work units in reviewable slices of about 400 authored changed lines, not one commit per task:
# Review the story before committing
git diff --stat
git diff --cached --stat
# Check recent commit style
git log --oneline -5
MOmorluto/rea485k近 7 天新增 7,690 个 star
MOmorluto/rea485k近 7 天新增 7,690 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star