dcyfr-component-patterns

Automate DCYFR component pattern enforcement including barrel exports and PageLayout usage across codebases.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dcyfr/dcyfr-labs --skill dcyfr-component-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dcyfr-component-patterns
Source: https://github.com/dcyfr/dcyfr-labs/tree/main/.opencode/skill/dcyfr-component-patterns
Command: npx skills add https://github.com/dcyfr/dcyfr-labs --skill dcyfr-component-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DCYFR projects often struggle to consistently apply and document architectural component patterns across a growing codebase, leading to fragmentation and technical debt.

Core Features & Use Cases

  • Enforces 90% PageLayout usage for standard pages with exceptions for ArticleLayout and ArchiveLayout.
  • Ensures barrel exports are used to simplify imports and maintain a clean module boundary.
  • Provides metadata generation scaffolding and guidance to standardize SEO and structural metadata across pages.

Quick Start

Run this skill to align new or refactored components with DCYFR patterns and wire barrel exports and metadata export checks.

Frequently Asked Questions about dcyfr-component-patterns

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

FAQPage Schema
How do I enforce barrel exports across my codebase to maintain clean module boundaries?

Barrel exports are enforced by this skill to simplify imports and maintain clean module boundaries across your codebase. It automates validation steps to ensure all components consistently use barrel exports during creation and refactoring.

What is the best way to standardize SEO metadata generation for new pages?

Metadata generation is standardized through scaffolding provided by this skill to standardize SEO and structural metadata across pages. It guides you in wiring metadata export checks during component creation or refactoring.

Can I use ArticleLayout or ArchiveLayout instead of PageLayout for specific pages?

ArticleLayout and ArchiveLayout are supported as exceptions to the standard PageLayout usage rule. This skill recognizes these specific layouts when validating your component architecture during development and refactoring.

How do I automate component pattern validation when creating new pages?

Component pattern validation is automated by running this skill when creating new pages or refactoring existing ones. It applies architectural rules, barrel exports, and metadata generation checks directly to your workflow.

Why does my growing codebase suffer from architectural fragmentation and technical debt?

Architectural fragmentation and technical debt often occur when projects struggle to consistently apply and document component patterns. This skill solves that by automating pattern enforcement and validation across the entire codebase.