linear-cleanup-feature
CommunityMerge PRs, archive specs, and clean branches
Authorjankneumann
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill automates the end-of-life steps for an OpenSpec feature by merging an approved pull request, migrating any unfinished tasks, archiving the proposal, and cleaning up branches and worktrees so work is not lost and the main branch remains clean.
Core Features & Use Cases
- PR verification and merge: Confirm approvals and CI status, then merge the feature PR (squash or merge commit) and delete the feature branch.
- Task migration: Detect unchecked tasks in the OpenSpec proposal and migrate them to beads issues or create a follow-up OpenSpec proposal to preserve context and dependencies.
- Archive and validate specs: Archive the OpenSpec change, merge delta specs, run strict validation, and refresh repository architecture artifacts.
- Worktree and lock-aware cleanup: Use isolated worktrees for operations, teardown worktrees afterwards, and optionally release locks or perform coordinator handoff for distributed agents.
- Use case: After a successful review and CI, run this workflow to finalize the change-id, ensure all follow-ups are tracked, archive the proposal, and restore a clean main branch.
Quick Start
Run the cleanup-feature with the relevant change id to merge the approved PR, migrate open tasks to beads or a follow-up proposal, archive the OpenSpec proposal, and remove worktrees and stale branches.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: linear-cleanup-feature Download link: https://github.com/jankneumann/agentic-content-analyzer/archive/main.zip#linear-cleanup-feature Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.