Asset Libraryのロゴ

Asset Library

コミュニティ
goodnight000
asset-library

Keep a persistent local library of reusable video-production assets across projects: footage, images, music, sound effects, characters, animation code and 3D sets. Use when searching for an existing asset before sourcing or building one, registering something another project is about to reuse, recording which assets a cut used, or checking a project's catalog at delivery.

概要

公開者goodnight000
リポジトリcstack
スキル名asset-library
スター
117
フォーク
21
同梱ファイル
3
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    goodnight000がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Asset Library」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/goodnight000/cstack/tree/main/skills/asset-library
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/goodnight000/cstack.git /tmp/cstack
mkdir -p .claude/skills
cp -r /tmp/cstack/skills/asset-library .claude/skills/asset-library
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAsset Libraryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAsset Libraryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Asset Libraryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Asset library

One SQLite database plus the files it points at, under one library root: the record of every reusable asset, each version of it, and every cut it appeared in. The files stay on disk where agents and editors open them.

LIB below means python3 SKILL_DIR/scripts/library.py (SKILL_DIR is this skill's folder; Python 3.9+, FFmpeg). LIB --help lists the commands, and LIB COMMAND --help gives each one's flags with an example. Every command prints JSON and exits 1 with an error and a hint.

Two words carry the records:

  • Original: one source work. A crop, re-encode or ducked mix is a variant of the same original (--work-id, --variant-role), so reuse limits count originals, not files.
  • Version: one immutable state of an asset. A media file's version is its content hash. A character, code kit or 3D set is a bundle, and each registration snapshots a version of it. A use names the version actually placed, never "latest".

Set up

Read ~/.asset-library/profile.md if it exists: it names the root, any local adapter to call instead of LIB, and the user's reuse rules. Run LIB check. With no library, ask once where it should live (a folder beside the user's video projects is a good default), run LIB init ROOT, and offer to write Root: `ROOT` into the profile.

1. Search before sourcing or building

Search by what the viewer sees or hears, not by the project's topic:

sh
LIB search "keyboard typing" --kind sfx --max-duration 0.5 --unused-in PROJECT
LIB show ID

show gives where the asset already appeared, the user's opinion in their words, its rights and its versions. Reuse a version as is (copy its snapshot from bundles/ID/VERSION/files/), restyle it (its use names the version you started from, with --modified), or build new. Reading an old bundle or project for its mechanics is always fine. An asset with unknown rights stays a candidate until the user decides.

2. Ingest media when it becomes a candidate

Run LIB ingest FILE --kind … --source-url … --creator … --license … while the provenance is still known. Ingest hashes the file, returns duplicate_of instead of a copy when the bytes already exist, copies it into the root, probes it and makes a preview. Describe a sound's --planned-use by the feeling it gives rather than where one cut placed it, so another project can find it. LIB archive ID hides what isn't worth finding again; an asset a past cut used is never deleted.

3. Register a bundle when it is about to be reused

When a new project is about to reuse a character, rig, kit, set, material, synthesised sound or helper script from an earlier one, register it from the project where it works (LIB register --help has a full example), then copy the snapshot into the new project and record that version when the cut uses it. The profile's reuse rules say what may recur.

What --help doesn't tell you:

  • Validation runs in a fresh copy of the snapshot, not in the project, with only PATH, HOME, LANG, TMPDIR and the names given with --validate-env. When it fails, the version is recorded as failed and the command exits 1: add the missing files to --files and register again.
  • The snapshot keeps file contents, not permission bits. Name the interpreter in the command (bash check.sh), or chmod +x in --validate-setup.
  • Validation proves the command exits 0, not that the result looks right. Make it render the example; a command that only parses the source proves nothing.
  • The same content gives the same version. Any changed file or setting adds a version, and old versions stay because past cuts point at them.

4. Record the cut

Record uses once the cut is delivered, from its final cue sheet or manifest after the last swap; uses recorded mid-project go stale when a track or clip changes. Record what the cut shows or plays and pin what was placed: file for media (it is hashed, and a file that isn't the library's copy is refused, so ingest it, as a variant if it was cropped or re-encoded), artifact_version for a bundle (from the copied snapshot's bundle.json), with modified when the project changed it. Detail such as "whoosh" goes in the cue.

LIB used ID --project … --cut … --role … --file … records one use. For a whole cut, list the entries in a JSON declaration kept with the project and run LIB used --from FILE, which records every entry or none; check and deliver read the same file:

json
{"project": "PROJECT", "cut": "v3", "selected": [
  {"id": "sfx-07", "role": "sfx", "file": "audio/sfx-07.flac", "cue": "keyboard", "output_time": 12.4},
  {"id": "walk-rig", "role": "character", "artifact_version": "9c01d5e3aa40", "modified": true}
]}

file is relative to the declaration's folder, and an empty selected list is valid. When a recorded use turns out wrong, record the cut that replaced it and add a caveat note to the asset.

Report the video and the catalog status separately; the video ships whatever state the catalog is in.

5. Check the record

LIB check --project P --cut C --declared FILE checks a cut's record without writing: every declared entry has its use with the right version, and nothing points at a missing file. It also lists unrecorded references, library assets named or byte-matched in the project folder but missing from the declaration; most are rejected candidates, so add one only if the cut really uses it. LIB deliver runs the same check and, when it passes, stores the cut's delivery row, listing the bundles registered from the project (--registered ID@VERSION, or --none REASON).

Notes

LIB note ID --kind opinion|test|rights|caveat --text "…" --source "…" appends a dated note. An opinion is the user's own words with the date and source, never inferred; a judge's or agent's reading is a caveat; a passing validation is a test.

Without the library

With no library and the user declining one, or with the tool failing, keep the project manifest that the producing skill describes and say the catalog was not updated. Change the database only through commands; LIB export writes a full JSON copy.

Before changing library.py or the schema, read records.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Asset Library」では何ができますか?

Keep a persistent local library of reusable video-production assets across projects: footage, images, music, sound effects, characters, animation code and 3D sets. Use when searching for an existing asset before sourcing or building one, registering something another project is about to reuse, recording which assets a cut used, or checking a project's catalog at delivery.

TypingMindでAsset Libraryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Asset Libraryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAsset Libraryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/goodnight000/cstack/tree/main/skills/asset-libraryを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Asset Libraryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Asset Libraryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAsset Libraryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Asset Library」は無料ですか?

はい。goodnight000がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇