Templates in πMythOS enable reusable structures for π·οΈ#memo creation. A template defines the content skeleton, header visibility, notes, tags, and AI instructions that get applied when a new memo is created β either manually, via the π'/' Command, or through π·οΈ#agentic collaboration.
Data Model
Each template includes:
- name β display name
- content β markdown body (main memo content)
- type β
memoordaily(determines which creation flow uses it) - kind β
template(full structure) orsnippet(reusable content block) - isDefault β whether this is the default for its type/kind (only one per type)
- isSystem β system templates cannot be deleted or have their type changed
- agentNotes β AI-facing instructions (e.g., "Write title in imperative form, no more than 50 chars")
- collaboratorContent β pre-filled notes section (memo type only)
- headerVisibility β controls Objective/Subjective/Contexts header visibility
- visibility β public, link, private, or hidden
- visibleInFeed β when true, creates a linked memo tagged
__template-feedin the user's feed - tags β for filtering and AI tag-matching
Template Types
Templates vs Snippets
- Templates (
kind: "template") β full memo structures that appear in the/templateslash command and are available to AI chat. Applied during memo creation - Snippets (
kind: "snippet") β reusable content blocks. Excluded from the slash command template picker and AI chat context
Memo vs Daily
- Memo templates (
type: "memo") β applied when creating standard memos. Support notes pre-fill and feed visibility - Daily templates (
type: "daily") β applied when creating daily journal entries with Tasks checklist and Timeline structure
System Templates
Two system templates are auto-created during user onboarding:
- Default Memo Template β Objective/Subjective/Contexts structure with hidden headers and pre-filled notes section
- Default Daily Memo Template β Tasks checklist + Timeline structure
System templates can be edited but not deleted or have their type changed.
How Templates Are Applied
Manual Memo Creation
Creating a new memo automatically applies the user's default memo template, pre-filling content, notes, visibility, and header visibility settings.
Slash Command Insertion
Typing /template in the editor opens a submenu of all available templates. Selecting one inserts its markdown structure at the cursor position.
AI Chat Integration
All user templates (excluding snippets) are available to the AI collaborator. The AI can apply templates in two ways:
- Explicit match β selecting a specific template by ID when creating a memo
- Auto-match β the system matches memo tags against template tags to apply header visibility and notes
Text in {curly brackets} within template content serves as placeholder instructions for the AI to replace with real content.
Daily Memo Creation
Creating a daily journal entry applies the user's default daily template structure.
Default Enforcement
Setting a template as default automatically unsets all other defaults with the same type and kind. Only one default per type.
Feed Visibility
Templates can optionally create a linked memo in the user's feed. When enabled, the linked memo stays in sync β content, name, tags, and featured image changes propagate automatically. Disabling feed visibility deletes the linked memo.
Management
Templates are managed at /settings/templates with:
- Template cards β display name, type badge, default indicator, feed visibility, and tags. System templates show a purple left border
- Template form β fields for name, type, visibility, tags, body (full editor with header visibility toggles), notes, agent instructions, and show-in-feed toggle
- Actions β set as default, edit, delete (non-system only)
