Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Rule-Based Auto-Tagger

remrielremriel22 downloads

Apply local keyword and regex tag rules to notes, with batch previews and keyword suggestions.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

A free, local Obsidian plugin for a controlled tag taxonomy. It uses keyword and regular expression rules, and suggests tags using simple word frequency. No LLM, account, network request, or API key is used.

Install

Install the current published release from the Obsidian community directory, or install a local build manually.

  1. Obtain manifest.json, main.js, and styles.css from this folder.
  2. Create a folder named rule-based-auto-tagger inside your vault at .obsidian/plugins/.
  3. Copy those three files into that folder.
  4. In Obsidian, reload the app, open Settings > Community plugins, and enable Rule-Based Auto-Tagger.

For a source build, install Node.js and run npm ci, npm run typecheck, and npm run build in this folder. The build writes main.js. Run npm test for the mocked smoke checks.

Releases

Releases are published from version tags such as 1.0.2. Keep the versions in package.json, manifest.json, and versions.json aligned, then push the tag. The GitHub Actions release workflow builds the plugin, creates the release with main.js, manifest.json, and styles.css, and generates GitHub artifact attestations for main.js and styles.css.

Rules

Open Settings > Rule-Based Auto-Tagger. Add or remove rules, choose a keyword or phrase or a JavaScript regular expression, toggle case-insensitive matching, and enter tags separated by commas or spaces. Omit regex slash delimiters and flags; use the toggle for case handling. Keywords match complete words or phrases, not fragments inside a larger word. Matching examines the note body, not its frontmatter.

Tags may contain letters, numbers, underscores, hyphens, and nested slashes; a tag must include a letter, underscore, or hyphen. A leading hash is optional. Empty or invalid rules are skipped, with a notice when a command runs. Regular expressions run locally and should be kept simple enough to finish promptly.

Starter rules cover machine learning, artificial intelligence, AI, meeting, and project. For example, the phrase Machine Learning adds #ai and #ml. Edit or remove these defaults to match your taxonomy. Rule edits are saved with the plugin settings.

Commands

Open the command palette and choose:

  • Tag current note: apply matching rules to the active Markdown note.
  • Tag vault: preview the proposed changes throughout the vault, then apply or cancel.
  • Tag current folder: preview the active note folder and all its subfolders, then apply or cancel. If the note is at the vault root, this covers the vault.
  • Suggest tags for current note: review locally counted keywords, choose suggestions, and add the selected tags.

In Where to put new tags, choose Frontmatter (the default) to add tags to the frontmatter tags property, or Inline, at end of note to append a single line such as #ai #ml. Inline placement preserves the frontmatter and existing body text. Both placements check frontmatter, inline, and cached tags for duplicates case-insensitively. Batch previews show the placement before you apply. During a batch, each note is checked again before writing, and only tags shown in its preview can be added. Notes with malformed or unsupported frontmatter are skipped. Reports show skipped or failed counts; details appear in the developer console.

If a note ends inside an unclosed code fence, appended inline tags are treated as code. Obsidian indexes them once the fence is closed above the tag line.

Suggestions are ranked by word count, exclude common English stop words and existing tags, and ignore fenced code blocks. They are suggestions, not a controlled taxonomy: inspect them before adding them.

Privacy and scope

All matching happens locally inside Obsidian. The plugin makes no network calls. Tag vault and Tag current folder enumerate Markdown paths in the chosen scope and read those notes to build a preview; no changes happen until you apply it. It does not automatically modify notes on save; commands run only when invoked.

Background

The requested workflow is inspired by the Obsidian Forum discussion Automatic Tag Generation.

License

MIT. See LICENSE.

HealthExcellent
ReviewPassed
About
Tag notes using editable keyword and regular-expression rules to maintain a controlled tag taxonomy. Preview and apply suggested tags to the current note, a folder, or the entire vault with simple word-frequency suggestions and entirely local processing.
TagsAutomation
Details
Current version
1.1.0
Last updated
8 hours ago
Created
2 days ago
Updates
4 releases
Downloads
22
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
remrielremriel
GitHubremriel
  1. Community
  2. Plugins
  3. Tags
  4. Rule-Based Auto-Tagger

Related plugins

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

BRAT

Easily install a beta version of a plugin for testing.

Templater

Create and use dynamic templates.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

Advanced URI

Control everything with URI.

QuickAdd

Quickly add new notes or content to your vault.

Hot Reload

Automatically reload in-development plugins when their files are changed

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.