codemercl

New Bus Component — Development skill for Claude Code

Development community

Scaffold a new bus/ component with styles, following project conventions.

How to install New Bus Component

Installs to ~/.claude/commands/codemercl-claude-framework-new-bus-component.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/codemercl/claude-framework/HEAD/.claude/commands/new-bus-component.md -o ~/.claude/commands/codemercl-claude-framework-new-bus-component.md

Restart Claude Code, or start a new session, for it to be picked up.

What New Bus Component does


name: new-bus-component description: Scaffold a new bus/ component with styles, following project conventions. Usage: /new-bus-component [--element]

Create a new component in `front/src/bus/$ARGUMENTS`.

Parse arguments: first arg is domain (e.g. `profile`), second is componentName (e.g. `profileCard`). If `--element` flag is present, create an Element (no hooks, no `Component` suffix). Otherwise create a Component.

Steps

  1. Verify the domain exists: `front

Alternatives in Development

  • Hand Drawn Styles — Claude Code skill:把内容套进内置手绘画风配方,产出可直接复制的生图提示词 930 ★
  • Migrate Component — Migrate a docs component from rST/Snooty AST to MDX 775 ★
  • Beautiful Feishu Whiteboard — 35 curated colour palette styles for building beautiful, editable Feishu / Lark (飞书) whiteboards 687 ★

Full documentation available on GitHub

View Source Repository