Install
openclaw skills install bear-blog-publisherPublish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.
openclaw skills install bear-blog-publisherPublish blog posts to Bear Blog (https://bearblog.dev/).
This skill provides automated publishing capabilities for Bear Blog, including optional AI content generation and diagram generation.
Add to your ~/.openclaw/openclaw.json:
{
"skills": {
"bear-blog-publisher": {
"email": "your@email.com",
"password": "yourpassword"
}
}
}
Security: File permissions should be set to 600 (readable only by owner).
export BEAR_BLOG_EMAIL="your@email.com"
export BEAR_BLOG_PASSWORD="yourpassword"
Security: Credentials exist only in memory, not written to disk.
Provide credentials when calling the skill:
publisher = BearBlogPublisher(email="user@example.com", password="secret")
Security: Caller (chat bot, web app, etc.) manages credential lifecycle.
To use AI content generation, configure one of the following:
export OPENAI_API_KEY="sk-..."
export KIMI_API_KEY="your-kimi-api-key"
publisher = BearBlogPublisher()
content = publisher.generate_content(
topic="Python best practices",
provider="openai", # or "kimi"
tone="professional",
length="medium"
)
result = publisher.publish(title="My Post", content=content)
Input:
title (string): Blog post titlecontent (string): Markdown contentemail (string, optional): Bear Blog emailpassword (string, optional): Bear Blog passwordOutput:
Generate blog content using OpenAI or Kimi API.
For technical topics, generates architecture diagrams using HTML/CSS + Playwright.
This skill makes several operational choices that users should be aware of:
/tmp/diagram.html and /tmp/diagram.png--no-sandbox Flag# ~/.openclaw/openclaw.json configured
You: "Publish a blog about Python tips"
AI: [Uses config credentials, publishes]
export BEAR_BLOG_EMAIL="user@example.com"
export BEAR_BLOG_PASSWORD="secret"
You: "Publish a blog about Python tips"
AI: [Uses env vars, publishes]
export BEAR_BLOG_EMAIL="user@example.com"
export BEAR_BLOG_PASSWORD="secret"
export OPENAI_API_KEY="sk-..."
You: "Write and publish a blog about Python asyncio"
AI: [Generates content with OpenAI, publishes]
# In your chat bot code
email = get_user_email() # Ask user
password = get_user_password() # Ask user
publisher = BearBlogPublisher(email=email, password=password)
result = publisher.publish(title="My Post", content="# Content")
MIT