Skip to content

feat(recce-review): pre-flight check for missing recce install#27

Open
kentwelcome wants to merge 1 commit intomainfrom
feature/recce-review-preflight-check
Open

feat(recce-review): pre-flight check for missing recce install#27
kentwelcome wants to merge 1 commit intomainfrom
feature/recce-review-preflight-check

Conversation

@kentwelcome
Copy link
Copy Markdown
Member

Summary

  • Add a Pre-flight step at the top of the /recce-review skill that probes for the recce CLI (auto-activating venv//.venv/ to mirror run-mcp-stdio.sh) and stops with a clear install hint when missing — so users learn about the problem up front instead of via a silent MCP tool failure mid-review.
  • Align session-start.sh's install hint to use pip install 'recce[mcp]' for consistency with the new skill message.

Why

Without this check, when recce is not installed the stdio MCP launcher silently fails. The user gets no obvious signal — they only discover the problem when an MCP tool call eventually errors out (or via /mcp if they happen to look). The Pre-flight surfaces it immediately when /recce-review is invoked.

Test plan

  • In a venv where recce IS installed: /recce-review proceeds past Pre-flight (RECCE=ready).
  • In an environment where recce is NOT installed (no venv, or venv missing recce): /recce-review stops at Pre-flight with the install instructions.
  • In a project with a .venv/ containing recce: Pre-flight auto-activates and reports RECCE=ready with RECCE_VIA=venv.
  • session-start.sh hint output uses pip install 'recce[mcp]'.

🤖 Generated with Claude Code

Add a Pre-flight step to the /recce-review skill that probes for the
`recce` CLI (auto-activating venv/.venv to mirror run-mcp-stdio.sh)
and stops with a clear install hint when missing — so users learn
about the problem up front instead of via a silent MCP tool failure
mid-review.

Also align session-start.sh's install hint to use
`pip install 'recce[mcp]'` for consistency with the new skill message.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 6, 2026 03:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an explicit pre-flight check to the /recce-review skill to detect whether the recce CLI is available (including via local venv/ or .venv/ activation) and provide a clear install hint up front, and aligns the session-start hook’s install guidance with the new message.

Changes:

  • Add a /recce-review pre-flight step to probe for recce and stop early with install instructions when missing.
  • Introduce check-recce-installed.sh to mirror the MCP stdio launcher’s venv auto-detection and report readiness.
  • Update session-start.sh to recommend pip install 'recce[mcp]' in its remediation hint.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
plugins/recce/skills/recce-review/SKILL.md Adds a pre-flight step and user-facing install guidance for missing recce.
plugins/recce/skills/recce-review/scripts/check-recce-installed.sh New probe script that auto-detects/activates venv and reports recce availability/version.
plugins/recce/hooks/scripts/session-start.sh Aligns install hint to pip install 'recce[mcp]'.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +39 to +41
The script auto-activates a local `venv/` or `.venv/` (mirroring `run-mcp-stdio.sh`) and prints `RECCE=ready` (with `RECCE_VIA` and `RECCE_VERSION`) or `RECCE=missing`.

- `RECCE=ready` — continue to Step 0.
Comment on lines +13 to +15
source "$VENV_DIR/bin/activate"
RECCE_VIA=venv
break
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.

2 participants