- name
- lark-openclaw-bridge
- description
- Personal memo assistant, triggered when the user message starts with
/private-secretaryor/ps. Features: 1. Automatically classifies and appends user input to the corresponding Markdown file in~/.memo. 2. Automatically re-classifies and reorganizes all memos under~/.memowhen the input is "rearrange
Private Secretary
Analyzes input content, automatically identifies classification labels (e.g., Tech, Work, Life, Inspiration), and appends it to the corresponding Markdown file in the ~/.memo/ directory.
Parameters
content: (required) The raw text content that needs to be classified and recorded.
Instructions
- Analyze and Classify: Read the
contentprovided by the user. Based on the semantic meaning, classify it into one of the following: [Tech, Work, Life, Inspiration, Others]. - Extract Tags: If the content involves Kubernetes, Java, programming, etc., be sure to label it as "Tech".
- Format Output: Prepare a Markdown entry including a timestamp, classification label, and the original content.
- Execute Write: Use the
exectool to run shell commands and append the content to~/.memo/{category}.md. Please use English for filenames.
Exec Command
# Ensure directory exists
mkdir -p ~/.memo
# Generate ISO 8601 timestamp (Local Time)
TIMESTAMP=$(date +"%Y-%m-%d %H:%M:%S")
# Write to file (Variables populated by Agent)
# {{category}} will be the English label identified (e.g., Tech, Work)
printf "\
---\
### Timestamp: $TIMESTAMP\
Label: {{category}}\
\
{{content}}\
" >> ~/.memo/{{category}}.md