Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

doc-vault-save文档库保存

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

784

周安装

33

GitHub Stars

公开资料未说明

下载量

275
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doc-vault-save(文档库保存)
来源仓库:https://github.com/molechowski/claude-skills
仓库路径:skills/doc-vault-save
安装命令:
npx skills add https://github.com/molechowski/claude-skills --skill doc-vault-save
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/molechowski/claude-skills --skill doc-vault-save

简介

用于将对话中结构化内容持久化至 Obsidian 知识库。

  • 自动检测内容类型、生成 frontmatter、路由文件夹并防重保存。
  • 支持 wikilink 注入与重新索引,保持知识网络连通。
  • 仅保存已有对话内容,不涉及主动研究或外部数据获取。
  • doc-vault-save 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Vault Save

Persist structured content from conversation to an Obsidian vault. Handles content detection, frontmatter generation, folder routing, deduplication, wikilink injection, and re-indexing.

This skill does NOT do research. It only persists content already in the conversation.

Prerequisites

SkillRequiredPurpose
doc-obsidianYesVault CRUD via notesmd-cli + search via qmd

Workflow

Step 0: Setup → Step 1: Detect Content → Step 2: Name & Route → Step 3: Dedup Check → Step 4: Build Note → Step 5: Save → Step 6: Wikilinks → Step 7: Re-index & Confirm

Step 0: Setup

Run before every save:

# 1. Vault path (MANDATORY)
VAULT=$(notesmd-cli print-default --path-only)

# 2. Verify qmd available
qmd status

If either fails, stop and tell the user to set up doc-obsidian first.

Step 1: Detect Content Type

Examine conversation context. Use the FIRST matching rule:

TypeDetectionSignals
res-deepHas header with Framework: field, has Research Statistics footerCOMPARISON / LANDSCAPE / DEEP_DIVE / DECISION
res-price-compareHas price tables with PLN/EUR, has TOP 3 or PURCHASE RECOMMENDATIONShop comparison tables, warranty analysis
genericEverything elseUser-provided text, pasted content, dictated notes

Explicit override: User can force type with "save as research", "save as price comparison", "save as note".

Step 2: Name & Route

Note Naming

TypePatternExample
res-deep{topic-slug} from Topic fieldagent-swarms-hardware-decision
res-price-compare{product-slug}-pricingmac-studio-m4-max-128gb-pricing
generic{topic-slug} from first heading or user instructionkubernetes-setup-notes

Rules: kebab-case, lowercase, no special characters, max 60 chars. If user specifies a name, use it.

Folder Routing

TypeDefault FolderOverride
res-deepresearch/"save to {folder}"
res-price-compareresearch/"save to {folder}"
genericvault root"save to {folder}"

Load references/folder-routing.md for customization and sub-routing rules.

Confirm Before Saving

Save: research/agent-swarms-hardware-decision
Type: res-deep (DECISION framework)
Proceed? [Y / change name / change folder]

Skip confirmation if user already specified name and location.

Step 3: Dedup Check

# Keyword search on the topic
qmd search "{topic}" --json -n 5

# Check exact name match
notesmd-cli print "{folder}/{note-name}" 2>/dev/null

Decision Matrix

Existing NoteAction
No matchCreate new → Step 4
Exact name matchAsk: overwrite / append / create with suffix (-2, -3)
Similar topic, different nameShow matches, ask: create alongside / overwrite existing / append to existing

Show found notes with dates so user can judge recency:

Found existing notes on this topic:
1. research/agent-swarms-analysis (2026-02-20, 43 sources)
2. research/ai-agents-hardware (2026-02-15, 28 sources)
Action: [create new / overwrite #1 / append to #1 / cancel]

Step 4: Build Note

Frontmatter

Load references/frontmatter-schemas.md for full schemas. Summary:

res-deep:

---
type: research
topic: {Topic from header}
date: {YYYY-MM-DD}
sources: {N}
framework: {comparison|landscape|deep-dive|decision}
depth: {quick|default|deep}
status: complete
tags: [{domain-tags}, research]
---

Use type: decision when framework is DECISION.

res-price-compare:

---
type: price-comparison
product: {Full product name}
date: {YYYY-MM-DD}
market: pl
status: complete
tags: [{product-category}, price-comparison]
---

generic:

---
type: note
topic: {From heading or user input}
date: {YYYY-MM-DD}
status: draft
tags: [{auto-derived}]
---

Tag Generation

Auto-derive 2-5 tags:

  1. Content type tag: research, price-comparison, or note
  2. Domain tags: key nouns from topic (e.g., ai, agents, hardware)
  3. User-specified tags if provided

Body Construction

res-deep: Strip the YAML-like header block (Framework:/Topic:/Depth:/Sources:/Date: lines) — that data moves to proper frontmatter. Keep everything else.

res-price-compare: Keep full report body. Strip any file-export artifacts.

generic: Use content as-is. Add # {Topic} if no heading exists.

Step 5: Save

Create Mode (default)

notesmd-cli create "{folder}/{note-name}" --content "{frontmatter + body}" --overwrite

Use --overwrite only after Step 3 confirmed no conflict or user approved.

Append Mode

notesmd-cli create "{folder}/{note-name}" --content "\n\n---\n\n## Update: {YYYY-MM-DD}\n\n{new content}" --append

Update Mode (surgical edit)

For updating a specific section of an existing note:

# 1. Read current note
notesmd-cli print "{folder}/{note-name}"

# 2. Edit via vault path
VAULT=$(notesmd-cli print-default --path-only)
# Use Edit tool on "$VAULT/{folder}/{note-name}.md"

Large Content Fallback

If content exceeds ~100KB, notesmd-cli create --content may hit shell argument limits. Use the Write tool directly:

VAULT=$(notesmd-cli print-default --path-only)
# Write tool → "$VAULT/{folder}/{note-name}.md"

Update Date After Save

notesmd-cli fm "{folder}/{note-name}" --edit --key "date" --value "{YYYY-MM-DD}"

Step 6: Wikilinks

Find related notes and add a Related: block after frontmatter.

Find Related

qmd vsearch "{topic}" --json -n 10

Filter: exclude the note just saved, exclude score < 0.3, keep top 3-5.

Insert Related Line

After frontmatter closing ---, before first # heading:

Related: [[note-a]] | [[note-b]] | [[note-c]]

If the note already has a Related: line, replace it (don't duplicate).

Implementation

notesmd-cli print "{folder}/{note-name}"
VAULT=$(notesmd-cli print-default --path-only)
# Use Edit tool to insert/replace Related line

Step 7: Re-index & Confirm

qmd update && qmd embed

Confirmation Output

Saved: [[{note-name}]]
Path: {folder}/{note-name}
Type: {type}
Tags: {tags}
Related: [[note-a]], [[note-b]], [[note-c]]
Vault re-indexed: Yes

Modes

ModeTriggerBehavior
save (default)"save to vault", "vault save"Full workflow: Steps 0-7
quick"quick save", "save, no dedup"Skip Steps 3 + 6 (no dedup, no wikilinks)
update"update vault note", "add to existing"Surgical edit of existing note (Step 5 update mode)
dry-run"where would this go?", "preview save"Show name, folder, frontmatter, related notes — no save

Constraints

DO:

  • Always run Step 0 first
  • Always detect content type before building frontmatter
  • Always check for duplicates before creating (unless quick mode)
  • Always re-index after saving
  • Resolve vault path dynamically via notesmd-cli print-default --path-only
  • Present name + folder for user approval before saving
  • Read notes before editing — never guess content

DON'T:

  • Do research — this skill only persists content
  • Hardcode vault paths
  • Create notes without frontmatter
  • Skip dedup check (unless quick mode)
  • Duplicate what doc-daily-digest does
  • Modify notes from other skills without user approval
  • Save empty or stub notes

References

  • references/frontmatter-schemas.md — Full schemas per content type, field extraction rules, tag generation, validation
  • references/folder-routing.md — Routing rules, user overrides, sub-routing, conflict resolution

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.69%
按下载量换算104

Claude

31.34%
按下载量换算86

Cursor

18.33%
按下载量换算50

Gemini CLI

10.5%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/molechowski/claude-skills --skill doc-vault-save 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills