
通过代理运行时使用anytype的技能,并附有各种代理的安装说明
概览
一项可移植技能,允许AI编码代理通过anytype-agent-runtime编写Anytype脚本——创建对象、管理类型/属性,并运行全文和语义搜索。 面向代理的指令存在于 AGENTS.md(CLAUDE.md 是它的符号链接)。JS 客户端库anytypeHelper.js,其 API 文档已在 anytypeHelper.md 中。 1. 运行中的Anytype桌面应用(技能与本地API通信)。2. PATH上的anytype-agent-runtime:如果缺少,请查看 AGENTS.md 中的安装。但你的代理应该能处理。3. 技能目录中的.env,里面有你的Anytype API令牌(见 AGENTS.md)。这也由代理创建。 克隆仓库,从仓库内部启动代理: AGENTS.md 中面向代理的指令(以及 CLAUDE.md 符号链接)在从仓库根启动时,会被 Claude Code、OpenAI Codex、Cursor、Gemini CLI、Goose、OpenCode、OpenHands、GitHub Copilot 及其他兼容代理技能的代理自动获取。
概述(AI 翻译)
一项便携技能,允许AI编码代理通过anytype-agent-runtime编写Anytype脚本——创建对象、管理类型/属性,并运行全文和语义搜索。
面向代理的指令位于 AGENTS.md(CLAUDE.md 是其符号链接)。JS 客户端库为 anytypeHelper.js,其 API 文档载于 anytypeHelper.md。
先修条件
- 运行中的Anytype桌面应用(该技能与本地API通信)。
anytype-agent-runtime在你的PATH上:
如果缺少,请参见AGENTS.md中的安装。但这应该由你的代理处理。
3. 在技能目录中与你的Anytype API令牌一起设置.env(参见AGENTS.md)。这也将由代理创建。
安装技能
克隆仓库,从仓库内部启动代理:
AGENTS.md中面向代理的指令(以及CLAUDE.md符号链接)在从仓库根启动时,被Claude Code、OpenAI Codex、Cursor、Gemini CLI、Goose、OpenCode、OpenHands、GitHub Copilot及其他兼容Agent Skills的代理自动获取。
使用它
安装后,询问代理你想如何使用 Anytype——它会按需加载该技能。示例:
本页由 AI 翻译,技术细节请以原文为准。
README
anytype-agents-skill
A portable skill that lets AI coding agents script Anytype through the anytype-agent-runtime — creating objects, managing types/properties, and running full-text and semantic search.
The agent-facing instructions live in AGENTS.md (CLAUDE.md is a symlink to it). The JS client lib is anytypeHelper.js, with its API documented in anytypeHelper.md.
Prerequisites
- A running Anytype desktop app (the skill talks to its local API).
anytype-agent-runtimeon yourPATH:
If missing, see installation inwhich anytype-agent-runtimeAGENTS.md. But your agent should handle that.- An
.envin the skill directory with your Anytype API token (seeAGENTS.md). This also will be created by agent.
Installing the skill
Clone the repo and start your agent from inside it:
git clone https://github.com/anyproto/anytype-agents-skill
cd anytype-agents-skill
# then launch your agent here, e.g. `claude`, `codex`, etc.
The agent-facing instructions in AGENTS.md (and the CLAUDE.md symlink) are picked up automatically by Claude Code, OpenAI Codex, Cursor, Gemini CLI, Goose, OpenCode, OpenHands, GitHub Copilot, and other Agent Skills-compatible agents when launched from the repo root.
Using it
Once installed, ask the agent what you want to do with Anytype — it’ll load the skill on demand. Examples:
- “Search my Anytype space for notes about quarterly planning.”
- “Create a new
taskobject titled ‘Review PR #42’ with statusin-progress.” - “List all properties on the
booktype.”
The agent writes a JS script that imports anytypeHelper and runs it via anytype-agent-runtime. You can also run scripts yourself once agent runtime is installed on your system:
anytype-agent-runtime -m . your-script.js
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add anyproto/anytype-agents-skill