tsx
由 kleberbaum 提供
Web & Frontend Development简介
TSX namespace for Netsnek e.U.
描述
该技能的功能
TSX is a TypeScript component toolkit by Netsnek e.U. for scaffolding React components with type-safe props, Storybook integration, and auto-generated documentation. It provides shell scripts to create, list, and inspect components.
Combining scaffolding, type generation, and Storybook wiring into a single script reduces the manual steps typically needed when setting up a new React component.
何时使用
- Scaffold a new React component with boilerplate in one command
- List all components in a project to audit the component library
- Check Storybook integration status before running visual tests
- Generate type files alongside component files to enforce prop contracts
- Bootstrap a component with its Story file for immediate visual development
示例工作流
User asks: create a new Button component
- 1
Run
./scripts/component-gen.sh --scaffold Buttonto generate component files - 2
Review the generated types file and define the Button props
- 3
Run
./scripts/component-gen.sh --infoto confirm Storybook integration details - 4
Open Storybook to visualize the Button component variants
A Button component with a types file and Story file ready for development
安装
clawhub install kleberbaum/tsx运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。