Add gamification: Make memory scoring fun like psychological tests
Key insight from user: "It's all about presentation" 心理テストや占いがSNSで流行るのは「見せ方」の問題 ## New Features ### 🎮 Game-Style Result Display When creating memories with AI, users now get: - Visual score display (COMMON → LEGENDARY) - Personality type diagnosis (革新者、哲学者、実務家、etc.) - Detailed breakdown bars (感情/関連性/新規性/実用性) - XP rewards system - Shareable text for SNS Example output: ``` ╔══════════════════════════════════════╗ ║ 🎲 メモリースコア判定 ║ ╚══════════════════════════════════════╝ 🟣 EPIC 85点 💡 【革新者】 💎 XP獲得: +850 XP ``` ### 🏆 Ranking Display - Top 10 memories with medals (🥇🥈🥉) - Rarity-based color coding - Game-style formatting ### 📅 Daily Challenge System - Random daily quest - Bonus XP rewards - Encourages daily engagement ## Implementation Added `src/game_formatter.rs`: - MemoryRarity enum (5 levels with emoji) - DiagnosisType enum (5 personality types) - GameFormatter with rich text formatting - format_memory_result() - Main game display - format_shareable_text() - SNS sharing - format_ranking() - Top 10 display - format_daily_challenge() - Daily quest MCP Tools Updated: - create_memory_with_ai: Added game_mode parameter (default: true) - list_memories_by_priority: Added ranking display - daily_challenge: New tool for daily quests ## Why This Works 占い・心理テストと同じ心理: 1. ゲームをスタート(メモリ作成) 2. 分析中の演出 3. スコアが表示される(ドキドキ) 4. 結果診断(あなたは〇〇タイプ) 5. シェアしたくなる "見せ方"でデータを楽しいゲームに変換! Next: Phase 2 (Content Platform) + More gamification
This commit is contained in:
111
README.md
111
README.md
@@ -96,15 +96,21 @@ aigpt import path/to/conversations.json
|
||||
|
||||
### AI機能ツール(重要!)
|
||||
|
||||
6. **create_memory_with_ai** - AI解釈と心理判定付きでメモリを作成
|
||||
6. **create_memory_with_ai** - AI解釈と心理判定付きでメモリを作成 🎮
|
||||
- 元のコンテンツをAIが解釈
|
||||
- 重要度を0.0-1.0のスコアで自動評価
|
||||
- ユーザーコンテキストを考慮可能
|
||||
- **ゲーム風の診断結果を表示!**(占い・心理テスト風)
|
||||
|
||||
7. **list_memories_by_priority** - 優先順位順にメモリをリスト
|
||||
7. **list_memories_by_priority** - 優先順位順にメモリをリスト 🏆
|
||||
- 高スコアから順に表示
|
||||
- min_scoreで閾値フィルタリング可能
|
||||
- limit で件数制限可能
|
||||
- **ランキング形式で表示!**
|
||||
|
||||
8. **daily_challenge** - 今日のデイリーチャレンジを取得 📅
|
||||
- 日替わりのお題を取得
|
||||
- ボーナスXPが獲得可能
|
||||
|
||||
## ツールの使用例
|
||||
|
||||
@@ -115,31 +121,104 @@ Claude Desktop/Codeで以下のように使用します:
|
||||
MCPツールを使って「今日は良い天気です」というメモリーを作成してください
|
||||
```
|
||||
|
||||
### AI解釈付きメモリ作成(推奨)
|
||||
### AI解釈付きメモリ作成(推奨)🎮
|
||||
```
|
||||
create_memory_with_ai ツールを使って「新しいAI記憶システムのアイデアを思いついた」というメモリーを作成してください。
|
||||
ユーザーコンテキスト: 「AI開発者、創造的思考を重視」
|
||||
```
|
||||
|
||||
レスポンス例:
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"id": "uuid-here",
|
||||
"memory": {
|
||||
"content": "新しいAI記憶システムのアイデアを思いついた",
|
||||
"interpreted_content": "AIによる解釈: 記憶システムの革新的アプローチ...",
|
||||
"priority_score": 0.85,
|
||||
"user_context": "AI開発者、創造的思考を重視"
|
||||
}
|
||||
}
|
||||
**ゲーム風の結果表示:**
|
||||
```
|
||||
╔══════════════════════════════════════════════════════════════╗
|
||||
║ 🎲 メモリースコア判定 ║
|
||||
╚══════════════════════════════════════════════════════════════╝
|
||||
|
||||
⚡ 分析完了! あなたの思考が記録されました
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
📊 総合スコア
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
🟣 EPIC 85点
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
🎯 詳細分析
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
💓 感情的インパクト: [████████░░] 80%
|
||||
🔗 ユーザー関連性: [██████████] 100%
|
||||
✨ 新規性・独自性: [█████████░] 90%
|
||||
⚙️ 実用性: [████████░░] 80%
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
🎊 あなたのタイプ
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
💡 【革新者】
|
||||
|
||||
創造的で実用的なアイデアを生み出す。常に新しい可能性を探求し、
|
||||
それを現実のものにする力を持つ。
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
🏆 報酬
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
💎 XP獲得: +850 XP
|
||||
🎁 レア度: 🟣 EPIC
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
|
||||
📤 この結果をシェアしよう!
|
||||
#aigpt #メモリースコア #革新者
|
||||
```
|
||||
|
||||
### 優先順位でメモリをリスト
|
||||
**シェア用テキストも自動生成:**
|
||||
```
|
||||
🎲 AIメモリースコア診断結果
|
||||
|
||||
🟣 EPIC 85点
|
||||
💡 【革新者】
|
||||
|
||||
新しいAI記憶システムのアイデアを思いついた
|
||||
|
||||
#aigpt #メモリースコア #AI診断
|
||||
```
|
||||
|
||||
### 優先順位でメモリをリスト 🏆
|
||||
```
|
||||
list_memories_by_priority ツールで、スコア0.7以上の重要なメモリを10件表示してください
|
||||
```
|
||||
|
||||
**ランキング形式で表示:**
|
||||
```
|
||||
╔══════════════════════════════════════════════════════════════╗
|
||||
║ 🏆 メモリーランキング TOP 10 ║
|
||||
╚══════════════════════════════════════════════════════════════╝
|
||||
|
||||
🥇 1位 🟡 LEGENDARY 95点 - 心理優先記憶装置の設計
|
||||
🥈 2位 🟣 EPIC 88点 - AIとのやり取りをコンテンツ化
|
||||
🥉 3位 🟣 EPIC 85点 - ゲーム化の構想
|
||||
4位 🔵 RARE 75点 - SNSの本質について
|
||||
5位 🔵 RARE 72点 - AI OSの可能性
|
||||
...
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
```
|
||||
|
||||
### 今日のデイリーチャレンジ 📅
|
||||
```
|
||||
daily_challenge ツールで今日のお題を確認
|
||||
```
|
||||
|
||||
**表示例:**
|
||||
```
|
||||
╔══════════════════════════════════════════════════════════════╗
|
||||
║ 📅 今日のチャレンジ ║
|
||||
╚══════════════════════════════════════════════════════════════╝
|
||||
|
||||
✨ 今日学んだことを記録しよう
|
||||
|
||||
🎁 報酬: +200 XP
|
||||
💎 完了すると特別なバッジが獲得できます!
|
||||
|
||||
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
||||
```
|
||||
|
||||
### メモリの検索
|
||||
```
|
||||
MCPツールを使って「天気」に関するメモリーを検索してください
|
||||
|
||||
Reference in New Issue
Block a user