RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Windsurf rules/danielvm-git/bigpowers

Windsurf rules

.windsurf/rules/kickoff-branch.md

Create a git worktree and feature branch, then verify a clean test baseline before any code is written. Use when starting a new feature or task, when user wants to work in isolation from main, or mentions "start a branch" or "new worktree".

Windsurf rules

Quality

78/100

Scores the file, not the repository.

Length

742 words

19 headings · 7 code blocks

Repository

114

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
danielvm-git/bigpowers/.windsurf/rules/kickoff-branch.mdRawGitHub
1---
2name: kickoff-branch
3model: haiku
4description: "Create a git worktree and feature branch, then verify a clean test baseline before any code is written. Use when starting a new feature or task, when user wants to work in isolation from main, or mentions \"start a branch\" or \"new worktree\"."
5---
6 
7# story: e51s03
8# story: e20s03
9 
10 
11# Kickoff Branch
12 
13> **HARD GATE** — Direct work on `main` or `master` is PROHIBITED. Every task MUST start with this skill to create a feature branch or worktree.
14>
15> **HARD GATE** — Do NOT proceed with development until **Preflight** passes on the default branch. Red Preflight blocks branch creation and all forward work — invoke `quick-fix` or `fix-bug` per CONVENTIONS § Discovered Defects.
16 
17Create an isolated working environment before touching any code. **Preflight must be green** before you write feature code — solo-default owns the whole tree, not just the current task diff.
18 
19## Process
20 
21### 1. Confirm task name
22 
23Ask if not already known: "What's the name of this feature or task?" Use it as the branch name slug (kebab-case, max 40 chars).
24 
25### 2. Anchor on default branch (main or master)
26 
27> **HARD GATE** — Kickoff MUST start from an updated, clean default branch in the **primary** repository root (not a linked worktree).
28 
29```bash
30# Detect default branch
31DEFAULT=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo main)
32
33git checkout "$DEFAULT"
34git pull --ff-only origin "$DEFAULT" # skip if no remote
35git status # working tree MUST be clean
36git log --oneline -5
37```
38 
39**Spec-only pre-kickoff** — before enforcing the clean-tree gate, check whether dirty files are spec artifacts:
40 
41```bash
42DIRTY=$(git status --porcelain | awk '{print $2}')
43NON_SPEC=$(echo "$DIRTY" | grep -v '^specs/' || true)
44
45if [ -z "$DIRTY" ]; then
46 : # clean — proceed
47elif [ -z "$NON_SPEC" ]; then
48 # spec-only dirty tree — offer auto-commit
49 echo "Dirty spec artifacts: $(echo $DIRTY | tr '\n' ' ')"
50 read -p "Commit spec artifacts before kickoff? [Y/n]: " CONFIRM
51 CONFIRM=${CONFIRM:-Y}
52 if [[ "$CONFIRM" =~ ^[Yy] ]]; then
53 git add specs/
54 git commit -m "chore(state): checkpoint before kickoff"
55 fi
56else
57 echo "Dirty tree: $NON_SPEC (not a spec artifact). Stash or commit before proceeding."
58 exit 1
59fi
60```
61 
62- **Spec artifacts** match `specs/` — state.yaml, epics YAMLs, execution-status.yaml, etc.
63- **Non-spec dirty files** (src/, scripts/, SKILL.md, …) still enforce the full clean-tree gate.
64- If not on `$DEFAULT` after checkout, stop and fix before continuing.
65 
66### 3. Pre-flight & Conflict Resolution
67 
68Before creating the worktree, verify the target environment is clean:
69 
70```bash
71# 1. Check for existing directory
72ls -d ../<task-slug> 2>/dev/null
73 
74# 2. Check for existing branch
75git branch --list <task-slug>
76 
77# 3. Check for "ghost" worktrees (metadata exists but directory is gone)
78git worktree list | grep "<task-slug>"
79```
80 
81**Handling Conflicts:**
82- **Directory exists:** If `../<task-slug>` already exists, ask the user if they want to use it or delete it.
83- **Branch exists:** If the branch exists but no worktree is attached, ask to use the existing branch (`git worktree add ../<task-slug> <task-slug>`) or delete it.
84- **Ghost worktree:** If `git worktree list` shows the path but the directory is missing, run `git worktree prune` to clear the stale metadata. `bash scripts/cleanup-worktrees.sh` does this plus reports any worktree whose branch is already merged or deleted — advisory only, it prints the `git worktree remove`/`git branch -d` commands rather than running them, so review before acting.
85 
86### 4. Create worktree + branch
87 
88```bash
89# From the main repo root (not another worktree)
90git worktree add ../&lt;task-slug&gt; -b &lt;task-slug&gt;
91cd ../&lt;task-slug&gt;
92```
93 
94If the user prefers a branch without a worktree:
95```bash
96git checkout -b &lt;task-slug&gt;
97```
98 
99### 4. Verify clean baseline
100 
101> **HARD GATE (e39s02):** Acquire story lock in `specs/agent-locks.yaml` before running tests.
102 
103```bash
104LOCK=&quot;specs/agent-locks.yaml&quot;; STORY=&quot;&lt;story-id&gt;&quot;
105if [ -f &quot;$LOCK&quot; ]; then
106 python3 -c &quot;
107import yaml,sys,datetime
108d=yaml.safe_load(open('$LOCK'))or{'locks':[]}
109for l in d['locks']:
110 if l['story_id']=='$STORY':print(f'LOCKED by {l[\"locked_by\"]} at {l[\"locked_at\"]}');sys.exit(1)
111d['locks'].append({'story_id':'$STORY','locked_by':'agent: build-epic','locked_at':datetime.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ'),'files_touched':[]})
112yaml.dump(d,open('$LOCK','w'),default_flow_style=False)
113print(f'LOCK ACQUIRED: $STORY')
114&quot;
115fi
116```
117 
118If locked: abort. If unlocked: entry added, proceed.
119 
120Run **Preflight** (from `CLAUDE.md` Commands table, or `BP_PREFLIGHT` from `bash scripts/bp-read-agents.sh`) and confirm green before writing any code:
121 
122```bash
123# Preflight — project's full local verification stack
124# bigpowers example:
125npm run compliance && bash scripts/run-verification-gates.sh
126 
127# Or project-specific from CLAUDE.md / AGENTS.md
128```
129 
130- [ ] Preflight passes (all chained gates green)
131- [ ] No type errors (`npm run typecheck` or equivalent, if not in Preflight)
132- [ ] No lint errors (`npm run lint` or equivalent, if not in Preflight)
133 
134If Preflight is red, **stop** — route to `quick-fix` or `fix-bug`. Fix before kickoff continues.
135 
136### 5. Confirm readiness
137 
138Report: `✓ Preflight green` + branch + worktree. Suggest next: `develop-tdd` or `execute-plan`.
139 
140## Handoff
141 
142Gate: READY -> next: develop-tdd
143Writes: state.yaml handoff.next_skill = develop-tdd
144 

Commands it names

  • git checkout "$DEFAULT"
  • git pull --ff-only origin "$DEFAULT"
  • git status
  • git log --oneline -5
  • git add specs/
  • git commit -m "chore(state): checkpoint before kickoff"
  • git branch --list <task-slug>
  • git worktree list | grep "<task-slug>"
  • git worktree add ../<task-slug> -b <task-slug>
  • git checkout -b <task-slug>
  • python3 -c "
  • npm run compliance && bash scripts/run-verification-gates.sh
  • git worktree add ../<task-slug> <task-slug>
  • git worktree list
  • git worktree prune
  • git worktree remove
  • git branch -d
  • npm run typecheck
  • npm run lint

Sections

  • story: e51s03
  • story: e20s03
  • Kickoff Branch
  • Process
  • 1. Confirm task name
  • 2. Anchor on default branch (main or master)
  • Detect default branch
  • 3. Pre-flight & Conflict Resolution
  • 1. Check for existing directory
  • 2. Check for existing branch
  • 3. Check for "ghost" worktrees (metadata exists but directory is gone)
  • 4. Create worktree + branch
  • From the main repo root (not another worktree)
  • 4. Verify clean baseline
  • Preflight — project's full local verification stack
  • bigpowers example:
  • Or project-specific from CLAUDE.md / AGENTS.md
  • 5. Confirm readiness
  • Handoff

What it covers

architecturegit-pragent-behaviour

Stack — with the evidence

node

(0.95)

shell

(0.80)

react

(0.70)

astro

(0.70)

express

(0.70)

vitest

(0.70)

typescript

(0.60)

javascript

(0.60)

python

(0.60)

github-actions

(0.60)

Format

Windsurf rules

Cursor's activation model with a different vocabulary — trigger modes instead of rule types — plus hard character caps, which is the one place a format here will silently drop instructions rather than fail loudly.

What the corpus says about it

Repository

Owner
danielvm-git
Language
—
License
—
Archived
no

All configs in this repo

Also in danielvm-git/bigpowers

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
danielvm-git/bigpowers.cursor/rules/align-grid.mdc · 114Cursor rulesnodeshell+8lint-formatdo-notagent-behaviour65/1003 days ago
danielvm-git/bigpowers.cursor/rules/assess-impact.mdc · 114Cursor rulesshellnode+8testtesting-strategydeployment66/1003 days ago
danielvm-git/bigpowers.cursor/rules/audit-code.mdc · 114Cursor rulesshellnode+8setuptestlint-formatstyle+466/1003 days ago
danielvm-git/bigpowers.cursor/rules/audit-plan.mdc · 114Cursor rulesnodeshell+8buildteststylegit74/1003 days ago
danielvm-git/bigpowers.cursor/rules/build-epic.mdc · 114Cursor rulesshellnode+8buildgit58/1003 days ago
danielvm-git/bigpowers.cursor/rules/change-request.mdc · 114Cursor rulesshellnode+8no sections48/1003 days ago
danielvm-git/bigpowers.cursor/rules/commit-message.mdc · 114Cursor rulesshellnode+8lint-formatstyletypesgit+382/1003 days ago
danielvm-git/bigpowers.cursor/rules/compose-workflow.mdc · 114Cursor rulesshellnode+8styledo-notagent-behaviour65/1003 days ago
danielvm-git/bigpowers.cursor/rules/context7-mcp.mdc · 114Cursor rulesshellnode+8style54/1003 days ago
danielvm-git/bigpowers.cursor/rules/craft-skill.mdc · 114Cursor rulesshellnode+8stylearchgitdo-not69/1003 days ago
danielvm-git/bigpowers.cursor/rules/deepen-architecture.mdc · 114Cursor rulesshellnode+8testtesting-strategydo-not57/1003 days ago
danielvm-git/bigpowers.cursor/rules/define-language.mdc · 114Cursor rulesshellnode+8lint-formatdo-not65/1003 days ago
danielvm-git/bigpowers.cursor/rules/define-success.mdc · 114Cursor rulesshellnode+8no sections4/1003 days ago
danielvm-git/bigpowers.cursor/rules/delegate-task.mdc · 114Cursor rulesshellnode+8git62/1003 days ago
danielvm-git/bigpowers.cursor/rules/deploy.mdc · 114Cursor rulesnodeshell+8setupbuildtestdeployment77/1003 days ago
danielvm-git/bigpowers.cursor/rules/design-interface.mdc · 114Cursor rulesshellnode+8styleagent-behaviour58/1003 days ago
danielvm-git/bigpowers.cursor/rules/develop-tdd.mdc · 114Cursor rulesshellnode+8teststylearchtesting-strategy+585/1003 days ago
danielvm-git/bigpowers.cursor/rules/diagnose-root.mdc · 114Cursor rulesshellnode+8no sections39/1003 days ago
danielvm-git/bigpowers.cursor/rules/diagnose-stall.mdc · 114Cursor rulesshellnode+8no sections44/1003 days ago
danielvm-git/bigpowers.cursor/rules/dispatch-agents.mdc · 114Cursor rulesshellnode+8git54/1003 days ago
Diff against .cursor/rules/align-grid.mdc Diff against .cursor/rules/assess-impact.mdc Diff against .cursor/rules/audit-code.mdc Diff against .cursor/rules/audit-plan.mdc Diff against .cursor/rules/build-epic.mdc Diff against .cursor/rules/change-request.mdc Diff against .cursor/rules/commit-message.mdc Diff against .cursor/rules/compose-workflow.mdc Diff against .cursor/rules/context7-mcp.mdc Diff against .cursor/rules/craft-skill.mdc Diff against .cursor/rules/deepen-architecture.mdc Diff against .cursor/rules/define-language.mdc Diff against .cursor/rules/define-success.mdc Diff against .cursor/rules/delegate-task.mdc Diff against .cursor/rules/deploy.mdc Diff against .cursor/rules/design-interface.mdc Diff against .cursor/rules/develop-tdd.mdc Diff against .cursor/rules/diagnose-root.mdc Diff against .cursor/rules/diagnose-stall.mdc Diff against .cursor/rules/dispatch-agents.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
danielvm-git/bigpowers.windsurf/rules/organize-workspace.md · 114Windsurf rulesshellnode+8buildstylegitdeployment+289/1003 days ago
danielvm-git/bigpowers.windsurf/rules/guard-git.md · 114Windsurf rulesshellnode+8stylearchgitsecurity+289/1003 days ago
danielvm-git/bigpowers.windsurf/rules/quick-fix.md · 114Windsurf rulesshellnode+8teststylegitdeployment+185/1003 days ago
danielvm-git/bigpowers.windsurf/rules/develop-tdd.md · 114Windsurf rulesshellnode+8teststylearchtesting-strategy+585/1003 days ago
danielvm-git/bigpowers.windsurf/rules/session-state.md · 114Windsurf rulesshellnode+8lint-formatstyleagent-behaviour82/1003 days ago
danielvm-git/bigpowers.windsurf/rules/commit-message.md · 114Windsurf rulesshellnode+8lint-formatstyletypesgit+382/1003 days ago
danielvm-git/bigpowers.windsurf/rules/extract-design.md · 114Windsurf rulesnodeshell+8lint-formatstyledependenciesui82/1003 days ago
danielvm-git/bigpowers.windsurf/rules/setup-environment.md · 114Windsurf rulesnodeshell+8setupstylesecuritydo-not+181/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack