label-manager

label-manager is a skill for Claude Code, Codex from coracoo/zspace_skill. It costs 150 tokens per session (2,835 once invoked), scanned A, original, MIT.

A skill for managing file labels on a ZSpace NAS. It can find files by names or contents, then add, find, or remove labels.

In plain words
What is it for?
Use it to scan folders by filename or extension, search file contents with semantic search, apply labels in batches, find files by label, and delete labels.
Why use it?
It gives files a consistent way to be grouped and found later, including files whose names do not reveal what they contain.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/coracoo/zspace_skill/label-manager
Any agent
npx skills add coracoo/zspace_skill --skill label-manager
Clone the repo
git clone --depth 1 https://github.com/coracoo/zspace_skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for label-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/coracoo/zspace_skill/label-manager.svg)](https://agentmods.dev/skills/coracoo/zspace_skill/label-manager)
Your own site
<a href="https://agentmods.dev/skills/coracoo/zspace_skill/label-manager"><img src="https://agentmods.dev/badge/skills/coracoo/zspace_skill/label-manager.svg" alt="Measured on agentmods" height="20"></a>
Per session 150 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00150 $0.02835
Opus 5 $0.00075 $0.01418
Sonnet 5 $0.00030 $0.00567
Haiku 4.5 $0.00015 $0.00283

Measured 4d ago against content hash df3bbf1464b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

label-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (label_manager.py, lib/nas_client.py, tests/smoke.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/label-manager/SKILL.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Label Manager — NAS 标签全生命周期

概述

NAS 标签的全生命周期管理——两种发现方式,同一入口:

发现方式 用哪个命令 适合
按文件名/扩展名 label_manager.py scan + find-by-label 目录递归、批量、精确匹配
按文件内容(RAG 语义) 纯 LLM 编排,semantic_searchsave_file_label 自然语言描述、不靠文件名

最终都走 save_file_label MCP tool 落盘。

前置:nas-setup skill(验证 NAS 登录)。RAG 场景额外需要 rag-manager(门控)。

MCP tool 依赖

| list_file_labels | 列出所有标签 | | save_file_label(label_names, paths) | 打标签(覆盖式,会自动创建新标签名) | | delete_label(label_names) | 删除标签(从所有文件上彻底移除) | | notebook_updatelabel(id, label) | 笔记标签 |

label_manager.py 命令(机械活) 用途
list-labels 同 MCP,但走脚本(批量友好)
scan --root X --ext Y BFS 扫目录找文件(LLM 决策前先用)
find-by-label --label X 反向查询带某标签的文件

5 个标准场景

场景 1:给单个/多个文件打标签

用户说:"给 /sata14/my/data/docker-compose.yml 打 docker 标签"

步骤:

  1. save_file_label(label_names="docker", paths="/sata14/my/data/docker-compose.yml")
  2. 返回结果(返回 200 即可)

注意:

  • paths 多个用英文逗号分隔,最多 50 个/次(NAS 限速)
  • 如果 label_names 里有不存在的标签名,NAS 会自动创建

场景 2:批量打标(目录递归 + LLM 决策)

用户说:"把 /sata14/my/data/ 下所有 .yml 文件打 docker 标签"

步骤:

  1. exec python skills/label-manager/label_manager.py scan --root /sata14/my/data/ --ext yml --max-depth 5 --output /tmp/scan.json
  2. /tmp/scan.json,得到 items 数组(含 path/name/labels)
  3. LLM 自己判断哪些真该打(README.yml 不该打),过滤后分批(每批 50 个)
  4. LLM 调 save_file_label(label_names="docker", paths="path1,path2,...") 分批执行

为什么 LLM 决策:不是所有 .yml 都是 docker 配置。LLM 看 path/name 决定。

场景 3:按标签找文件(反向查询)

用户说:"找所有带 docker 标签的文件"

步骤:

  1. exec python skills/label-manager/label_manager.py find-by-label --label docker --root /sata14/my/data/ --max-depth 5 --output /tmp/docker.json
  2. /tmp/docker.json,得到 matches 数组(含 path/name/is_dir/labels)
  3. 格式化返回给用户

已知 gap:

  • --max-depth 限制,深度外文件找不到
  • 用户只能扫 /<pool>/my/<子目录>/,跨池越权 N001411
  • 脚本内部走 BFS + 串行,sleep 0.1s/层,100 个目录约 10s

Read the full file on GitHub · 214 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 214 lines · 150 tokens per session scan A df3bbf1464b0

Subscribe to this mod's changes

label-manager is a skill published in the GitHub repository coracoo/zspace_skill (19 stars, last pushed 29d ago), licensed MIT. It adds 150 tokens to every session and 2,835 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens