Command Palette

Search for a command to run...

Назад к скиллам
скилл № 04167

tag-bootstrapper

Interactive TagVocab bootstrap skill. Use when a Zotero Agents workflow needs to ask the user about research domains, tag facets, vocabulary granularity, and…

БесплатноЗапускает вложенные скрипты
leike0813от leike0813★ 17 звёзд на GitHub

Установить tag-bootstrapper в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Tag Bootstrapper

Purpose

Build an initial controlled tag vocabulary, or expand an existing one, through an interactive conversation with the user. The output is not a tagging decision for one paper. It is a governed vocabulary proposal that the host workflow may write into the formal Zotero Agents TagVocab store.

This skill must:

  • read the existing vocabulary from {{ input.existing_tags }};
  • use Host Bridge library index context when the injected zotero-bridge CLI is available;
  • ask the user only for vocabulary-design information that is missing;
  • generate new controlled tags that obey the supplied protocol and references/tag_standard.md;
  • avoid duplicates against existing tags and within the current result;
  • output a single machine-readable JSON object matching assets/output.schema.json.

Inputs

  • {{ input.existing_tags }}: existing controlled vocabulary entries. Each entry may contain tag, facet, and note.
  • {{ input.protocol.facets }}: allowed facet prefixes.
  • {{ input.protocol.tag_pattern }}: required tag pattern.
  • {{ input.protocol.max_tag_length }}: maximum tag length.
  • {{ parameter.tag_note_language }}: language for add_tags[].note; default to zh-CN when absent.

Missing existing_tags is treated as an empty array. Missing protocol fields are input errors because the skill cannot safely propose vocabulary entries without the host-owned TagVocab constraints.

Reference Loading

Before generating any tag, read references/tag_standard.md. Use it as the naming and governance reference for:

  • facet meaning and boundaries;
  • facet:value and facet:path format;
  • hierarchy with /;
  • multiword segments with -;
  • uppercase registered abbreviations;
  • controlled versus semi-controlled facets;
  • recommended vocabulary size and maintenance limits.

Do not invent facets outside input.protocol.facets. If the reference suggests a facet that is absent from input.protocol.facets, omit that facet and add a warning instead of emitting an invalid tag.

Host Bridge Library Context

When the runtime provides Zotero host access, use the library index before asking the user for missing vocabulary information. The index helps you ground the vocabulary in the user's actual Zotero library instead of generic domain guesses.

Before using Zotero host data:

  1. Read the built-in zotero-bridge-cli wrapper skill.
  2. Read zotero-bridge-cli/references/host-bridge-cli.md for the current command surface.
  3. Prefer the run-local shim in the ACP or SkillRunner workspace:
    • Windows: .\.zotero-bridge\bin\zotero-bridge.cmd
    • POSIX: ./.zotero-bridge/bin/zotero-bridge
  4. Use the PATH command zotero-bridge only when the run-local shim is absent.

Read the current library index with:

<zotero-bridge> library-index get --input '{"cursor":0,"limit":200}'

If the response has has_more: true and a non-empty next_cursor, continue with the same input shape and the returned cursor until enough context has been collected or the pages are exhausted. For large libraries, collect a representative view rather than trying to summarize every paper.

Use library index fields only for vocabulary design:

  • papers[].title, papers[].year, papers[].item_type, and papers[].creators reveal recurring domains and methods;
  • papers[].tags and top-level tags reveal the user's current informal or imported tagging habits;
  • collections reveal project, corpus, and topic groupings;
  • repeated terms across titles, collections, and tags are stronger candidates than one-off terms.

Do not copy paper titles directly into tags. Convert observed library patterns into compact controlled vocabulary candidates that obey input.protocol and references/tag_standard.md. Do not directly read Zotero DB files, Zotero storage paths, plugin internals, or attachment paths to bypass Host Bridge.

If the Host Bridge CLI is unavailable, the command fails, the index is empty, or pagination cannot continue, keep working from existing_tags, protocol, and the user's answers. Add a concise warning such as Host Bridge library index unavailable; generated tags from user-provided context.

Interaction Flow

Ask concise questions until the vocabulary intent is clear. Do not ask about plugin internals, file formats, workflow hooks, or implementation details.

  1. Identify the user's research domains and recurring literature areas.
  2. Review the Host Bridge library index when available and identify recurring domains, methods, models, datasets, tools, collections, and informal tags.
  3. Identify the facets they actually want to govern: field, topic, method, model, ai_task, data, tool, status, match_status, or the subset allowed by input.protocol.facets.
  4. Ask about desired granularity: broad browse tags, mid-level retrieval tags, or fine-grained project tags.
  5. Review existing_tags and ask what is missing, over-specific, or underrepresented.
  6. Propose a compact vocabulary i
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • assets/input.schema.json
  • assets/output.schema.json
  • assets/runner.json
  • references/tag_standard.md
  • scripts/normalize_output.py
  • scripts/validate_output.py

FAQ

Что делает скилл tag-bootstrapper?

Interactive TagVocab bootstrap skill. Use when a Zotero Agents workflow needs to ask the user about research domains, tag facets, vocabulary granularity, and missing controlled-vocabulary entries, then produce initial or incremental TagVocab additions as add_tags objects with tag notes.

Как установить скилл tag-bootstrapper?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tag-bootstrapper запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tag-bootstrapper с