Tw review fold

From SDiamante13/dotfiles · View interactive version

Tw review fold is an AI agent skill from the GitHub repository SDiamante13/dotfiles. Compress review pressure into the right next action instead of more code by default. Classify findings, reject non-liabilities, and choose proof-only vs minimal-fix vs refactor-kernel, preventing one-patch-per-comment churn. Use after a code review — PR comments, reviewer suggestions, or audit findi

How to use this skill

Skill file

Review Fold

Mission

Turn review pressure into the right next action, not more code by default.

review comments + original goal + current diff
-> review fold
-> reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up

This is a finding classifier. It does not perform the review and it does not, by itself, decide that review work stops — it picks the smallest correct response to each finding and exposes when many findings share one root cause.

Review fold schema

review_fold:
  source:
    pr:
    review_backend: pr-comments | review-session | human-review | prior-artifact
  intent_anchor:
    original_goal:
    accepted_scope:
    non_goals: []
    changed_paths: []
  findings:
    - id:
      claim:
      observed_fact:
      validity: valid | invalid | unproven | needs-owner
      liability: blocks-goal | regression-risk | style | new-requirement | out-of-scope | proof-gap
      intent_relation: core | adjacent | unrelated | expands-scope
      novelty: duplicate | same-class | new-class
      disposition: reject | proof-only | minimal-fix | refactor-kernel | ask-human | follow-up
      minimal_response:
      proof_needed:
      code_change_allowed: yes | no
  compression:
    equivalence_classes: []
    repeated_kernel:
    reabstraction_candidate: yes | no
    one_patch_per_comment_risk: low | medium | high
  action_plan:
    mode: classify-only | proof-only | minimal-fix | refactor-kernel | branch-race
    work_nodes: []
    do_not_fix: []
    reviewer_response_draft: []

Disposition law

Modes

Procedure

  1. Bind reviews to the original goal and the current diff.
  2. Classify each finding before any implementation.
  3. Collapse duplicates and same-family comments into equivalence classes.
  4. Detect the refactor-kernel: when many comments share one owner boundary, prefer one structural fix over N local patches.
  5. Decide each finding's proper response: no-code, proof, local fix, refactor, branch-race, ask, or follow-up.
  6. Produce a small work plan only for accepted liabilities.
  7. Preserve reviewer-response drafts as drafts; do not post public comments or resolve PR threads unless explicitly asked.

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.