Skip to content
Back to skills

Feature

ASecurity

Create and manage feature branches in a git worktree with consistent naming and PR workflow (squash merge).

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 10, 2026
documentationrailsgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add PlutoMining/pluto --skill feature --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Feature?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Feature
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/plutomining-feature/badge)](https://www.skillsdirectory.com/skills/plutomining-feature)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: feature
description: Create and manage feature branches in a git worktree with consistent naming and PR workflow (squash merge).
---
## What I do
- Turn a short task title into a deterministic `feature/<slug>` branch name.
- Create a git worktree at `../.worktrees/pluto/<branch_sanitized>`.
- Guide sync with `origin/main` (prefer rebase for clean history).
- Guide PR creation (GitHub, squash merge; do not merge automatically).
- Guide safe cleanup (remove worktree only).

## Naming
- Base branch: `origin/main`
- Branch: `feature/<slug>`
- Slug rules:
  - lowercase
  - replace non-alphanumeric with `-`
  - collapse consecutive `-`
  - trim leading/trailing `-`
  - max length: 60 characters
  - if the user already provides a valid slug, keep it
- Worktree path:
  - base: `../.worktrees/pluto`
  - `branch_sanitized`: replace `/` with `__`
  - full: `../.worktrees/pluto/<branch_sanitized>`

## Start workflow (create worktree)
1) Ask for the task title (or slug) if missing.
2) Compute `<slug>`, branch `feature/<slug>`, and worktree path.
3) Guardrails:
   - If the branch is already checked out in another worktree, stop and report the existing worktree path.
   - If the worktree path already exists, stop and ask whether to reuse it or choose a different slug.
4) Run:
   - `git fetch origin`
   - If branch exists locally: `git worktree add <path> <branch>`
   - Else: `git worktree add -b <branch> <path> origin/main`
5) Print the worktree path and the next suggested steps (install/test) based on the repo docs.

## Sync workflow (keep up to date)
- Prefer: `git fetch origin` then `git rebase origin/main`
- If rebase conflicts:
  - stop, explain conflict resolution, and do not force anything

## PR workflow (GitHub, squash merge)
- Push branch:
  - `git push -u origin HEAD`
- Create PR using `gh pr create`:
  - base: `main`
  - head: current branch
  - remind: squash merge is preferred; do not merge automatically
- Recommend PR title uses Conventional Commits (important for changelog/semantic-release in this repo).

## Cleanup workflow (worktree only)
- Confirm the target path.
- If `git status --porcelain` is not empty, ask for confirmation before removal.
- Remove:
  - `git worktree remove <path>`
  - optional: `git worktree prune`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.