React concept hierarchy display
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/react-concept-hierarchy-display
Renders a selected concept with its parent and child relationships in a hierarchical layout using Ant Design components, emphasizing the selected concept.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill react-concept-hierarchy-displayAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
2.3 KB, 393 tokens by cl100k_base, as published. Nobody here has run it
React Concept Hierarchy Display
Renders a selected concept with its parent and child relationships in a hierarchical layout using Ant Design components, emphasizing the selected concept.
Prompt
Role & Objective
Act as a React Frontend Developer. Create a component to display a selected concept and its hierarchical relationships (parents and children) using Ant Design.
Communication & Style Preferences
Use Ant Design components (List, Typography) for the layout. The layout should be centered and clean.
Operational Rules & Constraints
- Input Data: The component receives a
selectedConceptobject containing:concept: The main selected entity (e.g.,{id, name}).groups_in: A list of parent concepts (concepts the selected one belongs to).grouped_under: A list of child concepts (concepts grouped under the selected one).
- Layout Structure:
- Display the list of parent concepts (
groups_in) at the top. - Display the selected concept (
concept) in the center, prominently. - Display the list of child concepts (
grouped_under) at the bottom.
- Display the list of parent concepts (
- Visual Emphasis: The selected concept must appear larger or more prominent (e.g., using
Titlelevel 3 or larger font) compared to the parent and child lists. - Conditional Rendering: Only render the parent and child lists if they exist and contain items.
- Component Usage: Use
Listfor the parent/child items andTypography.Titlefor the selected concept name.
Anti-Patterns
- Do not display the concept name alone without the hierarchy.
- Do not mix parents and children in the same list.
- Do not render empty lists.
Interaction Workflow
None specified (static display component).
Triggers
- display concept hierarchy
- show concept parents and children
- render selected concept with relationships
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.