Update a note's metadata (title, tags, or summary)
Updates a note's metadata including title, tags, and summary in YAML frontmatter.
/plugin marketplace add witt3rd/claude-plugins/plugin install azkg@witt3rd-claude-pluginsUpdate a note's metadata (title, tags, or summary) in the YAML frontmatter.
Check for AZKG_REPO_PATH environment variable:
if [ -z "$AZKG_REPO_PATH" ]; then REPO_PATH=$(pwd); else REPO_PATH="$AZKG_REPO_PATH"; fiAll file operations must use REPO_PATH:
Read(REPO_PATH/filename.md) or Read("$REPO_PATH/filename.md")Write(REPO_PATH/filename.md) or Write("$REPO_PATH/filename.md")Edit(REPO_PATH/filename.md) or Edit("$REPO_PATH/filename.md")Grep(pattern, path=REPO_PATH) or with explicit pathGlob(pattern, path=REPO_PATH) or with explicit pathExample usage:
# Check environment variable
if [ -z "$AZKG_REPO_PATH" ]; then
REPO_PATH=$(pwd)
else
REPO_PATH="$AZKG_REPO_PATH"
fi
# Then use REPO_PATH for all operations
Read("$REPO_PATH/agents.md")
Concrete examples:
User provides filename and fields to update:
/update-note agents.md --title "AI Agents: Autonomous Intelligence Systems"/update-note agents.md --tags "ai,agents,llm,autonomous"/update-note agents.md --summary "Brief new summary"Can update multiple fields in one command:
/update-note agents.md --title "New Title" --tags "new,tags"Ensure filename has .md extension.
Use Glob to check note exists:
Glob "agents.md"
Use Read tool to get full note content, including current YAML frontmatter.
Use Edit tool to update the specific fields:
For title update:
# heading)# Heading line after YAML frontmatterFor tags update:
---
tags: [old, tags]
---
becomes:
---
tags: [new, tags, here]
---
For summary update:
Show old vs new values for updated fields.
Updated Note: agents.md
============================================================
Title:
Old: AI Agents
New: AI Agents: Autonomous Intelligence Systems
Tags:
Old: [agents, ai, llm]
New: [ai, agents, llm, autonomous, architecture]
Summary:
Old: AI agents are autonomous systems...
New: AI agents are autonomous, goal-directed systems...
============================================================
✅ Metadata Updated!
============================================================
💡 Next steps:
• Review the updated note at agents.md
• Ensure title matches filename semantically
• Verify tags span multiple dimensions (see tag_system.md)
• Consider if related notes need similar updates
Before updating:
After updating:
When updating tags, follow best practices:
first-principles not FirstPrinciplesmcp better than protocolSee tag_system.md for complete tag catalog.
agents.md → "AI Agents")/conform-note for structural changes beyond metadata