clonedeps
यह क्या करती है
यह स्किल महत्वपूर्ण dependency लाइब्रेरी का स्रोत कोड एक स्थानीय फ़ोल्डर में कॉपी करती है, जिसे प्रोजेक्ट अनदेखा करता है। यह उन डेवलपरों के लिए है जिन्हें समझना है कि कोई लाइब्रेरी अंदर से कैसे काम करती है।
कब इस्तेमाल करें
- ✓जब आपको समझना हो कि कोई लाइब्रेरी या SDK अपने स्रोत कोड से कैसे काम करती है।
- ✓जब कोई बग लाइब्रेरी के आंतरिक व्यवहार पर निर्भर हो, जिसे दस्तावेज़ नहीं समझाते।
- ✓जब चल रहे प्रोजेक्ट के लिए मुख्य dependency repositories स्थानीय रूप से पढ़ने लायक चाहिए।
Skill का लिंक
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस प्रोजेक्ट की मुख्य लाइब्रेरी का स्रोत कोड कॉपी कीजिए, ताकि आप बता सकें कि वे retries कैसे संभालती हैं।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल पहले मौजूदा cloned repositories की सूची जाँचती है और जो पहले से काम कर रहा है, उसे दोबारा इस्तेमाल करती है। फिर वह क्लोन करने से पहले तय करती है कि कार्य के लिए कौन सी dependencies मायने रखती हैं।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
cloned repositories कहाँ रखी जाती हैं?
प्रोजेक्ट के .slim फ़ोल्डर के अंदर एक स्थानीय फ़ोल्डर में, जिसे प्रोजेक्ट अनदेखा करता है।
इसे कब इस्तेमाल न करें?
सामान्य API या दस्तावेज़ सवालों के लिए, जहाँ दस्तावेज़ पढ़ना काफ़ी है।
क्या यह पुराने क्लोन दोबारा इस्तेमाल करती है?
हाँ। अगर मौजूदा सूची में उपयोगी repositories हैं, तो स्किल उन्हें शुरू से करने के बजाय इस्तेमाल करती है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
cli-review
10kआपके एजेंट को pull request खोलने से पहले मौजूदा branch पर Greptile कोड समीक्षा चलाने देती है, फिर नतीजों का सादी भाषा में सार देती है।
ai-estimates
10kआपके एजेंट को यह अनुमान लगाने में मदद करती है कि AI के साथ काम करने पर काम कितना समय लेगा, तेज़ AI काम को इंसानी और बाहरी देरी से अलग करते हुए।
codemap
10kकिसी अनजान कोड प्रोजेक्ट का संरचित नक्शा बनाती है, ताकि आपका एजेंट उसके मुख्य हिस्से जल्दी ढूँढ सके। कोडबेस का नक्शा माँगने पर सबसे अच्छा।
deanchor
10kआपके एजेंट को उदाहरणों की नकल किए बिना उनसे सीखने देती है: उनके पीछे का साझा सिद्धांत खोजकर उसके अनुसार कुछ नया लिखकर।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।