Skip to content

docs(skills): lessons from 2026-11-27/28 (worktree base, submit before review, mutations, patches, stacks) - #142

Merged
synthet merged 2 commits into
mainfrom
af/scf-ozu1c-lessons-from-2026-11-27-28-stale
Nov 29, 2026
Merged

synthet merged 2 commits into
mainfrom
af/scf-ozu1c-lessons-from-2026-11-27-28-stale

Conversation

@synthet

@synthet synthet commented Nov 29, 2026

Copy link
Copy Markdown
Owner

This adds six lessons from the 2026-11-27/28 session. Each is one or two lines in the skill that owns that procedure. Jev chose "apply" for each (confidence 0.82–0.97).

Skill Lesson What happened
flow-next Fast-forward a new worktree to origin/<base> before editing, and diff against it A ticket worktree started 50+ commits behind origin/main, and a reviewer flagged the misleading diffs this caused
flow-complete Start a reviewer only after submit printed "Submitted for review" Twice a reviewer ran on a ticket that wasn't in review: once because a dependency blocked it, once because its lease had lapsed. One review was duplicated
test-driven-development A mutation that doesn't compile proves nothing Two mutation attempts failed to compile, and one PR made its claim before the real check
git-and-diff-workflows Write patches with git diff --output=<file> A piped patch picked up CRLF warnings and failed with "corrupt patch"
git-and-diff-workflows Back up untracked files that block a switch and confirm each copy with cmp; never git clean or --force Tracker files blocked switch main, and the first backup didn't match because the tracker rewrote the file during the copy
merge-pr Retarget a stacked PR to main once its base has merged Three stacked PRs needed gh pr edit --base main

.agent/SKILL_INVENTORY.md has these rows and its Last reviewed date updated, and the mirrors are regenerated.

Checks (all exit 0):

  • sync_assistant_trees.py --check
  • check_agent_frontmatter.py
  • generate_agent_asset_inventory.py --check
  • check_skill_portability.py
  • pytest tests/test_agent_frontmatter.py tests/test_sync_assistant_trees.py: 22 passed

Line-ending-only rewrites were reverted, and no machine paths or host names were added.

AST10: documentation only. No change to side-effect level, approval or risk class.

Refs scf-ozu1c

🤖 Generated with Claude Code

synthet and others added 2 commits November 28, 2026 19:43
…e review, mutations, patches, stacks, untracked overwrite)

- flow-next: fast-forward a new worktree to origin/<base> before editing, and
  diff against it.
- flow-complete: start a reviewer only after submit printed "Submitted for
  review"; INVALID_TRANSITION means re-claim or clear the blocker first.
- test-driven-development: a mutation that doesn't compile proves nothing.
- git-and-diff-workflows: write patches with git diff --output; back up and
  cmp untracked files that block a switch, never git clean or --force.
- merge-pr: retarget a stacked PR to main once its base has merged.

Refs scf-ozu1c

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Correct the patch lesson's cause (redirect re-encoding or 2>&1 warnings),
cut four bullets to two lines, and say an early reviewer can't get a brief
or approve.

Refs scf-ozu1c

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@synthet
synthet merged commit ed9fa7d into main Nov 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant