Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

writeas

БесплатноБез исполняемых скриптовНе проверен

Write.as API Documentation

rawvegот rawveg★ 42 звезды на GitHub15 установок в других каталогах

Об этом скилле

Write.as Skill

Comprehensive assistance with Write.as and WriteFreely API development, based on official API documentation. This skill provides practical guidance for building applications around the Write.as blogging platform and its open-source WriteFreely implementation.

When to Use This Skill

This skill should be triggered when:

  • Working with the Write.as REST API (https://write.as/api/)
  • Building applications that interact with Write.as or WriteFreely
  • Implementing blog post creation, updates, or management
  • Setting up user authentication for Write.as accounts
  • Creating or managing collections (blogs)
  • Implementing crossposting to Twitter, Medium, or Tumblr
  • Integrating Markdown rendering for blog posts
  • Debugging Write.as API calls or authentication issues
  • Working with anonymous posts and post claiming
  • Building self-hosted WriteFreely instances

Key Concepts

Core Terminology

Posts: Markdown-based articles with metadata. Posts can be created anonymously or associated with a user account.

Collections: Known as "blogs" in the UI. Container for multiple posts with customizable settings. Creating collections requires a Pro account.

Users: Registered accounts with password, email, and resource access. Users can own multiple collections and posts.

Tokens: Used for authentication and post management. Anonymous posts return a token for later modifications, while user operations use access tokens via Authorization: Token {access_token} header.

Authentication

  • Anonymous: No authentication required. Store the returned token for later updates/deletions.
  • User-based: Login via /api/auth/login to get an access token, then pass it in the Authorization header.

Quick Reference

Creating an Anonymous Post

POST https://write.as/api/posts
Content-Type: application/json

{
  "body": "This is a post.",
  "title": "My First Post"
}

Response:

{
  "code": 201,
  "data": {
    "id": "rf3t35fkax0aw",
    "token": "ozPEuJWYK8L1QsysBUcTUKy9za7yqQ4M",
    "title": "My First Post",
    "body": "This is a post."
  }
}

Note: Save the token to update or delete this post later.

Updating a Post (Anonymous)

POST https://write.as/api/posts/{POST_ID}
Content-Type: application/json

{
  "token": "ozPEuJWYK8L1QsysBUcTUKy9za7yqQ4M",
  "body": "This is an updated post."
}

User Authentication

POST https://write.as/api/auth/login
Content-Type: application/json

{
  "alias": "username",
  "pass": "password"
}

Response:

{
  "code": 200,
  "data": {
    "access_token": "00000000-0000-0000-0000-000000000000",
    "user": {
      "username": "username"
    }
  }
}

Creating a Post as Authenticated User

POST https://write.as/api/posts
Authorization: Token 00000000-0000-0000-0000-000000000000
Content-Type: application/json

{
  "body": "# My authenticated post\n\nThis post is linked to my account.",
  "title": "Authenticated Post"
}

Styling Posts with Fonts

POST https://write.as/api/posts
Content-Type: application/json

{
  "body": "This is a monospace code post.",
  "font": "code"
}

Available fonts:

  • sans - Sans-serif with word wrap
  • serif or norm - Serif with word wrap
  • wrap - Monospace with word wrap
  • mono - Monospace without wrap
  • code - Syntax-highlighted monospace

Crossposting to Social Media

POST https://write.as/api/posts
Authorization: Token 00000000-0000-0000-0000-000000000000
Content-Type: application/json

{
  "body": "Check out my new post!",
  "title": "My Post",
  "crosspost": [
    {"twitter": "yourusername"},
    {"medium": "yourusername"}
  ]
}

Supported services: Twitter, Tumblr, Medium

Creating a Collection (Pro Feature)

POST https://write.as/api/collections
Authorization: Token 00000000-0000-0000-0000-000000000000
Content-Type: application/json

{
  "alias": "my-blog",
  "title": "My Blog"
}

Publishing to a Collection

POST https://write.as/api/collections/{ALIAS}/posts
Authorization: Token 00000000-0000-0000-0000-000000000000
Content-Type: application/json

{
  "body": "# First blog post\n\nWelcome to my blog!",
  "title": "Hello World"
}

Moving Anonymous Post to Collection

POST https://write.as/api/collections/{ALIAS}/collect
Authorization: Token 00000000-0000-0000-0000-000000000000
Content-Type: application/json

[
  {
    "id": "rf3t35fkax0aw",
    "token": "ozPEuJWYK8L1QsysBUcTUKy9za7yqQ4M"
  }
]

Rendering Markdown to HTML

POST https://write.as/api/markdown
Content-Type: application/json

{
  "raw_body": "# Hello\n\nThis is **Markdown**."
}

Response:

{
  "code": 200,
  "data": {
    "body": "<h1>Hello</h1>\n<p>This is <strong>Markdown</strong>.</p>"
  }
}

Error Handling

All API responses follow this structure:

{
  "code": 200,
  "data": {}
}

Common HTTP status codes:

Полный SKILL.md на GitHub

Установить writeas в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

plugin.jsonreferences/api.mdreferences/index.md

FAQ

Что делает скилл writeas?

Write.as API Documentation

Как установить скилл writeas?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл writeas запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить writeas с