Add clean closed issue worktrees skill - #2863
Open
haoranyu wants to merge 1 commit into
Open
Conversation
Contributor
🔒 PR Risk Scan ResultsScanned 7 changed file(s).
|
Contributor
🔍 Vally Lint Results✅ All checks passed
Summary
Full linter output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Adds
clean-closed-issue-worktrees, a safety-first skill for auditing and removing Git worktrees associated with closed GitHub or GitLab issues.The skill keeps provider access in the agent layer while a deterministic Python script handles local Git inspection, snapshot validation, backup refs, and exact-path removal. Its mandatory scan-confirm-execute protocol refuses dirty, locked, current, main, active-task, and broad-path targets and retains branches by default.
Canonical source and versioned releases: https://github.com/haoranyu/clean-closed-issue-worktrees
Verification
npm run skill:validate— all 416 skills validnpm start— generateddocs/README.skills.md.github/skills/clean-closed-issue-worktreesType of Contribution
Additional Notes
The skill and bundled script are MIT licensed. It requires Git and Python 3.9+; GitHub/GitLab state is queried through the agent's available provider route. No paid service or credential access is bundled.
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.