feature-scaffold

仓库创建 2024年12月9日最近提交 6 小时前SkillHot 收录 5 小时前
▸ 精选理由

提高新特性开发速度并保持代码结构一致性。

这个 Skill 做什么

按项目约定为 builder 应用生成新功能目录、页面和服务动作的脚手架。

按项目约定为 builder 应用生成新功能的目录、页面、组件和 server-action 等脚手架,自动产出标准化布局和样板代码,省去重复搭结构的时间。用在新增页面、接口或功能模块时,能保证代码组织和约定一致,方便后续开发和审查。

▸ 展开 SKILL.md 英文原文

Scaffold new features following project conventions for the builder app. Use when creating a new feature, page, component, server action, query, or adding a new section to the web application.

开发编程脚手架约定优于配置Builder开发效率通用
524
Stars
116
Forks
21
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/feature-scaffold/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/feature-scaffold/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Feature Scaffold

## Feature Directory Structure

Features live in `apps/builder/src/features/<feature-name>/`. Standard layout:

```
features/<feature-name>/
  actions/              → Server actions (next-safe-action)
    create-item-action.ts
    delete-item-action.ts
  api/                  → oRPC route handlers
    index.ts
    authenticated.ts
    workspace-token.ts
  queries/              → Server-side DB queries
    index.ts
  schema/               → Zod schemas
    query.ts            → List/filter params
    action.ts           → Mutation inputs
    resource.ts         → Response shapes
  provider/             → Zustand store + context (if needed)
    item-store.ts
    item-store-
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有