small-batch-dev
Plan, implement, and review backend changes in small inspectable batches, with commit size limits, scaffold-first sequencing, and commit message style.
- License 许可
- MIT
- 最近更新
- 2026-07-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- small-batch-dev
- description
- Plan, implement, and review backend changes in small inspectable batches, with commit size limits, scaffold-first sequencing, and commit message style.
03 SKILL.md 正文
Small-Batch Development
Use this skill when planning, implementing, or reviewing a backend change that should stay easy to inspect.
Activation Notice
When this skill is selected, say this before doing the work:
Using skill: small-batch-dev
Include Skill used: small-batch-dev in the final response or review artifact.
Batch Rules
- Keep each change focused on one behavior or one review theme.
- Treat more than 8 staged files or more than 300 added/deleted lines as a large commit by default.
- Treat more than 3 touched backend layers as a commit split review point by default.
- Split mechanical formatting, behavior changes, and docs into separate commits when practical.
- Prefer narrow tests that prove the changed behavior.
- Stop and explain when the diff crosses API, storage, queue, or operational boundaries.
- If a cross-layer commit is clearer than splitting, state the dependency between layers in the PR or commit explanation.
Local Gates
Use these helpers when a git repository is available:
scripts/hooks/commit-size-warning.shscripts/validation/validate-commit-size.shscripts/validation/scaffold-marker-review.shscripts/validation/generate-commit-message.shscripts/validation/explain-commit-ja.shscripts/validation/go-review-suggestions.sh
commit-size-warning.sh warns on large staged diffs.
validate-commit-size.sh blocks when strict commit size
enforcement is needed in CI or pre-push.
The default thresholds are BACKEND_AI_MAX_STAGED_FILES=8 and BACKEND_AI_MAX_CHANGED_LINES=300.
For larger changes, prefer a scaffold-first sequence. Start with one small commit for file layout, interfaces, API boundaries, test names, and explicit markers. Then use separate layer-focused implementation commits. End with a hardening commit. Resolve or track every marker there.
Test scaffolds should be skipped or pending. They should not fail in a normal review commit.
For Go repositories, go-review-suggestions.sh reports
large functions, missing exported-symbol comments,
gofmt drift, and gocyclo complexity when installed.
Commit Message Style
Generate English commit messages in this shape:
<type>: <imperative summary>
Use feat, fix, docs, test, refactor, chore, or ci. Keep the subject under 72 characters when possible.
When proposing a commit, keep the English subject and Japanese translation in separate copyable blocks.
Use this shape:
Commit message:
docs: add backend review workflow guide
Japanese translation:
docs: バックエンドレビュー workflow guide を追加する
For chat handoff, explain the same staged change in Japanese with:
- what changed
- why it changed
- how it was validated
- any remaining risk
04 同仓库更多 Skills
skill-name
Describe what this skill reviews and when to use it.
retry-safe-worker
Review backend workers, queues, schedulers, and async jobs for retry safety, deduplication, cancellation, poison message handling, rollback, and operational recovery.
observability-review
Review backend logging, metrics, tracing, audit events, error context, alert quality, and safe diagnostic detail for production operations.
idempotency-review
Review payment APIs, retry-safe handlers, duplicate request prevention, replay responses, idempotency keys, and backend idempotency design for production retry safety.
github-actions-review
Review GitHub Actions workflows for backend CI, secret exposure, permissions, dependency install, cache safety, pinned actions, and release or deployment risk.
docker-devex
Review Docker, Compose, local dependencies, bootstrap scripts, developer ergonomics, reproducibility, security defaults, and backend local environment reliability.