← 返回 Skills 市场
50
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install laosi-quick-note
功能描述
快速笔记 - 想到就记,自动带标签归档(idea/todo/readlater),本地JSON持久化,支持搜索回溯
使用说明 (SKILL.md)
Quick Note - 快速笔记
激活词: 记一下 / 笔记 / 记个事
功能
- 语音/文字快速记录
- 自动标签分类(idea / todo / readlater)
- 本地 JSON 持久化,私密可靠
- 按标签筛选检索
Python 实现
import os, json
from datetime import datetime
NOTES_FILE = os.path.join(os.path.dirname(__file__), "quick_notes.json")
class QuickNote:
def __init__(self):
os.makedirs(os.path.dirname(NOTES_FILE), exist_ok=True)
self.notes = self._load()
def _load(self):
if os.path.exists(NOTES_FILE):
with open(NOTES_FILE, encoding="utf-8") as f:
return json.load(f)
return []
def _save(self):
with open(NOTES_FILE, "w", encoding="utf-8") as f:
json.dump(self.notes, f, ensure_ascii=False, indent=2)
def add(self, text: str, tags: list = None):
"""保存一条笔记"""
if tags is None:
# 自动标签:根据内容关键词判断
tags = []
if "?" in text or "为什么" in text:
tags.append("readlater")
if "todo" in text.lower() or "需要" in text or "要去做" in text:
tags.append("todo")
if not tags:
tags.append("idea")
note = {
"id": len(self.notes) + 1,
"text": text,
"tags": tags,
"created": datetime.now().isoformat(),
"updated": datetime.now().isoformat()
}
self.notes.append(note)
self._save()
return note
def search(self, keyword: str = "", tags: list = None):
"""搜索笔记"""
results = self.notes
if keyword:
results = [n for n in results if keyword.lower() in n["text"].lower()]
if tags:
results = [n for n in results if any(t in n["tags"] for t in tags)]
return results
def delete(self, note_id: int):
self.notes = [n for n in self.notes if n["id"] != note_id]
self._save()
# 使用示例
note = QuickNote()
note.add("学习Transformer的FlashAttention机制,据说能加速3x", tags=["readlater"])
note.add("需要买牛奶和鸡蛋", tags=["todo"])
note.add("用Python写一个CLI工具来自动化部署", tags=["idea"])
# 搜索
for n in note.search(tags=["idea"]):
print(f"[{n['id']}] {n['text']}")
命令行用法
# 添加笔记(直接传参)
python -c "from quick_note import QuickNote; QuickNote().add('读一下RAG论文', tags=['readlater'])"
# 列出所有 idea 标签
python -c "from quick_note import QuickNote; [print(n['text']) for n in QuickNote().search(tags=['idea'])]"
数据格式
[
{
"id": 1,
"text": "学习FlashAttention机制",
"tags": ["readlater"],
"created": "2026-05-28T10:30:00",
"updated": "2026-05-28T10:30:00"
}
]
使用场景
- 灵感捕捉: 正在洗澡突然想到好点子,说出来自动存
- 阅读清单: 看到有趣的文章先标记 readlater,回头再读
- 快速待办: 「记一下,记得买牛奶」自动归类为 todo
- 知识碎片: 碎片化知识汇总,周末统一整理
依赖
- Python 3.8+
- 无第三方依赖
安全使用建议
Install only if you are comfortable with notes being saved locally as plaintext JSON. Do not store passwords, tokens, private financial details, or other secrets unless you add stronger storage protections, and confirm note content before saving when using voice or broad activation phrases.
能力评估
Purpose & Capability
The artifact purpose is quick voice/text note capture, auto-tagging, search, and deletion; the shown Python logic writes and reads local notes consistent with that purpose.
Instruction Scope
The activation phrases are broad conversational Chinese terms, so a user or host should ensure note creation is intentional before saving, especially for voice input.
Install Mechanism
The package contains only SKILL.md, no executable scripts, no third-party dependencies, and static/VirusTotal telemetry are clean.
Credentials
The only meaningful environment access described is local file I/O for a notes JSON file, which is proportionate for a note-taking skill.
Persistence & Privilege
Persistence is expected and disclosed, but the notes are stored as plaintext JSON beside the implementation path and the 'private' wording overstates the security properties.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install laosi-quick-note - 安装完成后,直接呼叫该 Skill 的名称或使用
/laosi-quick-note触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of quick-note:
- Supports fast note-taking via voice or text.
- Automatically categorizes notes with tags (idea, todo, readlater) based on content.
- Notes are stored locally in a JSON file for privacy and persistence.
- Allows searching and filtering notes by keyword and tag.
- Command-line interface for adding and retrieving notes.
- No third-party dependencies required (Python 3.8+ only).
元数据
常见问题
快速笔记 是什么?
快速笔记 - 想到就记,自动带标签归档(idea/todo/readlater),本地JSON持久化,支持搜索回溯. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。
如何安装 快速笔记?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install laosi-quick-note」即可一键安装,无需额外配置。
快速笔记 是免费的吗?
是的,快速笔记 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
快速笔记 支持哪些平台?
快速笔记 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 快速笔记?
由 534422530(@534422530)开发并维护,当前版本 v1.0.0。
推荐 Skills