/common-skills:obsidian-searchfrom common-skills
Search the Obsidian vault for historical bug fixes, root cause analyses, and experience insights. Use when receiving a new bug or task to check if similar issues have been solved before, or when looking for past solutions by module, language, or keyword.
Ships in common-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
~/obsidian/sam/
首次使用时先读 ~/obsidian/sam/CLAUDE.md 了解 vault 的完整规则和目录结构。
| 目录 | 内容 | 用途 |
|---|---|---|
projects/*/bugs/*/ | bug 任务文件夹(root-cause、fix-plan、insight) | 查看过去某个 bug 的完整上下文 |
projects/*/features/*/ | 功能任务文件夹(design、plan、insight) | 查看过去某个功能的设计和实现 |
insights/{language}/ | 跨项目语言经验洞察 | 按语言分类的踩坑经验 |
提取关键词:从用户描述或任务信息中提取关键词(错误信息、模块名、技术概念)。
搜索内容:用全文搜索工具或 shell 在上述目录中搜索,排除 .obsidian/ 和 templates/:
rg "关键词" ~/obsidian/sam --glob '*.md' --glob '!.obsidian/**' --glob '!templates/**'
按 frontmatter 过滤:如果用户指定了语言或模块,进一步在匹配文件中检查 frontmatter 的 language、modules、tags 字段。
读取匹配笔记:读取匹配度最高的任务文件夹,提取核心信息:
提示关联文件:告知用户同一任务文件夹中还有哪些相关文件(通过文件夹内容列举)。
汇报结果:给用户一个简明摘要:找到几个相关记录、核心结论是什么、是否可以复用之前的修复方案。
如果没有找到匹配,明确告知用户"vault 中没有类似问题的记录",建议修复完成后用 obsidian-insight 沉淀经验。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sampeng87/skills --plugin common-skills20 skills in this plugin
/adb-installGradle build 完 Android 包之后,主动提出把 APK 推到 adb 连接的设备(真机或模拟器)并拉起。TRIGGER whenever the user asks to build/compile/package an Android app, runs assembleDebug/assembleRelease, 说 '打 android 包' / '编译 android' / 'build apk' / '跑到手机上' / '装到模拟器' / 'deploy 到设备', 或者任何基于 Gradle 的 Android 构建任务 —— 即使用户没明说 adb 或部署也要触发。构建成功后主动向用户确认是否部署;若用户一开始就说了 'build 完部署' 类指令则跳过询问直接部署。设备选择: 上下文里有最近一次用过的 serial 就复用, 单设备直接用, 多设备向用户确认。部署 = adb install -r + 用 monkey 拉起 launcher activity。/defuddleExtract clean markdown content from web pages using Defuddle CLI, removing clutter and navigation to save tokens. Use instead of WebFetch when the user provides a URL to read or analyze, for online documentation, articles, blog posts, or any standard web page. Do NOT use for URLs ending in .md — those are already markdown, use WebFetch directly./Other plugins' skills for the same job