sage-existence-review

Review sage-lib diffs to identify duplicated components, tokens, and styles.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps engineering teams prevent duplication by reviewing diffs for sage-lib and flagging artifacts that duplicate existing components, tokens, or styles.

Core Features & Use Cases

  • Detects new React components, SCSS partials, mixins, and design tokens that may duplicate existing assets.
  • Proposes whether to extend a current asset or consolidate duplicates to maintain a single source of truth.
  • Supports workflow integration by surfacing concrete candidates and recommended actions during pull request reviews.

Quick Start

Review a diff against sage-lib to surface potential duplications and suggested consolidation actions.

Frequently Asked Questions about sage-existence-review

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

FAQPage Schema
How do I detect duplicate React components and SCSS partials in a design system diff?

To detect duplicate React components and SCSS partials in a design system diff, review newly added files in conventional directories to determine if a fresh artifact duplicates an existing one. This yields actionable prompts for extending or refactoring instead of duplicating surface artifacts.

What is the best way to prevent design token duplication during code review?

The best way to prevent design token duplication during code review is to analyze new token keys in the diff to determine if they duplicate existing assets. This process yields concrete recommendations for extending current assets to maintain a single source of truth.

Can I surface refactoring suggestions for sage-lib diffs in a pull request?

Yes, you can surface refactoring suggestions for sage-lib diffs in a pull request by analyzing the newly added files to flag artifacts that duplicate existing components, mixins, or styles. It proposes whether to extend a current asset or consolidate duplicates.

Does this existence review process work with newly added files in conventional directories?

Yes, this existence review process works with newly added files in conventional directories. It analyzes these specific new files and new token keys to determine if a fresh artifact duplicates an existing one, providing actionable prompts for extending or refactoring instead of duplicating.

How do I consolidate duplicate design system styles to maintain a single source of truth?

To consolidate duplicate design system styles to maintain a single source of truth, review diffs to identify duplicating artifacts and apply the recommended consolidation actions. This proposes extending a current asset rather than maintaining duplicate surface artifacts.

When should I extend an existing component instead of creating a new one in sage-lib?

You should extend an existing component instead of creating a new one in sage-lib when a diff review identifies that a fresh artifact duplicates an existing asset. This yields actionable prompts recommending extension or refactoring to prevent surface artifact duplication.