Skip to content

Commit 1f072db

Browse files
committed
feat(skill): rename react component skill and clarify container/presentation guidance
1 parent 4717bd0 commit 1f072db

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • skills/react-container-presentation-component

skills/react-container-presentation-component/SKILL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
---
22
name: react-container-presentation-component
3-
description: "Create a new React component in src/components by asking component name and type (ui or features), then scaffold files that follow this repository rules, TypeScript strict typing, and Storybook/SCSS structure. Use when user types /add-component or asks to add a component."
3+
description: "Create a React component using the Container/Presentation pattern in src/components by asking for the component name and type (ui or features), then scaffold files that follow this repository's TypeScript, Storybook, and SCSS conventions. Use when the user explicitly asks for a Container/Presentation-based component or runs /react-container-presentation-component."
44
argument-hint: "componentName type(ui|features)"
55
user-invocable: true
66
---
77

8-
# Add Component
8+
# Container/Presentation Component
99

10-
Use this skill when adding a new component under `src/components`.
10+
Use this skill to create a React component under `src/components` that follows the Container/Presentation pattern.
1111

1212
Refer to this skill's bundled references for detailed rules.
1313

1414
- `references/component-architecture.md`
1515
- `references/typescript-and-scss-rules.md`
1616

17-
If the `/add-component` input is incomplete, ask questions first before creating files.
17+
If the `/react-container-presentation-component` input is incomplete, ask questions first before creating files.
1818

1919
## When To Use
2020

21-
- When the user runs `/add-component`
22-
- When the user asks to add a new component
23-
- When the user wants to create a component in either `ui` or `features`
21+
- When the user runs `/react-container-presentation-component`
22+
- When the user explicitly asks for a React component that follows the Container/Presentation pattern
23+
- When the user wants help deciding or implementing `ui` vs `features` classification within the Container/Presentation pattern
2424

2525
## Required Questions
2626

0 commit comments

Comments
 (0)