terminal-component
Installation
SKILL.md
Terminal component
Guidance for the Terminal feature (interactive CLI-style UI on the home page).
Entry and loading
- Wrapper: components/mate/terminal/terminal.wrapper.tsx — loads components/mate/terminal/terminal.tsx via
next/dynamicwithTerminalSkeleton,ssr: false. - Skeleton: components/mate/terminal/terminal.skeleton.tsx. Use as the dynamic loading fallback.
Command system
- Registry: components/mate/terminal/command-registry.ts — singleton
registry;registerGroup(name, commands),getAllCommands(),getCommandMap()(name + aliases, lowercased). - Registration: components/mate/terminal/commands/index.ts — registers groups: System, Personal, Social, Navigation (links, site), Fun (ait). Add new commands here or in the appropriate group file.
- Command groups: components/mate/terminal/commands/system.ts, components/mate/terminal/commands/personal.ts, components/mate/terminal/commands/social.ts, components/mate/terminal/commands/navigation.ts, components/mate/terminal/commands/ait.ts.
- Types: components/mate/terminal/types/commands.ts —
Command,CommandGroup,CommandRegistry. Commands havename,aliases?,description,run(and optionally UI).