Skip to content

feat: add git strategy prompt for Vibe workflow mode#71

Closed
salimomrani wants to merge 3 commits into
masterfrom
feature/git-strategy-vibe-workflow
Closed

feat: add git strategy prompt for Vibe workflow mode#71
salimomrani wants to merge 3 commits into
masterfrom
feature/git-strategy-vibe-workflow

Conversation

@salimomrani

Copy link
Copy Markdown
Owner

Summary

Adds a git strategy configuration prompt for Vibe workflow mode, allowing users to choose between PR-required and direct-push strategies. The choice is written to settings.json and guides Claude Code's behavior.

Changes

  • Add GitStrategy type to ProjectConfig (values: "pr-required" | "no-pr")
  • Add conditional prompt in Vibe workflow setup asking for git strategy
  • Update claude-code generator to use configured strategy
  • Update test fixtures and detection logic to include gitStrategy field
  • Generate spec, plan, tasks.md for feature tracking

Test Results

✅ TypeScript compilation passes
✅ claude-code tests pass
✅ Prompt appears only when Vibe workflow selected
✅ Both strategy options work correctly
✅ Default to "pr-required" (safe default)
✅ settings.json contains correct git.strategy value

Architecture

  • Follows project constitution: ProjectConfig as source of truth, templates zero-logic
  • Backward compatible: defaults to "pr-required" if field missing
  • Feature spec, plan, and tasks documented in .specify/specs/001-vibe-git-strategy/

- Add GitStrategy type ('pr-required' | 'no-pr') to ProjectConfig
- Add conditional git strategy prompt in project wizard (only for Vibe mode)
- Update claude-code generator to use gitStrategy from ProjectConfig
- Update test fixtures and configs to include gitStrategy field
- Default gitStrategy to 'pr-required' for safety

When users select Vibe workflow during setup, they're now asked to choose
between PR-required (safer) or direct-push (faster) strategies. The choice
is saved to settings.json and guides Claude Code's git behavior.

Spec, plan, and tasks documentation added to .specify/specs/001-vibe-git-strategy/.
Svelte frontend support was accidentally included in build artifacts
and has been removed. Cleanup import statement in frontend/index.ts.
feat: add git strategy prompt for Vibe workflow mode

- Add GitStrategy type ('pr-required' | 'no-pr') to ProjectConfig
- Add conditional git strategy prompt in project wizard (only for Vibe mode)
- Update claude-code generator to use gitStrategy from ProjectConfig
- Update test fixtures and detection logic to include gitStrategy field
- Generate spec, plan, tasks.md for feature tracking
@salimomrani

Copy link
Copy Markdown
Owner Author

Closing in favor of #72 which contains the clean git strategy changes without Svelte code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant