- name
SKILL.md
Tệp skill vẫn nằm trong kho mã của nhà phát hành.
Dán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add LC044/TrailSnap --skill trailsnap-cli -a cursor -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add LC044/TrailSnap --skill trailsnap-cli -a claude-code -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add LC044/TrailSnap --skill trailsnap-cli -a codex -yDán lệnh đã sao chép vào terminal. Lệnh sẽ cài đặt tệp SKILL.md này vào agent đó.
npx skills add LC044/TrailSnap --skill trailsnap-cli -a grok -yGửi tin nhắn đã sao chép trong cuộc trò chuyện Grok Bot. Bot sẽ lấy tệp SKILL.md này từ GitHub và thêm vào bộ skill mà mọi Bot của bạn dùng chung.
Install this skill: https://github.com/LC044/TrailSnap/tree/HEAD/skills/trailsnap-cliTừ nhà phát hành
当原生 TrailSnap MCP 工具不可用时,使用 trailsnap CLI 查询 TrailSnap;两者同时可用时优先 MCP。
使用以下命令检查是否安装了 trailsnap 工具,如果没有安装则可以参考install.md文档进行安装。
trailsnap -v
首次使用需要配置 API 地址和 ts_ 开头的只读 Agent Token。用以下命令检查配置:
trailsnap photos list --limit 1
如果收到配置错误,询问用户这两个信息,然后执行;不要把 Token 输出到日志或提交到仓库:
trailsnap config set --url <API_BASE_URL> --token <YOUR_API_TOKEN>
使用前可以通过 trailsnap <command> -h 或 trailsnap <command> <subcommand> -h 查看每个命令的详细帮助信息。通常情况下,你需要先根据用户的问题逐步筛选出检索条件(一个简单的示例),然后查询符合条件的照片列表。
locations timeline 命令能够查到时间和空间上的信息,是一个很好的工具,返回一个足迹时间轴(某一段时间去了那个地方)。medias get --format url 获取地址,保留返回值,不要编造路径。使用 Python 运行脚本:
trailsnap <command> <subcommand> [options]
Query photos, albums, locations, tags, and people from a TrailSnap instance through its command-line client. Use when TrailSnap MCP tools are unavailable and the user asks about their own photo librar
---name: trailsnap-clidescription: Query photos, albums, locations, tags, and people from a TrailSnap instance through its command-line client…---# skills/trailsnap-cli/SKILL.mdTổng quan
Query photos, albums, locations, tags, and people from a TrailSnap instance through its command-line client. Use when TrailSnap MCP tools are unavailable and the user asks about their own photo library; Agent Tokens are read-only, so do not use this skill to mutate library data.
Câu hỏi thường gặp
Tải skills/trailsnap-cli/SKILL.md từ nhà phát hành, hoặc sao chép đường dẫn và mở kho mã. PlugMCP chỉ liệt kê skill và không lưu trữ tệp này.
Nhà phát hành duy trì nó tại https://github.com/LC044/TrailSnap.
Claude, Cursor, Codex và Grok Build có thể đọc tệp SKILL.md mà bạn thêm từ kho mã của nhà phát hành. Grok Bot cài đặt skill khi bạn gửi liên kết thư mục GitHub của skill trong cuộc trò chuyện.