tag-taxonomy
Enforce consistent tagging across the Obsidian wiki using a controlled vocabulary. Use this skill when the user says "fix my tags", "normalize tags", "clean up tags", "tag audit", "what tags should I use", "tag taxonomy", or whenever you're creating or updating wiki pages and need to choose the right tags. Also trigger when the user asks about tag conventions, wants to add a new tag to the taxonomy, or says "my tags are a mess". Always consult this skill's taxonomy file before assigning tags to any wiki page.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o tag-taxonomy.zip https://jpskill.com/download/22836.zip && unzip -o tag-taxonomy.zip && rm tag-taxonomy.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22836.zip -OutFile "$d\tag-taxonomy.zip"; Expand-Archive "$d\tag-taxonomy.zip" -DestinationPath $d -Force; ri "$d\tag-taxonomy.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
tag-taxonomy.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
tag-taxonomyフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[スキル名] tag-taxonomy
タグ分類 — Wikiタグの統制語彙
Wiki全体で一貫したタグ付けを徹底するため、タグを統制語彙に正規化します。
開始する前に
- 設定の解決 —
llm-wiki/SKILL.mdにある設定解決プロトコルに従ってください(.env→~/.obsidian-wiki/config→ プロンプト設定のためにCWDを遡ります)。これによりOBSIDIAN_VAULT_PATHが得られます。 $OBSIDIAN_VAULT_PATH/_meta/taxonomy.mdを読んでください — これが正規のタグリストです。index.mdを読んで、Wikiの範囲を理解してください。
分類ファイル
正規のタグ語彙は $OBSIDIAN_VAULT_PATH/_meta/taxonomy.md にあります。これは以下を定義します。
- 正規タグ — 使用すべきタグ
- エイリアス — 正規形式にマッピングすべき一般的な代替タグ
- ルール — 1ページあたり最大5タグ、小文字/ハイフン区切り、狭い範囲よりも広い範囲を優先
- 移行ガイド — 既知の不整合に対する具体的な名称変更
タグ付けを行う前に、必ずこのファイルを読んでください。 これが信頼できる情報源です。
予約済みシステムタグ
visibility/ は特別なルールを持つ予約済みタググループです。これらのタグはドメインタグやタイプタグではなく、分類語彙とは別に管理されます。
| タグ | 目的 |
|---|---|
visibility/public |
明示的に公開 — すべてのモードで表示されます(タグなしと同じ) |
visibility/internal |
チームのみ — フィルタリングされたクエリ/エクスポートモードでは除外されます |
visibility/pii |
機密データ — フィルタリングされたクエリ/エクスポートモードでは除外されます |
visibility/ タグのルール:
- 5タグ制限にはカウントされません。
- 1ページにつき1つの
visibility/タグのみ。 - コンテンツが明らかに公開されている場合は完全に省略します — タグは不要です。
- コンテンツが技術的であるという理由だけで
visibility/internalを追加しないでください。真にチーム限定の知識にのみ使用してください。 - タグ監査を実行する際は、
visibility/タグの使用状況を別途報告してください — 未知または非正規としてフラグを立てないでください。
タグを正規化する際、visibility/ タグはそのままにしておいてください — エイリアスマッピングの対象ではありません。
モード1:タグ監査
ユーザーがタグの現在の状態を確認したい場合:
ステップ1:すべてのページをスキャンする
Glob: $VAULT_PATH/**/*.md (_archives/, .obsidian/, _meta/ を除く)
Extract: YAMLフロントマターのtagsフィールド
ステップ2:タグ頻度テーブルを作成する
見つかった各タグについて、それが使用されているページ数をカウントします。以下をフラグ付けします。
- 未知のタグ — 分類の正規リストにないタグ
- エイリアスタグ — 正規形式の代わりにエイリアスを使用しているタグ(例:
reactの代わりにnextjs) - 過剰タグ付けされたページ — 5つ以上のタグを持つページ
- タグなしページ — タグがない、またはタグフィールドが空のページ
ステップ3:レポート
## タグ監査レポート
### 概要
- ユニークなタグの総数: 47
- 使用されている正規タグ: 32
- 見つかった非正規タグ: 15
- タグ制限(5)を超過したページ: 3
- タグなしページ: 2
### 見つかった非正規タグ
| 現在のタグ | → 正規 | 影響を受けるページ |
| ----------- | ----------- | -------------- |
| `nextjs` | `react` | 4 |
| `next-js` | `react` | 2 |
| `robotics` | `ml` | 1 |
| `windows98` | `retro` | 3 |
### 未知のタグ(分類にない)
| タグ | ページ数 | 推奨事項 |
| ------------ | ----- | -------------------------------- |
| `flutter` | 1 | Frameworksの下に分類に追加する |
| `kubernetes` | 2 | DevOpsの下に分類に追加する |
### 過剰タグ付けされたページ
| ページ | タグ数 | タグ |
| ---------------------- | --------- | -------------------- |
| `entities/jane-doe.md` | 8 | ai, ml, founder, ... |
モード2:タグ正規化
ユーザーがタグを修正したい場合:
ステップ1:監査を実行する(上記)
ステップ2:修正を適用する
非正規タグを持つ各ページについて:
- ページを読み込む
- エイリアスタグを分類からの正規形式に置き換える
- ページに5つ以上のタグがある場合、削除すべきタグを提案する(最も具体的/関連性の高いものを保持する)
- 更新されたフロントマターを書き込む
例:
# Before
tags: [nextjs, ai, ml-engineer, windows98, creative-coding, game, 8-bit, portfolio]
# After
tags: [react, ai, ml, retro, generative-art]
ステップ3:未知のタグを処理する
分類にない、かつエイリアスでもないタグの場合:
- そのタグが2ページ以上で使用されている場合、分類に追加することを提案する
- そのタグが1ページのみで使用されている場合、最も近い正規タグに置き換えることを提案する
- 未知のタグに変更を加える前に、ユーザーに確認する
ステップ4:分類を更新する
新しい正規タグが合意された場合、それらを _meta/taxonomy.md の適切なセクションに追加します。
モード3:新しいページのタグ付け
Wikiページを作成し、タグを選択する必要がある場合:
_meta/taxonomy.mdを読む- ページを最もよく表すタグを最大5つ選択します。
- 1〜2つのドメインタグ(どの主題領域か)
- 1つのタイプタグ(どのような種類のものか)
- 0〜1つのプロジェクトタグ(プロジェクト固有の場合)
- 0〜1つの追加の記述タグ
- 正規タグのみを使用し、エイリアスは絶対に使用しない
- 既存のタグが合わない場合、分類に追加する価値があるか確認する
モード4:新しいタグの追加
ユーザーが語彙にタグを追加したい場合:
- 既存のタグがその概念をすでにカバーしていないか確認する(もしそうなら提案する)
- 真に新しい場合、それがどのセクション(ドメイン、タイプ、プロジェクト)に属するかを決定する
_meta/taxonomy.mdに以下を追加する。- 正規タグ名
- その用途
- リダイレクトするエイリアス
いずれかのタグ操作後
log.md に追記します。
- [TIMESTAMP] TAG_AUDIT tags_normalized=N unknown_tags=M pages_modified=P
または正規化の場合:
- [TIMESTAMP] TAG_NORMALIZE tags_renamed=N pages_modified=M new_tags_added=P
hot.md — $OBSIDIAN_VAULT_PATH/hot.md を読みます(存在しない場合は wiki-ingest のテンプレートから作成します)。最近のアクティビティを1行の要約で更新します — 例:「タグ監査:28ページで14タグを正規化。2つの新しい正規タグを追加。」最後の3つの操作を保持します。updated タイムスタンプを更新します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Tag Taxonomy — Controlled Vocabulary for Wiki Tags
You are enforcing consistent tagging across the wiki by normalizing tags to a controlled vocabulary.
Before You Start
- Resolve config — follow the Config Resolution Protocol in
llm-wiki/SKILL.md(walk up CWD for.env→~/.obsidian-wiki/config→ prompt setup). This givesOBSIDIAN_VAULT_PATH - Read
$OBSIDIAN_VAULT_PATH/_meta/taxonomy.md— this is the canonical tag list - Read
index.mdto understand the wiki's scope
The Taxonomy File
The canonical tag vocabulary lives at $OBSIDIAN_VAULT_PATH/_meta/taxonomy.md. It defines:
- Canonical tags — the tags that should be used
- Aliases — common alternatives that should be mapped to the canonical form
- Rules — max 5 tags per page, lowercase/hyphenated, prefer broad over narrow
- Migration guide — specific renames for known inconsistencies
Always read this file before tagging. It's the source of truth.
Reserved System Tags
visibility/ is a reserved tag group with special rules. These tags are not domain or type tags and are managed separately from the taxonomy vocabulary:
| Tag | Purpose |
|---|---|
visibility/public |
Explicitly public — shown in all modes (same as no tag) |
visibility/internal |
Team-only — excluded in filtered query/export mode |
visibility/pii |
Sensitive data — excluded in filtered query/export mode |
Rules for visibility/ tags:
- They do not count toward the 5-tag limit
- Only one
visibility/tag per page - Omit entirely when content is clearly public — no tag needed
- Never add
visibility/internaljust because content is technical; use it only for genuinely team-restricted knowledge - When running a tag audit, report
visibility/tag usage separately — do not flag them as unknown or non-canonical
When normalizing tags, leave visibility/ tags untouched — they are not subject to alias mapping.
Mode 1: Tag Audit
When the user wants to see the current state of tags:
Step 1: Scan all pages
Glob: $VAULT_PATH/**/*.md (excluding _archives/, .obsidian/, _meta/)
Extract: tags field from YAML frontmatter
Step 2: Build a tag frequency table
For each tag found, count how many pages use it. Flag:
- Unknown tags — not in the taxonomy's canonical list
- Alias tags — using an alias instead of the canonical form (e.g.,
nextjsinstead ofreact) - Over-tagged pages — pages with more than 5 tags
- Untagged pages — pages with no tags or empty tags field
Step 3: Report
## Tag Audit Report
### Summary
- Total unique tags: 47
- Canonical tags used: 32
- Non-canonical tags found: 15
- Pages over tag limit (5): 3
- Untagged pages: 2
### Non-Canonical Tags Found
| Current Tag | → Canonical | Pages Affected |
| ----------- | ----------- | -------------- |
| `nextjs` | `react` | 4 |
| `next-js` | `react` | 2 |
| `robotics` | `ml` | 1 |
| `windows98` | `retro` | 3 |
### Unknown Tags (not in taxonomy)
| Tag | Pages | Recommendation |
| ------------ | ----- | -------------------------------- |
| `flutter` | 1 | Add to taxonomy under Frameworks |
| `kubernetes` | 2 | Add to taxonomy under DevOps |
### Over-Tagged Pages
| Page | Tag Count | Tags |
| ---------------------- | --------- | -------------------- |
| `entities/jane-doe.md` | 8 | ai, ml, founder, ... |
Mode 2: Tag Normalization
When the user wants to fix the tags:
Step 1: Run audit (above)
Step 2: Apply fixes
For each page with non-canonical tags:
- Read the page
- Replace alias tags with their canonical form from the taxonomy
- If page has > 5 tags, suggest which to drop (keep the most specific/relevant ones)
- Write the updated frontmatter
Example:
# Before
tags: [nextjs, ai, ml-engineer, windows98, creative-coding, game, 8-bit, portfolio]
# After
tags: [react, ai, ml, retro, generative-art]
Step 3: Handle unknowns
For tags that aren't in the taxonomy and aren't aliases:
- If the tag is used on 2+ pages, suggest adding it to the taxonomy
- If the tag is used on 1 page, suggest replacing it with the closest canonical tag
- Ask the user before making changes to unknown tags
Step 4: Update taxonomy
If new canonical tags were agreed upon, append them to _meta/taxonomy.md in the correct section.
Mode 3: Tagging a New Page
When you're creating a wiki page and need to choose tags:
- Read
_meta/taxonomy.md - Select up to 5 tags that best describe the page:
- 1-2 domain tags (what subject area)
- 1 type tag (what kind of thing)
- 0-1 project tags (if project-specific)
- 0-1 additional descriptive tags
- Use only canonical tags — never aliases
- If no existing tag fits, check if it's worth adding to the taxonomy
Mode 4: Adding a New Tag
When the user wants to add a tag to the vocabulary:
- Check if an existing tag already covers the concept (suggest it if so)
- If genuinely new, determine which section it belongs in (Domain, Type, Project)
- Add it to
_meta/taxonomy.mdwith:- The canonical tag name
- What it's used for
- Any aliases to redirect
After Any Tag Operation
Append to log.md:
- [TIMESTAMP] TAG_AUDIT tags_normalized=N unknown_tags=M pages_modified=P
Or for normalization:
- [TIMESTAMP] TAG_NORMALIZE tags_renamed=N pages_modified=M new_tags_added=P
hot.md — Read $OBSIDIAN_VAULT_PATH/hot.md (create from the template in wiki-ingest if missing). Update Recent Activity with a one-line summary — e.g. "Tag audit: normalized 14 tags across 28 pages; 2 new canonical tags added." Keep the last 3 operations. Update updated timestamp.