跳到正文
Skillpedia
API 与服务器(后端)48k · #6251

anywrite

它能做什么

Anywrite 是一个让你在电脑上控制 Anytype 应用的工具。你可以用它来整理 Anytype 中的笔记、任务和其他内容,就像在终端里输入命令一样。

适用场景

  • ✓当你想在 Anytype 中创建、更新或搜索笔记和任务时。
  • ✓当你想用标签、类型或列表来整理 Anytype 中的内容时。
  • ✓当你需要自动向 Anytype 上传文件或在其中进行聊天时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/anywrite/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/anywrite/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“在 Anytype 中创建一个名为“买面包”的任务。”

每周 5 个新技能,1 分钟读完。

工作原理

你需要先在电脑上安装并运行 Anytype 应用。然后,使用 Anywrite 发送具体的命令,比如创建新笔记,或搜索你之前保存过的内容。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

anywrite

Overview

anywrite is a single compiled Bun/TypeScript CLI for the Anytype desktop app's local HTTP API — all 52 endpoints across spaces, objects, properties, tags, types, templates, lists, chat, files, members, search, and auth — as one binary with zero runtime dependencies. It exists as a low-context alternative to Anytype's official MCP server: rather than exposing 52 always-loaded tools to every agent session, anywrite is a normal CLI wired as a skill that costs zero context until it's actually invoked, and is equally usable from a terminal or any script.

When to Use This Skill

  • Use when the user mentions Anytype or asks to create, update, search, or organize notes, tasks, or PKM objects.
  • Use when working with Anytype spaces, properties, tags, types, templates, or lists (sets and collections).
  • Use when the user asks to upload files to a space, chat inside a space, or read/write structured objects programmatically.

How It Works

Step 1: Ensure Anytype desktop is running and authenticated

This repository does not ship the anywrite executable. The user must install or build a reviewed upstream release outside the current workspace and provide its explicit absolute path. Before use, verify that path is an executable regular file, is not a symlink, and is not a workspace-relative dist/ artifact. Never auto-discover or execute ./dist/anywrite from the repository being worked on.

The Anytype desktop app must be running locally (default http://localhost:31009). Authenticate once:

"/absolute/path/to/anywrite" auth --status        # shows configured yes/no and where the key came from
"/absolute/path/to/anywrite" auth                 # challenge flow — a 4-digit code appears in the app
"/absolute/path/to/anywrite" auth --code 1234     # non-interactive form of the same exchange

The key is written to ~/.anywrite/config.json and is never printed by any command.

Step 2: Invoke a resource + action

anywrite <resource> <action> [positionals] [--flag value]

Resources: spaces, objects, properties, tags, types, templates, lists, files, members, search, chat, auth. Output is JSON by default; add --pretty for a human view, --json as an escape hatch for anything the typed flags don't model yet. space/type/property positionals accept a name or an id — names are resolved to ids automatically.

Examples

Example 1: Create and update an object

"/absolute/path/to/anywrite" objects create <space> --type task --name "Buy milk"
"/absolute/path/to/anywrite" objects update <space> <object_id> --status "Done"

Example 2: Search and upload a file

"/absolute/path/to/anywrite" search global --query "task" --types task
"/absolute/path/to/anywrite" files upload <space> --file ./image.png

Example 3: Read chat messages

"/absolute/path/to/anywrite" chat messages <space> <chat_id> --all

Best Practices

  • ✅ Pass names for space/type/property and let the CLI resolve them to ids.
  • ✅ Use default JSON output for scripting and --pretty for human review.
  • ✅ Reach for --json when a brand-new API field isn't yet covered by a typed flag.
  • ❌ Don't set an empty-string emoji --icon; omit the flag entirely instead.
  • ❌ Don't expect lists add/remove to work on sets — they only apply to collections.

Limitations

  • This skill does not replace environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, or safety boundaries are missing.
  • Bounded by the Anytype local API itself: no block-level editing (body is whole-markdown replace only), no member invite/role management, no template create/update/delete, no space deletion.
  • The object body field is named --body on create but --markdown on update.

Security & Safety Notes

  • The API key is stored locally in ~/.anywrite/config.json and is never printed by any command, including auth --status.
  • Config precedence at runtime: ANYTYPE_API_KEY env var, then ~/.anywrite/config.json, then a read-only fallback to an existing ~/.anytype-cli/config.yaml.
  • All operations target a locally-running Anytype desktop instance; no data is sent to third-party servers.
  • Delete is a soft archive everywhere and is idempotent — a repeated delete stays 200, never 410.

Common Pitfalls

…

常见问题

使用 Anywrite 需要单独安装什么吗?

需要。你必须单独下载并安装 Anywrite,它不随 Anytype 一起提供。

Anywrite 会把我的数据发送到别处吗?

不会。所有操作都在你的电脑上直接完成,Anytype 在本地运行,不会有数据发送到外部服务器。

我可以用 Anywrite 创建新的内容类型或模板吗?

不可以。Anywrite 不支持创建或修改模板和内容类型,它只专注于管理已有的内容。

详情

作者的原始描述

Compiled CLI covering all 52 endpoints of the Anytype local API — objects, properties, tags, search, chat, files — one binary, no MCP server needed.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6251
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能