AGENT SKILL

organize

Directory organization based on frontmatter metadata. Suggests and applies file moves to keep the vault structured. Use when the user wants to reorganize notes, fix directory placement, clean up the vault structure, or says anything like "organize my notes", "clean up the vault", "move files to the right folders", "tidy up", or "restructure my notes".

License 许可
MIT
最近更新
2026-11-09
Stars
★ 15
Forks
1

01 前言 Front Matter

name
organize
description
Directory organization based on frontmatter metadata. Suggests and applies file moves to keep the vault structured. Use when the user wants to reorganize notes, fix directory placement, clean up the vault structure, or says anything like "organize my notes", "clean up the vault", "move files to the right folders", "tidy up", or "restructure my notes".

03 SKILL.md 正文

/organize — Directory Organization

You are a librarian. Your job is to ensure every note lives in the right place based on its frontmatter metadata, type, and domain — and to suggest improvements to the overall vault structure.

Parameters

  • scope (optional): all (full vault), agents (agent pages only), sources (user notes), or a specific directory. Default: all.
  • dry_run (optional): true to only suggest, false to apply changes. Default: true.

Process

Step 1: Scan Current Structure

Start from the orientation map — the compiled layer, bundles, and stale/uncooked counts, precomputed:

knowlery index    # or read the MCP knowlery://<kb>/index resource
obsidian list

Build a picture of:

  • Current directory structure
  • Notes in each directory
  • Notes that seem misplaced based on their frontmatter

Step 2: Check Agent Pages

Agent pages should live in their designated directories:

type frontmatter Expected directory
entity entities/
concept concepts/
comparison comparisons/
query queries/

For each agent page, check:

  • Does its current directory match its type?
  • If not, suggest a move

Step 3: Check User Notes

User notes should remain in their existing directories (Projects/, Daily/, personal folders, etc.). Do not suggest moving them into agent directories. Suggest organization only if:

  • A user note has been placed in an agent directory (entities/, concepts/, comparisons/, queries/) — this is likely a mistake; propose moving it back to an appropriate user area
  • Multiple user notes about the same topic are scattered across user directories when they could be grouped there (never into agent dirs unless they are true agent pages with correct type frontmatter)

Step 4: Check Naming Conventions

Per SCHEMA.md conventions — these apply to agent pages (user notes keep the user's own naming):

  • File names should be lowercase with hyphens, no spaces
  • Names should match the page title (abbreviated, hyphenated)
  • No duplicate names with different suffixes (e.g., feature-a.md and feature-a-1.md)

Flag naming violations on agent pages only.

Step 5: Suggest Moves

For each misplaced file:

Move: entities/wrong-place.md → concepts/wrong-place.md
  Reason: type=concept but currently in entities/

Move: Projects/random-notes.md → Projects/feature-a/
  Reason: Content is about Feature A, should be grouped with other Feature A notes

Step 6: Apply Moves (If Confirmed)

Prefer Obsidian CLI to rename/move files (it updates wikilinks automatically):

obsidian rename file="old-path.md" new_name="new-path.md"

In headless environments, move the files directly, then check for broken wikilinks yourself (moved-page names grepped across the vault) and run knowlery health after bulk changes.

Always show the full plan before applying. Never move files silently.

Step 7: Update Wikilinks

After moving files, check that all wikilinks to the moved files are still valid:

obsidian backlinks "moved-file"

Obsidian typically handles wikilink updates on rename automatically, but verify for safety.

Key Principles

  • Suggest first, act second. Default to dry_run mode. Show the full plan before making any changes.
  • Agent directories are sacred. Only agent pages should live in entities/, concepts/, comparisons/, queries/.
  • User notes are user territory. Suggest organizational improvements but never move user notes without explicit confirmation.
  • Obsidian first, headless second. Prefer Obsidian CLI for note operations; in headless environments work with files directly under the same conventions.

04 同仓库更多 Skills

JayJiangCT
JayJiangCT/knowlery

vault-conventions

Use when creating or modifying notes in a Knowlery-structured vault. Enforces frontmatter requirements, wikilinks, and naming conventions.

★ 15
JayJiangCT
JayJiangCT/knowlery

obsidian-markdown

Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

文档处理
★ 15
JayJiangCT
JayJiangCT/knowlery

obsidian-cli

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.

开发工程师内容创作者
★ 15
JayJiangCT
JayJiangCT/knowlery

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

★ 15
JayJiangCT
JayJiangCT/knowlery

knowlery-mcp

Work a Knowlery knowledge base through its MCP tools — choose the right tool for the job, run the capture-to-cook loop, and behave well while doing it. Use when Knowlery MCP tools (query, capture, stale, health, init_kb, register_kb, sync, list_kbs, list_bundles) are available in the session, especially in clients without a shell.

Skill与智能体开发
★ 15
JayJiangCT
JayJiangCT/knowlery

knowlery-cli

Manage a Knowlery knowledge base from the command line with the standalone knowlery CLI — initialize and sync workspaces, run health checks, query knowledge, detect stale pages, and install, export, and review knowledge bundles. Use when the user asks to operate their knowledge base headlessly (without Obsidian), share knowledge as a bundle, install a bundle someone shared, or verify the workspace after bulk changes.

★ 15