ss-sdd-preflight

Validate SDD config, git repository status, and branch state before pipeline runs.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Ensures a spec-driven-development run starts in a valid, commit-capable repository state so later stages can rely on configuration and branch assumptions without surprises.

Core Features & Use Cases

  • Config validation gate: Confirms .sublime-skills/config.yml exists and passes validate-config.sh, aborting immediately if missing or invalid.
  • Git and branch readiness checks: Verifies the current directory is inside a git repository and that HEAD is attached to a named branch (aborts if detached).
  • Permissive dirty-tree handling: Warns when the working tree is dirty, then asks for confirmation to proceed so existing user changes remain untouched.
  • SDD state shell initialization: Removes any orphan .sublime-skills/state.json from a prior dead pipeline and creates a fresh minimal state.json only after all hard checks pass.
  • Use case: Before drafting specs and planning implementation tasks, run this to avoid wasted work caused by misconfigured SDD, missing bootstrap artifacts, or running on detached HEAD.

Quick Start

Tell your agent to run the ss-sdd-preflight skill to verify the repo configuration, git readiness, and create the initial .sublime-skills/state.json shell.

Frequently Asked Questions about ss-sdd-preflight

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

FAQPage Schema
How do I validate git branch readiness and spec-driven-development configuration before starting a pipeline run?

To validate spec-driven-development readiness, run a preflight check that confirms your `.sublime-skills/config.yml` exists, passes validation, and verifies your git repository has an attached HEAD. This ensures later pipeline stages can rely on configuration and branch assumptions without surprises.

What happens if my working tree is dirty when running a spec-driven-development preflight check?

When your working tree is dirty during a spec-driven-development preflight check, the process warns you and asks for confirmation to proceed. This permissive dirty-tree handling ensures existing user changes remain untouched while still allowing the pipeline to continue if approved.

Does spec-driven-development pipeline validation work on a detached HEAD state?

Spec-driven-development pipeline validation does not work on a detached HEAD state. The preflight checks verify that HEAD is attached to a named branch and will abort immediately if it detects a detached HEAD to prevent running stages in invalid environments.

Why do I need to initialize a state.json shell before drafting specs and planning implementation tasks?

You need to initialize a `state.json` shell to ensure a valid, commit-capable repository state for later pipeline stages. It atomically removes orphan state files from dead pipelines and creates a fresh minimal state file only after all hard checks pass.

What is the best way to prevent wasted work from misconfigured SDD bootstrap artifacts?

The best way to prevent wasted work from misconfigured SDD bootstrap artifacts is to run a preflight validation gate. It confirms `validate-config.sh` passes and checks git repository status before drafting specs, aborting immediately if configuration is missing or invalid.