AI Tag Curator

by qmkCamel
5
4
3
2
1
New Plugin

Description

This plugin has not been manually reviewed by Obsidian staff. AI tag management and governance for Obsidian vaults.

Reviews

No reviews yet.

Stats

stars
downloads
0
forks
0
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Obsidian AI Tag Curator

简体中文 | English

AI tag management and governance for Obsidian vaults.

AI Tag Curator is not a generic "generate tags for this note" plugin. It helps you keep an existing Obsidian tag taxonomy coherent by reusing known tags, explaining recommendations, and surfacing vault-level tag problems before any risky cleanup work.

Current MVP Capabilities

Vault tag index 标签索引摘要

  • Build a tag index from Obsidian metadata, frontmatter tags, and optional inline tags.
  • Show a tag index summary with tag counts, usage counts, file counts, and top tags.
  • Reuse the cached index for recommendations and health reports instead of scanning the whole vault every time.

Current note recommendations 当前笔记标签推荐

  • Suggest tags for the current Markdown note.
  • Prefer existing vault tags, even when new tags are allowed.
  • Filter out tags already present on the current note.
  • Explain each recommendation with confidence and close alternatives not selected.
  • Apply selected recommendations only after user confirmation.
  • Undo the latest tag change made by this plugin for the current note.
  • Run slow AI requests in the background and show results when ready.

Vault-level tag health report 标签健康报告 AI 增强健康分析

  • Generate a read-only tag health report for the current vault.
  • Group health issues such as low-frequency tags, near duplicates, hierarchy inconsistencies, over-broad tags, over-narrow tags, and naming drift.
  • Show evidence, impact, and suggested action for each issue group.
  • Click health report tags to copy and search them in Obsidian.
  • Enhance the report with AI-generated summary and prioritized action items.

Settings 设置

  • Support OpenAI-compatible providers such as DeepSeek and OpenAI.
  • Show dev-mode timing for tag recommendations and AI-enhanced health analysis.
  • Support Chinese, English, and Auto language mode following Obsidian.

Provider Configuration

Open the plugin settings and configure:

  • API base URL
  • API key
  • Model

Example OpenAI-compatible settings:

Provider API base URL Model example
DeepSeek https://api.deepseek.com deepseek-v4-flash
OpenAI https://api.openai.com/v1 gpt-4o-mini

The API key is stored locally in Obsidian plugin data.

Local Installation

  1. Install dependencies:
npm install
  1. Build the plugin:
npm run build
  1. Create a plugin directory in your target Obsidian vault:
mkdir -p /path/to/your-vault/.obsidian/plugins/ai-tag-curator
  1. Copy the generated files:
cp main.js manifest.json styles.css /path/to/your-vault/.obsidian/plugins/ai-tag-curator/
  1. Open Obsidian, go to Settings -> Community plugins, and enable AI Tag Curator.

Generated plugin files:

  • main.js
  • manifest.json
  • styles.css

Usage

  1. Configure an OpenAI-compatible API base URL, API key, and model.
  2. Run Refresh vault tag index.
  3. Open a Markdown note.
  4. Run Suggest tags for current note.
  5. Review the recommendation modal and apply only the tags you want.
  6. Run Analyze tag health to inspect vault-level tag problems.
  7. Optionally run AI-enhanced analysis inside the health report.
  8. Run Undo last tag curator change if you need to revert the latest tag write for the current note.

Commands

The plugin UI defaults to Auto, which follows the current Obsidian language. In English, the commands are:

  • Refresh vault tag index
  • Show tag index summary
  • Analyze tag health
  • Suggest tags for current note
  • Undo last tag curator change

Development

Run tests:

npm test

Build:

npm run build

Current Limitations

  • The MVP only writes to the current note's frontmatter tags.
  • Inline tags are read for indexing but are not automatically rewritten.
  • Tag health reports are read-only diagnostics.
  • AI-enhanced health analysis only returns a summary and prioritized action items.
  • Cleanup plans, batch previews, batch writes, and batch undo are not implemented yet.
  • AI responses must be valid structured JSON. If parsing fails, no file is modified.

Documentation