anytype

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Anytype Skill

Anytype Skill

Overview

概述

Claude can manage your Anytype space to create objects, define types, and build a private knowledge base. A local-first, open-source tool for managing all types of information.
Claude可以管理你的Anytype空间,创建对象、定义类型并构建私有知识库。这是一款本地优先的开源工具,用于管理各类信息。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/anytype/install.sh | bash
Or manually:
bash
cp -r skills/anytype ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/anytype/install.sh | bash
或者手动安装:
bash
cp -r skills/anytype ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set ANYTYPE_EMAIL "your-email@example.com"
undefined
canifi-env set ANYTYPE_EMAIL "your-email@example.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化配置
  2. 在Playwright控制的Chrome窗口中手动登录服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅可在你的本地设备访问,绝不会被传输至外部。

Capabilities

功能特性

  • Create objects of any type
  • Define custom types and relations
  • Build sets and collections
  • Create templates
  • Link objects together
  • Use graph view
  • Search across content
  • Organize with tags
  • Create databases
  • Build widgets
  • Export and import
  • Sync across devices
  • 创建任意类型的对象
  • 定义自定义类型与关联关系
  • 构建集合与数据集
  • 创建模板
  • 关联对象
  • 使用图谱视图
  • 全局内容搜索
  • 用标签整理内容
  • 创建数据库
  • 构建小组件
  • 导出与导入
  • 跨设备同步

Usage Examples

使用示例

Example 1: Create Object

示例1:创建对象

User: "Create a Note object about the meeting"
Claude: Creates Note object with meeting content.
        Confirms: "Note created: Meeting Notes"
用户:"创建一个关于会议的Note对象"
Claude:创建包含会议内容的Note对象。
        确认:"已创建Note对象:会议记录"

Example 2: Build Set

示例2:构建数据集

User: "Create a set of all my Task objects"
Claude: Creates Set with Task type filter.
        Returns: "Task set created with 15 objects"
用户:"创建一个包含我所有Task对象的数据集"
Claude:创建带有Task类型筛选条件的数据集。
        返回:"已创建Task数据集,包含15个对象"

Example 3: Define Type

示例3:定义类型

User: "Create a 'Recipe' type with ingredients and instructions relations"
Claude: Creates custom type with relations.
        Confirms: "Recipe type created with 2 relations"
用户:"创建一个带有食材和步骤关联关系的'Recipe'类型"
Claude:创建带有指定关联关系的自定义类型。
        确认:"已创建Recipe类型,包含2个关联关系"

Example 4: Link Objects

示例4:关联对象

User: "Link this project to the client object"
Claude: Creates relation between objects.
        Confirms: "Project linked to Client"
用户:"将这个项目与客户对象关联"
Claude:创建两个对象之间的关联关系。
        确认:"项目已与客户对象关联"

Authentication Flow

认证流程

  1. Claude navigates to Anytype web/app via Playwright MCP
  2. Enters ANYTYPE_EMAIL for authentication
  3. Handles encryption key if required
  4. Maintains session for operations
  1. Claude通过Playwright MCP导航至Anytype网页/应用
  2. 输入ANYTYPE_EMAIL进行认证
  3. 如需加密密钥则进行处理
  4. 维持会话以执行后续操作

Selectors Reference

选择器参考

javascript
// Object list
'.object-list'

// Object content
'.object-content'

// Block
'.block-container'

// Type selector
'.type-selector'

// Relation
'.relation-container'

// Set view
'.set-view'

// Graph view
'.graph-view'

// Search
'.search-input'

// Widget
'.widget-container'

// Link block
'.link-block'
javascript
// 对象列表
'.object-list'

// 对象内容
'.object-content'

// 区块
'.block-container'

// 类型选择器
'.type-selector'

// 关联关系
'.relation-container'

// 数据集视图
'.set-view'

// 图谱视图
'.graph-view'

// 搜索
'.search-input'

// 小组件
'.widget-container'

// 链接区块
'.link-block'

Anytype Concepts

Anytype核心概念

Object      // Any piece of content
Type        // Template for objects
Relation    // Property/field on objects
Set         // Filtered collection of objects
Collection  // Manual grouping of objects
Template    // Reusable object structure
Graph       // Visual object connections
Object      // 任意内容片段
Type        // 对象的模板
Relation    // 对象的属性/字段
Set         // 对象的筛选集合
Collection  // 对象的手动分组
Template    // 可复用的对象结构
Graph       // 对象关联的可视化视图

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Object Not Found: Search with variations, ask user
  • Type Error: Check type definition, suggest fix
  • Sync Failed: Wait and retry
  • Encryption Error: Verify key
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • 对象未找到:尝试变体搜索,询问用户
  • 类型错误:检查类型定义,建议修复方案
  • 同步失败:等待后重试
  • 加密错误:验证密钥

Self-Improvement Instructions

自我优化说明

When you learn a better way to accomplish a task with Anytype:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific type configurations
  4. Note useful relation patterns
当你发现使用Anytype完成任务的更优方法时:
  1. 在响应中记录该优化点
  2. 建议更新此技能文件以采用新方法
  3. 包含具体的类型配置
  4. 记录实用的关联关系模式

Notes

注意事项

  • Local-first with E2E encryption
  • Open-source and self-hostable
  • Object-based data model
  • Flexible type system
  • Relations for connections
  • Graph for visualization
  • Sets for filtered views
  • Cross-platform apps
  • 本地优先架构,支持端到端加密
  • 开源且可自托管
  • 基于对象的数据模型
  • 灵活的类型系统
  • 通过关联关系建立连接
  • 用图谱视图可视化关联
  • 用数据集实现筛选视图
  • 跨平台应用支持