bear-blog-publisher
Publish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.
от lxyeternal★ 68 звёзд на GitHub
Установить bear-blog-publisher в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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": "[email protected]",
"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="[email protected]"
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="[email protected]", 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
- Runtime parameters (highest priority)
- Environment variables
- OpenClaw config (lowest priority)
Capabilities
1. Publish Blog Post
Input:
title(string): Blog post titlecontent(string): Markdown contentemail(string, optional): Bear Blog emailpassword(string, optional): Bear Blog password
Output:
- Published URL or error message
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
- Never commit credentials to git
- Use environment variables in production
- Set file permissions to 600 for config files
- 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
- Why: Required for generating architecture diagrams as PNG images
- Size: ~100MB Chromium browser
- Alternative: Skip diagram generation if not needed
2. Temporary Files
- Location:
/tmp/diagram.htmland/tmp/diagram.png - Purpose: Intermediate files for diagram generation
- Cleanup: Files are overwritten on each run, not explicitly deleted
3. --no-sandbox Flag
- Why: Required for running Chromium in containerized/Docker environments
- Risk: Slightly reduced browser isolation
- Mitigation: Only used for local HTML-to-image conversion, no external URLs loaded
4. Plaintext Password Storage (Optional)
- Config file: Only if user chooses Method 1
- Recommendation: Use environment variables (Method 2) or runtime parameters (Method 3) instead
- If using config: Always set file permissions to 600
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="[email protected]"
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="[email protected]"
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
- Uses Bear Blog web API
- CSRF token authentication
- Session-based (no persistent storage)
- Playwright for diagram generation
- OpenAI/Kimi API for content generation
License
MIT
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
FAQ
Что делает скилл bear-blog-publisher?
Publish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.
Как установить скилл bear-blog-publisher?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bear-blog-publisher запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…