TopRank Skills

Home / Claw Skills / Génération de contenu / bear-blog-publisher
Official OpenClaw rules 36%

bear-blog-publisher

Publish blog posts to Bear Blog platform. Supports user-provided markdown, AI-generated content, and auto-generated diagrams.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 bear-blog-publisher 技能。 若已安装,则直接安装 bear-blog-publisher 技能。

Overview

Skill Key
cattalk2/bear-blog-publisher
Author
cattalk2
Source Repo
openclaw/skills
Version
-
Source Path
skills/cattalk2/bear-blog-publisher
Latest Commit SHA
33728ab02beceae53dbf3550a2eaea584954e290

Extracted Content

SKILL.md excerpt

# 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`:

```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)

```bash
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:

```python
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

```bash
export OPENAI_API_KEY="sk-..."
```

### Kimi

```bash
export KIMI_API_KEY="your-kimi-api-key"
```

### Usage

```python
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:**
- `title` (string): Blog post title
- `content` (string): Markdown content
- `email` (string, optional): Bear Blog email
- `password` (string, optional): Bear Blog password

**Output:**
- Published URL or error message

### 2. AI Content Ge...

README excerpt

# Bear Blog Publisher

Publish blog posts to Bear Blog - supports user-provided markdown, AI-generated content, and auto-generated diagrams.

## Features

- **Triple Auth Methods**: Config file, environment variables, or runtime parameters
- **AI Content Generation**: Optional auto-generation using OpenAI or Kimi
- **Auto Diagrams**: Generates architecture diagrams for technical posts

## Installation

```bash
clawhub install bear-blog-publisher
```

## Authentication (Choose One)

### Method 1: OpenClaw Config File

Edit `~/.openclaw/openclaw.json`:

```json
{
  "skills": {
    "bear-blog-publisher": {
      "email": "your@email.com",
      "password": "yourpassword"
    }
  }
}
```

Set secure permissions:
```bash
chmod 600 ~/.openclaw/openclaw.json
```

### Method 2: Environment Variables

```bash
export BEAR_BLOG_EMAIL="your@email.com"
export BEAR_BLOG_PASSWORD="yourpassword"
```

### Method 3: Runtime Parameters

```python
from bear_blog_publisher import BearBlogPublisher

publisher = BearBlogPublisher(
    email="your@email.com",
    password="yourpassword"
)
```

## AI Content Generation (Optional)

To use AI content generation, configure one of the following API keys:

### OpenAI
```bash
export OPENAI_API_KEY="sk-..."
```

### Kimi
```bash
export KIMI_API_KEY="your-kimi-api-key"
```

### Usage
```python
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)
```

## Usage Examples

### AI-Generated Content
```
You: "Write and publish a blog about remote work tips"
AI: [Generates content with OpenAI/Kimi, publishes]
     ✅ Published: https://bearblog.dev/yourname/remote-work-tips/
```

### User-Provided Content
```
You: "Publish this as a blog: [paste your markdown]"
AI: [Publishes your exact content]
     ✅ Published: https://bearblog.dev/yourname/your-post/
```

##...

Related Claw Skills