🚀 智能PRD解析与任务管理AI助手
TaskFlow AI 是专为开发团队设计的AI驱动任务编排工具
基于MCP协议在AI编辑器中运行,将产品需求文档智能转换为结构化任务流程
实现从PRD到代码的全流程AI自动编排
快速开始 •
功能特性 •
安装指南 •
使用文档 •
示例项目
✨ 功能特性
🎯 核心能力
- 📄 智能PRD解析 - 自动解析产品需求文档,提取关键需求点和依赖关系
- 🤖 AI任务编排 - 智能分析任务优先级,自动生成最优开发路径
- 🔄 任务流程管理 - 完整的任务生命周期管理,支持状态跟踪和进度监控
- 📊 可视化规划 - 甘特图、依赖关系图等多种可视化展示
🛠️ 技术特性
- 🔧 MCP服务支持 - 作为MCP服务在AI编辑器中无缝运行
- 🤖 国产大模型集成 - 深度集成DeepSeek、智谱GLM、通义千问等国产大模型
- 🎨 AI编辑器优化 - 专为Cursor、VSCode等AI编辑器优化的配置生成
- 🌐 本土化体验 - 完全中文界面,符合中国开发者使用习惯
🚀 开发效率
- ⚡ 项目初始化 - 一键生成AI编辑器配置和开发环境
- 📝 智能代码生成 - 基于PRD自动生成代码结构和开发规范
- 🔍 质量保证 - 集成ESLint、Prettier、TypeScript等代码质量工具
- 📈 进度跟踪 - 实时任务进度监控和团队协作支持
📦 安装指南
系统要求
- Node.js 18.0.0 或更高版本
- npm、yarn 或 pnpm 包管理器
- 支持 Windows、macOS、Linux
全局安装(推荐)
npm install -g taskflow-ai
yarn global add taskflow-ai
pnpm add -g taskflow-ai
taskflow-ai --version
项目内安装
npm install --save-dev taskflow-ai
yarn add --dev taskflow-ai
pnpm add --save-dev taskflow-ai
🚀 快速开始
第一步:初始化项目
taskflow-ai init my-awesome-project
cd my-awesome-project
ls -la
生成的项目结构:
my-awesome-project/
├── .cursor/ # Cursor AI 配置
├── .vscode/ # VSCode 配置
├── docs/ # 文档目录
├── tasks/ # 任务文件目录
├── .eslintrc.json # ESLint配置
├── .prettierrc.json # Prettier配置
├── README.md # 项目说明
└── taskflow.config.json # TaskFlow配置
第二步:配置AI模型
taskflow-ai config set models.apiKeys.deepseek "your-deepseek-api-key"
taskflow-ai config set models.default "deepseek"
taskflow-ai config list
第三步:解析PRD文档
taskflow-ai parse docs/example.md
taskflow-ai plan docs/example.md --output tasks/project-plan.json
taskflow-ai tasks list
第四步:启动Web界面(可选)
taskflow-ai serve --port 3000
🔧 AI编辑器集成
Cursor AI 配置
TaskFlow AI 专为 Cursor AI 编辑器优化,提供无缝的AI助手体验:
taskflow-ai init my-project --editor cursor
{
"mcpServers": {
"taskflow-ai": {
"command": "npx",
"args": ["-y", "--package=taskflow-ai", "taskflow-mcp"],
"env": {
"DEEPSEEK_API_KEY": "your-api-key"
}
}
}
}
VSCode 配置
taskflow-ai init my-project --editor vscode
code --install-extension ms-vscode.vscode-typescript-next
code --install-extension esbenp.prettier-vscode
code --install-extension ms-vscode.vscode-eslint
💡 核心功能
🎯 智能PRD解析
自动解析产品需求文档,提取关键需求点、优先级和依赖关系
taskflow-ai parse ./docs/prd.md --output ./tasks/plan.json
taskflow-ai parse ./docs/requirements.json --format json
taskflow-ai parse ./docs/spec.txt --format text
🤖 AI任务编排
基于AI算法分析任务依赖关系,自动生成最优的开发路径
taskflow-ai plan ./docs/prd.md --team-size 5 --sprint-duration 14
taskflow-ai plan --optimize --complexity high
📊 任务管理
完整的任务生命周期管理,支持状态跟踪和进度监控
taskflow-ai tasks list
taskflow-ai tasks update task-001 --status completed
taskflow-ai tasks list --status in_progress --priority high
📈 可视化展示
生成甘特图、依赖关系图等多种可视化图表
taskflow-ai visualize --type gantt --output gantt.html
taskflow-ai visualize --type dependency --output deps.svg
📚 使用文档
🤖 AI模型支持
国产大模型集成
| 🚀 DeepSeek | ✅ 完全支持 | 强大的代码生成和理解能力 | 代码项目、技术文档 |
| 🧠 智谱GLM | ✅ 完全支持 | 优秀的推理和分析能力 | 复杂逻辑、业务分析 |
| 💬 通义千问 | ✅ 完全支持 | 创新的逻辑推理能力 | 产品规划、需求分析 |
| 🔥 文心一言 | 🚧 开发中 | 全面的知识图谱和语义理解 | 知识密集型项目 |
| ⭐ 讯飞星火 | 🚧 开发中 | 强大的中文理解和生成 | 中文内容处理 |
模型配置示例
taskflow-ai config set models.apiKeys.deepseek "sk-your-api-key"
taskflow-ai config set models.default "deepseek"
taskflow-ai config set models.apiKeys.zhipu "your-zhipu-key"
taskflow-ai config set models.apiKeys.qwen "your-qwen-key"
🧩 示例项目
基础用法
const { TaskFlowService } = require('taskflow-ai');
const service = new TaskFlowService();
const prdContent = `
# 电商平台
## 功能需求
### 用户管理
- 用户注册和登录
- 个人信息管理
### 商品管理
- 商品展示和搜索
- 购物车功能
`;
const result = await service.parsePRD(prdContent, 'markdown');
if (result.success) {
console.log('解析成功:', result.data);
const taskPlan = await service.generateTaskPlan(result.data);
console.log('任务计划:', taskPlan.data);
}
高级用法
const service = new TaskFlowService();
await service.updateConfig({
models: {
default: 'deepseek',
apiKeys: {
deepseek: process.env.DEEPSEEK_API_KEY
}
}
});
const result = await service.parsePRDFromFile('./docs/prd.md');
const tasks = await service.generateTaskPlan(result.data, {
includeTests: true,
includeDocs: true,
teamSize: 5,
sprintDuration: 14
});
const allTasks = service.getAllTasks();
const highPriorityTasks = service.filterTasks({
priority: 'high',
status: 'not_started'
});
🎯 使用场景
适用项目类型
- 🌐 Web应用开发 - React、Vue、Angular等前端项目
- 📱 移动应用开发 - React Native、Flutter等跨平台应用
- 🔧 API服务开发 - RESTful API、GraphQL、微服务架构
- 🤖 AI/ML项目 - 机器学习、深度学习、推荐系统
- 🏢 企业级应用 - ERP、CRM、数据分析平台
团队规模
- 👤 个人开发者 - 提高个人开发效率和项目管理能力
- 👥 小团队 (2-5人) - 协调团队任务,优化开发流程
- 🏢 中大型团队 (5-20人) - 复杂项目管理,多模块协作
- 🏭 企业级团队 (20+人) - 大型项目规划,跨部门协作
🤝 参与贡献
我们欢迎所有形式的贡献!无论是代码、文档、问题反馈还是功能建议。
贡献方式
git clone https://github.com/agions/taskflow-ai.git
git checkout -b feature/amazing-feature
git commit -m 'Add some amazing feature'
git push origin feature/amazing-feature
开发指南
📞 支持与社区
获取帮助
📄 许可证
本项目采用 MIT 许可证。
MIT License
Copyright (c) 2025 Agions
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
🔗 相关链接
⭐ 如果这个项目对你有帮助,请给我们一个星标!
让更多开发者发现TaskFlow AI,一起构建更智能的开发流程
Made with ❤️ by Agions