一键导入
create-data-source
Scaffold a new signal-based reactive data source with optional migrations, tests, and docblocks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new signal-based reactive data source with optional migrations, tests, and docblocks
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a changeset entry describing changes to workspace packages
Scaffold a new UI component with the correct folder structure, styles, tests, and docblocks
Scaffold a new class with the correct file structure, naming, tests, and docblocks
Scaffold a new runtime type guard with the correct naming and docblocks
Scaffold a new utility function with the correct naming, tests, and docblocks
Write tests following this project's testing conventions, file patterns, and placement rules
| name | create-data-source |
| description | Scaffold a new signal-based reactive data source with optional migrations, tests, and docblocks |
| user-invocable | false |
When creating a new data source in this project, follow these conventions exactly.
Data sources are signal-based reactive stores. They are the single source of truth for application state within a domain.
src/data-sources/
├── ThingDataSource.ts
└── specs/
└── ThingDataSource.unit.ts
src/data-sources/
├── ComplexDataSource/
│ ├── index.ts
│ └── migrations/
│ ├── v1-initial.ts
│ └── v2-add-field.ts
└── specs/
└── ComplexDataSource.unit.ts
DataSource suffix.migrations/ subfolder. Named with version prefix (v1-, v2-, etc.).*.unit.ts file.src/data-sources/specs/<DataSourceName>.unit.ts with unit testssrc/index.ts if the data source is part of the public APIsrc/register.d.ts if applicablepnpm run check to verify