# Sweep Workspace

Use only in the Anarlog repository when the active checkout branch is exactly...

- Repository: https://github.com/fastrepl/anarlog (9738 stars)
- Category: Git and review
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add fastrepl/anarlog --skill sweep-workspace -g -a claude-code -y`
Codex: `npx skills add fastrepl/anarlog --skill sweep-workspace -g -a codex -y`
Cursor: `npx skills add fastrepl/anarlog --skill sweep-workspace -g -a cursor -y`
Gemini CLI: `npx skills add fastrepl/anarlog --skill sweep-workspace -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add fastrepl/anarlog`

## Description

Use only in the Anarlog repository when the active checkout branch is exactly gitbutler/workspace. Coordinate a GitButler workspace PR sweep by merging already-ready PRs, updating the workspace, then running create-prs, fix-prs, and update-prs in that order.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Sweep GitButler workspace

## Applicability

Use only in the Anarlog repository or its checkouts/worktrees when the active
checkout branch is exactly `gitbutler/workspace`. Before running this workflow,
check with `git symbolic-ref --quiet --short HEAD` (a read-only branch check).
On any other branch or detached HEAD, skip this skill and use the normal Git
workflow. Do not initialize GitButler or switch branches to activate the skill.
Use this checkout's skills, not a global copy or another checkout's skills.

Use this skill when asked to sweep PRs in the Anarlog GitButler workspace.

Read the repository-local [but](../gitbutler/SKILL.md) skill and the active repository's AGENTS.md and workflow
skill when present. Use `but` for version control and the repository's preferred
authenticated forge tools for PR operations. Derive the repository and configured
target from the current workspace.

This skill coordinates the three focused workflows. Read the repository-local
skill when its stage begins: [create-prs](../create-prs/SKILL.md),
[fix-prs](../fix-prs/SKILL.md), and [update-prs](../update-prs/SKILL.md).
Do not automatically spawn subagents or run stages concurrently.

A sweep invocation authorizes in-scope PR creation, pushes, necessary history
rewrites, workspace updates, conflict repairs, review replies/resolutions,
metadata edits, and ready non-draft merges. Preserve unrelated work and active
collaborators' edits. Editing this skill does not execute a sweep.

## 1. Merge PRs that are already ready

The rest: https://github.com/fastrepl/anarlog/blob/HEAD/.agents/skills/sweep-workspace/SKILL.md
