clonedeps
Was er macht
Dieser Skill kopiert den Quellcode wichtiger Abhängigkeitsbibliotheken in einen lokalen Ordner, den das Projekt ignoriert. Er ist für Entwickler gedacht, die verstehen müssen, wie eine Bibliothek intern funktioniert.
Wann du ihn nutzt
- ✓Wenn du verstehen musst, wie eine Bibliothek oder ein SDK aus dem Quellcode funktioniert.
- ✓Wenn ein Fehler vom internen Verhalten einer Bibliothek abhängt, das die Dokumentation nicht erklärt.
- ✓Wenn du die zentralen Abhängigkeits-Repositories für ein laufendes Projekt lokal lesbar haben willst.
Link zum Skill
https://github.com/alvinunreal/oh-my-opencode-slim/blob/master/src/skills/clonedeps/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Kopiere den Quellcode der wichtigsten Bibliotheken, von denen dieses Projekt abhängt, damit du erklären kannst, wie sie Wiederholungsversuche behandeln.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill prüft zuerst eine vorhandene Liste geklonter Repositories und nutzt, was bereits funktioniert. Danach wählt er die Abhängigkeiten aus, die für die Aufgabe wichtig sind, und klont sie.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Wo werden die geklonten Repositories gespeichert?
In einem lokalen Ordner im Verzeichnis .slim des Projekts, den das Projekt ignoriert.
Wann sollte ich ihn nicht nutzen?
Bei gewöhnlichen Fragen zu einer API oder Dokumentation reicht es, die Dokumentation zu lesen.
Nutzt er frühere Klone wieder?
Ja. Enthält die vorhandene Liste brauchbare Repositories, verwendet der Skill sie, statt neu anzufangen.
Details
Originalbeschreibung des Autors
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.
Beliebtheit
- GitHub-Sterne
- 10k
- Platz im Ranking
- #12011
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
cli-review
10kLässt deinen Agenten auf deinem aktuellen Branch eine Greptile-Code-Prüfung ausführen, bevor du einen Pull Request öffnest, und die Befunde in einfacher Sprache zusammenfassen.
ai-estimates
10kHilft deinem Agenten abzuschätzen, wie lange Arbeit dauert, wenn ein Mensch mit KI arbeitet, und dabei schnelle KI-Arbeit von menschlichen und externen Verzögerungen zu trennen.
codemap
10kErstellt eine strukturierte Karte eines unbekannten Code-Projekts, damit dein Agent seine Hauptteile schnell findet. Am besten, wenn du eine Codebasis-Karte ausdrücklich verlangst.
deanchor
10kLässt deinen Agenten aus Beispielen lernen, ohne sie zu kopieren. Er findet das gemeinsame Prinzip dahinter und schreibt etwas Neues, das diesem Prinzip folgt.
Ähnliche Skills
diffs
394kLässt deinen Agenten einen echten, teilbaren Diff seiner Änderungen als Viewer-Link oder Bilddatei erstellen, statt einer handgeschriebenen Zusammenfassung.
coding-agent
394kHilft deinem Agenten, eine größere Programmieraufgabe als Hintergrund-Worker an Codex, Claude Code oder OpenCode zu übergeben und danach den Fortschritt zu prüfen.
gh-issues
394kHilft deinem Agenten, GitHub-Issues zu finden, die zu bearbeitenden auszuwählen und Pull Requests mit Korrekturen zu öffnen, einschließlich der Nacharbeit an Review-Kommentaren.