Skip to content

feat(skills): add batch bundled skill#162

Merged
emal-avala merged 1 commit intomainfrom
feat/skill-batch
Apr 22, 2026
Merged

feat(skills): add batch bundled skill#162
emal-avala merged 1 commit intomainfrom
feat/skill-batch

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

Adds `/batch` — applies the same change across multiple git worktrees using the existing `worktree` tool.

Guarantees baked into the prompt:

  • one worktree per target (doesn't contaminate the current tree)
  • adapts the patch per target if file layout differs — no blind paste
  • runs the test + lint gate per target
  • stops on first failure; records what broke so user can decide
  • leaves worktrees in place for inspection
  • never force-pushes, never skips tests

Ends with a summary table: `target | commit or failure | files changed`.

Why

Common chore: "apply this fix to release branches 1.14, 1.15, 1.16". Without a skill, the agent tries to do them in the same working tree and either clobbers state or skips the test gate. This codifies the right workflow once.

Leans on `worktree` / worktree-aware sandbox policy that already exist.

Test plan

  • `cargo fmt --all` clean
  • `cargo check` passes
  • `cargo test -p agent-code-lib --lib skills` (11 tests pass)
  • Manual: `/batch apply this fix to release/1.14 and release/1.15` → two worktrees, two commits, summary table at end

Applies the same change across multiple git worktrees — each target
in its own isolated worktree, test+lint gate per target, first
failure stops the run so the user can decide.

Prompt rules:
- one worktree per target (don't mutate the current tree)
- adapt the patch per target if file layout differs — don't paste
  blindly
- stop on first failure and surface what broke
- leave worktrees in place for inspection
- never force-push, never skip tests
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@emal-avala emal-avala merged commit 05d29ff into main Apr 22, 2026
13 of 14 checks passed
@emal-avala emal-avala deleted the feat/skill-batch branch April 22, 2026 23:50
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