Skip to content
Back to skills

Collection

ASecurity

Modular refactoring guidelines and best practices for Smart TV Signage project. Use for refactoring large components, adding features, debugging, and maintaining code quality.

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
code-qualityreacttestingdebuggingrefactoringgitapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-64b71611/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-64b71611)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: signage-refactor
description: Modular refactoring guidelines and best practices for Smart TV Signage project. Use for refactoring large components, adding features, debugging, and maintaining code quality.
type: guideline
version: 1.0.0
tags:
  - refactoring
  - react
  - modular-architecture
  - code-quality
  - web-admin
---

# Smart TV Signage - Modular Refactoring Skill

## When to Activate This Skill

Invoke this skill when you need to:

1. **Refactor monolithic components** (>500 lines)
2. **Add new features** following project standards
3. **Debug systematically** using project guidelines
4. **Review code quality** against standards
5. **Maintain consistency** across the codebase

## Quick Start Commands

```
Use signage-refactor skill to refactor [ComponentName]
Use signage-refactor skill to add [feature] following standards
Use signage-refactor skill debugging checklist for [issue]
```

## What This Skill Provides

### πŸ“ Architecture Standards
- Directory structure for web-admin
- Component organization patterns
- File size limits and guidelines
- Naming conventions

### πŸ”§ Design Principles
- Single Responsibility Principle
- Component Composition patterns
- Separation of Concerns
- DRY principles

### πŸ”„ Refactoring Workflow
- Step-by-step extraction process
- Component templates
- Hook templates
- Modal templates

### βœ… Quality Checklist
- Pre-commit checklist
- Component quality standards
- Hook quality standards
- Testing guidelines

### πŸ› Debugging Guidelines
- API troubleshooting
- Component debugging
- State management issues
- Common pitfalls to avoid

### πŸ“¦ Component Templates
- Page container template
- UI component template
- Modal component template
- Custom hook template

## Implementation Phases

1. **Infrastructure** (2h) - Setup folders, base components
2. **Common Logic** (2h) - Extract hooks, API layer
3. **Refactor Content** (6h) - Break down 2142-line component
4. **Refactor Devices** (4h) - Modularize device management
5. **Testing & Polish** (2h) - Integration testing, cleanup

**Total: 16 hours (2-3 days)**

## Key Metrics

### Before Refactoring
- Content.jsx: 2,142 lines ❌
- Devices.jsx: 725 lines ⚠️
- Maintainability: Low
- Testability: Difficult

### After Refactoring
- All files: <250 lines βœ…
- Maintainability: High ⬆️ 500%
- Reusability: High ⬆️ 300%
- Testability: Excellent ⬆️ 400%

## Quick Reference

### File Size Limits
- Pages: 150-250 lines
- Components: 100-200 lines
- Modals: 150-300 lines
- Hooks: 100-250 lines

### Component Hierarchy
```
Page Container (data coordination)
  β”œβ”€β”€ Grid/List Component (layout)
  β”‚   └── Card Component (item display)
  β”œβ”€β”€ Filter Component (user input)
  └── Modal Components (actions)
```

### Import Order
1. React imports
2. Third-party libraries
3. Internal (absolute paths)
4. Relative (same directory)

## Full Documentation

See complete guidelines in: `.claude/skills/signage-refactor.md`

---

**Version:** 1.0.0
**Last Updated:** 2025-10-23
**Project:** Smart TV Digital Signage System

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…