superaiflow-core
v1.0.2
Published
智能AI工作流增强框架 - 11个专业角色和16个智能命令
Maintainers
Readme
🚀 SuperAiFlow
智能AI工作流增强框架 - 让AI成为您的专业开发伙伴
✨ 特性
- 🎭 11个专业角色: architect, frontend, backend, security, performance等
- ⚡ 16个智能命令: implement, analyze, improve, build, design等
- 🎨 React + Magic UI: 现代化UI组件开发支持
- 🧪 TDD工作流: 测试驱动开发最佳实践
- 🔧 多平台适配: 支持AiFlow、Claude.ai等多个AI平台
📦 安装
npm install @superaiflow/core
# 或
yarn add @superaiflow/core
# 或
pnpm add @superaiflow/core🚀 快速开始
基础使用
import { SuperAiFlow } from '@superaiflow/core';
const aiflow = new SuperAiFlow({
model: 'gpt-4',
personas: ['frontend', 'architect']
});
// 使用智能命令
const result = await aiflow.execute('implement UserCard --react --magic');AiFlow集成
import { AiFlowAdapter } from '@superaiflow/adapter-aiflow';
const adapter = new AiFlowAdapter({
enabled: true,
enhancementLevel: 'comprehensive'
});
// 在AiFlow中使用
export function createSuperClaudeSlashCommands(addMessage, getCurrentModel) {
return adapter.createCommands(addMessage, getCurrentModel);
}🎭 专业角色
| 角色 | 专长 | 适用场景 | |------|------|----------| | architect | 系统架构设计 | 大型项目架构、技术选型 | | frontend | UI/UX开发 | React组件、用户体验 | | backend | 后端开发 | API设计、数据库架构 | | security | 安全专家 | 漏洞分析、安全加固 | | performance | 性能优化 | 性能分析、优化方案 |
⚡ 智能命令
# 实现功能
/sc:implement UserCard --react --magic --tdd
# 分析代码
/sc:analyze @src --focus security
# 优化性能
/sc:improve @components --persona-performance
# 系统设计
/sc:design microservices --persona-architect🛠️ 高级配置
const config = {
// 启用的功能
features: {
commands: ['implement', 'analyze', 'improve'],
personas: ['frontend', 'backend', 'architect'],
autoPersonaInference: true
},
// 增强级别
enhancementLevel: 'comprehensive', // minimal | standard | comprehensive
// 自定义提示词模板
templates: {
systemPrompt: 'custom-system.md',
userPrompt: 'custom-user.md'
}
};🤝 贡献
欢迎贡献!请查看 贡献指南。
📄 许可证
MIT License - 详见 LICENSE
🙏 致谢
- AiFlow团队的支持与合作
- 所有贡献者和用户
SuperAiFlow - 智能AI工作流的未来 🚀
