Skip to content

skingko/skingflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SkinFlow Multi-Agent Framework

πŸš€ Flexible flow engine for intelligent multi-agent applications - Supports complex task decomposition, intelligent planning, memory management, and tool integration

License: MIT Node.js Version Framework Status Documentation NPM Version

🌐 Languages | 语言

🌐 Website: www.skingflow.com

🌐 Languages: English | δΈ­ζ–‡

This project is available in multiple languages:

Language README Documentation
πŸ‡ΊπŸ‡Έ English README.md Online Docs
πŸ‡¨πŸ‡³ δΈ­ζ–‡ README.zh.md δΈ­ζ–‡ζ–‡ζ‘£

πŸ“– Table of Contents

πŸš€ Quick Start

5-Minute Quick Experience

# 1. Clone the repository
git clone https://github.com/skingko/skingflow.git
cd skingflow

# 2. Install dependencies
npm install

# 3. Configure environment variables
cp .env.example .env
# Edit .env file to set your LLM API key and database connection

# 4. Run the example
node examples/quick-start/index.js

Simple Usage Example

import { createMultiAgentFramework } from './lib/multi-agent/index.js';

// Create framework instance
const framework = await createMultiAgentFramework({
  llm: {
    provider: 'http',
    baseUrl: 'https://api.openai.com/v1/chat/completions',
    apiKey: 'your-api-key',
    model: 'gpt-4'
  },
  memory: {
    storage: {
      type: 'postgres',
      config: {
        host: 'localhost',
        database: 'skingflow',
        user: 'postgres',
        password: 'your-password'
      }
    }
  }
});

// Process request
const result = await framework.processRequest(
  "Create a simple web application",
  { userId: 'user123' }
);

console.log(result);

✨ Core Features

🧠 Intelligent Multi-Agent System

  • Planning Agent: Automatically decomposes complex tasks and creates execution plans
  • Professional Sub-Agents: Specialized in research, programming, data analysis, content creation
  • Intelligent Coordination: Automatically selects the most suitable agents for specific tasks
  • Context Isolation: Ensures secure collaboration between agents

πŸ’Ύ Advanced Memory System (mem0-based architecture)

  • Short-term Memory: Session context and temporary information management
  • Long-term Memory: Persistent knowledge storage and historical records
  • User Preferences: Personalized settings and habit learning
  • Semantic Search: Vector-based intelligent memory retrieval

πŸ› οΈ Unified Tool System

  • YAML/XML Tool Definitions: Declarative tool configuration, easy to extend
  • Virtual File System: Secure file operation environment
  • MCP Protocol Support: Standardized tool integration
  • Custom Tools: Flexible tool development and integration mechanism

πŸ”„ Stream Processing Engine

  • Asynchronous Stream Processing: High-performance concurrent execution
  • Real-time Response: Supports streaming output and real-time feedback
  • Workflow Orchestration: Intelligent management of complex workflows

πŸ›‘οΈ Enterprise-Grade Reliability

  • Degradation Mechanism: Multi-layer error recovery strategies
  • Circuit Breaker: Automatic fault isolation and recovery
  • Health Monitoring: Real-time system status tracking
  • Detailed Logging: Complete debugging and audit information

πŸ—οΈ Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    SkinFlow Framework                        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Multi-Agent System                                         β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚ Planning    β”‚  β”‚ Sub-Agents  β”‚  β”‚ Coordinationβ”‚         β”‚
β”‚  β”‚ Agent       β”‚  β”‚ Manager     β”‚  β”‚ System      β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Core Services                                              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚ LLM         β”‚  β”‚ Memory      β”‚  β”‚ Tool        β”‚         β”‚
β”‚  β”‚ Abstraction β”‚  β”‚ System      β”‚  β”‚ Registry    β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Infrastructure                                             β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”‚
β”‚  β”‚ Fallback    β”‚  β”‚ Virtual     β”‚  β”‚ Stream      β”‚         β”‚
β”‚  β”‚ Manager     β”‚  β”‚ FileSystem  β”‚  β”‚ Engine      β”‚         β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“š Documentation

🌐 Online Documentation

Our comprehensive documentation is available online:

πŸ“– Documentation Topics

πŸ“ Note: Local documentation files are being prepared. Please refer to the online documentation for now.

🎯 Examples

Core Framework Examples

Advanced Applications

Legacy Examples (Compatibility)

πŸ“ Note: Example files are being prepared. Please check the repository structure for available examples.

🌐 Language Support

This project is fully internationalized with multi-language support:

README Files

Online Documentation

πŸ“– Multi-language Documentation: skingflow-docs.pages.dev

  • Full language switching support
  • Responsive design for all devices
  • Comprehensive API references and examples

πŸš€ Production Ready

The SkinFlow framework is fully tested with the following production features:

  • βœ… High Availability: Complete error handling and degradation mechanisms
  • βœ… High Performance: Asynchronous stream processing and intelligent caching
  • βœ… Scalable: Modular architecture, easy to extend
  • βœ… Monitorable: Detailed logs and statistics
  • βœ… Security: Virtual file system and permission control

πŸ“Š Benchmark

Metric Performance
Simple request response time < 2 seconds
Complex task processing time < 30 seconds
Concurrent processing capability 100+ requests/minute
Memory usage < 512MB
Success rate > 95%

🀝 Contributing

We welcome community contributions! Please check the Contributing Guide to learn how to participate in project development.

πŸ“ž Support

πŸ“„ License

This project is open source under the MIT License. See LICENSE file for details.

Copyright Notice

Copyright (c) 2024 skingko https://github.com/skingko/skingflow Author: skingko venture2157@gmail.com

For commercial or advanced usage, please contact the author.


πŸ“± Contact & Follow Us

WeChat Official Account

WeChat Official Account QR Code

Scan to follow our WeChat Official Account for updates

Add Author WeChat

Author WeChat QR Code

Scan to add author WeChat: skingko

πŸ”— Links

πŸ™ Acknowledgments


⭐ If you find this project helpful, please give it a star on GitHub!

πŸŽ‰ Start using SkinFlow to build your intelligent applications!

About

A lightweight multi-agent system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages