Skip to content

feat: detect claude CLI in wizard and prompt constitution init on first session#8

Merged
salimomrani merged 1 commit into
masterfrom
feat/claude-detection-and-constitution-prompt
Mar 11, 2026
Merged

feat: detect claude CLI in wizard and prompt constitution init on first session#8
salimomrani merged 1 commit into
masterfrom
feat/claude-detection-and-constitution-prompt

Conversation

@salimomrani

Copy link
Copy Markdown
Owner

Summary

  • Adds isClaudeInstalled() utility using spawnSync to detect if the claude CLI binary is in PATH
  • In forgekit new, the Claude Code checkbox is auto-unchecked with a (claude CLI non détecté) label when claude is not installed
  • The session-start.sh hook now detects if the generated constitution still contains unfilled placeholders ([Your first principle]) and prompts the user to run /speckit.constitution to complete it interactively

Test plan

  • isClaudeInstalled() — 3 unit tests (found, not found, ENOENT)
  • session-start hook content — verified via template rendering test
  • Full suite: 46/46 passing

🤖 Generated with Claude Code

…st session

- Add isClaudeInstalled() utility (spawnSync) with 3 test cases
- Auto-uncheck Claude Code option in forgekit new if claude CLI not found
- session-start hook detects unfilled constitution and instructs /speckit.constitution

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@salimomrani
salimomrani merged commit c92ec21 into master Mar 11, 2026
4 checks passed
@salimomrani
salimomrani deleted the feat/claude-detection-and-constitution-prompt branch April 16, 2026 12:05
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