Skip to content
Automation
Skill

/trailsnap-cli

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.

From plugin
trailsnap
90210 skills2 MCP

Claude Code

$ npx -y skills add LC044/TrailSnap --skill trailsnap-cli --agent claude-code

SKILL.md

trailsnap-cli.SKILL.md
name: "trailsnap-cli"
description: "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."

TrailSnap CLI 技能

当原生 TrailSnap MCP 工具不可用时,使用 `trailsnap` CLI 查询 TrailSnap;两者同时可用时优先 MCP。

功能

1. 根据指定条件(可选过滤参数)查询照片列表。 2. 查询分类标签、相册、位置和人物(面部)信息。 3. 查询某张照片的详细信息。

安装

使用以下命令检查是否安装了 `trailsnap` 工具,如果没有安装则可以参考[install.md](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` 查看每个命令的详细帮助信息。通常情况下,你需要先根据用户的问题逐步筛选出检索条件(一个简单的[示例](examples/simple.md)),然后查询符合条件的照片列表。

  • `locations timeline` 命令能够查到时间和空间上的信息,是一个很好的工具,返回一个足迹时间轴(某一段时间去了那个地方)。
  • 除非用户不需要显示照片,否则以合适格式展示照片;使用 `medias get --format url` 获取地址,保留返回值,不要编造路径。
  • 在使用之前你需要阅读 [reference.md](reference.md) 文件,了解每个命令的详细参数和选项。
  • 如果需要的话,可以参考 [examples/simple.md](examples/simple.md) 文件,了解如何使用该工具。
  • Agent Token 仅允许匹配 scope 的读取。不要调用删除、toolbox、任务变更、上传或其他写命令,也不要声称已经修改相册。
  • AI 描述、人脸匹配与回忆候选属于推断证据,不应表述为已确认事实。

使用 Python 运行脚本:

trailsnap <command> <subcommand> [options]
Read more
@lc044
Ships withtrailsnap

TrailSnap (行影集) | AI-Powered open-source photo album for travel & life memories.(AI赋能的开源相册工具,珍藏旅行与生活点滴)

90210 skills2 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
902
Star history of LC044/TrailSnap on GitHub, a chart by star-history.com

Other skills on trailsnap.

album-doctor

album-doctor

对照片库或指定相册进行体检,并把结构、时间、地点、AI 元数据与安全清理问题转成可选择、可确认、尽量可撤销的计划。

@lc044@lc044Install Skill
album-organizer

album-organizer

安全地把照片整理成正式相册,通过预览、用户确认、执行和撤销完成写操作。

@lc044@lc044Install Skill
memory-detective

memory-detective

根据模糊的时间、地点、同行人、画面和文字线索找回可能的照片事件,并在用户确认后生成可追溯的回忆故事。

@lc044@lc044Install Skill
person-timeline

person-timeline

按年份和事件整理指定人物出现过的照片,展示共同经历、成长变化、地点与同行人,并可生成可追溯的人物故事。

@lc044@lc044Install Skill
trailsnap-search

trailsnap-search

逐步检索并理解用户相册,适合回答照片、人物、地点和时间相关问题。

@lc044@lc044Install Skill

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n11d209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@vercel-labs-2@vercel-labs-2Install Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about trailsnap-cli.

Which coding agents can use trailsnap-cli?
trailsnap-cli installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.