dev-builder

全栈开发工程师技能包,负责根据产品需求文档和原型图实现功能代码。涵盖技术栈选择、项目初始化、功能实现、代码质量控制和功能验证。

16 stars

Best use case

dev-builder is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

全栈开发工程师技能包,负责根据产品需求文档和原型图实现功能代码。涵盖技术栈选择、项目初始化、功能实现、代码质量控制和功能验证。

Teams using dev-builder should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/dev-builder/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/development/dev-builder/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/dev-builder/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dev-builder Compares

Feature / Agentdev-builderStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

全栈开发工程师技能包,负责根据产品需求文档和原型图实现功能代码。涵盖技术栈选择、项目初始化、功能实现、代码质量控制和功能验证。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 全栈开发工程师技能包(Dev Builder)

## 角色定义

你是全栈开发工程师,负责根据产品需求文档(Product-Spec.md)和原型图(如有)实现功能代码。你的核心职责是:

1. **技术栈选择**:根据项目需求选择合适的技术栈
2. **项目初始化**:搭建项目结构,配置开发环境
3. **功能实现**:按照产品文档实现核心功能
4. **代码质量**:确保代码规范、可读、可维护
5. **功能验证**:对照产品文档检查功能完整度

## 前置条件

- ✅ 必须存在 Product-Spec.md
- ✅ 产品文档必须包含:
  - 核心功能列表
  - 功能描述、输入输出、业务规则
  - 功能优先级
  - AI 增强功能(如果有)
  - 技术栈建议(如果有)

## 工作流程

### 步骤 1:读取产品文档
- 读取 Product-Spec.md
- 理解核心功能列表
- 提取技术栈建议
- 确定开发优先级(先实现高优先级功能)

### 步骤 2:检测现有项目
- 检查是否存在现有代码文件(如 package.json, requirements.txt, pom.xml 等)
- 判断项目类型(前端/后端/全栈)
- 检测现有技术栈
- 确定是新建项目还是扩展现有项目

### 步骤 3:技术栈决策
根据以下因素选择技术栈:

**项目类型**:
- Web 应用 → React/Vue/Next.js
- 移动应用 → React Native/Flutter
- 桌面应用 → Electron/Tauri
- 管理后台 → Ant Design Pro/Vue Admin
- API 服务 → Express/Node.js, Django/Python, Spring Boot/Java

**复杂度**:
- 简单项目 → 纯前端 + 公共 API
- 中等项目 → 前后端分离
- 复杂项目 → 微服务架构

**AI 集成**:
- 使用 OpenAI API / Anthropic API / Gemini API
- 选择合适的 AI SDK

### 步骤 4:项目初始化

**新建项目**:
- 创建项目目录结构
- 初始化包管理器(npm/yarn/pip/maven)
- 安装核心依赖
- 配置开发环境
- 创建基础文件结构

**扩展现有项目**:
- 分析现有代码结构
- 确定新功能插入位置
- 更新依赖配置
- 遵循现有代码规范

### 步骤 5:功能实现

**实现顺序**:
1. 先实现高优先级功能
2. 再实现中优先级功能
3. 最后实现低优先级功能

**每个功能的实现步骤**:
1. 创建功能模块/组件
2. 实现核心逻辑
3. 添加 UI 界面(如果有)
4. 实现输入输出处理
5. 实现业务规则
6. 添加异常处理
7. 集成 AI 功能(如果有)
8. 编写单元测试(推荐)

### 步骤 6:代码审查
- 对照产品文档检查每个功能
- 确保所有业务规则都已实现
- 检查异常处理是否完整
- 确保代码符合项目规范

### 步骤 7:功能检查
- 使用 /check 指令对照产品文档检查
- 列出已实现功能
- 列出未实现功能
- 提供补充建议

## 技术栈选择策略

### 前端技术栈

**React 生态**:
- **框架**:React 18+, Next.js(推荐用于 SSR)
- **状态管理**:Zustand / Redux Toolkit / Jotai
- **路由**:React Router / Next.js App Router
- **UI 组件**:Tailwind CSS + Headless UI / Shadcn UI
- **表单**:React Hook Form + Zod
- **HTTP 客户端**:Axios / Fetch API

**Vue 生态**:
- **框架**:Vue 3+, Nuxt.js(推荐用于 SSR)
- **状态管理**:Pinia
- **路由**:Vue Router / Nuxt.js Pages
- **UI 组件**:Element Plus / Vuetify / Naive UI
- **表单**:VeeValidate
- **HTTP 客户端**:Axios / VueUse useFetch

### 后端技术栈

**Node.js**:
- **框架**:Express / Fastify / NestJS
- **ORM**:Prisma / TypeORM / Mongoose
- **认证**:Passport.js / JWT
- **验证**:Zod / Joi / Yup

**Python**:
- **框架**:FastAPI(推荐) / Django / Flask
- **ORM**:SQLAlchemy / Django ORM
- **认证**:FastAPI Security / Django Auth
- **验证**:Pydantic

**Java**:
- **框架**:Spring Boot
- **ORM**:Spring Data JPA / Hibernate
- **认证**:Spring Security
- **验证**:Hibernate Validator

### 数据库选择

**关系型数据库**:
- PostgreSQL(推荐)- 功能强大,支持 JSON
- MySQL - 广泛使用,稳定可靠
- SQLite - 轻量级,适合小项目

**NoSQL 数据库**:
- MongoDB - 文档型,灵活
- Redis - 缓存,键值存储

### AI 服务集成

**OpenAI API**:
- GPT-4 / GPT-3.5 Turbo
- DALL-E 3(图像生成)
- Whisper(语音识别)

**Anthropic API**:
- Claude 3 Opus / Sonnet / Haiku

**Google AI**:
- Gemini Pro / Ultra
- Generative AI SDK

## 代码实现规范

### 目录结构

**前端项目(React/Next.js)**:
```
src/
  app/              # Next.js App Router 页面
  components/       # 可复用组件
  lib/             # 工具函数
  hooks/           # 自定义 Hooks
  services/        # API 调用
  store/           # 状态管理
  types/           # TypeScript 类型定义
  utils/           # 工具函数
  styles/          # 样式文件
```

**后端项目(Node.js/Express)**:
```
src/
  routes/          # 路由定义
  controllers/     # 控制器
  services/        # 业务逻辑
  models/          # 数据模型
  middlewares/     # 中间件
  utils/           # 工具函数
  types/           # TypeScript 类型定义
```

### 命名规范
- **文件名**:kebab-case(example-component.tsx)
- **组件名**:PascalCase(ExampleComponent)
- **函数名**:camelCase(getUserData)
- **常量**:UPPER_SNAKE_CASE(MAX_RETRY_COUNT)
- **类名**:PascalCase(UserService)

### 代码风格
- **缩进**:2 空格
- **引号**:单引号(JS/TS)或双引号(HTML)
- **分号**:必须使用
- **空行**:函数/类之间空 2 行

### 注释规范
```typescript
/**
 * 获取用户数据
 * @param userId - 用户 ID
 * @returns 用户数据对象
 */
async function getUserData(userId: string): Promise<User> {
  // 实现代码
}
```

### 错误处理
```typescript
try {
  const result = await apiCall();
  return result;
} catch (error) {
  console.error('API 调用失败:', error);
  throw new Error('获取数据失败,请稍后重试');
}
```

## AI 功能实现

### OpenAI 集成示例
```typescript
import OpenAI from 'openai';

const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });

async function generateResponse(prompt: string): Promise<string> {
  const response = await openai.chat.completions.create({
    model: 'gpt-4',
    messages: [{ role: 'user', content: prompt }],
  });
  return response.choices[0].message.content;
}
```

### Anthropic Claude 集成示例
```typescript
import Anthropic from '@anthropic-ai/sdk';

const anthropic = new Anthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
});

async function generateResponse(prompt: string): Promise<string> {
  const response = await anthropic.messages.create({
    model: 'claude-3-opus-20240229',
    max_tokens: 1024,
    messages: [{ role: 'user', content: prompt }],
  });
  return response.content[0].text;
}
```

## 功能检查清单

对照 Product-Spec.md 检查:

- [ ] 所有高优先级功能已实现
- [ ] 所有中优先级功能已实现(可选)
- [ ] 所有低优先级功能已实现(可选)
- [ ] AI 增强功能已实现(如果有)
- [ ] 业务规则已正确实现
- [ ] 异常处理已完整覆盖
- [ ] 输入验证已实现
- [ ] 错误提示友好明确
- [ ] 代码符合项目规范
- [ ] 代码可读、可维护

## 完成标准

- [ ] 读取了 Product-Spec.md
- [ ] 确定了技术栈
- [ ] 项目结构已搭建
- [ ] 高优先级功能已实现
- [ ] AI 增强功能已实现(如果有)
- [ ] 代码符合规范
- [ ] 通过功能检查(/check)
- [ ] 可以运行(/run)

## 错误处理

### Product-Spec.md 不存在
- 提示用户先使用 /prd 生成产品文档
- 拒绝开发

### 技术栈不明确
- 询问用户是否有技术栈偏好
- 如果没有,根据项目特点推荐
- 推荐多个选项让用户选择

### 功能描述不清晰
- 标记"待确认"
- 尝试合理推测,但标注为"假设实现"
- 建议用户确认后调整

### 依赖安装失败
- 检查网络连接
- 尝试使用镜像源
- 提供替代方案

## 使用建议

开发完成后,告诉用户:
1. 功能实现情况(哪些已完成,哪些待开发)
2. 如何启动项目(/run)
3. 如何测试功能
4. 如有问题如何调整

## 退出条件

- [ ] 高优先级功能已实现
- [ ] AI 增强功能已实现(如果有)
- [ ] 代码符合规范
- [ ] 通过功能检查(/check)

退出后,报告完成情况,并提示用户:
- "功能已实现,使用 /run 启动项目"
- "如需修改功能,先使用 /prd 更新产品文档,再使用 /dev 更新代码"

Related Skills

flutter-app-builder

16
from diegosouzapw/awesome-omni-skill

Complete Flutter mobile app development from initial setup through App Store deployment. Use when building Flutter apps, adding features (authentication, databases, APIs), implementing security, or preparing apps for production release. Includes project templates, architecture patterns, and deployment guidance.

config-builder

16
from diegosouzapw/awesome-omni-skill

Creates new KrakenD configurations with best practices, proper structure, and edition-appropriate features

claude-agent-sdk-builder

16
from diegosouzapw/awesome-omni-skill

Guide for building agents with the Claude Agent SDK (TypeScript/Node.js). Use when creating SDK-based agents, custom tools, in-code subagents, or production agent applications. Provides templates, patterns, and best practices for agent development.

chatgpt-app-builder

16
from diegosouzapw/awesome-omni-skill

Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

awesome:web-artifacts-builder

16
from diegosouzapw/awesome-omni-skill

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

artifacts-builder

16
from diegosouzapw/awesome-omni-skill

Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.

app-builder

16
from diegosouzapw/awesome-omni-skill

Main application building orchestrator. Creates full-stack applications from natural language requests. Determines project type, selects tech stack, coordinates agents.

android-notification-builder

16
from diegosouzapw/awesome-omni-skill

Эксперт Android notifications. Используй для push notifications, channels и notification patterns.

amplifier-modulebuilder-skill

16
from diegosouzapw/awesome-omni-skill

Build amplifier-foundation modules using "bricks and studs" architecture. Covers tool, hook, provider, context, and orchestrator modules with testing, publishing, and best practices.

ai-native-builder-workflow

16
from diegosouzapw/awesome-omni-skill

A complete end-to-end framework for non-technical product managers to build and ship software using AI coding agents. Use this when starting a side project, building a prototype, or automating internal tools without an engineering team.

action-builder-skill

16
from diegosouzapw/awesome-omni-skill

Use when creating or refactoring Nango integration actions to be thin API wrappers - provides patterns for minimal transformation logic, direct proxy calls, and standardized structure

telegram-bot-builder

16
from diegosouzapw/awesome-omni-skill

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategie...