Borrowing it
Nothing to install: this file belongs to satoh-y-0323/claude-code-conductor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/satoh-y-0323/claude-code-conductor/main/.claude/skills/extract-lib/SKILL.mdgit clone --depth 1 https://github.com/satoh-y-0323/claude-code-conductorWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/satoh-y-0323/claude-code-conductor/extract-lib)<a href="https://agentmods.dev/skills/satoh-y-0323/claude-code-conductor/extract-lib"><img src="https://agentmods.dev/badge/skills/satoh-y-0323/claude-code-conductor/extract-lib/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/satoh-y-0323/claude-code-conductor/extract-lib"><img src="https://agentmods.dev/badge/skills/satoh-y-0323/claude-code-conductor/extract-lib.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.02727 |
| Opus 5.5 | $0.00013 | $0.01091 |
| Sonnet 5.5 | $0.00006 | $0.00545 |
| Haiku 4.5 | $0.00003 | $0.00273 |
Grade A, and why
extract-lib scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 256 lines — stays where its author put it; the contents beside it link to each section on GitHub.
extract-lib
複数プロジェクトのコードを横断解析し、共通要素を抽出してライブラリ設計・スケルトン生成を行う。
Step 0: 規約ファイルを読み込む
.claude/rules/coding-standards.md と .claude/rules/project-conventions.md を Read する。
どちらも存在しない場合: 以下を表示して終了する:
規約ファイルが見つかりません。先に /setup を実行してプロジェクト規約を設定してください。
存在する場合: 以下を抽出して以降のステップで使用する:
- 使用言語・フレームワーク(ファイル拡張子含む)
- 命名規則(クラス名・関数名・定数名のパターン)
- ファイル・ディレクトリ構成の慣習
- その他の重要な規約
Step 1: 解析対象プロジェクトのパスを収集する
1回目のパス入力
自由入力のため AskUserQuestion は使わず、テキストで尋ねる(AskUserQuestion と c3_ask_user_question は選択肢が必須):
解析対象の1つ目のプロジェクトの絶対パスを入力してください(例: C:/work/project-a)
Glob で {入力パス}/** を検索してパスが存在するか確認する。存在しない場合は「パスが見つかりません」と伝えて再入力させる。
2回目以降のパス追加
AskUserQuestion ツール:
{
"questions": [{
"question": "別のプロジェクトを追加しますか?",
"header": "パス追加",
"options": [
{ "label": "追加する", "description": "さらに別のプロジェクトパスを入力する" },
{ "label": "これで完了", "description": "入力済みのプロジェクトで解析を開始する" }
]
}]
}
「追加する」の場合は続けてパスを入力・検証し、「これで完了」になるまで繰り返す。 入力済みプロジェクトが1つのみの状態で「これで完了」が選ばれた場合は「最低2プロジェクト必要です」と伝えて再度選択させる。
Step 2: 出力形式を確認する
AskUserQuestion ツール:
{
"questions": [{
"question": "解析結果をどの形式で出力しますか?",
"header": "出力形式",
"options": [
{ "label": "設計のみ", "description": "共通化候補リストとライブラリ設計案をレポートとして出力する" },
{ "label": "設計 + スケルトン生成", "description": "設計案に加えてライブラリのスケルトンコードも生成する" }
]
}]
}
「設計 + スケルトン生成」が選ばれた場合、続けて出力先をテキストで尋ねる(自由入力のため AskUserQuestion は使わない):
生成するライブラリの出力先ディレクトリの絶対パスを入力してください(例: C:/work/shared-lib)
Step 3: 解析エージェントを起動する
Agent ツールで解析を実行する。以下のプロンプトを使用する:
あなたはコードベース横断解析エージェントです。
以下の複数プロジェクトを解析し、共通化すべき要素を抽出してください。
## 解析対象プロジェクト
{収集したプロジェクトパスのリスト}
## プロジェクト規約(.claude/rules/coding-standards.md / .claude/rules/project-conventions.md より)
{Step 0 で抽出した言語・フレームワーク・命名規則・その他規約}
## 探すもの
各プロジェクトから次を探す。検索は規約の言語・拡張子に合わせ、複数プロジェクトで類似が見つかったら本文を Read して比較する。
- 定数・マジック値(文字列・数値・タイムアウト値・URL パターン等)
- 小規模ユーティリティ(文字列・日付・数値フォーマット、バリデーション、変換)
- 共通ロジック(エラーハンドリング、ログ出力のラッパー、外部 API・HTTP 通信、ページネーション・ソート・フィルタリング)
- 静的型付き言語では、同一概念の型・インターフェース・DTO の個別定義
## 出力形式
以下の形式で結果をまとめること。
---
## 共通化候補リスト
### 高優先度(完全一致・ほぼ同一のコードが複数プロジェクトに存在)
| 種別 | 内容 | 発見場所(プロジェクト名:ファイルパス) |
|---|---|---|
| 定数 | ... | ProjectA: path, ProjectB: path |
### 中優先度(類似ロジック・命名が異なるが同一目的)
| 種別 | 内容 | 発見場所 | 差異の概要 |
|---|---|---|---|
### 低優先度(概念的共通・共通化は任意)
| 種別 | 内容 | 備考 |
|---|---|---|
## ライブラリ設計案
**推奨ライブラリ名**: {プロジェクト規約の命名規則に基づいた名前}
**ディレクトリ構成**:
{ライブラリ名}/ ├── {モジュール1}/ │ ├── {ファイル} │ └── ... ├── {モジュール2}/ └── ...
**公開API一覧**:
| モジュール | 名前 | 種別 | 責務 |
|---|---|---|---|
**移行時の注意点**: {既存プロジェクトからライブラリへ移行する際の注意事項}
---
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · -14 lines c92668f40e41
- 1mo ago Changed · -28 lines 2a99b5e9847d
- 1mo ago First seen · 298 lines · 32 tokens per session scan A ce8f436e4d4c
extract-lib is a skill published in the GitHub repository satoh-y-0323/claude-code-conductor (1 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 2,727 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other skills, from other repositories
orchestrator
Providerneutrales Protokoll zum Zerlegen komplexer Aufgaben, zum Beauftragen unabhängiger Worker und zur evidenzbasierten Abnahme ihrer Ergebnisse.
compare-race
Use when the user wants to send the same prompt to several LLMs and compare the answers - sequentially (stopwatch, clean per-lane timing) or in parallel (true race), with optional repetitions per model, judged by the starting model across quality, correctness, completeness, instruction fidelity and latency (time is…
stream-chain
Stream-JSON chaining for multi-agent pipelines, data transformation, and sequential workflows.
sql-reporting
Conventions and review steps for writing analytics SQL against the warehouse. Use whenever the task involves querying tables, building a report, or aggregating metrics.
playwright
Use when the task requires capturing or automating a real browser from the terminal.
python-package-management
Guide for managing packages in the Agent Framework Python monorepo, including creating new connector packages, versioning, and the lazy-loading pattern. Use this when adding, modifying, or releasing packages.