ss-sdd-choosing-feature-branch

Select and prepare the correct derived feature branch for SDD planning commits.

Updated May 19, 2026
One-click install
npx skills add https://github.com/Emrebener/Sublime-Skills --skill ss-sdd-choosing-feature-branch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ss-sdd-choosing-feature-branch
Source: https://github.com/Emrebener/Sublime-Skills/tree/main/skills/spec-driven-development/ss-sdd-choosing-feature-branch
Command: npx skills add https://github.com/Emrebener/Sublime-Skills --skill ss-sdd-choosing-feature-branch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents SDD planning artifacts from being committed onto the wrong branch by automatically choosing (or confirming) the correct derived feature branch based on the current git branch and your SDD work context.

Core Features & Use Cases

  • Auto-decide derived feature branch location: Silently settles branch choice when starting from main or when already on the derived branch, and prompts only when the situation is ambiguous.
  • Safe, two-commit batching for Stage 7: Commits spec+plan first, then (if present) commits ADRs using path-scoped git add to avoid disturbing unrelated dirty files.
  • Stage-to-stage coordination via state: Persists the chosen branch_name to .sublime-skills/state.json for Stage 11 to merge and delete later, without committing the state file.

Quick Start

After the SDD plan is written (Stage 6) and before implementation (Stage 8), run this skill and follow the prompt only if the branch choice is ambiguous.

Frequently Asked Questions about ss-sdd-choosing-feature-branch

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

FAQPage Schema
How do I commit spec-driven-development planning artifacts to a feature branch without including unrelated git changes?

To commit spec-driven-development planning artifacts safely, use path-scoped git add to stage only the spec and plan files. This batches planning commits onto the correct derived feature branch without disturbing unrelated dirty files in your working tree.

What is a derived feature branch in spec-driven-development workflows?

A derived feature branch in spec-driven-development is a stage-specific git branch created from your current branch. It isolates planning artifacts like specs, plans, and ADRs so implementation work remains separate from planning commits.

How do I batch-commit specs, plans, and ADRs separately during an SDD workflow?

Batch-committing specs, plans, and ADRs separately involves two sequential commits on the derived feature branch. You commit the spec and plan files first, then commit any ADR files using path-scoped staging to keep the working tree clean.

Can I commit planning artifacts to a feature branch if I am currently on the main branch?

Yes, when starting from the main branch, the SDD workflow can automatically resolve the ambiguity and create or checkout the correct derived feature branch. It silently settles the branch choice so planning artifacts are not committed directly to main.

Why does my feature branch selection fail when I have ambiguous git state during SDD planning?

Feature branch selection fails due to ambiguous git state when the current branch does not clearly match the expected derived branch name. The workflow prompts for manual confirmation to resolve the ambiguity before proceeding with the commit.

How do I persist the chosen git branch name for later SDD stages without committing it to the repository?

Persist the chosen git branch name by writing it to a local state.json file rather than the repository. This saves the branch_name for later SDD stages to merge and delete the branch without adding state files to git history.