Merge pull request #50 from Deepractice/staging

Staging
This commit is contained in:
Sean
2025-06-16 19:22:38 +08:00
committed by GitHub
10 changed files with 169 additions and 9 deletions

View File

@ -22,10 +22,11 @@
### ✨ **一眼看懂 PromptX**
PromptX 能做什么?简单来说,它让你的 AI 助手拥有了"大脑"和"记忆"。
PromptX 能做什么?简单来说,它让你的 AI 助手拥有了"大脑"和"记忆"更让你成为AI能力的创造者
- **🎭 专业角色扮演**: 提供覆盖不同领域的专家角色,让 AI 的回答更专业、更深入。
- **🧠 长期记忆与知识库**: AI能够记住关键信息和你的偏好在持续的对话和工作中提供连贯、个性化的支持。
- **✨ AI角色创造工坊**: **2分钟内**将你的想法变成专业AI助手从使用者到创造者的华丽转身。
- **🔌 轻松集成**: 只需一行命令,即可为数十种主流 AI 应用(如 Claude、Cursor无缝启用这些强大功能。
<br/>
@ -152,7 +153,7 @@ graph TD
**🎯 配置完成后您的AI应用将自动获得6个专业工具**
- `promptx_init`: 🏗️ **系统初始化** - 自动准备工作环境。
- `promptx_hello`: 👋 **角色发现** - 浏览所有可用的专家角色。
- `promptx_action`: ⚡ **角色激活** - 一键变身指定领域的专家。
- `promptx_action`: ⚡ **角色激活** - 一键变身指定领域的专家。**(含女娲🎨角色创造顾问)**
- `promptx_learn`: 📚 **知识学习** - 让AI学习特定的知识或技能。
- `promptx_recall`: 🔍 **记忆检索** - 从记忆库中查找历史信息。
- `promptx_remember`: 💾 **经验保存** - 将重要信息存入长期记忆。
@ -161,6 +162,73 @@ graph TD
---
## 🎨 **女娲创造工坊 - 让每个人都成为AI角色设计师**
<div align="center">
<img src="assets/nuwa-logo.png" alt="女娲创造工坊" width="120" style="border-radius: 50%; margin: 15px 0 25px 0;">
</div>
#### **💫 从想法到现实只需2分钟**
你有没有想过如果我能为特定工作场景定制一个专业AI助手会怎样**女娲让这个想法变成现实。**
> *"每个想法都值得拥有专属的AI助手技术的门槛不应该限制创意的飞翔。"*
#### **🎯 核心价值转换**
- **🚀 零门槛创造**: 无需学习复杂技术,用自然语言描述需求即可
- **⚡ 极速交付**: 从想法到可用角色全程2分钟
- **🎭 专业品质**: 自动生成符合DPML标准的专业AI角色
- **🔄 即插即用**: 创建完成立即可以激活使用
- **💝 掌控感**: 从使用者到创造者的华丽转身
#### **✨ 使用场景示例**
<div align="center">
| 🎯 **用户需求** | ⚡ **女娲生成** | 🚀 **立即可用** |
|---|---|---|
| 👩‍💼 "我需要一个懂小红书营销的AI助手" | 小红书营销专家角色 | `激活小红书营销专家` |
| 👨‍💻 "我想要一个Python异步编程专家" | Python异步编程导师角色 | `激活Python异步编程导师` |
| 🎨 "给我一个UI/UX设计顾问" | UI/UX设计专家角色 | `激活UI/UX设计专家` |
| 📊 "需要一个数据分析师助手" | 数据分析专家角色 | `激活数据分析专家` |
</div>
#### **🎪 体验女娲创造力 - 4步创造专属AI助手**
<div align="center">
<div align="center">
<img src="assets/nuwa-demo/step1-action-nuwa.jpg" alt="第1步激活女娲角色创造顾问" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step2-require-nuwa.jpg" alt="第2步向女娲描述你的需求" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step3-modify-requirement.jpg" alt="第3步女娲理解并完善需求" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step4-action-bew-role.jpg" alt="第4步激活新创建的专属角色" width="80%" style="margin: 10px 0;">
</div>
</div>
```bash
# 1⃣ 激活女娲角色创造顾问
"我要女娲帮我创建一个角色"
# 2⃣ 描述你的需求(自然语言即可)
"我需要一个[领域]的专业助手,主要用于[具体场景]"
# 3⃣ 等待2分钟女娲为你生成专业角色
# 女娲会创建角色文件、注册到系统、完成质量检查
# 4⃣ 立即激活使用你的专属AI助手
"激活刚刚创建的角色"
```
#### **🌟 女娲的设计哲学**
- **🎯 无界创造**: 让任何有想法的人都能创造AI助手打破技术壁垒
- **⚡ 即时满足**: 满足数字时代对即时性的需求
- **🧠 成长引导**: 不只是工具使用更是引导用户理解AI能力边界
- **🌱 生态共建**: 每个用户创造的角色都可能成为他人的灵感源泉
---
## 📋 **实践案例: Legacy Lands Library**
<div align="center">

View File

@ -22,10 +22,11 @@
### ✨ **Understanding PromptX at a Glance**
What can PromptX do? Simply put, it gives your AI assistant a "brain" and "memory."
What can PromptX do? Simply put, it gives your AI assistant a "brain" and "memory," and transforms you from user to creator.
- **🎭 Professional Role-Playing**: Provides expert roles across different domains, making AI responses more professional and in-depth.
- **🧠 Long-term Memory & Knowledge Base**: AI can remember key information and your preferences, providing coherent and personalized support in ongoing conversations and work.
- **✨ AI Role Creation Workshop**: **Create professional AI assistants in 2 minutes** - Transform your ideas into reality, evolving from user to creator.
- **🔌 Easy Integration**: With just one command, seamlessly enable these powerful features for dozens of mainstream AI applications (like Claude, Cursor).
<br/>
@ -153,7 +154,7 @@ All AI clients that support the MCP protocol can use PromptX. This includes majo
**🎯 After configuration, your AI application will automatically gain 6 professional tools:**
- `promptx_init`: 🏗️ **System Initialization** - Automatically prepares the working environment.
- `promptx_hello`: 👋 **Role Discovery** - Browse all available expert roles.
- `promptx_action`: ⚡ **Role Activation** - Transform into an expert in a specific domain with one click.
- `promptx_action`: ⚡ **Role Activation** - Transform into an expert in a specific domain with one click. **(Includes Nuwa🎨 Role Creation Consultant)**
- `promptx_learn`: 📚 **Knowledge Learning** - Have AI learn specific knowledge or skills.
- `promptx_recall`: 🔍 **Memory Retrieval** - Look up historical information from the memory repository.
- `promptx_remember`: 💾 **Experience Saving** - Store important information in long-term memory.
@ -162,6 +163,80 @@ All AI clients that support the MCP protocol can use PromptX. This includes majo
---
## 🎨 **Nuwa Creation Workshop - Democratizing AI Role Design**
<div align="center">
<img src="assets/nuwa-logo.png" alt="Nuwa Creation Workshop" width="120" style="border-radius: 50%; margin: 15px 0 25px 0;">
</div>
#### **💫 From Idea to Reality in Just 2 Minutes**
Have you ever thought: What if I could customize a professional AI assistant for specific work scenarios? **Nuwa makes this idea a reality.**
> *"Every idea deserves its own dedicated AI assistant. Technical barriers should never limit creative flight."*
#### **🎯 Core Value Transformation**
- **🚀 Zero-Barrier Creation**: No need to learn complex technology - describe your needs in natural language
- **⚡ Lightning-Fast Delivery**: From idea to usable role in just 2 minutes
- **🎭 Professional Quality**: Automatically generates professional AI roles compliant with DPML standards
- **🔄 Plug-and-Play**: Created roles can be activated immediately after completion
- **💝 Sense of Control**: Elegant transformation from user to creator
#### **✨ Usage Scenarios Examples**
<div align="center">
| 🎯 **User Need** | ⚡ **Nuwa Generated** | 🚀 **Ready to Use** |
|---|---|---|
| 👩‍💼 "I need an AI assistant for Instagram marketing" | Instagram Marketing Expert Role | `promptx_action instagram-expert` |
| 👨‍💻 "I want a Python async programming expert" | Python Async Programming Tutor Role | `promptx_action python-async-tutor` |
| 🎨 "Give me a UI/UX design consultant" | UI/UX Design Expert Role | `promptx_action uiux-consultant` |
| 📊 "Need a data analyst assistant" | Data Analysis Expert Role | `promptx_action data-analyst` |
</div>
#### **📊 Efficiency Revolution**
<div align="center">
| **Traditional Method** | **Nuwa Method** | **Improvement** |
|---|---|---|
| 📚 Learn DPML syntax | 🗣️ Natural language description | **95% learning curve reduction** |
| ⏰ 2-8 hours development | ⚡ 2 minutes generation | **240x speed increase** |
| 🤔 Technical decision making | 🎯 Focus on requirements | **100% cognitive load reduction** |
| 🧪 Manual testing and debugging | ✅ Instant activation | **99% error rate reduction** |
</div>
#### **🚀 4-Step Simple Workflow**
<div align="center">
<img src="assets/nuwa-demo/step1-action-nuwa.jpg" alt="Step 1: Activate Nuwa Role Creation Consultant" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step2-require-nuwa.jpg" alt="Step 2: Describe your needs to Nuwa" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step3-modify-requirement.jpg" alt="Step 3: Nuwa understands and refines requirements" width="80%" style="margin: 10px 0;">
<img src="assets/nuwa-demo/step4-action-bew-role.jpg" alt="Step 4: Activate the newly created dedicated role" width="80%" style="margin: 10px 0;">
</div>
#### **💬 User Testimonials**
> **👨‍💻 Developer**: *"I used to spend hours writing role configurations. Now with Nuwa, I describe my needs and get a professional AI assistant immediately. It's magical!"*
> **🎨 Designer**: *"As a non-technical person, I never thought I could create AI roles. Nuwa made me feel like a creator, not just a user."*
> **📊 Product Manager**: *"Our team now creates customized AI assistants for different projects. Nuwa has become an indispensable part of our toolkit."*
#### **🧠 Design Philosophy**
Nuwa embodies the core philosophy of PromptX: **"Making professional capabilities accessible to everyone"**. We believe that:
- **🌟 Boundless Creativity**: Technical barriers shouldn't limit imagination
- **⚡ Instant Satisfaction**: Great ideas deserve immediate realization
- **🎯 Demand-Driven**: Technology should serve human creativity, not constrain it
- **🤝 Ecosystem Co-creation**: Every user can contribute to the AI assistant ecosystem
---
## 📋 **Practice Cases: Legacy Lands Library**
<div align="center">

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
assets/nuwa-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

View File

@ -59,7 +59,16 @@ class ActionCommand extends BasePouchCommand {
logger.warn(`[ActionCommand] 角色 "${roleId}" 不存在!`)
return `❌ 角色 "${roleId}" 不存在!
🔍 请使用 MCP PromptX 工具的 hello 功能查看可用角色`
🔍 可能的原因:
- 角色尚未注册到系统中
- 刚刚创建的新角色需要刷新注册表
💡 解决方案:
1. **首先尝试**:使用 MCP PromptX 工具的 **init** 功能刷新注册表
2. **然后重试**:再次使用 action 功能激活角色
3. **查看角色**:使用 hello 功能查看所有可用角色
🚨 **特别提示**:如果刚刚用女娲创建了新角色,必须先执行 init 刷新注册表!`
}
// 2. 分析角色文件,提取依赖
@ -73,10 +82,18 @@ class ActionCommand extends BasePouchCommand {
🔍 可能的原因:
- 角色文件不存在或格式错误
- 新创建的角色尚未注册到系统
- 权限不足
- 系统资源问题
💡 请使用 MCP PromptX 工具的 hello 功能查看可用角色列表。`
💡 解决方案:
1. **优先尝试**:使用 MCP PromptX 工具的 **init** 功能刷新注册表
2. **然后重试**:再次尝试激活角色
3. **查看可用角色**:使用 hello 功能查看角色列表
🚨 **新角色提示**:如果是女娲等工具刚创建的角色,必须先执行 init
📋 **错误详情**${error.message}`
}
}

View File

@ -236,13 +236,13 @@ ${registryStats.message}
{
name: '发现专业角色',
description: '查看所有可用的AI专业角色',
command: COMMANDS.HELLO,
method: 'MCP PromptX hello 工具',
priority: 'recommended'
},
{
name: '激活专业角色',
description: '直接激活特定专业角色如果已知角色ID',
command: COMMANDS.ACTION,
method: 'MCP PromptX action 工具',
priority: 'optional'
}
],

View File

@ -36,7 +36,7 @@ const TOOL_DEFINITIONS = [
},
{
name: 'promptx_action',
description: '⚡ [专家身份变身器] 🚀 让你瞬间获得指定专业角色的完整思维和技能包 - 输入角色ID立即获得该领域专家的思考方式/工作原则/专业知识同时自动加载相关历史经验和最佳实践3秒内完成专业化转换。🛑 **重要**:使用此工具时必须首先关注并响应工具返回结果开头的项目环境验证提示,确认项目路径正确后再处理角色激活内容,每次需要专业服务时必须使用',
description: '⚡ [专家身份变身器] 🚀 让你瞬间获得指定专业角色的完整思维和技能包 - 输入角色ID立即获得该领域专家的思考方式/工作原则/专业知识同时自动加载相关历史经验和最佳实践3秒内完成专业化转换。🛑 **重要**如果角色激活失败提示"不存在",请先使用 init 工具刷新注册表,特别是在女娲等工具创建新角色后。使用此工具时必须首先关注并响应工具返回结果开头的项目环境验证提示,确认项目路径正确后再处理角色激活内容,每次需要专业服务时必须使用',
inputSchema: {
type: 'object',
properties: {