Agent skill

private-vs-shared-components

Rules for determining if a component should be private or shared, and where to place them based on their use-case.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/private-vs-shared-components

SKILL.md

Private Vs Shared Components Skill

  • Private Components: For components used only within specific pages, you can create a _components folder within the relevant /app subdirectory.
  • Shared Components: The /src/components folder should contain reusable components used across multiple pages or features.

Memory Protocol (MANDATORY)

Before starting:

bash
cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results