Obsidian Knowledge Management: Maintaining Vault Core Notes and Graph Index within an Agent

Preface

When an Obsidian vault mixes business attachments, project READMEs, handwritten Markdown, and various generated artifacts, relying solely on manual maintenance—checking “if every source file has a .core.md beside it, if every folder has a 资料索引.md, and if graph links keep up with renames/moves”—is prone to omissions. Common practices involve occasional full-vault cleanups or local automation within plugins, but these are often disconnected from the workflow of “having the model update indexes while editing files in Cursor.”

Below is an introduction to the SkillHub community Skill Obsidian资料整理 (Coordinate: @user_55161a2d/obsidian-core-notes, current version 1.0.2). It transforms the management of core side-notes, thematic synthesis notes, folder indexes, and Obsidian relationship links within a vault into a reusable Agent workflow, accompanied by Python scripts for scanning, refreshing, and validating.

What is this

Obsidian资料整理 is designed for Obsidian vaults but can also be used in workspaces where documents and code are mixed. It is published by SkillHub user user_55161a2d, sourced from the community, categorized under knowledge-management, and requires no API Key (requires_api_key=false).

The Skill is positioned to keep source files, generated .core.md files, thematic-level 专题综合.core.md files, and relationship indexes in sync. It should be enabled when creating, editing, moving, deleting, scanning, summarizing, or organizing files that may involve .core.md, 专题综合.core.md, 资料索引.md, or 核心文件索引.md.

Core Features

Note Types and Naming

The Skill distinguishes four types of outputs and fixes their usage within the rules:

  1. File Side-notes (.core.md): For non-Markdown business source attachments, generate a <source-filename>.core.md with the same name as the source file.
  2. Folder Indexes: Use 资料索引.md within directories for navigation and direct source file listing.
  3. Workspace Entries: Maintain 核心文件索引.md at the vault root or a conventional location.
  4. Thematic Synthesis: Write 专题综合.core.md only for selected high-value directories; most directories should maintain a lightweight source map rather than “deep overviews” everywhere.

Existing meaningful Markdown core documents should be referenced directly without regenerating side-notes. Code, configuration, scripts, tests, model outputs, and parsing result directories do not generate .core.md files (see references/core-file-rules.md within the Skill for details).

Document Governance Fields

Generated artifacts must carry YAML governance fields, for example:

  • Generated .core.md side-notes: doc_role: source, doc_authority: supporting, doc_rule: wiki-doc-governance-v1.
  • 资料索引.md and 核心文件索引.md: doc_role: common, doc_authority: preferred, doc_rule: wiki-doc-governance-v1.
  • Deep 专题综合.core.md files carrying long-term judgments can use doc_role: result.

Before revising source Markdown, indexes, or thematic notes, the Skill requires checking against the vault’s document classification and grading criteria (path in SKILL: 个人/公司相关个人资料/个人知识库实现路径/文档分类分级与技能取信准则.md); if your vault does not have this file, you must align with equivalent governance conventions yourself.

Bundled Script Commands

After installation, scripts/obsidian_core_notes.py in the Skill directory provides:

Subcommand Description
scan Counts core candidate files and summarizes scope (supports --json).
refresh Creates or updates .core.md, 资料索引.md, 核心文件索引.md.
topic-candidates Ranks directories that may be suitable for V3-style thematic synthesis (supports --json).
validate Checks the number of generation markers and common corruption patterns.
clean-generated Deletes safely overwritable notes based on generation markers; --noise-only is for cleaning code/model outputs etc.

refresh is a graph maintenance pass and cannot replace manual or LLM curation of 专题综合.core.md. When a user requests “thematic synthesis like V3,” a thematic synthesis pass must be performed on selected directories after refresh (see references/topic-synthesis-core-notes.md).

Safe Deletion and Markers

Batch overwriting or deletion is only allowed when files contain generation markers, such as <!-- CORE_FILE_NOTE_V1 -->, <!-- CORE_FOLDER_INDEX_V1 -->, <!-- CORE_WORKSPACE_INDEX_V1 -->. Handwritten Markdown must not be deleted unless explicitly requested by the user. Before aggressive cleanup, the Skill requires backing up the notes to be overwritten/deleted outside the vault first.

Installation and Activation

Via SkillHub CLI

If the CLI is not installed, you can first perform detection and installation according to the SkillHub Installation Instructions. When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, defaulting to ./skills/ may result in the Skill not being recognized.

command -v skillhub && skillhub --version

skillhub install @user_55161a2d/obsidian-core-notes --dir ~/.cursor/skills/

The skills directory for Cursor is generally ~/.cursor/skills/; for Claude Code, it is ~/.claude/skills/; for Codex, it is ~/.codex/skills/ or .agents/skills/ under the project. For other client paths, refer to Section 4 of the SkillHub installation documentation.

Installing via Agent Chat

The prompt provided on the SkillHub page is: Please install @user_55161a2d/obsidian-core-notes according to https://skillhub.cn/install/skillhub.md.

Restart or refresh the Agent after installation to load the Skill. The version of this Skill is 1.0.2. SkillHub page statistics (based on crawled data): Rating 100000, Downloads 2237.

Typical Usage

The following steps correspond to the Workflow in SKILL.md. Replace <skill-dir> with the installed Skill directory and <vault-root> with your Obsidian vault root path.

  1. Confirm Root Directory: By default, use the current working directory as the vault/workspace root. If specified by the user, use their path.

  2. Scan Before Large-scale Changes:

python <skill-dir>/scripts/obsidian_core_notes.py scan --root <vault-root> --json
  1. Select Note Type (Side-note / 资料索引.md / 专题综合.core.md). When completing source file additions, deletions, modifications, or moves in the same conversation turn, simultaneously update the corresponding .core.md and the nearest 资料索引.md.

  2. Batch Refresh Lightweight Indexes and Side-notes:

python <skill-dir>/scripts/obsidian_core_notes.py refresh --root <vault-root>
  1. Filter Directories Before Thematic Synthesis:
python <skill-dir>/scripts/obsidian_core_notes.py topic-candidates --root <vault-root> --json
  1. Validate After Batch Operations:
python <skill-dir>/scripts/obsidian_core_notes.py validate --root <vault-root>
  1. Clean Generated Artifacts Only When Explicitly Requested:
python <skill-dir>/scripts/obsidian_core_notes.py clean-generated --root <vault-root>

If the default business root/project root is found to be incorrect, you can use --business-root or --project-root on scan and refresh to override the discovery logic (see Discovery defaults in references/core-file-rules.md).

Use Cases and Notes

Who it suits: Maintainers who already organize knowledge in Obsidian (or document vaults coexisting with code repos) using .core.md + Chinese index files, and want the Agent to automatically maintain the graph and indexes while editing files; also suitable for periodic cleanups requiring script batch refresh / validate.

Limitations and Pitfalls:

  • Do not treat refresh as a thematic summary generator; V3-style 专题综合.core.md requires separate curation steps and topic-candidates filtering.
  • When modifying original Markdown, do not overwrite result-type files with process/evidence content; prioritize provenance links like related_process, related_result, validation.
  • When relying on the optional “Document Classification and Grading” criteria file within the vault, if the path does not exist, you must agree on equivalent doc_role / doc_authority rules yourself.
  • The script excludes node_modules, .git, build artifacts, model directories, etc.; use CLI parameters to correct business boundary misjudgments.

Conclusion

Obsidian资料整理 converges core side-notes, thematic synthesis, folder indexes, and Obsidian link maintenance into a set of Agent rules plus executable scripts. It is suitable for reducing index drift while editing vaults and using validate as a fallback for batch operations.

  • SkillHub Page: https://www.skillhub.cn/skills/user_55161a2d/obsidian-core-notes
  • Installation Coordinate: @user_55161a2d/obsidian-core-notes
  • API Resource URL: https://api.skillhub.cn/user_55161a2d/obsidian-core-notes
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye