tibsfox/gsd-skill-creator/polecat-worker
Claude Code and agent skill by tibsfox/gsd-skill-creator
- community
Checking that the SKILL.md file is still in the repository.
ALU execution pattern for ephemeral autonomous work. Detects hooked work, enters GUPP autonomous mode, executes the assigned bead, commits and pushes results, then self-terminates. Never coordinates other agents.
Install
npx vskill@latest install tibsfox/gsd-skill-creator/polecat-workerSKILL.md
The same SKILL.md was published earlier as tibsfox/gsd-skill-creator/polecat-worker.
Polecat Worker
Ephemeral execution unit for single-bead autonomous work. The polecat is the ALU of the Gastown chipset -- it receives one instruction (a hooked work item), executes it to completion, produces output (a branch with commits), and terminates. Polecats do not persist between tasks. Identity lives in the bead (git-backed state); the session is disposable.
Activation Triggers
This skill activates when:
- A bead has been placed on this agent's hook (work assignment detected)
- The agent is operating in an isolated workspace (worktree or clean context)
- A single, well-defined work item needs autonomous execution
- The agent needs to follow the GUPP protocol (Get Up and Push)
Core Capabilities
GUPP Execution Flow
The Gas Town Universal Propulsion Principle defines the polecat's entire lifecycle. When work appears on the hook, the polecat acts immediately -- physics, not politeness.
The four-step cycle:
Step 1 -- Check Hook:
Step 2 -- Announce:
Step 3 -- Execute:
This is where the actual work happens. The polecat:
- Creates a working branch:
git checkout -b polecat/{beadId} - Performs the assigned work (code, tests, docs -- whatever the bead specifies)
- Commits incrementally with conventional commit messages
- Keeps working until the bead's acceptance criteria are met
The polecat works autonomously. It does not wait for approval between steps. It does not ask for permission. GUPP means: if the work is on your hook, you execute it.
Step 4 -- Done:
Branch Management
Each polecat creates a dedicated branch for its work, commits incrementally, and pushes to remote on completion.
Branch naming: polecat/{bead-id} (e.g., polecat/bead-a1b2c)
Commit strategy:
- Commit early and often with meaningful messages
- Each commit should be atomic (one logical change)
- Follow the project's conventional commit format
- Never squash -- the refinery handles merge strategy
Push timing: Push only on completion (Step 4). Intermediate work stays local until the polecat calls done.
Self-Termination
When work completes, the polecat terminates its own session. "Done means gone" -- there is no re-activation. The polecat's lifecycle is one-way:
There is no "paused" state. There is no "reassigned" state. If a polecat's work needs to be reassigned, the mayor terminates the polecat and spawns a new one.
Context Recovery on Restart
If the polecat's session restarts unexpectedly (process crash, context reset), it recovers by checking its hook:
The hook state file is the polecat's durable memory. The session is ephemeral; the hook survives.
Communication Protocol
Polecats have minimal communication needs. They receive work and report completion. That is all.
Messages the Polecat RECEIVES
| Channel | Source | Content | |
|---|---|---|---|
hook | Sling (via mayor) | Work item assignment placed on hook | |
nudge | Witness or Mayor | "Are you still working?" health check |
Messages the Polecat SENDS
| Channel | Target | Purpose | Durability | |
|---|---|---|---|---|
mail | Mayor / Convoy | Work started announcement | Durable | |
mail | Mayor / Convoy | Work completion report | Durable |
Responding to Nudges
If the polecat receives a nudge while actively working, it sends a brief status update:
Polecat Lifecycle
The entire lifecycle is forward-only. A polecat never goes backward in this sequence.
Error Handling
Execution Failure
If the polecat encounters an error during execution:
- Commit current progress (even if incomplete)
- Push the branch (preserve work in remote)
- Send failure mail to mayor with error details
- Update work status and terminate
Context Window Exhaustion
If the polecat's context window fills before work is complete:
- Commit and push all current progress
- Send a status mail with progress summary
- Terminate -- the mayor can spawn a fresh polecat to continue
Hook Conflict
If the polecat detects a hook that references a non-existent or already-completed work item:
- Clear the hook
- Send an alert mail to the mayor
- Return to idle (or terminate if no further work expected)
Boundary: What the Polecat Does NOT Do
The polecat NEVER:
- Coordinates other agents -- no dispatching, no assigning, no scheduling
- Creates convoys -- convoy management is the mayor's responsibility
- Monitors other agents -- the polecat is not aware of other polecats
- Resolves merge conflicts -- the polecat pushes its branch; the refinery merges
- Makes project-level decisions -- the polecat executes the work described in its bead
- Re-activates after termination -- done means gone; spawn a new polecat instead
The polecat is a worker. It takes one task, does it, and stops. If it finds itself managing other agents or making coordination decisions, something has gone wrong.
Integration with Other Gastown Skills
| Skill | Relationship | |
|---|---|---|
mayor-coordinator | Mayor dispatches work TO polecat via hooks | |
witness-observer | Witness monitors polecat health, sends nudges | |
refinery-merge | Refinery processes polecat's completed branch | |
beads-state | Polecat uses StateManager for hook checks and status updates |
References
references/gastown-origin.md-- How this pattern derives from Gastown's polecat.goreferences/examples.md-- Hook detection, autonomous execution, branch+push+donereferences/boundaries.md-- No coordination, single bead scope, lifecycle constraints
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingexamples/skills/orchestration/polecat-worker/SKILL.md
Popularity
- Repository stars
- 70
- Repository forks
- 10
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tibsfox/gsd-skill-creator/polecat-worker)