Save Document Skill
Save Markdown documents to AgentNote knowledge base.
When to Use
- •User says "save this", "store this", "archive this"
- •After formatting content with
format_to_markdown - •When user provides structured markdown content
Input Format
json
{
"title": "Document title",
"content": "# Markdown Content\n\nFull markdown text...",
"category": "Category name (optional)",
"tags": ["tag1", "tag2"],
"summary": "Brief summary (optional, auto-generated if empty)"
}
Usage
bash
cd /home/AgentNote
python skills/save_doc/save_doc.py '{"title":"My Note","content":"# Hello\n\nContent here","category":"Tech"}'
Output
Returns document ID, slug, and confirmation:
json
{
"success": true,
"id": 1,
"slug": "my-note-20260115",
"message": "Document saved: My Note"
}
Workflow
- •Receive markdown content (usually from
format_to_markdown) - •Validate required fields (title, content)
- •Generate slug from title
- •Auto-generate summary if not provided
- •Store in database with tags