Skip to content

feat(repo): add safe main-update skill - #225

Merged
kyleve merged 1 commit into
mainfrom
codex/add-update-main-skill
Aug 10, 2026
Merged

feat(repo): add safe main-update skill#225
kyleve merged 1 commit into
mainfrom
codex/add-update-main-skill

Conversation

@kyleve

@kyleve kyleve commented Aug 10, 2026

Copy link
Copy Markdown
Owner

Posted by an AI agent on kve’s behalf.

Summary

  • add an explicit-only $update-main repository skill for ordinary primary checkouts
  • reuse ./worktree --update-main for fetch, ancestry validation, and fast-forward behavior
  • refuse linked worktrees, non-main branches, detached HEADs, and dirty checkouts before updating

Why

The existing environment action in .codex/environments/environment.toml is available to Codex-managed worktrees, but ordinary checkouts need an equally safe command-driven path.

Review focus

  • the Git-directory/common-directory comparison is the boundary between a linked worktree and the primary checkout
  • implicit invocation is disabled because this workflow fetches and moves main

Testing

  • skill creator quick_validate.py
  • ./sync-agents
  • ./attribution --check
  • exercised the checkout guard against the current linked worktree and /Users/kve/Development/Stuff primary checkout
  • ./test and ./swiftformat --lint not run: only skill Markdown and UI metadata changed

@kyleve
kyleve enabled auto-merge (squash) August 10, 2026 01:14
@kyleve
kyleve merged commit 443e765 into main Aug 10, 2026
11 of 12 checks 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