用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/OriNachum/autonomous-intelligence --skill mongodb-query命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | mongodb-query |
| description | Query MongoDB notes store for memory analysis and statistics. |
| triggers | ["mongodb","mongo","notes store","memory storage","notes query"] |
Query the MongoDB notes store to investigate memory contents, embeddings, and note statistics.
mongodb://localhost:27017 (or MONGODB_URI env var)qq_memorynotesfrom qq.memory.mongo_store import MongoNotesStore
# Initialize store
store = MongoNotesStore()
# Get a specific note
note = store.get_note("note_id_here")
# Get recent notes
recent = store.get_recent_notes(limit=10)
# Get notes by importance range
important = store.get_by_importance_range(min_importance=0.7, max_importance=1.0)
# Get stale notes (not accessed recently)
stale = store.get_stale_notes(days_threshold=30)
from pymongo import MongoClient
client = MongoClient("mongodb://localhost:27017")
db = client["qq_memory"]
notes = db["notes"]
# Count all notes
total = notes.count_documents({})
# Find all notes
all_notes = list(notes.find({}, {"content": 1, "section": 1, "importance": 1}))
# Count by section
pipeline = [
{"$group": {"_id": "$section", "count": {"$sum": 1}}},
{"$sort": {"count": -1}}
]
by_section = list(notes.aggregate(pipeline))
# Find notes without embeddings
no_embedding = notes.count_documents({"embedding": None})
# Sample notes
sample = list(notes.find().limit(10))
# Use mongosh directly
docker exec -it qq-mongodb-1 mongosh qq_memory --eval "db.notes.countDocuments({})"
# Get collection stats
docker exec -it qq-mongodb-1 mongosh qq_memory --eval "db.notes.stats()"
Each note document contains:
note_id: Unique identifiercontent: Note textembedding: Vector embedding (list of floats)section: Category (e.g., "Key Topics", "Preferences")metadata: Additional key-value pairsimportance: Score 0.0-1.0 (default 0.5)decay_rate: How fast importance decays (default 0.01)access_count: Number of times accessedlast_accessed: Timestamp of last accesscreated_at: Creation timestampupdated_at: Last update timestamp