Skip to content

Conversation

@valeriikot
Copy link
Contributor

Summary

Add a new recipe for automated Flutter/Dart code review. This recipe leverages official Flutter AI rules and Context7 MCP for real-time documentation to provide expert-level PR reviews covering null safety, state management, architecture patterns, performance, accessibility, and security.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Manual testing by running the recipe against Flutter repositories
Validated YAML syntax and structure

Submitting a Recipe?

Email: [email protected]

@valeriikot valeriikot requested a review from a team as a code owner December 10, 2025 16:00
…d PHP

Add three new recipe templates for code review processes:
- Flutter/Dart code review with Context7 docs and Flutter AI rules
- JavaScript/TypeScript review with Context7 docs and tessl.io registry
- PHP review with Context7 docs and modern PHP 8+ best practices

Each template includes standard and council mode review workflows

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

- Standardize git diff command to use origin/main...HEAD
- Remove redundant uncommitted changes explanation
- Update context7 extension configuration from builtin to stdio
- Add context7 command details and description

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

Modify review instructions in flutter, php, and js recipes to analyze changes using PR metadata rather than running git commands. This ensures a read-only approach to file examination and improves security by preventing accidental mutations.

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

…emplates

- Simplify flutter-pr-code-review.yaml description and instructions
- Add new javascript-react-pr-code-review.yaml template
- Add new php-pr-code-review.yaml template
- Update contact information across files

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

Update the Context7 MCP package to version 1.0.31 and standardize the description across all recipe files to clarify it's the official Upstash server

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: BLOCKED - One or more recipes have MEDIUM risk or higher

⚠️ Merge Protection: This PR cannot be merged until security concerns are addressed.
Repository maintainers can override this decision if needed.

📊 Scan Summary:

  • Total recipes scanned: 3
  • Blocked recipes: 6

📋 Individual Recipe Results:
❌ Recipe 1: BLOCKED (CRITICAL risk)
❌ Recipe 2: BLOCKED (CRITICAL risk)
❌ Recipe 3: BLOCKED (CRITICAL risk)

🔗 View detailed scan results in the workflow artifacts.

Update code review templates to use text-based labels ([CRITICAL], [WARNING], etc.) instead of emoji indicators for better accessibility and consistency across different platforms. Changes applied to PHP, JavaScript/React, and Flutter review templates.

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: APPROVED - All recipes passed security scan

📊 Scan Summary:

  • Total recipes scanned: 3

📋 Individual Recipe Results:
✅ Recipe 1: APPROVED (LOW risk)
✅ Recipe 2: APPROVED (LOW risk)
✅ Recipe 3: APPROVED (LOW risk)

🔗 View detailed scan results in the workflow artifacts.

Copy link
Contributor

@clouatre clouatre left a comment

Choose a reason for hiding this comment

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

Thanks for these code review recipes! A few issues to address:

1. Interactive vs Headless Conflict

Lines 322-337 define a prompt that asks "which review mode they want" - this is interactive. Per goose docs, prompt is for headless execution and shouldn't ask questions.

Fix: Remove prompt field (keep instructions only for interactive use).

2. Excessive Length (500+ lines)

Existing recipes in this repo: 27-530 lines, most under 300. These are 505-556 lines, with:

  • Lines 400-477: YAML comments explaining multi-provider workflows (belongs in docs)
  • Lines 62-143 are redundant - the recipe already instructs the AI to fetch best practices from Context7 (lines 23-31)
  • Lines 200-321: Prescriptive step-by-step persona instructions

Fix: Remove implementation comments, simplify instructions to reference best practices rather than hardcoding them.

3. Council Mode Adds Complexity

Lines 169-321 implement multi-persona reviews requiring 3-9 separate runs with external wrapper scripts.

Fix: Split into subrecipes or simplify to single-pass review.

Happy to help simplify while preserving the core value. Thoughts?

Remove LLM Council mode instructions and simplify review recipes for Flutter, JavaScript/React, and PHP. Focus on core best practices and Context7 documentation while removing less essential content to make the recipes more concise and maintainable.

Signed-off-by: Valerii Kot <[email protected]>
@github-actions
Copy link
Contributor

🔍 Recipe Security Scan Results

Status: APPROVED - All recipes passed security scan

📊 Scan Summary:

  • Total recipes scanned: 3

📋 Individual Recipe Results:
✅ Recipe 1: APPROVED (LOW risk)
✅ Recipe 2: APPROVED (LOW risk)
✅ Recipe 3: APPROVED (LOW risk)

🔗 View detailed scan results in the workflow artifacts.

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