Bear Blog Publisher
name: bear-blog-publisher
by cattalk2 · published 2026-03-22
$ claw add gh:cattalk2/cattalk2-bear-blog-publisher---
name: bear-blog-publisher
description: Publish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.
---
# Bear Blog Publisher
Publish blog posts to Bear Blog (https://bearblog.dev/).
Overview
This skill provides automated publishing capabilities for Bear Blog, including optional AI content generation and diagram generation.
Authentication Methods (Choose One)
Method 1: OpenClaw Config (Recommended for Personal Use)
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).
Method 2: Environment Variables (Recommended for CI/CD)
export BEAR_BLOG_EMAIL="your@email.com"
export BEAR_BLOG_PASSWORD="yourpassword"**Security**: Credentials exist only in memory, not written to disk.
Method 3: Runtime Parameters (Recommended for Multi-User)
Provide credentials when calling the skill:
publisher = BearBlogPublisher(email="user@example.com", password="secret")**Security**: Caller (chat bot, web app, etc.) manages credential lifecycle.
AI Content Generation (Optional)
To use AI content generation, configure one of the following:
OpenAI
export OPENAI_API_KEY="sk-..."Kimi
export KIMI_API_KEY="your-kimi-api-key"Usage
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)Priority Order
1. Runtime parameters (highest priority)
2. Environment variables
3. OpenClaw config (lowest priority)
Capabilities
1. Publish Blog Post
**Input:**
**Output:**
2. AI Content Generation (Optional)
Generate blog content using OpenAI or Kimi API.
3. Generate Diagram (Optional)
For technical topics, generates architecture diagrams using HTML/CSS + Playwright.
Security Best Practices
1. **Never commit credentials to git**
2. **Use environment variables in production**
3. **Set file permissions to 600 for config files**
4. **Use runtime parameters for multi-user scenarios**
Security Considerations
This skill makes several operational choices that users should be aware of:
1. Playwright Browser Download
2. Temporary Files
3. `--no-sandbox` Flag
4. Plaintext Password Storage (Optional)
Example Usage
With Config File
# ~/.openclaw/openclaw.json configured
You: "Publish a blog about Python tips"
AI: [Uses config credentials, publishes]With Environment Variables
export BEAR_BLOG_EMAIL="user@example.com"
export BEAR_BLOG_PASSWORD="secret"
You: "Publish a blog about Python tips"
AI: [Uses env vars, publishes]With AI Content Generation
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]With Runtime Parameters
# 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")Implementation
License
MIT
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...