Skip to content

Agent Skills ​

TrailSnap CLI can be used as an Agent tool (Skill) in different AI coding assistants or Agent platforms, such as Claude Code and OpenClaw / Roo Code. By letting the Agent call the CLI, AI can query and analyze your album data and answer questions based on your personal library.

MCP-compatible clients can connect directly to TrailSnap's built-in Streamable HTTP server without wrapping the CLI. See Configure TrailSnap MCP.

  1. Claude Code
    How to use

  2. OpenClaw / Roo Code and other IDE Agents
    How to use

  3. Other Agent platforms

If you use Dify, Coze, FastGPT, or your own Agent framework, you can wrap the CLI as a system tool.

Copy the prompt below to your Agent (OpenClaw, Claude Code, Cursor, TRAE, etc.). It will guide you to add the token and finish installation:

text
Help me install trailsnap-cli and the skill: https://trailsnap.cn/install.md
My TrailSnap address is http://localhost:3180
My token is ts_hV5nsCZxxxxx

Use the Skill ​

Ask your Agent in natural language:

"Use the trailsnap-cli skill and list my recent photos taken in Xi'an."
"Where did I travel last National Day? Generate an HTML travel diary for me."

👉 View an AI-generated travel diary example

Released under the AGPL-3.0 License