Back to list
JStaRFilms

component-analysis

by JStaRFilms

A comprehensive suite of protocols, meta-prompts, and orchestration tools designed to streamline software development workflows, project management, and team collaboration. Includes the VibeCode Protocol Suite with web interface, user manuals, and reusable templates for efficient development processes.

9🍴 1📅 Jan 20, 2026

SKILL.md


name: component-analysis description: Analyze a React/TypeScript component for compliance with coding guidelines and suggest improvements.

Component Analysis Skill

Analyze components for coding standards compliance and provide actionable improvements.

When to Use

  • Refactoring discussions
  • Before major component changes
  • When asked to "analyze" or "audit" a component
  • Code review of specific files

Analysis Process

1. Identify Component

Get from user or extract:

  • Component Path: Full file path
  • Component Name: The component name

2. Initial Examination

Read file and check:

  • Code structure and organization
  • Purpose and functionality
  • Immediate issues
  • Total lines (check 200-line rule)

3. Coding Guidelines Check

CheckWhat to Look For
Size< 200 lines (refactor if exceeded)
Single ResponsibilityDoes one thing well
TypeScriptProper types, interfaces for props
NamingPascalCase components, camelCase functions, handle* events
HooksProper use of React hooks and effects
DocumentationTSDoc/JSDoc comments
ImportsOrganized, no unused imports

4. Styling Check

CheckWhat to Look For
Tailwind v4Using @theme integration
Color TokensUsing primary, accent, semantic tokens
ResponsiveMobile-first (sm:, md:, lg:)
Dark Modedark: variants
PerformanceAvoiding expensive backdrop-filter

5. Mobile-First Check

  • Mobile-first breakpoints
  • Touch-friendly interactions
  • Responsive typography
  • Container responsiveness

6. Generate Report

# Component Analysis: [Name]

**File:** `[path]`
**Lines:** [X] / 200 max
**Score:** [X]/10

## ✅ Compliant
- [Things done well]

## ⚠️ Warnings
- [Minor issues]

## ❌ Violations
- [Critical issues]

## 📋 Recommendations

### High Priority
1. [Critical fix]

### Medium Priority
1. [Improvement]

## 🔧 Suggested Fixes
[Before/After code examples]

7. Offer Next Steps

  • A) Implement high-priority fixes
  • B) Create feature documentation
  • C) Refactor if > 200 lines

Severity Levels

  • 🔴 Critical: Breaking functionality, security issues
  • 🟡 Major: Performance, accessibility violations
  • 🟢 Minor: Code style, documentation

Common Violations

  1. No TypeScript interface for props → Define interface ComponentProps
  2. useEffect missing dependencies → Add to dependency array
  3. Hardcoded colors → Use Tailwind tokens
  4. No dark mode → Add dark: variants
  5. Missing alt text → Add descriptive alt attributes

Score

Total Score

60/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon