anytype-skill
Interact with Anytype's local REST API to manage spaces, objects, types, properties, tags, lists, and search.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 13
- Forks
- 6
01 前言 Front Matter
- name
- anytype-skill
- description
- Interact with Anytype's local REST API to manage spaces, objects, types, properties, tags, lists, and search.
- allowed-tools
- Read, Grep, Glob, Bash, WebFetch
- argument-hint
- <command> [args] (e.g., /anytype search 'meeting notes', /anytype objects list <space_id>)
- disable-model-invocation
- true
02 资源文件 11
- 参考文档commands/auth.md1.3 KB
- 参考文档commands/files.md1.2 KB
- 参考文档commands/lists.md1.3 KB
- 参考文档commands/members.md706 B
- 参考文档commands/objects.md2.6 KB
- 参考文档commands/properties.md1.6 KB
- 参考文档commands/search.md1.4 KB
- 参考文档commands/spaces.md1.1 KB
- 参考文档commands/tags.md1.4 KB
- 参考文档commands/types.md1.8 KB
- 参考文档manifest.yaml660 B
03 SKILL.md 正文
Anytype Skill
Purpose
Interact with Anytype's local-first REST API from Claude Code. Manage spaces, objects, types, properties, tags, lists, and run searches across your knowledge base — all without leaving the terminal.
Anytype runs a local HTTP API on your machine (no cloud). The desktop app listens on 127.0.0.1:31009; anytype-cli on 127.0.0.1:31012.
Inputs
-
Command group (auth, search, spaces, objects, files, types, properties, tags, lists, members)
-
Subcommand (list, get, create, update, delete, etc.)
-
Space ID (required for most operations)
-
Object/type/property IDs as needed
-
Search queries and filter expressions
-
Template paths are resolved from
${AGENTS_SKILLS_ROOT}/anytype-skill/.
Prerequisites
- Anytype desktop app must be running (or
anytype-climust be active). - An API key must be configured. See
${AGENTS_SKILLS_ROOT}/anytype-skill/commands/auth.md.
API Conventions
- Base URL:
http://127.0.0.1:31009/v1(desktop) orhttp://127.0.0.1:31012/v1(CLI) - Auth header:
Authorization: Bearer <api_key> - Version header:
Anytype-Version: 2025-11-08 - Content-Type:
application/json - Pagination:
offsetandlimitquery params (default limit=100) - All responses are JSON.
Steps
1. Determine the base URL
Check which Anytype instance is running:
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:31009/v1/spaces 2>/dev/null || \
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:31012/v1/spaces 2>/dev/null
Use whichever returns a response (even 401 means it's up).
2. Authenticate
If no API key is available, follow ${AGENTS_SKILLS_ROOT}/anytype-skill/commands/auth.md to obtain one via the challenge-response flow.
3. Route to the appropriate command doc
Based on the user's request, read and follow the relevant command doc:
${AGENTS_SKILLS_ROOT}/anytype-skill/commands/auth.md— Authentication & API keys${AGENTS_SKILLS_ROOT}/anytype-skill/commands/search.md— Global and space-scoped search${AGENTS_SKILLS_ROOT}/anytype-skill/commands/spaces.md— Space CRUD${AGENTS_SKILLS_ROOT}/anytype-skill/commands/objects.md— Object CRUD${AGENTS_SKILLS_ROOT}/anytype-skill/commands/files.md— Native file upload, download, and delete${AGENTS_SKILLS_ROOT}/anytype-skill/commands/types.md— Type CRUD + templates${AGENTS_SKILLS_ROOT}/anytype-skill/commands/properties.md— Property CRUD${AGENTS_SKILLS_ROOT}/anytype-skill/commands/tags.md— Tag CRUD on select/multi-select properties${AGENTS_SKILLS_ROOT}/anytype-skill/commands/lists.md— List views, add/remove objects${AGENTS_SKILLS_ROOT}/anytype-skill/commands/members.md— Space members
4. Execute the API call
Use curl via Bash to make the request. Always include auth and version headers.
5. Parse and present results
Format the JSON response for readability. Summarize key fields rather than dumping raw JSON unless the user asks for it.
Error Handling
- 401 Unauthorized: API key missing or expired. Re-authenticate.
- 404 Not Found: Check space_id, object_id, etc. List available resources first.
- Connection refused: Anytype app is not running. Ask user to start it.
- 400 Bad Request: Check request body against the command doc schema.
Output
- Formatted summary of API response
- Raw JSON available on request
- Action confirmation for create/update/delete operations
Feedback Capture
After completion, ask the user: "Any feedback on this run? (skip to finish)" If provided, capture it:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_capture.py" capture \
--skill "anytype-skill" --gate "run_retrospective" --gate-type "retrospective" \
--outcome "approved" --feedback "<user's feedback>"
04 同仓库更多 Skills
personal-knowledge
Save sources to the private Harnessy learning library, sync delivered readings, answer questions from saved evidence, browse its wiki, and generate weekly learning reviews.
valid-skill
A valid skill for testing purposes.
unknown-field
A skill with an unknown frontmatter field.
nested-child
Nested skill should be ignored.
root-skill-preferred
Root skill should win.
no-frontmatter
暂无简介