fe-init

初始化前端web或小程序项目,配置常用工具和依赖。当用户想要创建新的前端项目、初始化 React 应用或设置前端开发环境时使用。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "fe-init" with this command: npx skills add doremijs/skills/doremijs-skills-fe-init

前端项目初始化

快速初始化 React + TypeScript web或小程序项目,配置常用工具和依赖。

使用

/fe-init 项目名 [web/小程序]

或让 Claude 自动引导:

帮我初始化一个前端项目

步骤 1:参数解析

从用户输入解析:

  • 第一个参数:项目名称(必需),如果符合英文+数字+横线的标准则保存到变量 ${PROJECT_NAME},否则翻译成符合要求的名字并保存到变量 ${PROJECT_NAME}
  • 第二个参数:项目类型(可选,默认 web,可选web/小程序),保存到变量 ${PKG_MANAGER}

如果用户未提供参数,使用 AskUserQuestion 询问。

步骤 2:选择包管理器

  1. 运行检测脚本:
bash scripts/detect-pkg-manager.sh
  1. AskUserQuestion 让用户选择

重要

所有后续的操作都要使用该包管理工具,不得使用其它包管理工具

步骤 3: 执行特定步骤

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2771Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2500Profile unavailable
General

Skill Quick Index

Build a wide-trigger, precise-match index for local OpenClaw skills (L1-L3), then quickly route by intent/category/keywords.

Registry SourceRecently Updated
2380Profile unavailable