container-view-pattern

Enforce Container/View pattern for React components with file naming conventions.

3|3|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/CodySwannGT/lisa --skill container-view-pattern
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: container-view-pattern
Source: https://github.com/CodySwannGT/lisa/tree/main/plugins/lisa-expo/skills/container-view-pattern
Command: npx skills add https://github.com/CodySwannGT/lisa --skill container-view-pattern

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill ensures React components are structured using the Container/View pattern, promoting separation of concerns and improving code maintainability.

Core Features & Use Cases

  • Pattern Enforcement: Validates and guides the implementation of the Container/View pattern.
  • Component Generation: Provides scripts to quickly scaffold new components following the pattern.
  • Use Case: When creating a new feature component, use this Skill to generate the Container.tsx, View.tsx, and index.tsx files, ensuring adherence to project standards from the start.

Quick Start

Use the container-view-pattern skill to create a new global component named 'UserProfile'.

Frequently Asked Questions about container-view-pattern

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

FAQPage Schema
How do I enforce the React Container/View pattern when creating new components?

You can enforce the React Container/View pattern by using a skill that validates component creation and generates the required Container.tsx, View.tsx, and index.tsx files, ensuring logic and presentation are separated.

What is the React Container/View pattern and why should I use it?

The React Container/View pattern separates business logic from presentation in your components. It improves code maintainability and promotes separation of concerns by isolating data fetching and rendering into distinct files.

How do I scaffold a new React component that separates logic and presentation?

To scaffold a component separating logic and presentation, use the provided generation scripts to automatically create the Container.tsx, View.tsx, and index.tsx files following the correct file naming conventions and hook placement rules.

Can I validate existing React components against the Container/View pattern?

Yes, you can validate existing React components against the Container/View pattern. The skill checks components within specified directories like features/*/components/ to ensure they adhere to correct hook placement and rendering practices.

Does the React Container/View pattern require specific file naming conventions?

Yes, the React Container/View pattern requires specific file naming conventions. You must use Container.tsx, View.tsx, and index.tsx filenames within your component directories to maintain structural consistency and pass validation.

When should I not use the Container/View pattern for React components?

You should avoid the Container/View pattern for simple React components that do not benefit from strict logic and presentation separation, as enforcing it on trivial UI elements adds unnecessary file structure and boilerplate overhead.