issue-close

Merge PRs, remove worktrees, and close issues after issue closure.

12|1|Updated Dec 27, 2025
One-click install
npx skills add https://github.com/apokamo/kaji --skill issue-close
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: issue-close
Source: https://github.com/apokamo/kaji/tree/main/.claude/skills/issue-close
Command: npx skills add https://github.com/apokamo/kaji --skill issue-close

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the cleanup tasks after issue closure, including merging the PR, removing the worktree, deleting branches, and closing the issue in one coordinated operation.

Core Features & Use Cases

  • Coordinate PR merge, worktree cleanup, and branch deletion after issue resolution.
  • Ensure consistent state across local and main repositories by performing a defined sequence with safeguards.
  • Use Case: After completing an issue, run this skill to finalize all housekeeping steps in one pass.

Quick Start

Run the issue-close workflow step to perform the full cleanup after an issue is closed.

Frequently Asked Questions about issue-close

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate git branch deletion and worktree cleanup after closing an issue?

To automate git branch deletion and worktree cleanup after closing an issue, you can use a coordinated workflow that merges PRs, removes worktrees, and deletes branches in one pass. This ensures consistent state across local and main repositories with built-in safeguards.

What is the best way to merge a pull request and remove the associated git worktree simultaneously?

The best way to merge a pull request and remove the associated git worktree is running an end-to-end cleanup workflow that coordinates PR merges with worktree and branch removal. This performs a defined sequence of git operations with checks and fallbacks to enforce safe operations.

Do I need compatible git worktrees to automate issue closure and branch pruning?

Yes, you need compatible git worktrees to automate issue closure and branch pruning. The workflow requires the harness to provide an issue_id and compatible git worktrees across main and feature contexts to safely coordinate the cleanup operations after issue resolution.

Can I use an automated workflow to close issues and delete feature branches across repositories?

Yes, you can use an automated workflow to close issues and delete feature branches across repositories. When an issue is closed and related worktrees and branches exist across main and feature contexts, the workflow coordinates git operations to finalize all housekeeping steps in one pass.

What happens if a git worktree or branch has conflicts during automated issue cleanup?

During automated issue cleanup, if git worktree or branch conflicts arise, the workflow enforces safe operations with checks and fallbacks. This prevents inconsistent state across local and main repositories by applying safeguards before removing worktrees or merging PRs.