clonedeps
できること
このスキルは、重要な依存関係のライブラリのソースコードを、プロジェクトが無視するローカルのフォルダにコピーします。ライブラリの内部の仕組みを理解する必要がある開発者向けです。
使う場面
- ✓ライブラリやSDKがどう動くかを、そのソースコードから理解する必要があるとき。
- ✓ドキュメントでは説明されていない、ライブラリの内部の動きに依存するバグがあるとき。
- ✓進行中のプロジェクトのために、主要な依存関係のリポジトリをローカルで読めるようにしたいとき。
スキルのリンク
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このプロジェクトが依存する主なライブラリのソースコードをコピーし、それらがリトライをどう扱っているかを説明できるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
このスキルは、まず既存の複製済みのリポジトリの一覧があるかを確認し、役立つものがあれば再利用します。そして、タスクに関係する依存関係を選んでから、それらを複製します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Clonedeps Skill
You help users make a small set of important dependency source repositories locally readable to OpenCode.
This is a workflow skill, not a command wrapper. Do not use a helper script for
dependency detection, ref validation, cloning, status, or cleanup. The
orchestrator and @explorer do the repo-specific thinking; the orchestrator
performs the approved filesystem/git operations directly.
Workflow
Step 1: Check Existing State
First check whether .slim/clonedeps.json exists.
If it exists:
- Read it before asking explorer for a new plan.
- Check whether each listed
pathexists under.slim/clonedeps/repos/. - Reuse existing cloned repos when they already satisfy the user's task.
- Only ask explorer for new recommendations if the existing manifest is missing, stale, or insufficient for the current task.
Do not rescan/re-plan from scratch when the manifest already has useful entries.
Step 2: Ask Explorer for the Clone Plan
Delegate dependency discovery and source resolution to @explorer.
Use this prompt:
Understand this project first, then recommend remote source repos that would
help a developer work on it.
Read enough of the current repo to understand:
- what the project does
- its main architecture
- the important integration points
- what external systems or libraries it depends on in practice
Think like a developer trying to debug or extend this project.
Which remote repositories, if cloned locally, would actually help understand the
codebase or solve likely implementation/debugging tasks?
Do not make a dependency dump. Most dependencies are not worth cloning.
Recommend a repo only when its source code would be more useful than docs or the
current repo alone.
For each recommendation, include:
- repo name
- repo URL
- suggested ref/tag/commit if known
- why cloning this source would help
- when it would be useful
- caveats
Also include:
- current-repo files/folders to inspect first
- repos/dependencies you considered but would not clone
Keep it small. Prefer 0–3 strong recommendations over 5 weak ones. If nothing
clearly needs cloning, say so.
Explorer should return a small plan with:
- dependency name;
- current version/range if discoverable;
- official source repository URL;
- tag/commit/ref to check out;
- package subdirectory if the source is a monorepo;
- reason local source helps;
- caveats such as huge repo, missing tag, or uncertain version mapping.
Prefer at most 3-5 core dependencies. Include user-mentioned dependencies and central frameworks, SDKs, ORMs, runtime/plugin APIs, or build/runtime tools. Do not clone tiny utilities, transitive dependencies, or dev-only tools unless they are directly relevant to the active task.
Step 3: Verify and Confirm the Plan
The orchestrator owns final approval. Before cloning:
- Verify refs manually where possible with
git ls-remote. - Prefer pinned tags or commit SHAs. If no exact tag exists, ask explorer to find the correct module-specific tag/commit or explain the fallback.
- Only use HTTPS GitHub/GitLab-style repository URLs by default. Reject
file://, SSH URLs, local paths, URLs with embedded credentials, and private or auth-required repositories unless the user explicitly approves that case. - Present the plan to the user with dependency, repo URL, ref, reason, and caveats.
- Ask for confirmation before network cloning unless the user explicitly asked to clone immediately.
Step 4: Update Ignore Files
Before cloning artifacts or cleaning cloned dependencies, inspect existing
.gitignore and .ignore. Update the managed block in place when present;
otherwise append it. Add only the missing exact lines below, never duplicate
entries or modify unrelated rules. These blocks keep cloned artifacts git-local
while the .ignore allowlist keeps them readable to OpenCode.
.gitignore:
# BEGIN oh-my-opencode-slim clonedeps
.slim/clonedeps/repos/
# END oh-my-opencode-slim clonedeps
.ignore:
# BEGIN oh-my-opencode-slim clonedeps
!.slim/
!.slim/clonedeps.json
!.slim/clonedeps/
!.slim/clonedeps/repos/
!.slim/clonedeps/repos/**
.slim/clonedeps/repos/**/.git/
.slim/clonedeps/repos/**/.git/**
# END oh-my-opencode-slim clonedeps
Step 5: Clone Sources Manually
Create one folder per source repository under:
.slim/clonedeps/repos/<safe-repo-name>/
Derive the safe name from the repository owner/name, not from the package
よくある質問
複製したリポジトリはどこに保存されますか?
プロジェクトの.slimディレクトリの中のローカルのフォルダに保存され、プロジェクトはそれを無視します。
いつ使うべきではありませんか?
API やドキュメントの通常の質問のように、ドキュメントを読めば足りる場合です。
以前の複製を再利用しますか?
はい。既存の一覧に役立つリポジトリがあれば、最初からやり直す代わりにそれを使います。
詳細
作者による元の説明
Clone important project dependency source code into an ignored local workspace so OpenCode can inspect library internals. Use when the user asks to clone dependencies, inspect dependency/source internals, understand SDK/framework behavior from source, debug library implementation details, or make core dependency repos locally readable. Do not use for ordinary API/docs questions where @explorer is enough.
人気
- GitHubのスター
- 10k
- ランキング
- #12011
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
cli-review
10kエージェントが、プルリクエストを開く前に、現在のブランチでGreptileのコードレビューを実行し、結果を平易な言葉でまとめられるよう支援します。
ai-estimates
10kエージェントが、人がAIと一緒に作業するときに、作業にどのくらい時間がかかるかを見積もり、速いAIの作業と、人や外部による遅れを分けられるよう支援します。
codemap
10kエージェントが、なじみのないコードプロジェクトの構造化された地図を作り、その主要な部分を素早く見つけられるよう支援します。コードベースの地図を頼んだときに最適です。
deanchor
10kエージェントが、例を複製せずに学べるよう支援します。例の背後にある共通の原則を見つけ、それに従って新しいものを書きます。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。