eisland-dev-add-empty-…
Add a new empty subpage (tab) to an existing eIsland settings section with page navigation…
创建 eIsland 引导配置窗口的新步骤页面。当用户要求在引导界面(Guide)中新增配置步骤、引导页面、引导分页时使用此 skill。 触发关键词:guide 步骤、引导页面、引导分页、Guide step、新建引导页、添加引导配置。 适用于 src/renderer/components/components/ 目录下的 Guide 模块。
$ npx -y skills add JNTMTMTM/eIsland --skill eisland-dev-add-guide-step --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/eisland-dev-add-guide-stepContext preview
The summary Claude sees to decide when to auto-load this skill.
创建 eIsland 引导配置窗口的新步骤页面。当用户要求在引导界面(Guide)中新增配置步骤、引导页面、引导分页时使用此 skill。 触发关键词:guide 步骤、引导页面、引导分页、Guide step、新建引导页、添加引导配置。 适用于 src/renderer/components/components/ 目录下的 Guide 模块。
name: eisland-dev-add-guide-step description: | 创建 eIsland 引导配置窗口的新步骤页面。当用户要求在引导界面(Guide)中新增配置步骤、引导页面、引导分页时使用此 skill。 触发关键词:guide 步骤、引导页面、引导分页、Guide step、新建引导页、添加引导配置。 适用于 src/renderer/components/components/ 目录下的 Guide 模块。
eIsland 引导配置窗口采用分步架构,每个步骤是一个独立模块,位于 `src/renderer/components/components/Guide/<stepName>/`。
每个步骤模块必须包含以下子目录(参考已有的 `language` 和 `smtc` 步骤):
Guide/<stepName>/ ├── index.ts # 公共导出(仅导出主组件) ├── components/<StepName>.tsx # 步骤组件 ├── config/<stepName>Config.ts # 常量配置 ├── hooks/use<StepName>.ts # 逻辑 Hook ├── types/index.ts # 类型定义(Props 等) └── utils/ # 工具函数(可为空占位)
在 `src/renderer/components/components/Guide/<stepName>/` 下创建完整模块结构。
所有步骤组件必须接受 `StepProps`,包含 `onNext` 和 `onPrev` 回调:
export interface XxxStepProps {
onNext: () => void;
onPrev: () => void;
}将业务逻辑抽离到 Hook 中,组件只负责渲染。Hook 返回状态和操作函数。
组件使用标准布局结构:
export function XxxStep({ onNext, onPrev }: XxxStepProps): ReactElement {
const { t } = useTranslation();
return (
<div className="guide-step">
<div className="guide-step-header">
<h2>{t('guide.xxx.title')}</h2>
<p>{t('guide.xxx.subtitle')}</p>
</div>
{/* 步骤内容区域 */}
<div className="guide-xxx-content">
{/* ... */}
</div>
<div className="guide-step-footer">
<button className="guide-prev-btn" onClick={onPrev}>
{t('guide.actions.prev')}
</button>
<button className="guide-next-btn" onClick={onNext}>
{t('guide.actions.next')}
</button>
</div>
</div>
);
}export { XxxStep } from './components/XxxStep';在 `i18n/zh-CN.json` 和 `i18n/en-US.json` 的 `guide` 对象下添加步骤翻译键:
{
"guide": {
"xxx": {
"title": "中文标题",
"subtitle": "中文副标题"
}
}
}所有用户可见文案必须使用 `t()` 包裹,禁止硬编码。
在 `src/renderer/styles/guide/<stepName>.css` 中编写步骤专属样式,然后在 `src/renderer/styles/guide.css` 入口中添加 `@import`:
@import './guide/<stepName>.css';
样式命名规范:`.guide-<stepName>-*`,按钮复用 `.guide-next-btn` 和 `.guide-prev-btn`。
在 `src/renderer/guideMain.tsx` 中:
1. 导入新步骤组件 2. 在 `GuideStep` 联合类型中添加新步骤名 3. 在 JSX 中添加条件渲染 4. 连接 `onNext` / `onPrev` 回调切换步骤
type GuideStep = 'language' | 'smtc' | 'xxx';
// JSX 中:
{step === 'xxx' && <XxxStep onNext={handleXxxNext} onPrev={handleXxxPrev} />}已有步骤可作为参考:
eIsland - A sleek, Apple Dynamic Island inspired floating widget for Windows, built with Electron.
Repo: JNTMTMTM/eIsland
Add a new empty subpage (tab) to an existing eIsland settings section with page navigation…
为 eIsland 灵动岛添加一个新的空白状态机(IslandState)。当用户要求创建新状态、新页面、 新界面(如登录页、设置子页面、独立面板)时使用此…
为 eIsland 灵动岛的 MaxExpand(全展开)模式添加一个新的 Tab 页面。当用户要求创建新的 MaxExpand…
Add a new SVG icon to the project's icon enum system with matching test assertions. Use this…
Generate a release announcement markdown for eIsland. Use this skill whenever the user asks…
Analyze the current git status, review all staged and unstaged changes, and create a commit…