jpskill.com
🛠️ 開発・MCP コミュニティ

shirushi

Document ID management for Git repositories. Validates, assigns, and tracks immutable doc_ids across Markdown/YAML files. Use when working with doc_id, document IDs, "@see docid" references, document integrity validation, or shirushi commands.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o shirushi.zip https://jpskill.com/download/17747.zip && unzip -o shirushi.zip && rm shirushi.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17747.zip -OutFile "$d\shirushi.zip"; Expand-Archive "$d\shirushi.zip" -DestinationPath $d -Force; ri "$d\shirushi.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して shirushi.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → shirushi フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Shirushi - ドキュメントIDマネージャー

Shirushiは、CI統合により、Gitリポジトリ全体で一貫性のある、不変のドキュメントIDを保証します。

コマンド

コマンド 目的
shirushi lint doc_idとインデックスの整合性を検証します
shirushi scan メタデータ付きのドキュメントを一覧表示します
shirushi show <id> doc_idでドキュメントの情報を取得します
shirushi assign 新しいドキュメントにIDを割り当てます
shirushi rehash コンテンツのハッシュを再計算します

一般的なワークフロー

コミット前の検証

shirushi lint --base HEAD~1

IDによるドキュメントの検索

shirushi show PCE-SPEC-2025-0001-G

新しいドキュメントへのdoc_idの追加

shirushi assign docs/new-spec.md

すべてのドキュメントを一覧表示

shirushi scan --format table

PRでの変更の確認

shirushi lint --base origin/main --check-references

設定

設定は.shirushi.ymlで定義されます。

id_format: "{COMP}-{KIND}-{YEAR4}-{SER4}-{CHK1}"
dimensions:
  COMP:
    type: enum
    values: ["API", "UI", "DB"]
  KIND:
    type: enum_from_doc_type
    mapping:
      spec: SPEC
      adr: ADR
  YEAR4:
    type: year
    digits: 4
  SER4:
    type: serial
    digits: 4
    scope: ["COMP", "KIND", "YEAR4"]
  CHK1:
    type: checksum
    algorithm: mod26AZ
    digits: 1

ドキュメント形式

ドキュメントはYAML frontmatterを使用します。

---
doc_id: API-SPEC-2025-0001-G
title: API Specification
doc_type: spec
---

# Content here...

@see docid 参照

コードコメントでドキュメントを参照します。

// @see API-SPEC-2025-0001-G
function handleRequest() { ... }

Shirushiはこれらの参照を追跡し、参照されているドキュメントが変更された場合に警告します。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Shirushi - Document ID Manager

Shirushi ensures consistent, immutable document IDs across Git repositories with CI integration.

Commands

Command Purpose
shirushi lint Validate doc_ids and index integrity
shirushi scan List documents with metadata
shirushi show <id> Get document info by doc_id
shirushi assign Assign IDs to new documents
shirushi rehash Recalculate content hashes

Common Workflows

Validate before commit

shirushi lint --base HEAD~1

Find document by ID

shirushi show PCE-SPEC-2025-0001-G

Add doc_id to new document

shirushi assign docs/new-spec.md

List all documents

shirushi scan --format table

Check for changes in PR

shirushi lint --base origin/main --check-references

Configuration

Configuration is defined in .shirushi.yml:

id_format: "{COMP}-{KIND}-{YEAR4}-{SER4}-{CHK1}"
dimensions:
  COMP:
    type: enum
    values: ["API", "UI", "DB"]
  KIND:
    type: enum_from_doc_type
    mapping:
      spec: SPEC
      adr: ADR
  YEAR4:
    type: year
    digits: 4
  SER4:
    type: serial
    digits: 4
    scope: ["COMP", "KIND", "YEAR4"]
  CHK1:
    type: checksum
    algorithm: mod26AZ
    digits: 1

Document Format

Documents use YAML frontmatter:

---
doc_id: API-SPEC-2025-0001-G
title: API Specification
doc_type: spec
---

# Content here...

@see docid References

Reference documents in code comments:

// @see API-SPEC-2025-0001-G
function handleRequest() { ... }

Shirushi tracks these references and warns when referenced documents change.