sage-review-code

The quick brown fox jumps over the lazy dog.

26|3|Updated Sep 23, 2020
One-click install
npx skills add https://github.com/Kajabi/sage-lib --skill sage-review-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sage-review-code
Source: https://github.com/Kajabi/sage-lib/tree/main/.claude/skills/sage-review-code
Command: npx skills add https://github.com/Kajabi/sage-lib --skill sage-review-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Structured code reviews of the sage-lib React components to identify pattern violations, anti-patterns, and gaps in test coverage, providing a consistent, actionable feedback loop for maintainers.

Core Features & Use Cases

  • Inspect changes across the sage-lib monorepo to ensure compliance with established patterns (propTypes, forwardRef, classnames, configs.js) and story/spec conventions.
  • Flag missing or insufficient Jest tests and provide guidance to improve coverage.
  • Standardize review output with a clear, structured format that accelerates PR reviews and onboarding of new contributors.

Quick Start

Run sage-review-code on your latest component changes to receive a structured feedback report.

Frequently Asked Questions about sage-review-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check React component pattern violations before opening a PR against develop?

To check React component pattern violations before opening a PR, you can review changes for propTypes, forwardRef usage, classnames patterns, and configs.js exports. This ensures compliance with established conventions and provides actionable, structured feedback.

What is the best way to identify gaps in Jest test coverage for sage-lib components?

The best way to identify gaps in Jest test coverage for sage-lib components is to run a targeted file review that flags missing or insufficient tests. This process also checks for story and spec coverage to ensure comprehensive testing across component changes.

How do I enforce consistent code reviews for React components in a monorepo?

Enforcing consistent code reviews for React components in a monorepo involves inspecting changes against established patterns like propTypes and forwardRef. Standardizing the review output with a structured format accelerates PR reviews and helps onboard new contributors.

Does the code review process check for forwardRef and classnames usage in sage-lib?

Yes, the code review process checks for forwardRef and classnames usage in sage-lib. It inspects component changes to enforce these established patterns, ensuring that all React components comply with the required structural conventions before a PR is opened.

Can I request a targeted file review when reviewers ask for changes on a sage-lib component?

Yes, you can request a targeted file review when reviewers ask for changes on a sage-lib component. This allows you to run checks on specific files to verify propTypes, configs.js exports, and Jest tests, delivering actionable feedback for your updates.

What limitations exist when reviewing React components for pattern compliance?

A limitation when reviewing React components for pattern compliance is that the checks are specifically tailored to the sage-lib monorepo environment. It focuses on propTypes, forwardRef, classnames, and Jest tests, so it may not apply to other React libraries or custom patterns.