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에이전트가 예시를 그대로 베끼지 않고 배우도록 돕습니다. 예시 뒤에 있는 공통 원칙을 찾아, 그 원칙을 따르는 새로운 글을 씁니다.