
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
taskflow-ai
Advanced tools
TaskFlow AI 是专为开发团队设计的命令行任务管理工具
智能PRD文档解析与AI驱动的任务编排,提升团队开发效率
支持多种国产大模型,实现从需求到任务的智能转换
快速开始 • 功能特性 • 安装指南 • 使用文档 • 示例项目
# npm
npm install -g taskflow-ai
# yarn
yarn global add taskflow-ai
# pnpm
pnpm add -g taskflow-ai
# 验证安装
taskflow-ai --version
# npm
npm install --save-dev taskflow-ai
# yarn
yarn add --dev taskflow-ai
# pnpm
pnpm add --save-dev taskflow-ai
# 创建新项目并生成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配置
# 配置DeepSeek API密钥(推荐,性价比高)
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
# 在浏览器中打开 http://localhost:3000
TaskFlow AI 专为 Cursor AI 编辑器优化,提供无缝的AI助手体验:
# 初始化时自动生成Cursor配置
taskflow-ai init my-project --editor cursor
# 手动配置MCP服务
# 在 ~/.cursor/mcp.json 中添加:
{
"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算法分析任务依赖关系,自动生成最优的开发路径
# 生成智能任务计划
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
| 文档 | 描述 | 链接 |
|---|---|---|
| 📖 快速开始指南 | 5分钟快速上手教程 | getting-started.md |
| 📋 用户使用指南 | 详细的功能说明和使用方法 | user-guide.md |
| 🔧 API参考文档 | 完整的API接口文档 | api-reference.md |
| 💡 使用示例 | 各种场景的使用示例 | examples.md |
| 🚨 故障排除 | 常见问题和解决方案 | troubleshooting.md |
| 📄 产品需求文档 | TaskFlow AI的完整PRD | TaskFlow-AI-PRD.md |
| 模型 | 状态 | 特点 | 推荐场景 |
|---|---|---|---|
| 🚀 DeepSeek | ✅ 完全支持 | 强大的代码生成和理解能力 | 代码项目、技术文档 |
| 🧠 智谱GLM | ✅ 完全支持 | 优秀的推理和分析能力 | 复杂逻辑、业务分析 |
| 💬 通义千问 | ✅ 完全支持 | 创新的逻辑推理能力 | 产品规划、需求分析 |
| 🔥 文心一言 | 🚧 开发中 | 全面的知识图谱和语义理解 | 知识密集型项目 |
| ⭐ 讯飞星火 | 🚧 开发中 | 强大的中文理解和生成 | 中文内容处理 |
# 配置DeepSeek(推荐,性价比高)
taskflow-ai config set models.apiKeys.deepseek "sk-your-api-key"
taskflow-ai config set models.default "deepseek"
# 配置智谱GLM
taskflow-ai config set models.apiKeys.zhipu "your-zhipu-key"
# 配置通义千问
taskflow-ai config set models.apiKeys.qwen "your-qwen-key"
// 使用TaskFlow AI API
const { TaskFlowService } = require('taskflow-ai');
const service = new TaskFlowService();
// 解析PRD文档
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();
// 配置AI模型
await service.updateConfig({
models: {
default: 'deepseek',
apiKeys: {
deepseek: process.env.DEEPSEEK_API_KEY
}
}
});
// 解析PRD并生成任务
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'
});
我们欢迎所有形式的贡献!无论是代码、文档、问题反馈还是功能建议。
# 1. Fork 项目
git clone https://github.com/agions/taskflow-ai.git
# 2. 创建功能分支
git checkout -b feature/amazing-feature
# 3. 提交更改
git commit -m 'Add some amazing feature'
# 4. 推送到分支
git push origin feature/amazing-feature
# 5. 创建 Pull Request
本项目采用 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
FAQs
TaskFlow AI - 智能PRD文档解析与任务管理助手,支持多模型AI协同、MCP编辑器集成,专为开发团队设计的CLI工具
The npm package taskflow-ai receives a total of 12 weekly downloads. As such, taskflow-ai popularity was classified as not popular.
We found that taskflow-ai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.