block-decision-matrix

Official

Choose the right block strategy.

AuthorNextSpark-js
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a structured framework to help developers and designers decide whether a new UI component should be built as a new block, a variant of an existing block, or if an existing block can be reused directly, preventing code bloat and ensuring consistency.

Core Features & Use Cases

  • Decision Flowchart: A visual guide to navigate the decision-making process.
  • Criteria Definitions: Clear guidelines for Reuse, Variant, and New Block scenarios based on semantic purpose, structure, and required fields.
  • Complexity Thresholds: Quantifiable metrics for props count and conditionals to guide decisions.
  • Anti-Pattern Identification: Highlights common pitfalls like "Frankenstein Blocks" and "God Components."
  • Use Case: When a designer provides a mock for a new section, use this Skill to determine if it can be a simple variation of the existing Hero block or if it requires a completely new Hero-Special block.

Quick Start

Use the block-decision-matrix skill to determine if a new mock section should be a new block, a variant, or reused.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: block-decision-matrix
Download link: https://github.com/NextSpark-js/nextspark/archive/main.zip#block-decision-matrix

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.