← 返回 Skills 市场
lc044

trailsnap-cli

作者 LC044 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
65
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install trailsnap-cli
功能描述
TrailSnap CLI 命令行工具,用于查询照片、相册、标签、位置和人物等信息。当用户需要查看照片、相册数据时调用此技能。
安全使用建议
This skill appears to implement a CLI that talks to a TrailSnap API and stores a bearer token in a local .env file. Before installing or using it: (1) confirm the skill's origin/publisher (source is unknown); (2) be aware your API token will be saved in plaintext in the skill directory — avoid using highly privileged tokens or use an isolated account; (3) verify the configured TRAILSNAP_API_URL points to a trusted server (the code will call whatever base URL you set); (4) note the SKILL.md claim that the agent "cannot directly read .env" contradicts the code: the tool reads .env at runtime, so do not rely on that text as a security guarantee; (5) if you still want to use it, run it in a sandbox or VM, inspect the code yourself, and rotate the token after use. Provide the publisher/source or provenance if you want a higher-confidence assessment.
功能分析
Type: OpenClaw Skill Name: trailsnap-cli Version: 1.0.0 The skill bundle provides a CLI for interacting with a photo management API, but it contains a significant security vulnerability in `commands/medias.py`. The `get` subcommand allows writing downloaded media to an arbitrary file path via the `--output` argument without any path validation or sanitization, which could be exploited for arbitrary file overwrites. While the code logic is aligned with the stated purpose and lacks clear evidence of malicious intent, this lack of input sanitization on file operations is a high-risk flaw.
能力评估
Purpose & Capability
The name/description align with the implementation: the CLI provides commands to query photos, albums, tags, locations, people, folders and media via a TrailSnap API. However the skill metadata declares no required env vars while the code requires an API URL and token (saved to/loaded from a local .env file). Also SKILL.md states the agent "cannot directly read the .env file," which contradicts runtime code that reads .env for the API URL and token.
Instruction Scope
SKILL.md restricts usage to the CLI and instructs users to run 'config set' to save API URL and token into .env; it does not ask the agent to read unrelated files. But the explicit admonition that the agent/skill "cannot directly read .env" is misleading: the provided code (utils.load_env / make_request) does read the .env file at runtime to obtain credentials. There are no instructions to exfiltrate data to unexpected endpoints—the API calls go to the configured TRAILSNAP_API_URL.
Install Mechanism
No install spec or remote downloads are present; this is an instruction-and-code bundle with local Python code only. No external installation URLs, package installs, or archive extraction are used.
Credentials
The metadata lists no required environment variables, yet the code requires and writes an API token and base URL into a plaintext .env file (TRAILSNAP_API_TOKEN / TRAILSNAP_API_URL). Storing a bearer token in a local .env file may expose credentials if the skill or host environment is shared. The number of secrets requested (one API token) is reasonable for the task, but the mismatch between declared requirements and actual behavior is concerning.
Persistence & Privilege
always is false and the skill does not request system-wide privileges. It writes a local .env file in its directory to persist configuration, which is expected for a CLI tool and does not modify other skills or global agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install trailsnap-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /trailsnap-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of trailsnap-cli. - Provides command-line access to query photos, albums, tags, locations, and people. - Supports listing mounted storage directories. - Requires one-time configuration of API URL and token. - Offers built-in command help and usage examples.
元数据
Slug trailsnap-cli
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

trailsnap-cli 是什么?

TrailSnap CLI 命令行工具,用于查询照片、相册、标签、位置和人物等信息。当用户需要查看照片、相册数据时调用此技能。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 65 次。

如何安装 trailsnap-cli?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install trailsnap-cli」即可一键安装,无需额外配置。

trailsnap-cli 是免费的吗?

是的,trailsnap-cli 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

trailsnap-cli 支持哪些平台?

trailsnap-cli 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 trailsnap-cli?

由 LC044(@lc044)开发并维护,当前版本 v1.0.0。

💬 留言讨论