<!-- AUTO-GENERATED by task packs:render -- DO NOT EDIT MANUALLY -->
<!-- Purpose: rendered skill -->
<!-- Source of truth: packs/skills/skills-pack-0.1.json -->
<!-- Regenerate with: task packs:render -->
<!-- Edit the source, not this file. Slice instead of loading every SKILL.md: task packs:slice skills by-trigger --trigger <kw> (or list) -->
Deft Directive Pre-PR -- Read, Write, Lint, Diff, Loop
Structured self-review loop agents run before submitting a PR. Catches inconsistencies, missing enforcement markers, incomplete acceptance criteria, scope creep, and unintended changes before they reach the reviewer.
Legend (from RFC2119): !=MUST, ~=SHOULD, ≉=SHOULD NOT, ⊗=MUST NOT, ?=MAY.
See also: deft-directive-review-cycle | deft-directive-build | RWLDL tool
Formerly
deft-rwldl-- renamed and scoped to PR readiness. For the broader iterative quality improvement loop (micro/macro review), see tools/RWLDL.md.
Branch-Protection Policy Guard
! Before entering Phase 1 (Read), run the skill-level branch-policy guard documented in task policy:show / dual-invoke deft verify:branch (#746 / #747). Halt before any state mutation (the Phase 2 Write phase, the Phase 3 Lint phase that may touch files) when the policy is unresolvable AND no env-var bypass is active:
deft verify:branch
or task deft:verify:branch when the consumer Taskfile include is present. Do not add a consumer verify:branch task. Pre-PR is the last gate before push, so a stale / unresolvable policy here is the highest-leverage place to catch the bug before it reaches the bot reviewer.
Deterministic Questions Contract
! Every numbered-menu prompt rendered in this skill (per-finding decision menus in Phase 4 Diff, the Phase 5 Loop restart-vs-exit gate) MUST follow