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

empathy-ledger-dev

Empathy Ledgerの機能開発に着手する際や、プロジェクトのパターンをすぐに参照したい場合に、開発作業を円滑に進めるための情報を引き出すSkill。

📜 元の英語説明(参考)

Invoke this skill when: - Starting work on any Empathy Ledger feature - Need quick reference to project patterns

🇯🇵 日本人クリエイター向け解説

一言でいうと

Empathy Ledgerの機能開発に着手する際や、プロジェクトのパターンをすぐに参照したい場合に、開発作業を円滑に進めるための情報を引き出すSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して empathy-ledger-dev.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → empathy-ledger-dev フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Empathy Ledger 開発スキル

このスキルは、文化的安全性プロトコルを備えた先住民族コミュニティ向けのマルチテナント型ストーリーテリングプラットフォームである Empathy Ledger v2 プラットフォームの開発に関する包括的なコンテキストを提供します。

クイックリファレンス

プロジェクト構成

src/
├── app/                    # Next.js 15 App Router
│   ├── api/               # API ルート
│   ├── vault/             # Story Vault ダッシュボード
│   └── stories/           # ストーリーページ
├── components/            # React コンポーネント
│   ├── ui/               # shadcn/ui ベース
│   ├── vault/            # Story Vault コンポーネント
│   └── cultural/         # 文化プロトコル UI
├── lib/                   # ユーティリティとサービス
│   ├── services/         # ビジネスロジックサービス
│   ├── hooks/            # React フック
│   └── ai/               # AI 統合
└── types/                # TypeScript 型
    └── database/         # ドメインごとの Supabase 型

主要な概念

OCAP Principles (先住民族のデータ主権):

  • Ownership: ストーリーテラーは自身の物語を所有します
  • Control: ユーザーは誰が自身のストーリーにアクセスできるかを制御します
  • Access: 文化的な感受性に基づいた段階的なアクセス
  • Possession: データはいつでもエクスポート/削除できます

マルチテナントアーキテクチャ:

  • すべてのテーブルには分離のための tenant_id があります
  • RLS ポリシーはテナントの境界を強制します
  • 組織 = テナント

文化的な感受性レベル:

  • standard - 一般的な共有が許可されています
  • medium - コミュニティのコンテキストが必要です
  • high - 長老のレビューが推奨されます
  • sacred - 長老の承認が必須であり、外部共有はできません

一般的なパターン

API ルート認証:

const supabase = createRouteHandlerClient({ cookies })
const { data: { user }, error } = await supabase.auth.getUser()
if (error || !user) {
  return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
}

ストーリーの所有権チェック:

const isOwner = story.author_id === user.id || story.storyteller_id === user.id

文化的なカラーパレット:

  • clay-* - プライマリ、ストーリーテラー要素
  • sage-* - コミュニティ、長老の承認
  • sky-* - 組織、信頼
  • ember-* - 警告、感受性

データベースドメイン

ドメイン ファイル 内容
ユーザー/プロファイル user-profile.ts プロファイル、設定
組織 organization-tenant.ts テナント、メンバーシップ
プロジェクト project-management.ts プロジェクト、マイルストーン
コンテンツ content-media.ts ストーリー、メディア
文化 cultural-protocols.ts 感受性、承認
法的 consent-legal.ts 同意、GDPR
ストーリーの所有権 story-ownership.ts 配布、埋め込み

主要なサービス

  • EmbedService - ドメイン制限付きのストーリー埋め込みを管理します
  • DistributionService - 外部共有を追跡します
  • RevocationService - カスケード失効
  • GDPRService - 匿名化、データエクスポート
  • AuditService - アクションロギング

スラッシュコマンド

  • /design-component [description] - React コンポーネントを作成します
  • /database-migration [description] - Supabase マイグレーションを作成します
  • /review-cultural [code/feature] - 文化的な感受性のレビュー
  • /review-security [code/endpoint] - セキュリティ監査
  • /generate-e2e-test [feature] - Playwright テストを作成します
  • /api-endpoint [description] - API ルートを作成します

特殊なエージェント

  • frontend-designer - 文化的なデザインによる UI/UX
  • database-architect - Supabase/PostgreSQL
  • cultural-reviewer - OCAP コンプライアンス
  • security-auditor - GDPR とセキュリティ
  • testing-automation - Playwright E2E

このスキルを使用するタイミング

以下の場合にこのスキルを呼び出してください:

  • Empathy Ledger の機能の開発を開始するとき
  • プロジェクトパターンへのクイックリファレンスが必要なとき
  • コンプライアンスのためにコードをレビューするとき
  • 新しいコンポーネント/エンドポイントを作成するとき

参照ファイル

以下のファイルは詳細なコンテキストを提供します:

  • CLAUDE.md - プロジェクトの指示
  • .claude/agents/*.md - 特殊なエージェントのプロンプト
  • .claude/commands/*.md - スラッシュコマンドの定義
  • src/types/database/ - データベースの型定義
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Empathy Ledger Development Skill

This skill provides comprehensive context for developing the Empathy Ledger v2 platform - a multi-tenant storytelling platform for Indigenous communities with cultural safety protocols.

Quick Reference

Project Structure

src/
├── app/                    # Next.js 15 App Router
│   ├── api/               # API routes
│   ├── vault/             # Story Vault dashboard
│   └── stories/           # Story pages
├── components/            # React components
│   ├── ui/               # shadcn/ui base
│   ├── vault/            # Story Vault components
│   └── cultural/         # Cultural protocol UI
├── lib/                   # Utilities and services
│   ├── services/         # Business logic services
│   ├── hooks/            # React hooks
│   └── ai/               # AI integration
└── types/                # TypeScript types
    └── database/         # Supabase types by domain

Key Concepts

OCAP Principles (Indigenous Data Sovereignty):

  • Ownership: Storytellers own their narratives
  • Control: Users control who accesses their stories
  • Access: Tiered access based on cultural sensitivity
  • Possession: Data can be exported/deleted anytime

Multi-Tenant Architecture:

  • All tables have tenant_id for isolation
  • RLS policies enforce tenant boundaries
  • Organizations = tenants

Cultural Sensitivity Levels:

  • standard - General sharing allowed
  • medium - Community context required
  • high - Elder review recommended
  • sacred - Elder approval mandatory, no external sharing

Common Patterns

API Route Authentication:

const supabase = createRouteHandlerClient({ cookies })
const { data: { user }, error } = await supabase.auth.getUser()
if (error || !user) {
  return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
}

Story Ownership Check:

const isOwner = story.author_id === user.id || story.storyteller_id === user.id

Cultural Color Palette:

  • clay-* - Primary, storyteller elements
  • sage-* - Community, elder approval
  • sky-* - Organization, trust
  • ember-* - Warnings, sensitivity

Database Domains

Domain File Contents
User/Profile user-profile.ts Profiles, preferences
Organization organization-tenant.ts Tenants, memberships
Projects project-management.ts Projects, milestones
Content content-media.ts Stories, media
Cultural cultural-protocols.ts Sensitivity, approvals
Legal consent-legal.ts Consent, GDPR
Story Ownership story-ownership.ts Distributions, embeds

Key Services

  • EmbedService - Manage story embeds with domain restrictions
  • DistributionService - Track external shares
  • RevocationService - Cascade revocation
  • GDPRService - Anonymization, data export
  • AuditService - Action logging

Slash Commands

  • /design-component [description] - Create React component
  • /database-migration [description] - Create Supabase migration
  • /review-cultural [code/feature] - Cultural sensitivity review
  • /review-security [code/endpoint] - Security audit
  • /generate-e2e-test [feature] - Create Playwright test
  • /api-endpoint [description] - Create API route

Specialized Agents

  • frontend-designer - UI/UX with cultural design
  • database-architect - Supabase/PostgreSQL
  • cultural-reviewer - OCAP compliance
  • security-auditor - GDPR and security
  • testing-automation - Playwright E2E

When to Use This Skill

Invoke this skill when:

  • Starting work on any Empathy Ledger feature
  • Need quick reference to project patterns
  • Reviewing code for compliance
  • Creating new components/endpoints

Reference Files

The following files provide detailed context:

  • CLAUDE.md - Project instructions
  • .claude/agents/*.md - Specialized agent prompts
  • .claude/commands/*.md - Slash command definitions
  • src/types/database/ - Database type definitions