AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/react-concept-hierarchy-display" ~/.claude/skills/ecnu-icalk-autoskill-react-concept-hierarchy-display && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8_GLM4.7/react-concept-hierarchy-display/SKILL.mdsource content
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
object containing:selectedConcept
: The main selected entity (e.g.,concept
).{id, name}
: A list of parent concepts (concepts the selected one belongs to).groups_in
: A list of child concepts (concepts grouped under the selected one).grouped_under
- Layout Structure:
- Display the list of parent concepts (
) at the top.groups_in - Display the selected concept (
) in the center, prominently.concept - Display the list of child concepts (
) at the bottom.grouped_under
- Display the list of parent concepts (
- Visual Emphasis: The selected concept must appear larger or more prominent (e.g., using
level 3 or larger font) compared to the parent and child lists.Title - Conditional Rendering: Only render the parent and child lists if they exist and contain items.
- Component Usage: Use
for the parent/child items andList
for the selected concept name.Typography.Title
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