मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग10k · #12011

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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:

  1. Read it before asking explorer for a new plan.
  2. Check whether each listed path exists under .slim/clonedeps/repos/.
  3. Reuse existing cloned repos when they already satisfy the user's task.
  4. 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:

  1. Verify refs manually where possible with git ls-remote.
  2. 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.
  3. 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.
  4. Present the plan to the user with dependency, repo URL, ref, reason, and caveats.
  5. 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.

repo: alvinunreal/oh-my-opencode-slim

लोकप्रियता

GitHub स्टार
10k
रैंकिंग में स्थान
#12011
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

cli-review

10k

आपके एजेंट को pull request खोलने से पहले मौजूदा branch पर Greptile कोड समीक्षा चलाने देती है, फिर नतीजों का सादी भाषा में सार देती है।

कोडिंगसामान्य कोडिंग

ai-estimates

10k

आपके एजेंट को यह अनुमान लगाने में मदद करती है कि AI के साथ काम करने पर काम कितना समय लेगा, तेज़ AI काम को इंसानी और बाहरी देरी से अलग करते हुए।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

codemap

10k

किसी अनजान कोड प्रोजेक्ट का संरचित नक्शा बनाती है, ताकि आपका एजेंट उसके मुख्य हिस्से जल्दी ढूँढ सके। कोडबेस का नक्शा माँगने पर सबसे अच्छा।

कोडिंगसामान्य कोडिंग

deanchor

10k

आपके एजेंट को उदाहरणों की नकल किए बिना उनसे सीखने देती है: उनके पीछे का साझा सिद्धांत खोजकर उसके अनुसार कुछ नया लिखकर।

AI और एजेंटप्रॉम्प्ट और LLM

मिलती-जुलती skills