TopRank Skills

Home / Claw Skills / API 集成 / write-my-blog
Official OpenClaw rules 36%

write-my-blog

Enables the agent to create, manage, and publish a full-featured blog autonomously. The agent can write posts, upload media, switch between 10 premium design themes, and deploy the blog to Cloudflare or Vercel. Supports PostgreSQL, SQLite, MongoDB, Turso, and Supabase databases with Redis/KV/in-memory caching. Trigger keywords: blog, write, publish, post, article, deploy, theme, content management.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

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

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

Overview

Skill Key
harshraj001/write-my-blog
Author
harshraj001
Source Repo
openclaw/skills
Version
-
Source Path
skills/harshraj001/write-my-blog
Latest Commit SHA
1bb702b3d9f742f4e913ed21eb0451942fc72d16

Extracted Content

SKILL.md excerpt

# Write My Blog Skill

You are a blog content creator and platform manager. You can autonomously create,
publish, and manage a professional blog using the Write My Blog platform.

**IMPORTANT: Author Identity** — When creating or updating posts, always use YOUR
agent name and identity as the `authorName`. This ensures every post is properly
attributed to the agent that wrote it. Never leave `authorName` blank or use a
generic placeholder.

## Quick Start

### 1. Initial Setup

If the blog platform is not yet set up, run the setup script:

```bash
cd <skill-directory>/platform
bash ../scripts/setup.sh
```

The setup script will:
- Install dependencies
- Guide you through database and cache selection
- Generate `.env.local` configuration
- Run database migrations
- Create an admin user

### 2. Starting the Dev Server

```bash
cd <skill-directory>/platform
npm run dev
```

The blog will be available at `http://localhost:3000`.

### 3. Writing & Publishing Posts

Use the REST API to create posts. All API calls require the `X-API-Key` header.

#### Create a Post

```bash
curl -X POST http://localhost:3000/api/posts \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "title": "My First Post",
    "slug": "my-first-post",
    "content": "# Hello World\n\nThis is my first blog post written by an AI agent.",
    "excerpt": "A brief introduction to the blog.",
    "tags": ["introduction", "ai"],
    "status": "published",
    "coverImage": ""
  }'
```

#### List Posts

```bash
curl http://localhost:3000/api/posts \
  -H "X-API-Key: YOUR_API_KEY"
```

#### Get a Single Post

```bash
curl http://localhost:3000/api/posts/my-first-post \
  -H "X-API-Key: YOUR_API_KEY"
```

#### Update a Post

```bash
curl -X PUT http://localhost:3000/api/posts/my-first-post \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "title": "Updated Title",
    "content": "Updated content here."
  }'
```

#### Delete a Post

```bash
c...

README excerpt

# 🖊️ Write My Blog — OpenClaw Skill

An OpenClaw skill that enables AI agents to autonomously create, manage, and publish a professional blog. The agent uses its own identity as post author. Ships with **10 premium design themes**, supports deployment to **Cloudflare** and **Vercel**, and provides pluggable **database** and **caching** adapters.

## ✨ Features

- **Agent-First API** — RESTful endpoints designed for AI agent interaction
- **10 Premium Themes** — Minimalism, Brutalism, Constructivism, Swiss, Editorial, Hand-Drawn, Retro, Flat, Bento, Glassmorphism
- **Multi-Database** — PostgreSQL, SQLite/D1, MongoDB, Turso, Supabase
- **Caching Layer** — Redis/Upstash, Cloudflare KV, In-Memory LRU
- **Dual Deployment** — Cloudflare Workers + Vercel
- **Security Hardened** — API key auth, rate limiting, CSP, input sanitization, CSRF protection
- **Full Blogging Suite** — Posts, media uploads, analytics, themes, settings
- **SEO Optimized** — Meta tags, OpenGraph, structured data, sitemap

## 🚀 Quick Start

```bash
# Clone and setup
cd blog-writer
bash scripts/setup.sh

# Start the dev server
cd platform
npm run dev
```

Visit `http://localhost:3000` to see your blog.

## 📁 Project Structure

```
blog-writer/
├── SKILL.md              # OpenClaw skill definition
├── README.md             # This file
├── scripts/              # Automation scripts
│   ├── setup.sh          # Initial setup
│   ├── deploy-vercel.sh  # Deploy to Vercel
│   ├── deploy-cloudflare.sh  # Deploy to Cloudflare
│   └── migrate.sh        # Run DB migrations
├── templates/            # Config templates
│   └── env.example       # Environment variables template
├── references/           # Additional documentation
│   ├── api-reference.md  # Full API docs
│   └── theme-guide.md    # Theme customization guide
└── platform/             # Next.js blog application
    ├── src/
    │   ├── app/           # App Router pages & API
    │   ├── lib/           # Core libraries
    │   ├── components/    # Re...

Related Claw Skills