TaskFlow AI
✨ 简介
TaskFlow AI 是一个专为开发团队设计的PRD文档解析与任务管理工具。它不是项目脚手架,而是在现有项目中集成的智能助手,利用先进的AI技术自动解析产品需求文档(PRD),智能提取关键信息,生成结构化的开发任务,并提供完整的任务管理和进度跟踪功能。
🎯 核心价值
- 📄 智能PRD解析: 集成多个国产大模型,自动提取需求、功能点和验收标准
- 📋 任务自动生成: 基于PRD内容生成结构化开发任务,智能分析优先级和依赖关系
- 📊 项目进度跟踪: 实时跟踪任务状态,可视化项目进度,支持团队协作
- 🔧 现有项目集成: 无缝集成到现有开发流程,不改变项目结构
🚀 核心功能
📄 智能PRD解析
- 多格式支持: Markdown、Word、PDF等多种文档格式
- 结构化提取: 自动识别需求、功能点、验收标准等关键信息
- 语义理解: 基于AI的深度语义分析和内容理解
- 任务生成: 智能生成开发任务和工时估算
📋 任务管理系统
- 任务生命周期: 完整的任务创建、更新、跟踪、完成流程
- 状态管理: 支持未开始、进行中、已完成、阻塞等多种状态
- 优先级排序: 智能分析任务优先级和开发顺序
- 依赖关系: 自动识别和管理任务间的依赖关系
📊 项目进度跟踪
- 实时监控: 实时跟踪任务状态和项目进度
- 可视化报告: 生成直观的进度图表和统计报告
- 团队协作: 支持多人协作和任务分配
- 进度预测: 基于历史数据预测项目完成时间
🤖 多模型AI支持
- 国产大模型: DeepSeek、智谱AI、通义千问、文心一言、月之暗面、讯飞星火
- 智能编排: 多模型协同工作,自动选择最适合的模型
- 负载均衡: 智能分配请求,提高响应速度和稳定性
- 故障转移: 自动切换可用模型,确保服务连续性
🔧 编辑器集成 (MCP)
- Cursor: 完整的MCP配置和AI规则生成
- Windsurf: 原生MCP服务支持
- Trae: 智能代码助手集成
- VSCode: 扩展配置和工作区设置
- 智能编排: 多模型协同工作,自动选择最适合的模型
- 负载均衡: 智能分配请求,确保服务稳定性
- 成本优化: 根据任务复杂度选择合适的模型
🏗️ 技术架构
核心技术栈
- 🔷 TypeScript 5.0+: 严格的类型安全和现代语法支持
- ⚡ Node.js 18+: 高性能的JavaScript运行时
- 🧠 AI集成: 多模型API集成和智能编排
- 📊 性能监控: 实时性能指标和智能缓存
- 🔒 安全存储: AES-256-GCM加密的API密钥管理
架构设计
┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐
│ CLI Interface │ │ Web Interface │ │ AI Editor API │
└─────────┬───────┘ └─────────┬───────┘ └─────────┬───────┘
│ │ │
└──────────────────────┼──────────────────────┘
│
┌─────────────┴─────────────┐
│ Core Engine │
│ ┌─────────────────────┐ │
│ │ PRD Parser │ │
│ │ Task Manager │ │
│ │ AI Orchestrator │ │
│ │ Template Engine │ │
│ └─────────────────────┘ │
└─────────────┬─────────────┘
│
┌───────────────────────┼───────────────────────┐
│ │ │
┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐
│ AI Models │ │ Storage │ │ Security │
│ DeepSeek │ │ JSON │ │ Encryption│
│ ZhipuAI │ │ Cache │ │ Validation│
│ Qwen │ │ Logs │ │ Auth │
└───────────┘ └───────────┘ └───────────┘
📦 安装
全局安装(推荐)
npm install -g taskflow-ai
项目本地安装
npm install taskflow-ai
从源码安装
git clone https://github.com/agions/taskflow-ai.git
cd taskflow-ai
npm install
npm run build
npm link
🚀 快速开始
在现有项目中使用TaskFlow AI
npm install -g taskflow-ai
cd your-existing-project
taskflow init
taskflow config set models.deepseek.apiKey "your-api-key"
taskflow config validate
taskflow parse docs/requirements.md
taskflow status list
taskflow status update task-001 in_progress
taskflow status progress
taskflow visualize gantt
支持的项目类型
TaskFlow AI 可以在任何现有项目中使用:
- 前端项目: React、Vue、Angular、原生JavaScript
- 后端项目: Node.js、Python、Java、Go、PHP
- 移动应用: React Native、Flutter、原生开发
- 其他项目: 桌面应用、AI/ML项目、DevOps项目
💡 使用示例
React项目中的使用
cd my-react-dashboard
taskflow init
taskflow parse docs/dashboard-requirements.md
taskflow status list
taskflow status update task-001 in_progress
Python API项目中的使用
cd my-python-api
taskflow init
taskflow parse api-requirements.md
taskflow status progress
高级配置示例
taskflow config set multiModel.enabled true
taskflow config set multiModel.primary "deepseek"
taskflow config set multiModel.fallback '["zhipu", "qwen"]'
taskflow config set multiModel.loadBalancing true
taskflow config set project.name "我的项目"
taskflow config set project.type "web-app"
taskflow config set team.members '["张三", "李四", "王五"]'
📚 文档
🛠️ 开发
环境要求
- Node.js: >= 18.0.0
- npm: >= 9.0.0
- TypeScript: >= 5.0.0
本地开发
git clone https://github.com/agions/taskflow-ai.git
cd taskflow-ai
npm install
npm run dev
npm test
npm run test:coverage
npm run type-check
npm run format
npm run build
项目结构
taskflow-ai/
├── src/ # 源代码
│ ├── commands/ # CLI命令实现
│ ├── core/ # 核心功能模块
│ │ ├── ai/ # AI模型集成
│ │ ├── parser/ # PRD解析引擎
│ │ ├── task/ # 任务管理系统
│ │ ├── templates/ # 项目模板引擎
│ │ ├── security/ # 安全模块
│ │ └── performance/ # 性能监控
│ ├── types/ # TypeScript类型定义
│ ├── ui/ # 用户界面组件
│ └── utils/ # 工具函数
├── tests/ # 测试文件
├── docs/ # 文档源码
├── examples/ # 使用示例
└── scripts/ # 构建脚本
代码规范
- TypeScript: 严格模式,零any类型
- ESLint: 企业级代码规范
- Prettier: 统一代码格式
- Jest: 单元测试和集成测试
- Husky: Git hooks自动化
🤝 贡献
我们欢迎所有形式的贡献!请查看 贡献指南 了解详细信息。
贡献方式
开发流程
- Fork 项目
- 创建功能分支 (
git checkout -b feature/amazing-feature)
- 提交更改 (
git commit -m 'Add some amazing feature')
- 推送到分支 (
git push origin feature/amazing-feature)
- 创建 Pull Request
📄 许可证
本项目采用 MIT 许可证 - 查看 LICENSE 文件了解详细信息。
🙏 致谢
感谢所有为这个项目做出贡献的开发者和用户!
特别感谢:
📞 联系我们