Files
16gagent/prd-example.json
2026-06-06 10:40:48 +08:00

320 lines
8.2 KiB
JSON

{
"projectName": "PetCare",
"chineseName": "宠物管理",
"domain": "pet",
"matchConfidence": "high",
"summary": "一款帮助宠物主人管理宠物健康、日常活动和成长记录的移动应用。",
"personas": [
{
"name": "宠物主人",
"description": "养有1-3只宠物的都市青年,希望科学管理宠物健康",
"painPoints": [
"忘记打疫苗时间",
"找不到附近靠谱宠物医院",
"宠物异常行为无法判断"
]
},
{
"name": "宠物医生",
"description": "社区宠物医院的执业兽医",
"painPoints": [
"病历管理混乱",
"与宠物主人沟通低效"
]
}
],
"userStories": [
{
"id": "US-001",
"as": "宠物主人",
"want": "记录宠物的基本信息、品种、年龄、体重",
"soThat": "解决痛点:忘记打疫苗时间",
"priority": "P0"
},
{
"id": "US-002",
"as": "宠物主人",
"want": "疫苗提醒、驱虫提醒、体检预约",
"soThat": "解决痛点:忘记打疫苗时间",
"priority": "P0"
},
{
"id": "US-003",
"as": "宠物主人",
"want": "饮食、运动、排泄、体重变化记录",
"soThat": "解决痛点:忘记打疫苗时间",
"priority": "P1"
},
{
"id": "US-004",
"as": "宠物医生",
"want": "记录宠物的基本信息、品种、年龄、体重",
"soThat": "解决痛点:病历管理混乱",
"priority": "P0"
},
{
"id": "US-005",
"as": "宠物医生",
"want": "疫苗提醒、驱虫提醒、体检预约",
"soThat": "解决痛点:病历管理混乱",
"priority": "P0"
},
{
"id": "US-006",
"as": "宠物医生",
"want": "饮食、运动、排泄、体重变化记录",
"soThat": "解决痛点:病历管理混乱",
"priority": "P1"
}
],
"mvpScope": {
"description": "MVP 聚焦 宠物档案、健康日程,包含页面:首页、宠物档案、健康日程、日常记录、成长相册",
"features": [
"宠物档案",
"健康日程"
],
"pages": [
"首页",
"宠物档案",
"健康日程",
"日常记录",
"成长相册"
],
"estimatedWeeks": 3
},
"features": [
{
"name": "宠物档案",
"description": "记录宠物的基本信息、品种、年龄、体重",
"priority": "P0"
},
{
"name": "健康日程",
"description": "疫苗提醒、驱虫提醒、体检预约",
"priority": "P0"
},
{
"name": "日常记录",
"description": "饮食、运动、排泄、体重变化记录",
"priority": "P1"
},
{
"name": "成长相册",
"description": "按时间线记录宠物成长照片",
"priority": "P1"
},
{
"name": "附近医院",
"description": "地图显示附近宠物医院,支持预约挂号",
"priority": "P1"
},
{
"name": "健康百科",
"description": "常见宠物疾病、护理知识库",
"priority": "P2"
},
{
"name": "社区分享",
"description": "宠物主人社区,分享萌宠日常",
"priority": "P2"
}
],
"pages": [
{
"name": "首页",
"route": "/home",
"description": "宠物卡片、今日提醒、快捷入口"
},
{
"name": "宠物档案",
"route": "/pet/:id",
"description": "宠物详细信息、健康记录"
},
{
"name": "健康日程",
"route": "/schedule",
"description": "疫苗、驱虫、体检日历"
},
{
"name": "日常记录",
"route": "/daily-log",
"description": "饮食/运动/排泄记录表单"
},
{
"name": "成长相册",
"route": "/album",
"description": "时间线照片浏览"
},
{
"name": "附近医院",
"route": "/hospitals",
"description": "地图+列表视图"
},
{
"name": "我的",
"route": "/profile",
"description": "个人中心、设置"
}
],
"apiRequirements": [
{
"method": "POST",
"path": "/api/pets",
"description": "添加宠物档案"
},
{
"method": "GET",
"path": "/api/pets/:id",
"description": "获取宠物详情"
},
{
"method": "PUT",
"path": "/api/pets/:id",
"description": "更新宠物信息"
},
{
"method": "GET",
"path": "/api/schedules",
"description": "获取健康日程列表"
},
{
"method": "POST",
"path": "/api/schedules",
"description": "创建健康日程"
},
{
"method": "POST",
"path": "/api/daily-logs",
"description": "记录日常活动"
},
{
"method": "GET",
"path": "/api/daily-logs",
"description": "查询日常记录"
},
{
"method": "GET",
"path": "/api/hospitals",
"description": "查询附近医院"
},
{
"method": "POST",
"path": "/api/albums",
"description": "上传宠物照片"
}
],
"techConstraints": {
"platforms": [
"mobile",
"web"
],
"recommendedStack": "React Native / Flutter(跨平台)",
"considerations": [
"建议跨平台框架减少开发成本"
]
},
"extraFeatures": [],
"devTasks": [
{
"id": "T-001",
"title": "项目脚手架搭建",
"description": "初始化 PetCare 项目结构,配置构建工具和 CI/CD",
"phase": "Foundation",
"estimatedHours": 8,
"priority": "P0"
},
{
"id": "T-002",
"title": "数据库设计与初始化",
"description": "设计数据模型,创建数据库迁移脚本",
"phase": "Foundation",
"estimatedHours": 16,
"priority": "P0"
},
{
"id": "T-003",
"title": "页面开发:首页",
"description": "开发 首页 页面(/home):宠物卡片、今日提醒、快捷入口",
"phase": "UI Development",
"estimatedHours": 8,
"priority": "P0"
},
{
"id": "T-004",
"title": "页面开发:宠物档案",
"description": "开发 宠物档案 页面(/pet/:id):宠物详细信息、健康记录",
"phase": "UI Development",
"estimatedHours": 8,
"priority": "P0"
},
{
"id": "T-005",
"title": "页面开发:健康日程",
"description": "开发 健康日程 页面(/schedule):疫苗、驱虫、体检日历",
"phase": "UI Development",
"estimatedHours": 8,
"priority": "P0"
},
{
"id": "T-006",
"title": "页面开发:日常记录",
"description": "开发 日常记录 页面(/daily-log):饮食/运动/排泄记录表单",
"phase": "UI Development",
"estimatedHours": 8,
"priority": "P0"
},
{
"id": "T-007",
"title": "API 开发:POST /api/pets",
"description": "添加宠物档案",
"phase": "Backend Development",
"estimatedHours": 4,
"priority": "P0"
},
{
"id": "T-008",
"title": "API 开发:GET /api/pets/:id",
"description": "获取宠物详情",
"phase": "Backend Development",
"estimatedHours": 4,
"priority": "P0"
},
{
"id": "T-009",
"title": "API 开发:PUT /api/pets/:id",
"description": "更新宠物信息",
"phase": "Backend Development",
"estimatedHours": 4,
"priority": "P0"
},
{
"id": "T-010",
"title": "API 开发:GET /api/schedules",
"description": "获取健康日程列表",
"phase": "Backend Development",
"estimatedHours": 4,
"priority": "P0"
},
{
"id": "T-011",
"title": "前后端联调",
"description": "前端页面与后端 API 集成联调",
"phase": "Integration",
"estimatedHours": 16,
"priority": "P0"
},
{
"id": "T-012",
"title": "测试与修复",
"description": "功能测试、Bug 修复、性能优化",
"phase": "Testing",
"estimatedHours": 24,
"priority": "P1"
}
],
"meta": {
"generatedAt": "2026-06-04T22:21:12.194Z",
"inputLength": 11,
"domainMatchCount": 1
}
}