360 Secure SkillHub
360 安全技能中心

OCC Artifact Gallery

该 Skill 通过命令行把本地文件或文件夹注册到 OCC Artifact Gallery,列出最近产物并获取查看/下载链接,便于在移动端或聊天渠道打开生成结果;同时只允许白名单根目录并拒绝疑似凭据路径。

分类:自动化
shadoprizm
shadoprizm
热度 21.19
最近更新 2026-05-20 14:59:31

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add shadoprizm/occ-artifact-gallery
兼容性
Occ 专属
联网要求
需要联网
数据出网
必须出网
Metadata
name
artifact-gallery
description
Use when an agent generates local files/folders and must return mobile-accessible OCC/Tailscale viewer links instead of filesystem paths.
version
1.0.0
author
OCC Hermit
license
MIT
metadata
{"hermes":{"tags":["artifacts","gallery","mobile","tailscale","generated-work"],"related_skills":[]}}

Artifact Gallery

Overview

OCC Artifact Gallery turns generated local outputs on a VPS/headless server into stable HTTPS links that users can open from Telegram, WhatsApp, Discord, or a browser.

Use this for images, PDFs, HTML, Markdown, JSON, audio, video, reports, screenshots, and generated folders. Do not give users only /home/... paths when they are on mobile.

Canonical URLs

  • Gallery UI: https://n2-pro.tail1c2e65.ts.net/artifacts
  • Artifact viewer: https://n2-pro.tail1c2e65.ts.net/artifacts/a/{artifact_id}
  • API: http://127.0.0.1:8080/api/artifacts-gallery

CLI

Register a generated file:

/home/shadoprizm/occ/venv/bin/python /home/shadoprizm/occ/scripts/artifact_gallery_tool.py register \
  --path /home/shadoprizm/occ/brain/infographic-studio/active/INFOG-6311545c/infographic-v1.png \
  --title "OCC Infographic dogfood output" \
  --source-system occ \
  --source-agent concierge \
  --tags infographic dogfood

List recent artifacts:

/home/shadoprizm/occ/venv/bin/python /home/shadoprizm/occ/scripts/artifact_gallery_tool.py list --limit 20

Get links:

/home/shadoprizm/occ/venv/bin/python /home/shadoprizm/occ/scripts/artifact_gallery_tool.py links art_xxxxx

Agent response contract

When replying over mobile/chat channels, include:

  • brief summary
  • viewer_url
  • optional download_url
  • artifact type/size

Example:

Done — generated the report.

View:
https://n2-pro.tail1c2e65.ts.net/artifacts/a/art_xxxxx

Download:
https://n2-pro.tail1c2e65.ts.net/api/artifacts-gallery/art_xxxxx/download

Safety

The gallery only serves allowlisted roots and refuses credential/dot/secret-like paths. If registration fails, do not bypass it by inventing a URL; fix the path/root or report the failure.